org.semanticweb.owlapi.util
Class AbstractOWLOntologyStorer

java.lang.Object
  extended by org.semanticweb.owlapi.util.AbstractOWLOntologyStorer
All Implemented Interfaces:
OWLOntologyStorer
Direct Known Subclasses:
DLSyntaxOntologyStorerBase, KRSS2OWLSyntaxOntologyStorer, KRSS2SyntaxOntologyStorer, KRSSSyntaxOntologyStorer, LatexOntologyStorer, ManchesterOWLSyntaxOntologyStorer, OBOFlatFileOntologyStorer, OWLFunctionalSyntaxOntologyStorer, OWLXMLOntologyStorer, RDFXMLOntologyStorer, TurtleOntologyStorer

public abstract class AbstractOWLOntologyStorer
extends java.lang.Object
implements OWLOntologyStorer

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 04-Dec-2007


Constructor Summary
AbstractOWLOntologyStorer()
           
 
Method Summary
 void storeOntology(OWLOntologyManager manager, OWLOntology ontology, IRI documentIRI, OWLOntologyFormat ontologyFormat)
          Stores an ontology to the specified ontology document IRI in the specified format
 void storeOntology(OWLOntologyManager manager, OWLOntology ontology, OWLOntologyDocumentTarget target, OWLOntologyFormat format)
          Stores an ontology to the specified target.
protected abstract  void storeOntology(OWLOntologyManager manager, OWLOntology ontology, java.io.Writer writer, OWLOntologyFormat format)
           
 
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.OWLOntologyStorer
canStoreOntology
 

Constructor Detail

AbstractOWLOntologyStorer

public AbstractOWLOntologyStorer()
Method Detail

storeOntology

public void storeOntology(OWLOntologyManager manager,
                          OWLOntology ontology,
                          IRI documentIRI,
                          OWLOntologyFormat ontologyFormat)
                   throws OWLOntologyStorageException
Description copied from interface: OWLOntologyStorer
Stores an ontology to the specified ontology document IRI in the specified format

Specified by:
storeOntology in interface OWLOntologyStorer
Parameters:
manager - The manager
ontology - The ontology to be stored
documentIRI - The ontology document IRI where the ontology will be saved to
ontologyFormat - The format that the ontology should be stored in @throws OWLOntologyStorageException if there was a problem storing the ontology.
Throws:
OWLOntologyStorageException - if there was a problem storing the ontology

storeOntology

public void storeOntology(OWLOntologyManager manager,
                          OWLOntology ontology,
                          OWLOntologyDocumentTarget target,
                          OWLOntologyFormat format)
                   throws OWLOntologyStorageException
Description copied from interface: OWLOntologyStorer
Stores an ontology to the specified target. This method assumes the storer can write the ontology to some stream.

Specified by:
storeOntology in interface OWLOntologyStorer
Parameters:
manager - The manager
ontology - The ontology to be stored
target - The target which describes the ontology document where the ontology should be stored
format - The format in which to store the ontology
Throws:
OWLOntologyStorageException - if there was a problem storing the ontology.

storeOntology

protected abstract void storeOntology(OWLOntologyManager manager,
                                      OWLOntology ontology,
                                      java.io.Writer writer,
                                      OWLOntologyFormat format)
                               throws OWLOntologyStorageException
Throws:
OWLOntologyStorageException