org.semanticweb.owlapi.model
Interface OWLOntologyStorer

All Known Implementing Classes:
AbstractOWLOntologyStorer, DLSyntaxHTMLOntologyStorer, DLSyntaxOntologyStorer, DLSyntaxOntologyStorerBase, KRSS2OWLSyntaxOntologyStorer, KRSS2SyntaxOntologyStorer, KRSSSyntaxOntologyStorer, LatexOntologyStorer, ManchesterOWLSyntaxOntologyStorer, OBOFlatFileOntologyStorer, OWLFunctionalSyntaxOntologyStorer, OWLXMLOntologyStorer, RDFXMLOntologyStorer, TurtleOntologyStorer

public interface OWLOntologyStorer

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 02-Jan-2007

An ontology storer stores an ontology in a particular format at a location specified by a particular URI.


Method Summary
 boolean canStoreOntology(OWLOntologyFormat ontologyFormat)
          Determines if this storer can store an ontology in the specified ontology format.
 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.
 

Method Detail

canStoreOntology

boolean canStoreOntology(OWLOntologyFormat ontologyFormat)
Determines if this storer can store an ontology in the specified ontology format.

Parameters:
ontologyFormat - The desired ontology format.
Returns:
true if this storer can store an ontology in the desired format.

storeOntology

void storeOntology(OWLOntologyManager manager,
                   OWLOntology ontology,
                   IRI documentIRI,
                   OWLOntologyFormat ontologyFormat)
                   throws OWLOntologyStorageException,
                          java.io.IOException
Stores an ontology to the specified ontology document IRI in the specified format

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:
java.io.IOException - if there was an IOException when storing the ontology
OWLOntologyStorageException - if there was a problem storing the ontology

storeOntology

void storeOntology(OWLOntologyManager manager,
                   OWLOntology ontology,
                   OWLOntologyDocumentTarget target,
                   OWLOntologyFormat format)
                   throws OWLOntologyStorageException,
                          java.io.IOException
Stores an ontology to the specified target. This method assumes the storer can write the ontology to some stream.

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.
java.io.IOException - if there was an IOException when storing the ontology.