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) |
protected OntologyTerm |
fromOntClass(com.hp.hpl.jena.ontology.OntClass ontClass) |
Collection<String> |
getAlternativeIds() |
Collection<AnnotationProperty> |
getAnnotations() |
Collection<OntologyTerm> |
getChildren(boolean direct) |
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<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() |
compareToclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTopublic OntologyTermImpl(com.hp.hpl.jena.ontology.OntClass resource)
public boolean equals(Object obj)
equals in class AbstractOntologyResourcepublic Collection<String> getAlternativeIds()
getAlternativeIds in interface OntologyTermpublic Collection<AnnotationProperty> getAnnotations()
getAnnotations in interface OntologyTermpublic Collection<OntologyTerm> getChildren(boolean direct)
getChildren in interface OntologyTermdirect - return only the immediate children; if false, return all of them down to the leaves.public String getComment()
getComment in interface OntologyTermpublic Collection<OntologyIndividual> getIndividuals()
getIndividuals in interface OntologyTermpublic Collection<OntologyIndividual> getIndividuals(boolean direct)
getIndividuals in interface OntologyTermdirect - public String getLabel()
getLabel in interface OntologyResourcepublic String getLocalName()
getLocalName in interface OntologyTermpublic Object getModel()
getModel in interface OntologyTermpublic Collection<OntologyTerm> getParents(boolean direct)
OntologyTermgetParents in interface OntologyTermpublic Collection<OntologyRestriction> getRestrictions()
getRestrictions in interface OntologyTermpublic String getTerm()
getTerm in interface OntologyTermpublic String getUri()
getUri in interface OntologyResourcegetUri in interface OntologyTermgetUri in class AbstractOntologyResourcepublic int hashCode()
hashCode in class AbstractOntologyResourcepublic boolean isRoot()
isRoot in interface OntologyTermpublic boolean isTermObsolete()
OntologyTermisTermObsolete in interface OntologyTermprotected OntologyTerm fromOntClass(com.hp.hpl.jena.ontology.OntClass ontClass)
Copyright © 2003–2022 UBC Michael Smith Laboratories. All rights reserved.