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 String
A comment for the resource, if available, otherwise null.@Nullable String
getLabel()
A label, if known, otherwise null.@Nullable String
A local name for this resource.@Nullable String
getUri()
A URI if known, otherwise null.boolean
Whether the resource is marked as obsolete.<T> T
Unwrap 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
-