uk.ac.manchester.cs.owl
Class EmptyInMemOWLOntologyFactory
java.lang.Object
uk.ac.manchester.cs.owl.AbstractInMemOWLOntologyFactory
uk.ac.manchester.cs.owl.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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmptyInMemOWLOntologyFactory
public EmptyInMemOWLOntologyFactory()
loadOWLOntology
public OWLOntology loadOWLOntology(OWLOntologyInputSource inputSource,
OWLOntologyFactory.OWLOntologyCreationHandler mediator)
throws OWLOntologyCreationException
- Description copied from interface:
OWLOntologyFactory
- Creates and loads an
OWLOntology.
be loaded into the ontology.
mediator - 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(java.net.URI ontologyURI,
java.net.URI physicalURI,
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:
ontologyURI - The URI of the ontology to create. This MUST NOT BE NULL.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.
canLoad
public boolean canLoad(OWLOntologyInputSource inputSource)
- Description copied from interface:
OWLOntologyFactory
- Determines if the factory can load an ontology for the specified physical
URI.
- Returns:
true if the factory can load from the specified input source.