Package ubic.basecode.ontology.model
Interface OntologyResource
- All Known Subinterfaces:
AnnotationProperty,DatatypeProperty,ObjectProperty,OntologyCardinalityRestriction,OntologyClassRestriction,OntologyDatatypeRestriction,OntologyIndividual,OntologyProperty,OntologyRestriction,OntologyTerm
- All Known Implementing Classes:
AbstractOntologyResourceSimple,OntologyIndividualSimple,OntologyPropertySimple,OntologyTermSimple
public interface OntologyResource
- Author:
- pavlidis
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringA comment for the resource, if available, otherwise null.@Nullable StringgetLabel()A label, if known, otherwise null.@Nullable StringA local name for this resource.@Nullable StringgetUri()A URI if known, otherwise null.booleanWhether the resource is marked as obsolete.<T> TUnwrap the underlying implementation of the ontology resource.
-
Method Details
-
getUri
@Nullable String getUri()A URI if known, otherwise null. -
getLocalName
@Nullable String getLocalName()A local name for this resource. -
getLabel
@Nullable String getLabel()A label, if known, otherwise null. -
getComment
@Nullable String getComment()A comment for the resource, if available, otherwise null. -
isObsolete
boolean isObsolete()Whether the resource is marked as obsolete. -
unwrap
Unwrap the underlying implementation of the ontology resource.- Throws:
ClassCastException- if the implementation type does not match the given class
-