org.semanticweb.owl.model
Interface OWLOntologyStorer

All Known Implementing Classes:
AbstractOWLOntologyStorer

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, OWLOntologyOutputTarget target, OWLOntologyFormat format)
          Stores an ontology to the specified target.
 void storeOntology(OWLOntologyManager manager, OWLOntology ontology, java.net.URI physicalURI, OWLOntologyFormat ontologyFormat)
          Stores an ontology at the specified physical URI in the specified format.
 

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,
                   java.net.URI physicalURI,
                   OWLOntologyFormat ontologyFormat)
                   throws OWLOntologyStorageException
Stores an ontology at the specified physical URI in the specified format.

Parameters:
manager - The manager
ontology - The ontology to be stored
physicalURI - The physical URI that specifies the location
ontologyFormat - The format that the ontology should be stored in
Throws:
OWLOntologyStorageException - if there was a problem storing the ontology.

storeOntology

void storeOntology(OWLOntologyManager manager,
                   OWLOntology ontology,
                   OWLOntologyOutputTarget target,
                   OWLOntologyFormat format)
                   throws OWLOntologyStorageException
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 physical location of 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.