uk.ac.manchester.cs.owl
Class AbstractInMemOWLOntologyFactory
java.lang.Object
uk.ac.manchester.cs.owl.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 |
equals, 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()
canCreateFromPhysicalURI
public boolean canCreateFromPhysicalURI(java.net.URI physicalURI)
- Description copied from interface:
OWLOntologyFactory
- Determines if the factory can create an ontology for the specified physical
URI.
- Specified by:
canCreateFromPhysicalURI
in interface OWLOntologyFactory
- Parameters:
physicalURI
- The physical URI of the ontology to be created. This may
be null
.
- Returns:
true
if the factory can create an ontology given a physical URI,
or false
if the factory cannot create an ontology.
createOWLOntology
public OWLOntology createOWLOntology(java.net.URI ontologyURI,
java.net.URI physicalURI,
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:
ontologyURI
- physicalURI
- The physical URI of the ontology. This MAY be
null
.handler
- The ontology creation handler that will be notified when the
ontology has been created.
- Returns:
- The newly created ontology
- Throws:
OWLOntologyCreationException
- if the ontology could not be created.