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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChildren, getChildren, getIndividuals, getParents, getParentsgetLabel, getScore, getUricompareTopublic 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 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 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 String getTerm()
getTerm in interface OntologyTermpublic boolean isObsolete()
OntologyResourceisObsolete in interface OntologyResourceisObsolete in class AbstractOntologyResourcepublic boolean isRoot()
isRoot in interface OntologyTermpublic boolean isTermObsolete()
OntologyTermisTermObsolete in interface OntologyTermpublic com.hp.hpl.jena.ontology.OntClass getOntClass()
Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.