uk.ac.manchester.cs.owl.owlapi
Class EmptyInMemOWLOntologyFactory
java.lang.Object
uk.ac.manchester.cs.owl.owlapi.AbstractInMemOWLOntologyFactory
uk.ac.manchester.cs.owl.owlapi.EmptyInMemOWLOntologyFactory
- All Implemented Interfaces:
- OWLOntologyFactory
public class EmptyInMemOWLOntologyFactory
- extends AbstractInMemOWLOntologyFactory
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 15-Nov-2006
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmptyInMemOWLOntologyFactory
public EmptyInMemOWLOntologyFactory()
loadOWLOntology
public OWLOntology loadOWLOntology(OWLOntologyDocumentSource documentSource,
OWLOntologyFactory.OWLOntologyCreationHandler mediator)
throws OWLOntologyCreationException
- Description copied from interface:
OWLOntologyFactory
- Creates and loads an
OWLOntology
.
be loaded into the ontology.
- Parameters:
documentSource
- The input sourcemediator
- A pointer to an OWLOntologyCreationHandler
which will be notified immediately
after an emtpty ontology has been created, but before the source data is read and the ontology is loaded
with axioms.
- Returns:
- The newly created and loaded ontology
- Throws:
OWLOntologyCreationException
- if the ontology could not be created.
createOWLOntology
public OWLOntology createOWLOntology(OWLOntologyID ontologyID,
IRI documentIRI,
OWLOntologyFactory.OWLOntologyCreationHandler handler)
throws OWLOntologyCreationException
- Description copied from class:
AbstractInMemOWLOntologyFactory
- Creates an empty ontology that a concrete representation can be
parsed into. Subclasses can override this method to change the implementation
of the ontology.
- Specified by:
createOWLOntology
in interface OWLOntologyFactory
- Overrides:
createOWLOntology
in class AbstractInMemOWLOntologyFactory
- Parameters:
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 ontology
- Returns:
- The created ontology
- Throws:
OWLOntologyCreationException
- if the ontology could not be created.
canLoad
public boolean canLoad(OWLOntologyDocumentSource documentSource)
- Description copied from interface:
OWLOntologyFactory
- Determines if the factory can load an ontology for the specified input souce
- Parameters:
documentSource
- The input source from which to load the ontology
- Returns:
true
if the factory can load from the specified input source.