public interface ModuleExtractor
Title:
Description:
Copyright: Copyright (c) 2008
Company: Clark & Parsia, LLC.
| Modifier and Type | Method and Description |
|---|---|
void |
addAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
Adds an axiom to the extractor.
|
Set<org.semanticweb.owlapi.model.OWLEntity> |
applyChanges(org.mindswap.pellet.taxonomy.Taxonomy<org.semanticweb.owlapi.model.OWLClass> taxonomy)
Update the modules with the changes that have been put into the queue so
far.
|
boolean |
canUpdate()
Returns if the extracted modules can be updated.
|
ModuleExtractor |
copy() |
void |
deleteAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
Deletes an axiom from the extractor.
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
extractModule(Set<? extends org.semanticweb.owlapi.model.OWLEntity> signature)
Extract the module for a given set of entities.
|
void |
extractModules()
Extract modules for all classes from scratch
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
getAxioms()
Returns all the axioms loaded in the extractor.
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
getAxioms(org.semanticweb.owlapi.model.OWLEntity entity)
Return the axioms which references this entity
|
Set<org.semanticweb.owlapi.model.OWLEntity> |
getEntities()
Returns all the entities referenced in loaded axioms.
|
Set<org.semanticweb.owlapi.model.OWLEntity> |
getModuleEntities(org.semanticweb.owlapi.model.OWLEntity entity) |
org.semanticweb.owlapi.model.OWLOntology |
getModuleFromSignature(Set<org.semanticweb.owlapi.model.OWLEntity> signature)
Returns a new ontology that contains the axioms that are in the module
for given set of entities
|
org.mindswap.pellet.utils.Timers |
getTimers()
Returns the timers used by this extractor to collect statistics about
performance.
|
boolean |
isChanged()
Checks if axioms have been added/removed and modules need to be updated
|
boolean |
isClassificationNeeded(com.clarkparsia.pellet.expressivity.Expressivity expressivity)
Checks if the changes that has not yet been updated require re-classification
|
void |
load(ZipInputStream inputStream)
Restores the previously saved state of the ModuleExtractor from a stream.
|
void |
save(ZipOutputStream outputStream)
Save the current state of the ModuleExtractor.
|
ModuleExtractor copy()
void addAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
boolean canUpdate()
void deleteAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
axiom - void extractModules()
Set<org.semanticweb.owlapi.model.OWLAxiom> getAxioms()
Set<org.semanticweb.owlapi.model.OWLAxiom> getAxioms(org.semanticweb.owlapi.model.OWLEntity entity)
entity - Set<org.semanticweb.owlapi.model.OWLEntity> getEntities()
Set<org.semanticweb.owlapi.model.OWLEntity> getModuleEntities(org.semanticweb.owlapi.model.OWLEntity entity)
org.semanticweb.owlapi.model.OWLOntology getModuleFromSignature(Set<org.semanticweb.owlapi.model.OWLEntity> signature)
signature - org.semanticweb.owlapi.model.OWLExceptionorg.mindswap.pellet.utils.Timers getTimers()
boolean isChanged()
true if axioms have been added/removedboolean isClassificationNeeded(com.clarkparsia.pellet.expressivity.Expressivity expressivity)
Set<org.semanticweb.owlapi.model.OWLEntity> applyChanges(org.mindswap.pellet.taxonomy.Taxonomy<org.semanticweb.owlapi.model.OWLClass> taxonomy) throws UnsupportedOperationException
UnsupportedOperationException - if modules cannot be updated as reported by
canUpdate() functionSet<org.semanticweb.owlapi.model.OWLAxiom> extractModule(Set<? extends org.semanticweb.owlapi.model.OWLEntity> signature)
signature - set of entitiesvoid save(ZipOutputStream outputStream) throws IOException, IllegalStateException
outputStream - the zip output stream where the data should be storedIOException - if an I/O error occurs during the savingIllegalStateException - if there are outstanding changes that have not yet been applied to the modules (e.g., via updateModules())void load(ZipInputStream inputStream) throws IOException, IllegalArgumentException
inputStream - the zip input stream from which the data should be readIOException - if an I/O error occurs during the readIllegalArgumentException - if the next zip file entry in the stream was not saved by a compatible
ModuleExtractorCopyright © 2019. All rights reserved.