|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.clarkparsia.modularity.io.TaxonomyPersistence
public class TaxonomyPersistence
Title: Stores and restores a taxonomy to a stream.
Description: Enables storing and reading back a taxonomy from a stream. The taxonomy is first converted into an ontology, and then saved using the standard OWLRenderers.
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
Field Summary | |
---|---|
static java.util.logging.Logger |
log
|
Constructor Summary | |
---|---|
TaxonomyPersistence()
|
Method Summary | |
---|---|
static Taxonomy<org.semanticweb.owlapi.model.OWLClass> |
load(java.io.InputStream is)
Loads the taxonomy from a stream |
static void |
save(Taxonomy<org.semanticweb.owlapi.model.OWLClass> taxonomy,
java.io.OutputStream outputStream)
Saves a taxonomy into a stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.logging.Logger log
Constructor Detail |
---|
public TaxonomyPersistence()
Method Detail |
---|
public static void save(Taxonomy<org.semanticweb.owlapi.model.OWLClass> taxonomy, java.io.OutputStream outputStream) throws java.io.IOException
ontologyManager
- the ontology managertaxonomy
- the taxonomy to be savedoutputStream
- the output stream where the ontology should be saved
java.io.IOException
- if an I/O error should occurpublic static Taxonomy<org.semanticweb.owlapi.model.OWLClass> load(java.io.InputStream is) throws java.io.IOException
ontologyManager
- the ontology manageris
- the stream containing the taxonomy in the form of an ontology
java.io.IOException
- if an I/O error should occur while reading the taxonomy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |