Package ubic.basecode.ontology.model
Interface OntologyTerm
- All Superinterfaces:
OntologyResource
- All Known Subinterfaces:
OntologyCardinalityRestriction
,OntologyClassRestriction
,OntologyDatatypeRestriction
,OntologyRestriction
- All Known Implementing Classes:
OntologyTermSimple
- Author:
- Paul
-
Method Summary
Modifier and TypeMethodDescriptionObtain alternative IDs for this term.@Nullable AnnotationProperty
getAnnotation
(String propertyUri) Obtain an annotation by property URI.Obtain all annotations for this term.getAnnotations
(String propertyUri) Obtain all the annotations for a given property URI.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) getChildren
(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes) Obtain the children of this term via subclass relationships and possibly some additional properties.default Collection
<OntologyIndividual> getIndividuals
(boolean direct) 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) getParents
(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes) @Nullable String
getTerm()
Deprecated.boolean
isRoot()
boolean
Deprecated.useOntologyResource.isObsolete()
insteadMethods inherited from interface ubic.basecode.ontology.model.OntologyResource
getComment, getLabel, getLocalName, getUri, isObsolete, unwrap
-
Method Details
-
getAlternativeIds
Collection<String> getAlternativeIds()Obtain alternative IDs for this term. -
getAnnotations
Collection<AnnotationProperty> getAnnotations()Obtain all annotations for this term. -
getAnnotations
Obtain all the annotations for a given property URI. -
getAnnotation
Obtain an annotation by property URI. -
getChildren
Obtain the children of this term via subclasses and additional properties.- See Also:
-
getChildren
-
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
-
getIndividuals
-
getIndividuals
-
getParents
Note that any restriction superclasses are not returned, unless they are has_proper_part- Parameters:
direct
-- Returns:
-
getParents
-
getParents
Collection<OntologyTerm> getParents(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes) -
getRestrictions
Collection<OntologyRestriction> getRestrictions() -
getTerm
Deprecated.useOntologyResource.getLabel()
instead. -
isRoot
boolean isRoot() -
isTermObsolete
Deprecated.useOntologyResource.isObsolete()
insteadcheck to see if the term is obsolete, if it is it should not be used
-
OntologyResource.getLabel()
instead.