public class ModuleExtractorPersistence extends Object
Title:
Description:
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
ModuleExtractorPersistence() |
| Modifier and Type | Method and Description |
|---|---|
static org.mindswap.pellet.utils.MultiValueMap<org.semanticweb.owlapi.model.OWLEntity,org.semanticweb.owlapi.model.OWLEntity> |
loadModules(InputStream is)
Reads information about the modules from the input stream that has the information stored in a form of ontology.
|
static void |
saveAxioms(Collection<org.semanticweb.owlapi.model.OWLAxiom> axioms,
OutputStream outputStream)
Saves the axioms from the ModuleExtractor in the form of an ontology containing these axioms.
|
static void |
saveModules(Map<org.semanticweb.owlapi.model.OWLEntity,Set<org.semanticweb.owlapi.model.OWLEntity>> modules,
OutputStream outputStream)
Saves the information about modules from ModuleExtractor to an output stream as an ontology of modules annotated with URIs of the OWL entities
that belong to the respective modules.
|
public static final Logger log
public static void saveAxioms(Collection<org.semanticweb.owlapi.model.OWLAxiom> axioms, OutputStream outputStream) throws IOException
axioms - the axioms to be savedoutputStream - the output stream where the axioms should be savedIOException - if an error occurs during the save processpublic static void saveModules(Map<org.semanticweb.owlapi.model.OWLEntity,Set<org.semanticweb.owlapi.model.OWLEntity>> modules, OutputStream outputStream) throws IOException
modules - the modules to be savedoutputStream - the output stream where the data should be savedIOException - if an error should occur during the save processpublic static org.mindswap.pellet.utils.MultiValueMap<org.semanticweb.owlapi.model.OWLEntity,org.semanticweb.owlapi.model.OWLEntity> loadModules(InputStream is) throws IOException
inputStream - the input stream from which the ontology should be readIOException - if an error occurs during the read process.Copyright © 2019. All rights reserved.