public class OntologyTermSimple extends Object implements OntologyTerm
| Constructor and Description |
|---|
OntologyTermSimple(String uri,
String term) |
OntologyTermSimple(String uri,
String term,
String description,
boolean isObsolete) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(OntologyResource other) |
boolean |
equals(Object obj) |
Collection<String> |
getAlternativeIds() |
Collection<AnnotationProperty> |
getAnnotations() |
Collection<OntologyTerm> |
getChildren(boolean direct,
boolean includeAdditionalProperties,
boolean keepObsoletes)
Obtain the children of this term via subclass relationships and possibly some additional properties.
|
String |
getComment() |
Collection<OntologyIndividual> |
getIndividuals(boolean direct) |
String |
getLabel()
A label, if known, otherwise null.
|
String |
getLocalName() |
Object |
getModel() |
Collection<OntologyTerm> |
getParents(boolean direct,
boolean includeAdditionalProperties,
boolean keepObsoletes) |
Collection<OntologyRestriction> |
getRestrictions() |
Double |
getScore()
If this is result from a free-text search, a corresponding score, otherwise null.
|
String |
getTerm() |
String |
getUri()
A URI if known, otherwise null.
|
int |
hashCode() |
boolean |
isObsolete()
Whether the resource is marked as obsolete.
|
boolean |
isRoot() |
boolean |
isTermObsolete()
check to see if the term is obsolete, if it is it should not be used
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetChildren, getChildren, getIndividuals, getParents, getParentspublic Collection<String> getAlternativeIds()
getAlternativeIds in interface OntologyTermpublic Collection<AnnotationProperty> getAnnotations()
getAnnotations in interface OntologyTermpublic Collection<OntologyTerm> getChildren(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes)
OntologyTermgetChildren in interface OntologyTermdirect - return only the immediate children; if false, return all of them down to the leaves.includeAdditionalProperties - include terms matched via additional propertiespublic String getComment()
getComment in interface OntologyTermpublic Collection<OntologyIndividual> getIndividuals(boolean direct)
getIndividuals in interface OntologyTermpublic String getLabel()
OntologyResourcegetLabel in interface OntologyResourcepublic String getLocalName()
getLocalName in interface OntologyTermpublic Object getModel()
getModel in interface OntologyTermpublic Collection<OntologyTerm> getParents(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes)
getParents in interface OntologyTermpublic Collection<OntologyRestriction> getRestrictions()
getRestrictions in interface OntologyTermpublic boolean isRoot()
isRoot in interface OntologyTermpublic boolean isTermObsolete()
OntologyTermisTermObsolete in interface OntologyTermpublic String getTerm()
getTerm in interface OntologyTermpublic String getUri()
OntologyResourcegetUri in interface OntologyResourcepublic boolean isObsolete()
OntologyResourceisObsolete in interface OntologyResource@Nullable public Double getScore()
OntologyResourcegetScore in interface OntologyResourcepublic int compareTo(OntologyResource other)
compareTo in interface Comparable<OntologyResource>Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.