|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.clarkparsia.modularity.io.ModuleExtractorPersistence
public class ModuleExtractorPersistence
Title:
Description:
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
Field Summary | |
---|---|
static java.util.logging.Logger |
log
|
Constructor Summary | |
---|---|
ModuleExtractorPersistence()
|
Method Summary | |
---|---|
static org.semanticweb.owlapi.model.OWLOntology |
loadAxiomOntology(java.io.InputStream inputStream)
|
static java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> |
loadAxioms(java.io.InputStream inputStream)
Loads the ontology with axioms (for ModuleExtractor) from an input stream. |
static MultiValueMap<org.semanticweb.owlapi.model.OWLEntity,org.semanticweb.owlapi.model.OWLEntity> |
loadModules(java.io.InputStream is)
Reads information about the modules from the input stream that has the information stored in a form of ontology. |
static void |
saveAxioms(java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> axioms,
java.io.OutputStream outputStream)
Saves the axioms from the ModuleExtractor in the form of an ontology containing these axioms. |
static void |
saveModules(MultiValueMap<org.semanticweb.owlapi.model.OWLEntity,org.semanticweb.owlapi.model.OWLEntity> modules,
java.io.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. |
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 ModuleExtractorPersistence()
Method Detail |
---|
public static void saveAxioms(java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> axioms, java.io.OutputStream outputStream) throws java.io.IOException
axioms
- the axioms to be savedoutputStream
- the output stream where the axioms should be saved
java.io.IOException
- if an error occurs during the save processpublic static void saveModules(MultiValueMap<org.semanticweb.owlapi.model.OWLEntity,org.semanticweb.owlapi.model.OWLEntity> modules, java.io.OutputStream outputStream) throws java.io.IOException
modules
- the modules to be savedoutputStream
- the output stream where the data should be saved
java.io.IOException
- if an error should occur during the save processpublic static org.semanticweb.owlapi.model.OWLOntology loadAxiomOntology(java.io.InputStream inputStream) throws java.io.IOException
java.io.IOException
public static java.util.Collection<org.semanticweb.owlapi.model.OWLAxiom> loadAxioms(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- the input stream from which to load the ontology.
java.io.IOException
- if an error should occur during the read operationpublic static MultiValueMap<org.semanticweb.owlapi.model.OWLEntity,org.semanticweb.owlapi.model.OWLEntity> loadModules(java.io.InputStream is) throws java.io.IOException
inputStream
- the input stream from which the ontology should be read
java.io.IOException
- if an error occurs during the read process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |