uk.ac.manchester.cs.owl.owlapi
Class EmptyInMemOWLOntologyFactory

java.lang.Object
  extended by uk.ac.manchester.cs.owl.owlapi.AbstractInMemOWLOntologyFactory
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.semanticweb.owlapi.model.OWLOntologyFactory
OWLOntologyFactory.OWLOntologyCreationHandler
 
Constructor Summary
EmptyInMemOWLOntologyFactory()
           
 
Method Summary
 boolean canLoad(OWLOntologyDocumentSource documentSource)
          Determines if the factory can load an ontology for the specified input souce
 OWLOntology createOWLOntology(OWLOntologyID ontologyID, IRI documentIRI, OWLOntologyFactory.OWLOntologyCreationHandler handler)
          Creates an empty ontology that a concrete representation can be parsed into.
 OWLOntology loadOWLOntology(OWLOntologyDocumentSource documentSource, OWLOntologyFactory.OWLOntologyCreationHandler mediator)
          Creates and loads an OWLOntology.
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.AbstractInMemOWLOntologyFactory
canCreateFromDocumentIRI, getOWLOntologyManager, setOWLOntologyManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyInMemOWLOntologyFactory

public EmptyInMemOWLOntologyFactory()
Method Detail

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 source
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(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 ontology
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.

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.