public abstract class AbstractReasonerState extends SimpleInterrupter
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractReasonerState() |
protected |
AbstractReasonerState(AxiomLoader axiomLoader) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
complete(ReasonerStage stage) |
boolean |
doneConsistencyCheck() |
boolean |
doneInstanceTaxonomy() |
boolean |
doneTaxonomy() |
void |
forceLoading()
Forces loading of all axioms from the registered
AxiomLoaders. |
Set<ElkClass> |
getAllClasses() |
Set<ElkNamedIndividual> |
getAllNamedIndividuals() |
AxiomLoader |
getAxiomLoader() |
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 ModifiableOntologyIndex |
getModifiableOntologyIndex() |
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() |
void |
registerAxiomLoader(AxiomLoader newAxiomLoader) |
void |
resetAxiomLoading()
Reset the axiom loading stage and all subsequent stages
|
void |
resetPropertySaturation()
Reset the property saturation stage and all subsequent stages
|
void |
setAllowIncrementalMode(boolean allow) |
protected boolean |
setAllowIncrementalTaxonomy(boolean flag) |
void |
setInterrupt(boolean flag) |
protected boolean |
useIncrementalTaxonomy() |
isInterruptedprotected AbstractReasonerState()
protected AbstractReasonerState(AxiomLoader axiomLoader)
protected void complete(ReasonerStage stage) throws ElkException
ElkExceptionpublic void setAllowIncrementalMode(boolean allow)
public boolean isAllowIncrementalMode()
public boolean isIncrementalMode()
public void resetAxiomLoading()
public void resetPropertySaturation()
public void registerAxiomLoader(AxiomLoader newAxiomLoader)
public AxiomLoader getAxiomLoader()
AxiomLoader currently registered for loading of
axioms or null if no loader is registeredpublic void forceLoading()
throws ElkException
AxiomLoaders.
Typically, loading lazily when reasoning tasks are requested.ElkException - if the reasoning process cannot be completed successfullyprotected 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.protected ModifiableOntologyIndex getModifiableOntologyIndex()
public void interrupt()
public boolean isInconsistent()
throws ElkException
true if the ontology is inconsistent, that is,
unsatisfiable.ElkException - if the reasoning process cannot be completed successfullypublic Taxonomy<ElkClass> getTaxonomy() throws ElkInconsistentOntologyException, ElkException
ElkInconsistentOntologyException - if the ontology is inconsistentElkException - if the reasoning process cannot be completed successfullypublic Taxonomy<ElkClass> getTaxonomyQuietly() throws ElkException
ElkException - if the reasoning process cannot be completed successfullypublic InstanceTaxonomy<ElkClass,ElkNamedIndividual> getInstanceTaxonomy() throws ElkException
ElkInconsistentOntologyException - if the ontology is inconsistentElkException - if the reasoning process cannot be completed successfullypublic InstanceTaxonomy<ElkClass,ElkNamedIndividual> getInstanceTaxonomyQuietly() throws ElkException
ElkException - if the reasoning process cannot be completed successfullypublic 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 computedpublic void setInterrupt(boolean flag)
setInterrupt in interface InterruptersetInterrupt in class SimpleInterrupterprotected 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()
Copyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.