Interface ObjectPropertyProvider

All Superinterfaces:
Serializable
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 ObjectPropertyProvider extends Serializable
Since:
3.4.6
Author:
Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
  • Method Details

    • getOWLObjectProperty

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

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

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

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

      default OWLObjectProperty getOWLObjectProperty(String abbreviatedIRI, PrefixManager prefixManager)
      Gets an OWLObjectProperty 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 OWLObjectProperty 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 OWLObjectProperty 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.