public class TaxonomyPersistence extends Object
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.
| Constructor and Description |
|---|
TaxonomyPersistence() |
| Modifier and Type | Method and Description |
|---|---|
static org.mindswap.pellet.taxonomy.Taxonomy<org.semanticweb.owlapi.model.OWLClass> |
load(InputStream is)
Loads the taxonomy from a stream
|
static void |
save(org.mindswap.pellet.taxonomy.Taxonomy<org.semanticweb.owlapi.model.OWLClass> taxonomy,
OutputStream outputStream)
Saves a taxonomy into a stream.
|
public static final Logger log
public static void save(org.mindswap.pellet.taxonomy.Taxonomy<org.semanticweb.owlapi.model.OWLClass> taxonomy,
OutputStream outputStream)
throws IOException
ontologyManager - the ontology managertaxonomy - the taxonomy to be savedoutputStream - the output stream where the ontology should be savedIOException - if an I/O error should occurpublic static org.mindswap.pellet.taxonomy.Taxonomy<org.semanticweb.owlapi.model.OWLClass> load(InputStream is) throws IOException
ontologyManager - the ontology manageris - the stream containing the taxonomy in the form of an ontologyIOException - if an I/O error should occur while reading the taxonomyCopyright © 2019. All rights reserved.