public interface OWLOntologyFactory
extends java.io.Serializable
Modifier and Type | Interface and Description |
---|---|
static interface |
OWLOntologyFactory.OWLOntologyCreationHandler
An
OWLOntologyCreationHandler gets notified when the factory has created an empty
ontology (during the loading process). |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateFromDocumentIRI(IRI documentIRI)
Determines if the factory can create an ontology for the specified ontology document IRI.
|
boolean |
canLoad(OWLOntologyDocumentSource documentSource)
Determines if the factory can load an ontology for the specified input souce
|
OWLOntology |
createOWLOntology(OWLOntologyID ontologyID,
IRI documentIRI,
OWLOntologyFactory.OWLOntologyCreationHandler handler)
Creates an (empty) ontology.
|
OWLOntologyManager |
getOWLOntologyManager() |
OWLOntology |
loadOWLOntology(OWLOntologyDocumentSource documentSource,
OWLOntologyFactory.OWLOntologyCreationHandler handler)
Creates and loads an
OWLOntology . |
OWLOntology |
loadOWLOntology(OWLOntologyDocumentSource documentSource,
OWLOntologyFactory.OWLOntologyCreationHandler handler,
OWLOntologyLoaderConfiguration configuration)
Creates and loads an
OWLOntology . |
void |
setOWLOntologyManager(OWLOntologyManager owlOntologyManager) |
void setOWLOntologyManager(OWLOntologyManager owlOntologyManager)
owlOntologyManager
- the ontology manager to set. Cannot be null.OWLOntologyManager getOWLOntologyManager()
OWLOntology createOWLOntology(OWLOntologyID ontologyID, IRI documentIRI, OWLOntologyFactory.OWLOntologyCreationHandler handler) throws OWLOntologyCreationException
ontologyID
- The ID of the ontology to create. This MUST NOT BE null
.documentIRI
- The document IRI of the ontologyhandler
- The ontology creation handler that will be notified when the
ontology has been created. @return The newly created ontologyOWLOntologyCreationException
- if the ontology could not be created.OWLOntology loadOWLOntology(OWLOntologyDocumentSource documentSource, OWLOntologyFactory.OWLOntologyCreationHandler handler) throws OWLOntologyCreationException
OWLOntology
.documentSource
- The document source that provides the means of getting a representation of a document.handler
- A pointer to an OWLOntologyCreationHandler
which will be notified immediately
after an empty ontology has been created, but before the source data is read and the ontology is loaded
with axioms.OWLOntologyCreationException
- if the ontology could not be created.OWLOntology loadOWLOntology(OWLOntologyDocumentSource documentSource, OWLOntologyFactory.OWLOntologyCreationHandler handler, OWLOntologyLoaderConfiguration configuration) throws OWLOntologyCreationException
OWLOntology
.documentSource
- The document source that provides the means of getting a representation of a document.handler
- A pointer to an OWLOntologyCreationHandler
which will be notified immediately after
and empty ontology has been created, but before the source data is read and the ontology is loaded with axioms.configuration
- A configuration object which can be used to pass various options to the loader.OWLOntologyCreationException
- if the ontology could not be createdboolean canCreateFromDocumentIRI(IRI documentIRI)
documentIRI
- The document IRItrue
if the factory can create an ontology given the specified document IRI,
or false
if the factory cannot create an ontology given the specified document IRI.boolean canLoad(OWLOntologyDocumentSource documentSource)
documentSource
- The input source from which to load the ontologytrue
if the factory can load from the specified input source.