Interface AnnotationPropertyProvider

All Known Subinterfaces:
EntityProvider, OWLDataFactory
All Known Implementing Classes:
OWLDataFactoryImpl
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AnnotationPropertyProvider
Since:
5.0.0
Author:
Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
  • Method Details

    • getOWLAnnotationProperty

      OWLAnnotationProperty getOWLAnnotationProperty(IRI iri)
      Gets an instance of OWLAnnotationProperty that has the specified IRI.
      Parameters:
      iri - The IRI.
      Returns:
      An OWLAnnotationProperty that has the specified IRI.
    • getOWLAnnotationProperty

      default OWLAnnotationProperty getOWLAnnotationProperty(HasIRI iri)
      Gets an instance of OWLAnnotationProperty with the same IRI as the input.
      Parameters:
      iri - The HasIRI instance.
      Returns:
      An OWLAnnotationProperty that has iri.getIRI() as IRI.
    • getOWLAnnotationProperty

      default OWLAnnotationProperty getOWLAnnotationProperty(String iri)
      Gets an instance of OWLAnnotationProperty that has the specified IRI. This is the same as getOWLAnnotationProperty(IRI.create(iri)).
      Parameters:
      iri - The IRI string.
      Returns:
      An OWLAnnotationProperty that has the specified IRI.
    • getOWLAnnotationProperty

      default OWLAnnotationProperty getOWLAnnotationProperty(String namespace, @Nullable String remainder)
      Gets an instance of OWLAnnotationProperty that has the specified IRI. This is the same as getOWLAnnotationProperty(IRI.create(namespace, remainder)).
      Parameters:
      namespace - The IRI namespace.
      remainder - optional remainder or local name
      Returns:
      An OWLAnnotationProperty that has the specified IRI.
    • getOWLAnnotationProperty

      default OWLAnnotationProperty getOWLAnnotationProperty(String abbreviatedIRI, PrefixManager prefixManager)
      Gets an OWLAnnotationProperty that has an IRI that is obtained by expanding an abbreviated name using an appropriate prefix mapping. See The OWL 2 Structural Specification for more details.
      Parameters:
      abbreviatedIRI - The abbreviated IRI, which is of the form PREFIX_NAME:RC, where PREFIX_NAME may be the empty string (the default prefix). Note that abbreviated IRIs always contain a colon as a delimiter, even if the prefix name is the empty string.
      prefixManager - The prefix manager that is responsible for mapping prefix names to prefix IRIs.
      Returns:
      An OWLAnnotationProperty that has the IRI obtained by expanding the specified abbreviated IRI using the specified prefix manager.
      For example, suppose "m:Cat" was specified as the abbreviated IRI, the prefix manager would be used to obtain the IRI prefix for the "m:" prefix name, this prefix would then be concatenated with "Cat" to obtain the full IRI which would be the IRI of the OWLAnnotationProperty obtained by this method.
      Throws:
      OWLRuntimeException - if the prefix name in the specified abbreviated IRI does not have a mapping to a prefix in the specified prefix manager.