public class ParsableOWLOntologyFactory extends AbstractInMemOWLOntologyFactory
OWLParserFactory
objects that
are obtained from the OWLParserFactoryRegistry
.OWLOntologyFactory.OWLOntologyCreationHandler
Constructor and Description |
---|
ParsableOWLOntologyFactory()
Creates an ontology factory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateFromDocumentIRI(IRI documentIRI)
Overriden - We don't create new empty ontologies - this isn't our
responsibility
|
boolean |
canLoad(OWLOntologyDocumentSource documentSource)
Determines if the factory can load an ontology for the specified input souce
|
OWLOntology |
createOWLOntology(java.net.URI ontologyURI,
java.net.URI physicalURI)
Deprecated.
|
java.util.List<OWLParser> |
getParsers() |
OWLOntology |
loadOWLOntology(OWLOntologyDocumentSource documentSource,
OWLOntologyFactory.OWLOntologyCreationHandler mediator)
Creates and loads an
OWLOntology . |
OWLOntology |
loadOWLOntology(OWLOntologyDocumentSource documentSource,
OWLOntologyFactory.OWLOntologyCreationHandler mediator,
OWLOntologyLoaderConfiguration configuration)
Creates and loads an
OWLOntology . |
createOWLOntology, getOWLOntologyManager, setOWLOntologyManager
public ParsableOWLOntologyFactory()
public java.util.List<OWLParser> getParsers()
public boolean canCreateFromDocumentIRI(IRI documentIRI)
canCreateFromDocumentIRI
in interface OWLOntologyFactory
canCreateFromDocumentIRI
in class AbstractInMemOWLOntologyFactory
documentIRI
- ignored@Deprecated public OWLOntology createOWLOntology(java.net.URI ontologyURI, java.net.URI physicalURI)
ontologyURI
- ignoredphysicalURI
- ignoredpublic boolean canLoad(OWLOntologyDocumentSource documentSource)
OWLOntologyFactory
documentSource
- The input source from which to load the ontologytrue
if the factory can load from the specified input source.public OWLOntology loadOWLOntology(OWLOntologyDocumentSource documentSource, OWLOntologyFactory.OWLOntologyCreationHandler mediator, OWLOntologyLoaderConfiguration configuration) throws OWLOntologyCreationException
OWLOntologyFactory
OWLOntology
.documentSource
- The document source that provides the means of getting a representation of a document.mediator
- 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 createdpublic OWLOntology loadOWLOntology(OWLOntologyDocumentSource documentSource, OWLOntologyFactory.OWLOntologyCreationHandler mediator) throws OWLOntologyCreationException
OWLOntologyFactory
OWLOntology
.documentSource
- The document source that provides the means of getting a representation of a document.mediator
- 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.