|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.manchester.cs.owl.AbstractInMemOWLOntologyFactory
uk.ac.manchester.cs.owl.ParsableOWLOntologyFactory
public class ParsableOWLOntologyFactory
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 14-Nov-2006
OWLParserFactory
objects that are obtained from
the OWLParserFactoryRegistry
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.semanticweb.owl.model.OWLOntologyFactory |
---|
OWLOntologyFactory.OWLOntologyCreationHandler |
Constructor Summary | |
---|---|
ParsableOWLOntologyFactory()
Creates an ontology factory. |
Method Summary | |
---|---|
boolean |
canCreateFromPhysicalURI(java.net.URI physicalURI)
Overriden - We don't create new empty ontologies - this isn't our responsibility |
boolean |
canLoad(OWLOntologyInputSource inputSource)
Determines if the factory can load an ontology for the specified physical URI. |
OWLOntology |
createOWLOntology(java.net.URI ontologyURI,
java.net.URI physicalURI)
Overriden - This method will throw an OWLException which wraps an UnsupportedOperationException. |
java.util.List<OWLParser> |
getParsers()
Gets a list of parsers that this factory uses when it tries to create an ontology from a concrete representation. |
OWLOntology |
loadOWLOntology(OWLOntologyInputSource inputSource,
OWLOntologyFactory.OWLOntologyCreationHandler mediator)
Creates and loads an OWLOntology . |
void |
setOWLOntologyManager(OWLOntologyManager owlOntologyManager)
|
Methods inherited from class uk.ac.manchester.cs.owl.AbstractInMemOWLOntologyFactory |
---|
createOWLOntology, getOWLOntologyManager |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParsableOWLOntologyFactory()
Method Detail |
---|
public void setOWLOntologyManager(OWLOntologyManager owlOntologyManager)
setOWLOntologyManager
in interface OWLOntologyFactory
setOWLOntologyManager
in class AbstractInMemOWLOntologyFactory
public java.util.List<OWLParser> getParsers()
public boolean canCreateFromPhysicalURI(java.net.URI physicalURI)
canCreateFromPhysicalURI
in interface OWLOntologyFactory
canCreateFromPhysicalURI
in class AbstractInMemOWLOntologyFactory
physicalURI
- The physical URI of the ontology to be created. This may
be null
.
true
if the factory can create an ontology given a physical URI,
or false
if the factory cannot create an ontology.public OWLOntology createOWLOntology(java.net.URI ontologyURI, java.net.URI physicalURI)
public boolean canLoad(OWLOntologyInputSource inputSource)
OWLOntologyFactory
true
if the factory can load from the specified input source.public OWLOntology loadOWLOntology(OWLOntologyInputSource inputSource, OWLOntologyFactory.OWLOntologyCreationHandler mediator) throws OWLOntologyCreationException
OWLOntologyFactory
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.
OWLOntologyCreationException
- if the ontology could not be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |