Package ubic.basecode.ontology.model
Interface OntologyResource
-
- All Known Subinterfaces:
AnnotationProperty
,DatatypeProperty
,ObjectProperty
,OntologyCardinalityRestriction
,OntologyClassRestriction
,OntologyDatatypeRestriction
,OntologyIndividual
,OntologyProperty
,OntologyRestriction
,OntologyTerm
- All Known Implementing Classes:
OntologyTermSimple
public interface OntologyResource
- Author:
- pavlidis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getComment()
A comment for the resource, if available, otherwise null.String
getLabel()
A label, if known, otherwise null.String
getLocalName()
A local name for this resource.String
getUri()
A URI if known, otherwise null.boolean
isObsolete()
Whether the resource is marked as obsolete.<T> T
unwrap(Class<T> clazz)
Unwrap the underlying implementation of the ontology resource.
-
-
-
Method Detail
-
getLocalName
String getLocalName()
A local name for this resource.
-
isObsolete
boolean isObsolete()
Whether the resource is marked as obsolete.
-
unwrap
<T> T unwrap(Class<T> clazz) throws ClassCastException
Unwrap the underlying implementation of the ontology resource.- Throws:
ClassCastException
- if the implementation type does not match the given class
-
-