Interface ClassProvider

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

    • getOWLClass

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

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

      default OWLClass getOWLClass(String iri)
      Gets an instance of OWLClass that has the specified IRI. This is the same as calling getOWLClass(IRI.create(iri)). No prefix resolution is attempted.
      Parameters:
      iri - The IRI string
      Returns:
      An OWLClass that has the specified IRI.
    • getOWLClass

      default OWLClass getOWLClass(String namespace, @Nullable String remainder)
      Gets an instance of OWLClass that has an IRI composed of the provided namespace and remainder. This is the same as calling getOWLClass(IRI.create(namespace, remainder)). No prefix resolution is attempted.
      Parameters:
      namespace - The IRI namespace
      remainder - optional remainder or local name (can be null)
      Returns:
      An OWLClass that has the specified IRI.
    • getOWLClass

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