Package ubic.basecode.ontology.simple
Class OntologyTermSimple
java.lang.Object
ubic.basecode.ontology.simple.AbstractOntologyResourceSimple
ubic.basecode.ontology.simple.OntologyTermSimple
- All Implemented Interfaces:
Serializable,OntologyResource,OntologyTerm
A light-weight version of OntologyTerms. Only supports a subset of the functionality of OntologyTermImpl (namely, it
is missing the inference components)
- Author:
- Paul
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOntologyTermSimple(@Nullable String uri, @Nullable String label) OntologyTermSimple(@Nullable String uri, @Nullable String localName, @Nullable String label, @Nullable String comment, boolean isObsolete) -
Method Summary
Modifier and TypeMethodDescriptionObtain alternative IDs for this term.@Nullable AnnotationPropertygetAnnotation(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.getChildren(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes) Obtain the children of this term via subclass relationships and possibly some additional properties.@Nullable StringA comment for the resource, if available, otherwise null.getIndividuals(boolean direct) getParents(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes) @Nullable StringgetTerm()booleanWhether the resource is marked as obsolete.booleanisRoot()booleancheck to see if the term is obsolete, if it is it should not be usedMethods inherited from class ubic.basecode.ontology.simple.AbstractOntologyResourceSimple
equals, getLabel, getLocalName, getUri, hashCode, unwrapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.basecode.ontology.model.OntologyResource
getLabel, getLocalName, getUri, unwrapMethods inherited from interface ubic.basecode.ontology.model.OntologyTerm
getChildren, getChildren, getIndividuals, getParents, getParents
-
Constructor Details
-
OntologyTermSimple
-
OntologyTermSimple
-
-
Method Details
-
getAlternativeIds
Description copied from interface:OntologyTermObtain alternative IDs for this term.- Specified by:
getAlternativeIdsin interfaceOntologyTerm
-
getAnnotations
Description copied from interface:OntologyTermObtain all annotations for this term.- Specified by:
getAnnotationsin interfaceOntologyTerm
-
getAnnotations
Description copied from interface:OntologyTermObtain all the annotations for a given property URI.- Specified by:
getAnnotationsin interfaceOntologyTerm
-
getAnnotation
Description copied from interface:OntologyTermObtain an annotation by property URI.- Specified by:
getAnnotationin interfaceOntologyTerm
-
getChildren
public Collection<OntologyTerm> getChildren(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes) Description copied from interface:OntologyTermObtain the children of this term via subclass relationships and possibly some additional properties.- Specified by:
getChildrenin interfaceOntologyTerm- 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
Description copied from interface:OntologyResourceA comment for the resource, if available, otherwise null.- Specified by:
getCommentin interfaceOntologyResource
-
getIndividuals
- Specified by:
getIndividualsin interfaceOntologyTerm
-
getParents
public Collection<OntologyTerm> getParents(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes) - Specified by:
getParentsin interfaceOntologyTerm
-
getRestrictions
- Specified by:
getRestrictionsin interfaceOntologyTerm
-
isRoot
public boolean isRoot()- Specified by:
isRootin interfaceOntologyTerm
-
isTermObsolete
public boolean isTermObsolete()Description copied from interface:OntologyTermcheck to see if the term is obsolete, if it is it should not be used- Specified by:
isTermObsoletein interfaceOntologyTerm
-
getTerm
- Specified by:
getTermin interfaceOntologyTerm
-
isObsolete
public boolean isObsolete()Description copied from interface:OntologyResourceWhether the resource is marked as obsolete.- Specified by:
isObsoletein interfaceOntologyResource
-