|
||||||||||
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.modularity.locality.LocalityEvaluator localityEvaluator)
|
Method Summary | |
---|---|
void |
addAxiom(org.semanticweb.owl.model.OWLAxiom axiom)
Adds an axiom to the extractor. |
void |
addOntologies(java.util.Set<org.semanticweb.owl.model.OWLOntology> ontologies)
Adds all the axioms from a set of ontologies to the extractor. |
void |
addOntology(org.semanticweb.owl.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.owl.model.OWLAxiom axiom)
Deletes an axiom from the extractor. |
MultiValueMap<org.semanticweb.owl.model.OWLEntity,org.semanticweb.owl.model.OWLEntity> |
extractModules()
Extract modules from scratch |
java.util.Set<org.semanticweb.owl.model.OWLAxiom> |
getAxioms()
Returns all the axioms loaded in the extractor. |
java.util.Set<org.semanticweb.owl.model.OWLAxiom> |
getAxioms(org.semanticweb.owl.model.OWLEntity entity)
Return the axioms which references this entity |
java.util.Set<org.semanticweb.owl.model.OWLEntity> |
getEntities()
Returns all the entities referenced in loaded axioms. |
org.semanticweb.owl.model.OWLOntology |
getModule(org.semanticweb.owl.model.OWLEntity entity)
|
org.semanticweb.owl.model.OWLOntology |
getModuleFromSignature(java.util.Set<org.semanticweb.owl.model.OWLEntity> signature)
Returns a new ontology that contains the axioms that are in the module for given set of entities |
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 |
void |
resetModules()
|
java.util.Set<org.semanticweb.owl.model.OWLEntity> |
updateModules(Taxonomy<org.semanticweb.owl.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.modularity.locality.LocalityEvaluator localityEvaluator)
Method Detail |
---|
public void addAxiom(org.semanticweb.owl.model.OWLAxiom axiom)
ModuleExtractor
addAxiom
in interface ModuleExtractor
public boolean canUpdate()
canUpdate
in interface ModuleExtractor
public void deleteAxiom(org.semanticweb.owl.model.OWLAxiom axiom)
ModuleExtractor
deleteAxiom
in interface ModuleExtractor
public MultiValueMap<org.semanticweb.owl.model.OWLEntity,org.semanticweb.owl.model.OWLEntity> extractModules()
extractModules
in interface ModuleExtractor
public java.util.Set<org.semanticweb.owl.model.OWLAxiom> getAxioms(org.semanticweb.owl.model.OWLEntity entity)
getAxioms
in interface ModuleExtractor
entity
-
public org.semanticweb.owl.model.OWLOntology getModule(org.semanticweb.owl.model.OWLEntity entity)
getModule
in interface ModuleExtractor
public org.semanticweb.owl.model.OWLOntology getModuleFromSignature(java.util.Set<org.semanticweb.owl.model.OWLEntity> signature)
getModuleFromSignature
in interface ModuleExtractor
signature
-
org.semanticweb.owl.model.OWLException
public boolean isChanged()
isChanged
in interface ModuleExtractor
true
if axioms have been added/removedpublic void addOntologies(java.util.Set<org.semanticweb.owl.model.OWLOntology> ontologies)
ModuleExtractor
addOntologies
in interface ModuleExtractor
public void addOntology(org.semanticweb.owl.model.OWLOntology ontology)
ModuleExtractor
addOntology
in interface ModuleExtractor
public java.util.Set<org.semanticweb.owl.model.OWLEntity> updateModules(Taxonomy<org.semanticweb.owl.model.OWLClass> taxonomy, boolean add) throws java.lang.UnsupportedOperationException
updateModules
in interface ModuleExtractor
add
- 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 ModuleExtractor
public java.util.Set<org.semanticweb.owl.model.OWLAxiom> getAxioms()
ModuleExtractor
getAxioms
in interface ModuleExtractor
public java.util.Set<org.semanticweb.owl.model.OWLEntity> getEntities()
ModuleExtractor
getEntities
in interface ModuleExtractor
public void resetModules()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |