Package openllet.core.utils
Class AnnotationClasses
- java.lang.Object
-
- openllet.core.utils.AnnotationClasses
-
public class AnnotationClasses extends java.lang.ObjectIn some ontologies, such as the ones from OBO, annotations may be nested and contain type assertions on annotation values. Such type assertions will be treated as regular assertions and processed by the reasoner. This causes many superfluous logical axioms to be considered by the reasoner which might have significant impact on performance. TheOpenlletOptions.IGNORE_ANNOTATION_CLASSESoption tells Pellet to ignore such annotations. The set of classes that will be treated as annotation classes are stored in this class. This set can be modified by adding new classes or removing existing classes.Annotation classes from OBO are included by default. These are
obo:DbXref, obo:Definition, obo:Subset, obo:Synonym, obo:SynonymTypewhereobonamespace refers tohttp://www.geneontology.org/formats/oboInOwl.- Author:
- Evren Sirin
-
-
Constructor Summary
Constructors Constructor Description AnnotationClasses()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidadd(openllet.aterm.ATermAppl cls)Adds the specified class to the set of annotation classes.static booleancontains(openllet.aterm.ATermAppl cls)static java.util.Set<openllet.aterm.ATermAppl>getAll()static voidremove(openllet.aterm.ATermAppl cls)Removes the specified class form set of annotation classes.
-
-
-
Method Detail
-
add
public static void add(openllet.aterm.ATermAppl cls)
Adds the specified class to the set of annotation classes.- Parameters:
cls- class to add
-
contains
public static boolean contains(openllet.aterm.ATermAppl cls)
- Parameters:
cls- class to check- Returns:
trueif the specified class is defined to be an annotation class ANDOpenlletOptions.IGNORE_ANNOTATION_CLASSESoption is set to true. If the configuration option isfalsethis function will returnfalsefor every class.
-
remove
public static void remove(openllet.aterm.ATermAppl cls)
Removes the specified class form set of annotation classes.- Parameters:
cls- class to remove.
-
getAll
public static java.util.Set<openllet.aterm.ATermAppl> getAll()
- Returns:
- an unmodifiable copy of the annotation classes regardless of the
OpenlletOptions.IGNORE_ANNOTATION_CLASSESoption.
-
-