public class OntologyTermImpl extends AbstractOntologyResource implements OntologyTerm
log
Constructor and Description |
---|
OntologyTermImpl(com.hp.hpl.jena.ontology.OntClass resource) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Collection<String> |
getAlternativeIds() |
Collection<AnnotationProperty> |
getAnnotations() |
Collection<OntologyTerm> |
getChildren(boolean direct) |
Collection<OntologyTerm> |
getChildren(boolean direct,
boolean includePartOf) |
String |
getComment() |
Collection<OntologyIndividual> |
getIndividuals() |
Collection<OntologyIndividual> |
getIndividuals(boolean direct) |
String |
getLabel() |
String |
getLocalName() |
Object |
getModel() |
Collection<OntologyTerm> |
getParents(boolean direct)
Note that any restriction superclasses are not returned, unless they are has_proper_part
|
Collection<OntologyTerm> |
getParents(boolean direct,
boolean includePartOf) |
Collection<OntologyRestriction> |
getRestrictions() |
String |
getTerm() |
String |
getUri() |
int |
hashCode() |
boolean |
isRoot() |
boolean |
isTermObsolete()
check to see if the term is obsolete, if it is it should not be used
|
String |
toString() |
compareTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
public OntologyTermImpl(com.hp.hpl.jena.ontology.OntClass resource)
public boolean equals(Object obj)
equals
in class AbstractOntologyResource
public Collection<String> getAlternativeIds()
getAlternativeIds
in interface OntologyTerm
public Collection<AnnotationProperty> getAnnotations()
getAnnotations
in interface OntologyTerm
public Collection<OntologyTerm> getChildren(boolean direct)
getChildren
in interface OntologyTerm
public Collection<OntologyTerm> getChildren(boolean direct, boolean includePartOf)
getChildren
in interface OntologyTerm
direct
- return only the immediate children; if false, return all of them down to the leaves.includePartOf
- include terms matched viapublic String getComment()
getComment
in interface OntologyTerm
public Collection<OntologyIndividual> getIndividuals()
getIndividuals
in interface OntologyTerm
public Collection<OntologyIndividual> getIndividuals(boolean direct)
getIndividuals
in interface OntologyTerm
public String getLabel()
getLabel
in interface OntologyResource
public String getLocalName()
getLocalName
in interface OntologyTerm
public Object getModel()
getModel
in interface OntologyTerm
public Collection<OntologyTerm> getParents(boolean direct)
OntologyTerm
getParents
in interface OntologyTerm
public Collection<OntologyTerm> getParents(boolean direct, boolean includePartOf)
getParents
in interface OntologyTerm
public Collection<OntologyRestriction> getRestrictions()
getRestrictions
in interface OntologyTerm
public String getTerm()
getTerm
in interface OntologyTerm
public String getUri()
getUri
in interface OntologyResource
getUri
in interface OntologyTerm
getUri
in class AbstractOntologyResource
public int hashCode()
hashCode
in class AbstractOntologyResource
public boolean isRoot()
isRoot
in interface OntologyTerm
public boolean isTermObsolete()
OntologyTerm
isTermObsolete
in interface OntologyTerm
Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.