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, wait
getChildren, getChildren, getIndividuals, getParents, getParents
public Collection<String> getAlternativeIds()
getAlternativeIds
in interface OntologyTerm
public Collection<AnnotationProperty> getAnnotations()
getAnnotations
in interface OntologyTerm
public Collection<OntologyTerm> getChildren(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes)
OntologyTerm
getChildren
in interface OntologyTerm
direct
- 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 OntologyTerm
public Collection<OntologyIndividual> getIndividuals(boolean direct)
getIndividuals
in interface OntologyTerm
public String getLabel()
OntologyResource
getLabel
in interface OntologyResource
public String getLocalName()
getLocalName
in interface OntologyTerm
public Object getModel()
getModel
in interface OntologyTerm
public Collection<OntologyTerm> getParents(boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes)
getParents
in interface OntologyTerm
public Collection<OntologyRestriction> getRestrictions()
getRestrictions
in interface OntologyTerm
public boolean isRoot()
isRoot
in interface OntologyTerm
public boolean isTermObsolete()
OntologyTerm
isTermObsolete
in interface OntologyTerm
public String getTerm()
getTerm
in interface OntologyTerm
public String getUri()
OntologyResource
getUri
in interface OntologyResource
public boolean isObsolete()
OntologyResource
isObsolete
in interface OntologyResource
@Nullable public Double getScore()
OntologyResource
getScore
in interface OntologyResource
public int compareTo(OntologyResource other)
compareTo
in interface Comparable<OntologyResource>
Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.