uk.ac.manchester.cs.owl.owlapi
Class AbstractInMemOWLOntologyFactory
java.lang.Object
uk.ac.manchester.cs.owl.owlapi.AbstractInMemOWLOntologyFactory
- All Implemented Interfaces:
- OWLOntologyFactory
- Direct Known Subclasses:
- EmptyInMemOWLOntologyFactory, ParsableOWLOntologyFactory
public abstract class AbstractInMemOWLOntologyFactory
- extends java.lang.Object
- implements OWLOntologyFactory
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 |
AbstractInMemOWLOntologyFactory
public AbstractInMemOWLOntologyFactory()
setOWLOntologyManager
public void setOWLOntologyManager(OWLOntologyManager owlOntologyManager)
- Specified by:
setOWLOntologyManager
in interface OWLOntologyFactory
getOWLOntologyManager
public OWLOntologyManager getOWLOntologyManager()
canCreateFromDocumentIRI
public boolean canCreateFromDocumentIRI(IRI documentIRI)
- Description copied from interface:
OWLOntologyFactory
- Determines if the factory can create an ontology for the specified ontology document IRI.
- Specified by:
canCreateFromDocumentIRI
in interface OWLOntologyFactory
- Parameters:
documentIRI
- The document IRI
- Returns:
true
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.
createOWLOntology
public OWLOntology createOWLOntology(OWLOntologyID ontologyID,
IRI documentIRI,
OWLOntologyFactory.OWLOntologyCreationHandler handler)
throws OWLOntologyCreationException
- 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
- Parameters:
documentIRI
- ontologyID
- The ID of the ontology to create. This MUST NOT BE null
.handler
- 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.