public class OntologyTermImpl extends AbstractOntologyResource implements OntologyTerm
log
Constructor and Description |
---|
OntologyTermImpl(com.hp.hpl.jena.ontology.OntClass resource,
Set<com.hp.hpl.jena.ontology.Restriction> additionalRestrictions) |
OntologyTermImpl(com.hp.hpl.jena.ontology.OntClass resource,
Set<com.hp.hpl.jena.ontology.Restriction> additionalRestrictions,
double score) |
Modifier and Type | Method and Description |
---|---|
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 |
getLocalName() |
Object |
getModel() |
com.hp.hpl.jena.ontology.OntClass |
getOntClass() |
Collection<OntologyTerm> |
getParents(boolean direct,
boolean includeAdditionalProperties,
boolean keepObsoletes) |
Collection<OntologyRestriction> |
getRestrictions() |
String |
getTerm() |
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
|
compareTo, equals, getLabel, getScore, getUri, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChildren, getChildren, getIndividuals, getParents, getParents
getLabel, getScore, getUri
compareTo
public OntologyTermImpl(com.hp.hpl.jena.ontology.OntClass resource, @Nullable Set<com.hp.hpl.jena.ontology.Restriction> additionalRestrictions)
public OntologyTermImpl(com.hp.hpl.jena.ontology.OntClass resource, Set<com.hp.hpl.jena.ontology.Restriction> additionalRestrictions, double score)
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 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 String getTerm()
getTerm
in interface OntologyTerm
public boolean isObsolete()
OntologyResource
isObsolete
in interface OntologyResource
isObsolete
in class AbstractOntologyResource
public boolean isRoot()
isRoot
in interface OntologyTerm
public boolean isTermObsolete()
OntologyTerm
isTermObsolete
in interface OntologyTerm
public com.hp.hpl.jena.ontology.OntClass getOntClass()
Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.