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

java.lang.Object
  extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.semanticweb.owlapi.model.OWLOntologyFactory
OWLOntologyFactory.OWLOntologyCreationHandler
 
Constructor Summary
AbstractInMemOWLOntologyFactory()
           
 
Method Summary
 boolean canCreateFromDocumentIRI(IRI documentIRI)
          Determines if the factory can create an ontology for the specified ontology document IRI.
 OWLOntology createOWLOntology(OWLOntologyID ontologyID, IRI documentIRI, OWLOntologyFactory.OWLOntologyCreationHandler handler)
          Creates an empty ontology that a concrete representation can be parsed into.
 OWLOntologyManager getOWLOntologyManager()
           
 void setOWLOntologyManager(OWLOntologyManager owlOntologyManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLOntologyFactory
canLoad, loadOWLOntology
 

Constructor Detail

AbstractInMemOWLOntologyFactory

public AbstractInMemOWLOntologyFactory()
Method Detail

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.