|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semanticweb.elk.reasoner.stages.AbstractReasonerState
public abstract class AbstractReasonerState
The execution state of the reasoner containing information about which reasoning stages have been completed and holding the results of these reasoning stages, such as the consistency status of the ontology, class, or instance taxonomy.
| Constructor Summary | |
|---|---|
protected |
AbstractReasonerState()
|
protected |
AbstractReasonerState(AxiomLoader axiomLoader)
|
| Method Summary | |
|---|---|
void |
clearInterrupt()
clears the interrupt status of the reasoner |
boolean |
doneConsistencyCheck()
|
boolean |
doneInstanceTaxonomy()
|
boolean |
doneTaxonomy()
|
void |
forceLoading()
Forces loading of all axioms from the registered AxiomLoaders. |
Set<ElkClass> |
getAllClasses()
|
Set<ElkNamedIndividual> |
getAllNamedIndividuals()
|
Map<IndexedClassExpression,Context> |
getContextMap()
|
Collection<IndexedClassExpression> |
getIndexedClassExpressions()
|
InstanceTaxonomy<ElkClass,ElkNamedIndividual> |
getInstanceTaxonomy()
Compute the inferred taxonomy of the named classes with instances if this has not been done yet. |
InstanceTaxonomy<ElkClass,ElkNamedIndividual> |
getInstanceTaxonomyQuietly()
Compute the inferred taxonomy of the named classes with instances if this has not been done yet. |
protected abstract int |
getNumberOfWorkers()
|
protected OntologyIndex |
getOntologyIndex()
Compute the index representation of the given ontology if it has not been done yet. |
protected abstract ComputationExecutor |
getProcessExecutor()
|
protected abstract ProgressMonitor |
getProgressMonitor()
|
Map<IndexedPropertyChain,SaturatedPropertyChain> |
getPropertySaturationMap()
|
protected abstract ReasonerStageExecutor |
getStageExecutor()
|
Taxonomy<ElkClass> |
getTaxonomy()
Compute the inferred taxonomy of the named classes for the given ontology if it has not been done yet. |
Taxonomy<ElkClass> |
getTaxonomyQuietly()
Compute the inferred taxonomy of the named classes for the given ontology if it has not been done yet. |
void |
initClassTaxonomy()
|
void |
initInstanceTaxonomy()
|
void |
interrupt()
interrupts running reasoning stages |
boolean |
isAllowIncrementalMode()
|
boolean |
isInconsistent()
Check consistency of the current ontology, if this has not been done yet. |
boolean |
isIncrementalMode()
|
boolean |
isInterrupted()
|
void |
registerAxiomLoader(AxiomLoader newAxiomLoader)
|
void |
resetAxiomLoading()
Reset the axiom loading stage and all subsequent stages |
void |
setAllowIncrementalMode(boolean allow)
|
protected boolean |
setAllowIncrementalTaxonomy(boolean flag)
|
protected boolean |
useIncrementalTaxonomy()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractReasonerState()
protected AbstractReasonerState(AxiomLoader axiomLoader)
| Method Detail |
|---|
public void setAllowIncrementalMode(boolean allow)
public boolean isAllowIncrementalMode()
public boolean isIncrementalMode()
public void resetAxiomLoading()
public void registerAxiomLoader(AxiomLoader newAxiomLoader)
public void forceLoading()
throws ElkLoadingException
AxiomLoaders.
Typically, loading lazily when reasoning tasks are requested.
ElkLoadingException - if axioms cannot be loadedprotected abstract int getNumberOfWorkers()
protected abstract ReasonerStageExecutor getStageExecutor()
ReasonerStageExecutor that is used for executing the
stages of the reasoner.protected abstract ComputationExecutor getProcessExecutor()
ComputationExecutor that is used for execution of
reasoning processesprotected abstract ProgressMonitor getProgressMonitor()
ProgressMonitor that is used for reporting progress
on all potentially long-running operations.public void interrupt()
public boolean isInterrupted()
true if the reasoner has been interrupted and the
interrupt status of the reasoner has not been cleared yetpublic void clearInterrupt()
public boolean isInconsistent()
throws ElkException
true if the ontology is inconsistent, that is,
unsatisfiable.
ElkException - if the reasoning process cannot be completed successfully
public Taxonomy<ElkClass> getTaxonomy()
throws ElkInconsistentOntologyException,
ElkException
ElkInconsistentOntologyException - if the ontology is inconsistent
ElkException - if the reasoning process cannot be completed successfully
public Taxonomy<ElkClass> getTaxonomyQuietly()
throws ElkException
ElkException - if the reasoning process cannot be completed successfully
public InstanceTaxonomy<ElkClass,ElkNamedIndividual> getInstanceTaxonomy()
throws ElkException
ElkInconsistentOntologyException - if the ontology is inconsistent
ElkException - if the reasoning process cannot be completed successfully
public InstanceTaxonomy<ElkClass,ElkNamedIndividual> getInstanceTaxonomyQuietly()
throws ElkException
ElkException - if the reasoning process cannot be completed successfullypublic Set<ElkClass> getAllClasses()
ElkClasses occurring in the ontologypublic Set<ElkNamedIndividual> getAllNamedIndividuals()
ElkNamedIndividuals occurring in the ontologypublic Map<IndexedClassExpression,Context> getContextMap()
public Map<IndexedPropertyChain,SaturatedPropertyChain> getPropertySaturationMap()
public boolean doneConsistencyCheck()
true if the ontology has been checked for consistency.public boolean doneTaxonomy()
true if the class taxonomy has been computedpublic boolean doneInstanceTaxonomy()
true if the instance taxonomy has been computed
protected OntologyIndex getOntologyIndex()
throws ElkException
ElkException - if the reasoning process cannot be completed successfullyprotected boolean setAllowIncrementalTaxonomy(boolean flag)
protected boolean useIncrementalTaxonomy()
public void initClassTaxonomy()
public void initInstanceTaxonomy()
public Collection<IndexedClassExpression> getIndexedClassExpressions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||