@FunctionalInterface public interface ClassProvider extends Serializable
Modifier and Type | Method and Description |
---|---|
default OWLClass |
getOWLClass(HasIRI iri)
Gets an instance of
OWLClass with the same IRI as the input. |
OWLClass |
getOWLClass(IRI iri)
Gets an instance of
OWLClass that has the specified IRI . |
default OWLClass |
getOWLClass(String iri)
Gets an instance of
OWLClass that has the specified IRI . |
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.
|
default OWLClass |
getOWLClass(String namespace,
String remainder)
Gets an instance of
OWLClass that has an IRI composed of the
provided namespace and remainder. |
OWLClass getOWLClass(IRI iri)
OWLClass
that has the specified IRI
.iri
- The IRI.OWLClass
that has the specified IRI.default OWLClass getOWLClass(HasIRI iri)
OWLClass
with the same IRI as the input.iri
- The HasIRI instance.OWLClass
that has iri.getIRI() as IRI.default OWLClass getOWLClass(String iri)
OWLClass
that has the specified IRI
.
This is the same as calling getOWLClass(IRI.create(iri))
. No
prefix resolution is attempted.iri
- The IRI stringOWLClass
that has the specified IRI.default OWLClass getOWLClass(String namespace, @Nullable String remainder)
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.namespace
- The IRI namespaceremainder
- optional remainder or local name (can be null)OWLClass
that has the specified IRI.default OWLClass getOWLClass(String abbreviatedIRI, PrefixManager prefixManager)
abbreviatedIRI
- The abbreviated IRI, which is of the form PREFIX_NAME:RC, where
PREFIX_NAME may be the empty string (the default prefix).prefixManager
- The prefix manager that is responsible for mapping prefix names to
prefix IRIs.OWLRuntimeException
- if the prefix name in the specified abbreviated IRI does not have
a mapping to a prefix in the specified prefix manager.Copyright © 2020 The University of Manchester. All rights reserved.