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 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.getChildren
(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes) Obtain the children of this term via subclass relationships and possibly some additional properties.@Nullable String
A comment for the resource, if available, otherwise null.getIndividuals
(boolean direct) getParents
(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes) @Nullable String
getTerm()
boolean
Whether the resource is marked as obsolete.boolean
isRoot()
boolean
check 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, unwrap
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ubic.basecode.ontology.model.OntologyResource
getLabel, getLocalName, getUri, unwrap
Methods inherited from interface ubic.basecode.ontology.model.OntologyTerm
getChildren, getChildren, getIndividuals, getParents, getParents
-
Constructor Details
-
OntologyTermSimple
-
OntologyTermSimple
-
-
Method Details
-
getAlternativeIds
Description copied from interface:OntologyTerm
Obtain alternative IDs for this term.- Specified by:
getAlternativeIds
in interfaceOntologyTerm
-
getAnnotations
Description copied from interface:OntologyTerm
Obtain all annotations for this term.- Specified by:
getAnnotations
in interfaceOntologyTerm
-
getAnnotations
Description copied from interface:OntologyTerm
Obtain all the annotations for a given property URI.- Specified by:
getAnnotations
in interfaceOntologyTerm
-
getAnnotation
Description copied from interface:OntologyTerm
Obtain an annotation by property URI.- Specified by:
getAnnotation
in interfaceOntologyTerm
-
getChildren
public Collection<OntologyTerm> getChildren(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes) Description copied from interface:OntologyTerm
Obtain the children of this term via subclass relationships and possibly some additional properties.- Specified by:
getChildren
in 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:OntologyResource
A comment for the resource, if available, otherwise null.- Specified by:
getComment
in interfaceOntologyResource
-
getIndividuals
- Specified by:
getIndividuals
in interfaceOntologyTerm
-
getParents
public Collection<OntologyTerm> getParents(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes) - Specified by:
getParents
in interfaceOntologyTerm
-
getRestrictions
- Specified by:
getRestrictions
in interfaceOntologyTerm
-
isRoot
public boolean isRoot()- Specified by:
isRoot
in interfaceOntologyTerm
-
isTermObsolete
public boolean isTermObsolete()Description copied from interface:OntologyTerm
check to see if the term is obsolete, if it is it should not be used- Specified by:
isTermObsolete
in interfaceOntologyTerm
-
getTerm
- Specified by:
getTerm
in interfaceOntologyTerm
-
isObsolete
public boolean isObsolete()Description copied from interface:OntologyResource
Whether the resource is marked as obsolete.- Specified by:
isObsolete
in interfaceOntologyResource
-