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

      <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