Package ubic.basecode.ontology.model
Interface OntologyTerm
-
- All Superinterfaces:
Comparable<OntologyResource>,OntologyResource,Serializable
- All Known Subinterfaces:
OntologyCardinalityRestriction,OntologyClassRestriction,OntologyDatatypeRestriction,OntologyRestriction
- All Known Implementing Classes:
OntologyCardinalityRestrictionImpl,OntologyClassRestrictionImpl,OntologyDatatypeRestrictionImpl,OntologyRestrictionImpl,OntologyTermImpl,OntologyTermSimple
public interface OntologyTerm extends OntologyResource
- Author:
- Paul
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Collection<String>getAlternativeIds()Collection<AnnotationProperty>getAnnotations()default Collection<OntologyTerm>getChildren(boolean direct)Obtain the children of this term via subclasses and additional properties.default Collection<OntologyTerm>getChildren(boolean direct, boolean includeAdditionalProperties)Collection<OntologyTerm>getChildren(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes)Obtain the children of this term via subclass relationships and possibly some additional properties.StringgetComment()default Collection<OntologyIndividual>getIndividuals()Collection<OntologyIndividual>getIndividuals(boolean direct)StringgetLocalName()ObjectgetModel()default Collection<OntologyTerm>getParents(boolean direct)Note that any restriction superclasses are not returned, unless they are has_proper_partdefault Collection<OntologyTerm>getParents(boolean direct, boolean includeAdditionalProperties)Collection<OntologyTerm>getParents(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes)Collection<OntologyRestriction>getRestrictions()StringgetTerm()Deprecated.useOntologyResource.getLabel()instead.booleanisRoot()booleanisTermObsolete()Deprecated.useOntologyResource.isObsolete()instead-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface ubic.basecode.ontology.model.OntologyResource
getLabel, getScore, getUri, isObsolete
-
-
-
-
Method Detail
-
getAlternativeIds
Collection<String> getAlternativeIds()
-
getAnnotations
Collection<AnnotationProperty> getAnnotations()
-
getChildren
default Collection<OntologyTerm> getChildren(boolean direct)
Obtain the children of this term via subclasses and additional properties.- See Also:
getChildren(boolean, boolean)
-
getChildren
default Collection<OntologyTerm> getChildren(boolean direct, boolean includeAdditionalProperties)
-
getChildren
Collection<OntologyTerm> getChildren(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes)
Obtain the children of this term via subclass relationships and possibly some additional properties.- Parameters:
direct- return only the immediate children; if false, return all of them down to the leaves.includeAdditionalProperties- include terms matched via additional properties
-
getComment
String getComment()
-
getIndividuals
default Collection<OntologyIndividual> getIndividuals()
-
getIndividuals
Collection<OntologyIndividual> getIndividuals(boolean direct)
-
getLocalName
String getLocalName()
-
getModel
Object getModel()
-
getParents
default Collection<OntologyTerm> getParents(boolean direct)
Note that any restriction superclasses are not returned, unless they are has_proper_part- Parameters:
direct-- Returns:
-
getParents
default Collection<OntologyTerm> getParents(boolean direct, boolean includeAdditionalProperties)
-
getParents
Collection<OntologyTerm> getParents(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes)
-
getRestrictions
Collection<OntologyRestriction> getRestrictions()
-
getTerm
@Deprecated String getTerm()
Deprecated.useOntologyResource.getLabel()instead.
-
isRoot
boolean isRoot()
-
isTermObsolete
@Deprecated boolean isTermObsolete()
Deprecated.useOntologyResource.isObsolete()insteadcheck to see if the term is obsolete, if it is it should not be used
-
-