|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.clarkparsia.modularity.AbstractModuleExtractor
public abstract class AbstractModuleExtractor
Title:
Description:
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
| Field Summary | |
|---|---|
static java.util.logging.Logger |
log
|
| Constructor Summary | |
|---|---|
AbstractModuleExtractor()
|
|
AbstractModuleExtractor(com.clarkparsia.owlapi.modularity.locality.LocalityEvaluator localityEvaluator)
|
|
| Method Summary | |
|---|---|
void |
addAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
Adds an axiom to the extractor. |
void |
addOntologies(java.util.Set<org.semanticweb.owlapi.model.OWLOntology> ontologies)
Adds all the axioms from a set of ontologies to the extractor. |
void |
addOntology(org.semanticweb.owlapi.model.OWLOntology ontology)
Adds all the axioms of an ontology to the extractor. |
boolean |
canUpdate()
Returns if the extracted modules can be updated. |
void |
deleteAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
Deletes an axiom from the extractor. |
MultiValueMap<org.semanticweb.owlapi.model.OWLEntity,org.semanticweb.owlapi.model.OWLEntity> |
extractModules()
Extract modules from scratch |
org.semanticweb.owlapi.model.OWLOntology |
getAxiomOntology()
|
java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> |
getAxioms()
Returns all the axioms loaded in the extractor. |
java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> |
getAxioms(org.semanticweb.owlapi.model.OWLEntity entity)
Return the axioms which references this entity |
java.util.Set<org.semanticweb.owlapi.model.OWLEntity> |
getEntities()
Returns all the entities referenced in loaded axioms. |
org.semanticweb.owlapi.model.OWLOntology |
getModule(org.semanticweb.owlapi.model.OWLEntity entity)
|
org.semanticweb.owlapi.model.OWLOntology |
getModuleFromSignature(java.util.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 |
MultiValueMap<org.semanticweb.owlapi.model.OWLEntity,org.semanticweb.owlapi.model.OWLEntity> |
getModules()
|
Timers |
getTimers()
Returns the timers used by this extractor to collect statistics about performance. |
boolean |
isABoxChanged()
Checks whether there are unapplied changes to the ABox |
boolean |
isChanged()
Checks if axioms have been added/removed and modules need to be updated |
boolean |
isClassificationNeeded(Expressivity expressivity)
Checks if the changes that has not yet been updated require re-classification |
boolean |
isRBoxChanged()
Checks whether there are unapplied changes to the RBox |
boolean |
isTBoxChanged()
Checks whether there are unapplied changes to the TBox |
void |
load(java.util.zip.ZipInputStream inputStream)
Restores the previously saved state of the ModuleExtractor from a stream. |
void |
resetModules()
|
void |
save(java.util.zip.ZipOutputStream outputStream)
Save the current state of the ModuleExtractor. |
java.util.Set<org.semanticweb.owlapi.model.OWLEntity> |
updateModules(Taxonomy<org.semanticweb.owlapi.model.OWLClass> taxonomy,
boolean add)
Update the modules with the changes that have been put into the queue so far. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.clarkparsia.modularity.ModuleExtractor |
|---|
extractModule |
| Field Detail |
|---|
public static final java.util.logging.Logger log
| Constructor Detail |
|---|
public AbstractModuleExtractor()
public AbstractModuleExtractor(com.clarkparsia.owlapi.modularity.locality.LocalityEvaluator localityEvaluator)
| Method Detail |
|---|
public void addAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
ModuleExtractor
addAxiom in interface ModuleExtractorpublic boolean canUpdate()
canUpdate in interface ModuleExtractorpublic void deleteAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
ModuleExtractor
deleteAxiom in interface ModuleExtractorpublic MultiValueMap<org.semanticweb.owlapi.model.OWLEntity,org.semanticweb.owlapi.model.OWLEntity> getModules()
getModules in interface ModuleExtractorpublic MultiValueMap<org.semanticweb.owlapi.model.OWLEntity,org.semanticweb.owlapi.model.OWLEntity> extractModules()
extractModules in interface ModuleExtractorpublic java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> getAxioms(org.semanticweb.owlapi.model.OWLEntity entity)
getAxioms in interface ModuleExtractorentity -
public org.semanticweb.owlapi.model.OWLOntology getModule(org.semanticweb.owlapi.model.OWLEntity entity)
getModule in interface ModuleExtractorpublic org.semanticweb.owlapi.model.OWLOntology getModuleFromSignature(java.util.Set<org.semanticweb.owlapi.model.OWLEntity> signature)
getModuleFromSignature in interface ModuleExtractorsignature -
org.semanticweb.owlapi.model.OWLExceptionpublic boolean isChanged()
isChanged in interface ModuleExtractortrue if axioms have been added/removedpublic void addOntologies(java.util.Set<org.semanticweb.owlapi.model.OWLOntology> ontologies)
ModuleExtractor
addOntologies in interface ModuleExtractorpublic void addOntology(org.semanticweb.owlapi.model.OWLOntology ontology)
ModuleExtractor
addOntology in interface ModuleExtractor
public java.util.Set<org.semanticweb.owlapi.model.OWLEntity> updateModules(Taxonomy<org.semanticweb.owlapi.model.OWLClass> taxonomy,
boolean add)
throws java.lang.UnsupportedOperationException
updateModules in interface ModuleExtractoradd - If true apply only addition changes, otherwise
apply deletions
java.lang.UnsupportedOperationException - if modules cannot be updated as reported by
canUpdate() functionpublic Timers getTimers()
ModuleExtractor
getTimers in interface ModuleExtractorpublic java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> getAxioms()
ModuleExtractor
getAxioms in interface ModuleExtractorpublic org.semanticweb.owlapi.model.OWLOntology getAxiomOntology()
getAxiomOntology in interface ModuleExtractorpublic java.util.Set<org.semanticweb.owlapi.model.OWLEntity> getEntities()
ModuleExtractor
getEntities in interface ModuleExtractorpublic void resetModules()
public boolean isClassificationNeeded(Expressivity expressivity)
ModuleExtractor
isClassificationNeeded in interface ModuleExtractorpublic boolean isTBoxChanged()
public boolean isRBoxChanged()
public boolean isABoxChanged()
public void save(java.util.zip.ZipOutputStream outputStream)
throws java.io.IOException,
java.lang.IllegalStateException
ModuleExtractor
save in interface ModuleExtractoroutputStream - the zip output stream where the data should be stored
java.io.IOException - if an I/O error occurs during the saving
java.lang.IllegalStateException - if there are outstanding changes that have not yet been applied to the modules (e.g., via updateModules())
public void load(java.util.zip.ZipInputStream inputStream)
throws java.io.IOException,
java.lang.IllegalArgumentException
ModuleExtractor
load in interface ModuleExtractorinputStream - the zip input stream from which the data should be read
java.io.IOException - if an I/O error occurs during the read
java.lang.IllegalArgumentException - if the next zip file entry in the stream was not saved by a compatible
ModuleExtractor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||