@PortedFrom(file="Kernel.h", name="ReasoningKernel") public class ReasoningKernel extends Object implements Serializable
| Constructor and Description |
|---|
ReasoningKernel(JFactReasonerConfiguration conf,
DatatypeFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
DlCompletionTree |
buildCompletionTree(ConceptExpression C)
build a completion tree for a concept expression C (no caching as it
breaks the idea of KE).
|
void |
buildSignature(NamedEntity entity,
List<AxiomInterface> Module,
Set<NamedEntity> toProcess)
build signature for ENTITY and all dependent entities from toProcess;
look for modules in Module;
|
void |
classifyKB()
ensure that KB is classified
|
boolean |
clearKB()
reset current KB
|
void |
doIncremental()
incrementally classify changes
|
DLTree |
e(Expression expr) |
Set<AxiomInterface> |
getAtomAxioms(int index)
get a set of axioms that corresponds to the atom with the id INDEX
|
Set<TOntologyAtom> |
getAtomDependents(int index)
get a set of atoms on which atom with index INDEX depends
|
int |
getAtomicDecompositionSize(boolean useSemantics,
ModuleType type)
create new atomic decomposition of the loaded ontology using TYPE.
|
Set<AxiomInterface> |
getAtomModule(int index)
get a set of axioms that corresponds to the module of the atom with the
id INDEX
|
DlCompletionTree |
getBlocker(DlCompletionTree node) |
Actor |
getConcepts(ConceptExpression C,
boolean direct,
Actor actor,
boolean supDirection)
apply actor__apply() to all DIRECT sub-concepts of [complex] C
|
<T extends Expression> |
getConcepts(ConceptExpression C,
boolean direct,
TaxonomyActor<T> actor,
boolean supDirection)
apply actor__apply() to all super/sub-concepts of [complex] C
|
List<DataExpression> |
getDataLabel(DlCompletionTree node,
boolean onlyDet) |
Collection<IndividualName> |
getDataRelatedIndividuals(RoleExpression R,
RoleExpression S,
int op,
Collection<IndividualExpression> individuals)
set RESULT into set of instances of A such that they do have data roles R
and S
|
Set<DataRoleExpression> |
getDataRoles(DlCompletionTree node,
boolean onlyDet)
build the set of data neighbours of a NODE, put the set of data roles
into the RESULT variable
|
void |
getDirectInstances(ConceptExpression C,
Actor actor)
apply actor__apply() to all direct instances of given [complex] C
|
<T extends Expression> |
getDisjointConcepts(ConceptExpression C,
TaxonomyActor<T> actor)
apply actor::apply() to all named concepts disjoint with [complex] C
|
<T extends ConceptExpression> |
getDRoleDomain(DataRoleExpression r,
boolean direct,
TaxonomyActor<T> actor)
apply actor::apply() to all DIRECT NC that are in the domain of data role
R
|
<T extends Expression> |
getEquivalentConcepts(ConceptExpression C,
TaxonomyActor<T> actor)
apply actor__apply() to all synonyms of [complex] C
|
<T extends RoleExpression> |
getEquivalentRoles(RoleExpression r,
TaxonomyActor<T> actor)
apply actor__apply() to all synonyms of [complex] R
|
ExpressionCache |
getExpressionManager() |
void |
getInstances(ConceptExpression C,
Actor actor)
apply actor__apply() to all instances of given [complex] C
|
TaxonomyActor<IndividualExpression> |
getInstances(ConceptExpression C,
TaxonomyActor<IndividualExpression> actor,
boolean direct) |
long |
getLocCheckNumber() |
OntologyBasedModularizer |
getModExtractor(boolean useSemantic) |
List<AxiomInterface> |
getModule(List<Expression> signature,
boolean useSemantic,
ModuleType type) |
List<DlCompletionTree> |
getNeighbours(DlCompletionTree node,
RoleExpression role)
build the set of neighbours of a NODE via role ROLE; put the resulting
list into RESULT
|
Set<AxiomInterface> |
getNonLocal(List<Expression> signature,
boolean useSemantic,
ModuleType type) |
List<ConceptExpression> |
getObjectLabel(DlCompletionTree node,
boolean onlyDet)
put into RESULT all the expressions from the NODE label; if ONLYDET is
true, return only deterministic elements
|
Set<ObjectRoleExpression> |
getObjectRoles(DlCompletionTree node,
boolean onlyDet,
boolean needIncoming)
build the set of object neighbours of a NODE, put the set of object roles
and inverses into the RESULT variable
|
Ontology |
getOntology() |
JFactReasonerConfiguration |
getOptions() |
<T extends ConceptExpression> |
getORoleDomain(ObjectRoleExpression r,
boolean direct,
TaxonomyActor<T> actor)
apply actor__apply() to all DIRECT NC that are in the domain of [complex]
R
|
List<Individual> |
getRoleFillers(IndividualExpression I,
ObjectRoleExpression R) |
<T extends RoleExpression> |
getRoles(RoleExpression r,
boolean direct,
TaxonomyActor<T> actor,
boolean supDirection)
apply actor__apply() to all DIRECT super-roles of [complex] R
|
<T extends Expression> |
getSameAs(IndividualName I,
TaxonomyActor<T> actor)
apply actor__apply() to all synonyms of an individual I
|
List<AxiomInterface> |
getTautologies() |
TBox |
getTBox() |
List<AxiomInterface> |
getTrace() |
<T extends Expression> |
getTypes(IndividualName I,
boolean direct,
TaxonomyActor<T> actor)
apply actor__apply() to all DIRECT concepts that are types of an
individual I
|
void |
initIncremental()
initialise the incremental bits on full reload
|
boolean |
isAsymmetric(ObjectRoleExpression R) |
boolean |
isDisjoint(ConceptExpression C,
ConceptExpression D) |
boolean |
isDisjointRoles(DataRoleExpression R,
DataRoleExpression S) |
boolean |
isDisjointRoles(List<? extends RoleExpression> l) |
boolean |
isDisjointRoles(ObjectRoleExpression R,
ObjectRoleExpression S) |
boolean |
isEquivalent(ConceptExpression C,
ConceptExpression D) |
boolean |
isFunctional(DataRoleExpression R) |
boolean |
isFunctional(ObjectRoleExpression R) |
boolean |
isInstance(IndividualExpression I,
ConceptExpression C) |
boolean |
isInverseFunctional(ObjectRoleExpression R) |
boolean |
isIrreflexive(ObjectRoleExpression R) |
boolean |
isKBClassified() |
boolean |
isKBConsistent() |
boolean |
isKBPreprocessed() |
boolean |
isKBRealised() |
boolean |
isReflexive(ObjectRoleExpression R) |
boolean |
isSameIndividuals(IndividualExpression I,
IndividualExpression J) |
boolean |
isSatisfiable(ConceptExpression C) |
boolean |
isSubChain(ObjectRoleComplexExpression R,
List<ObjectRoleExpression> l) |
boolean |
isSubRoles(RoleExpression R,
RoleExpression S) |
boolean |
isSubsumedBy(ConceptExpression C,
ConceptExpression D) |
boolean |
isSymmetric(ObjectRoleExpression R) |
boolean |
isTransitive(ObjectRoleExpression R) |
void |
needTracing()
set need tracing to true
|
void |
realiseKB()
ensure that KB is realised
|
void |
setIgnoreExprCache(boolean value)
choose whether TExpr cache should be ignored
|
void |
setInterruptedSwitch(AtomicBoolean b) |
void |
setSignature(TSignature sig)
set the signature of the expression translator
|
void |
setupSig(NamedEntity entity,
List<AxiomInterface> Module)
setup Name2Sig for a given entity;
|
void |
writeReasoningResult(long time)
dump query processing TIME, reasoning statistics and a (preprocessed)
TBox
|
public ReasoningKernel(JFactReasonerConfiguration conf, DatatypeFactory factory)
conf - conffactory - factory@Original public void setInterruptedSwitch(AtomicBoolean b)
b - b@PortedFrom(file="Kernel.h", name="setIgnoreExprCache") public void setIgnoreExprCache(boolean value)
value - value@PortedFrom(file="Kernel.h", name="e") public DLTree e(Expression expr)
expr - expr@PortedFrom(file="Kernel.h", name="needTracing") public void needTracing()
@PortedFrom(file="Kernel.h", name="getTrace") public List<AxiomInterface> getTrace()
@PortedFrom(file="Kernel.h", name="setSignature") public void setSignature(TSignature sig)
sig - sig@PortedFrom(file="Kernel.h", name="getOntology") public Ontology getOntology()
@PortedFrom(file="Kernel.h", name="getModExtractor") public OntologyBasedModularizer getModExtractor(boolean useSemantic)
useSemantic - useSemantic@PortedFrom(file="Kernel.h", name="getModule") public List<AxiomInterface> getModule(List<Expression> signature, boolean useSemantic, ModuleType type)
signature - signatureuseSemantic - useSemantictype - type@PortedFrom(file="Kernel.h", name="getNonLocal") public Set<AxiomInterface> getNonLocal(List<Expression> signature, boolean useSemantic, ModuleType type)
signature - signatureuseSemantic - useSemantictype - type@PortedFrom(file="Kernel.h", name="getTBox") public TBox getTBox()
@PortedFrom(file="Kernel.h", name="getOptions") public JFactReasonerConfiguration getOptions()
@PortedFrom(file="Kernel.h", name="isKBPreprocessed") public boolean isKBPreprocessed()
@PortedFrom(file="Kernel.h", name="isKBClassified") public boolean isKBClassified()
@PortedFrom(file="Kernel.h", name="isKBRealised") public boolean isKBRealised()
@PortedFrom(file="Kernel.h", name="writeReasoningResult") public void writeReasoningResult(long time)
time - time@PortedFrom(file="Kernel.h", name="getExpressionManager") public ExpressionCache getExpressionManager()
@PortedFrom(file="Kernel.h", name="clearKB") public boolean clearKB()
@PortedFrom(file="Kernel.h", name="isKBConsistent") public boolean isKBConsistent()
@PortedFrom(file="Kernel.h", name="classifyKB") public void classifyKB()
@PortedFrom(file="Kernel.h", name="realiseKB") public void realiseKB()
@PortedFrom(file="Kernel.h", name="isFunctional") public boolean isFunctional(ObjectRoleExpression R)
R - R@PortedFrom(file="Kernel.h", name="isFunctional") public boolean isFunctional(DataRoleExpression R)
R - R@PortedFrom(file="Kernel.h", name="isInverseFunctional") public boolean isInverseFunctional(ObjectRoleExpression R)
R - R@PortedFrom(file="Kernel.h", name="isTransitive") public boolean isTransitive(ObjectRoleExpression R)
R - R@PortedFrom(file="Kernel.h", name="isSymmetric") public boolean isSymmetric(ObjectRoleExpression R)
R - R@PortedFrom(file="Kernel.h", name="isAsymmetric") public boolean isAsymmetric(ObjectRoleExpression R)
R - R@PortedFrom(file="Kernel.h", name="isReflexive") public boolean isReflexive(ObjectRoleExpression R)
R - R@PortedFrom(file="Kernel.h", name="isIrreflexive") public boolean isIrreflexive(ObjectRoleExpression R)
R - R@PortedFrom(file="Kernel.h", name="isDisjointRoles") public boolean isDisjointRoles(List<? extends RoleExpression> l)
l - l@PortedFrom(file="Kernel.h", name="isDisjointRoles") public boolean isDisjointRoles(ObjectRoleExpression R, ObjectRoleExpression S)
R - RS - S@PortedFrom(file="Kernel.h", name="isDisjointRoles") public boolean isDisjointRoles(DataRoleExpression R, DataRoleExpression S)
R - RS - S@PortedFrom(file="Kernel.h", name="isSubRoles") public boolean isSubRoles(RoleExpression R, RoleExpression S)
R - RS - S@PortedFrom(file="Kernel.h", name="isSatisfiable") public boolean isSatisfiable(ConceptExpression C)
C - C@PortedFrom(file="Kernel.h", name="isSubsumedBy") public boolean isSubsumedBy(ConceptExpression C, ConceptExpression D)
C - CD - D@PortedFrom(file="Kernel.h", name="isDisjoint") public boolean isDisjoint(ConceptExpression C, ConceptExpression D)
C - CD - D@PortedFrom(file="Kernel.h", name="isEquivalent") public boolean isEquivalent(ConceptExpression C, ConceptExpression D)
C - CD - D@PortedFrom(file="Kernel.h", name="getSupConcepts") public <T extends Expression> TaxonomyActor<T> getConcepts(ConceptExpression C, boolean direct, TaxonomyActor<T> actor, boolean supDirection)
T - typeC - Cdirect - directactor - actorsupDirection - true for superClasses, false for subclasses@PortedFrom(file="Kernel.h", name="getSubConcepts") public Actor getConcepts(ConceptExpression C, boolean direct, Actor actor, boolean supDirection)
C - Cdirect - directactor - actorsupDirection - true for super direction@PortedFrom(file="Kernel.h", name="getEquivalentConcepts") public <T extends Expression> TaxonomyActor<T> getEquivalentConcepts(ConceptExpression C, TaxonomyActor<T> actor)
T - typeC - Cactor - actor@PortedFrom(file="Kernel.h", name="getDisjointConcepts") public <T extends Expression> TaxonomyActor<T> getDisjointConcepts(ConceptExpression C, TaxonomyActor<T> actor)
T - typeC - Cactor - actor@PortedFrom(file="Kernel.h", name="getSupRoles") public <T extends RoleExpression> TaxonomyActor<T> getRoles(RoleExpression r, boolean direct, TaxonomyActor<T> actor, boolean supDirection)
T - typer - rdirect - directactor - actorsupDirection - true for super direction@PortedFrom(file="Kernel.h", name="getEquivalentRoles") public <T extends RoleExpression> TaxonomyActor<T> getEquivalentRoles(RoleExpression r, TaxonomyActor<T> actor)
T - typer - ractor - actor@PortedFrom(file="Kernel.h", name="getORoleDomain") public <T extends ConceptExpression> TaxonomyActor<T> getORoleDomain(ObjectRoleExpression r, boolean direct, TaxonomyActor<T> actor)
T - typer - rdirect - directactor - actor@PortedFrom(file="Kernel.h", name="getDRoleDomain") public <T extends ConceptExpression> TaxonomyActor<T> getDRoleDomain(DataRoleExpression r, boolean direct, TaxonomyActor<T> actor)
T - typer - rdirect - directactor - actor@PortedFrom(file="Kernel.h", name="getInstances") public TaxonomyActor<IndividualExpression> getInstances(ConceptExpression C, TaxonomyActor<IndividualExpression> actor, boolean direct)
C - Cactor - actordirect - direct@PortedFrom(file="Kernel.h", name="getDirectInstances") public void getDirectInstances(ConceptExpression C, Actor actor)
C - Cactor - actor@PortedFrom(file="Kernel.h", name="getInstances") public void getInstances(ConceptExpression C, Actor actor)
C - Cactor - actor@PortedFrom(file="Kernel.h", name="getTypes") public <T extends Expression> TaxonomyActor<T> getTypes(IndividualName I, boolean direct, TaxonomyActor<T> actor)
T - typeI - Idirect - directactor - actor@PortedFrom(file="Kernel.h", name="getSameAs") public <T extends Expression> TaxonomyActor<T> getSameAs(IndividualName I, TaxonomyActor<T> actor)
T - typeI - Iactor - actor@PortedFrom(file="Kernel.h", name="isSameIndividuals") public boolean isSameIndividuals(IndividualExpression I, IndividualExpression J)
I - IJ - J@PortedFrom(file="Kernel.h", name="buildCompletionTree") @Nonnull public DlCompletionTree buildCompletionTree(ConceptExpression C)
C - C@PortedFrom(file="Kernel.h", name="getDataRoles") public Set<DataRoleExpression> getDataRoles(DlCompletionTree node, boolean onlyDet)
node - nodeonlyDet - onlyDet@PortedFrom(file="Kernel.h", name="getObjectRoles") public Set<ObjectRoleExpression> getObjectRoles(DlCompletionTree node, boolean onlyDet, boolean needIncoming)
node - nodeonlyDet - onlyDetneedIncoming - needIncoming@PortedFrom(file="Kernel.h", name="getNeighbours") public List<DlCompletionTree> getNeighbours(DlCompletionTree node, RoleExpression role)
node - noderole - role@PortedFrom(file="Kernel.h", name="getLabel") public List<ConceptExpression> getObjectLabel(DlCompletionTree node, boolean onlyDet)
node - nodeonlyDet - onlyDet@PortedFrom(file="Kernel.h", name="getLabel") public List<DataExpression> getDataLabel(DlCompletionTree node, boolean onlyDet)
node - nodeonlyDet - onlyDet@PortedFrom(file="Kernel.h", name="getBlocker") @Nonnull public DlCompletionTree getBlocker(DlCompletionTree node)
node - node@PortedFrom(file="Kernel.h", name="isInstance") public boolean isInstance(IndividualExpression I, ConceptExpression C)
I - IC - C@PortedFrom(file="Incremental.cpp", name="doIncremental") public void doIncremental()
@PortedFrom(file="Incremental.cpp", name="setupSig") public void setupSig(NamedEntity entity, List<AxiomInterface> Module)
entity - entityModule - Module@PortedFrom(file="Incremental.cpp", name="buildSignature") public void buildSignature(NamedEntity entity, List<AxiomInterface> Module, Set<NamedEntity> toProcess)
entity - entityModule - ModuletoProcess - toProcess@PortedFrom(file="Incremental.cpp", name="initIncremental") public void initIncremental()
@PortedFrom(file="Kernel.cpp", name="getDataRelatedIndividuals") public Collection<IndividualName> getDataRelatedIndividuals(RoleExpression R, RoleExpression S, int op, Collection<IndividualExpression> individuals)
R - RS - Sop - opindividuals - individuals@PortedFrom(file="Kernel.h", name="getAtomicDecompositionSize") public int getAtomicDecompositionSize(boolean useSemantics, ModuleType type)
useSemantics - useSemanticstype - type@PortedFrom(file="Kernel.h", name="getAtomAxioms") public Set<AxiomInterface> getAtomAxioms(int index)
index - index@Original public List<AxiomInterface> getTautologies()
@PortedFrom(file="Kernel.h", name="getAtomModule") public Set<AxiomInterface> getAtomModule(int index)
index - index@PortedFrom(file="Kernel.h", name="getAtomDependents") public Set<TOntologyAtom> getAtomDependents(int index)
index - index@PortedFrom(file="Kernel.cpp", name="getLocCheckNumber") public long getLocCheckNumber()
@PortedFrom(file="Kernel.h", name="isSubChain") public boolean isSubChain(ObjectRoleComplexExpression R, List<ObjectRoleExpression> l)
R - Rl - l@PortedFrom(file="Kernel.h", name="getRoleFillers") public List<Individual> getRoleFillers(IndividualExpression I, ObjectRoleExpression R)
I - IR - RCopyright © 2015 The University of Manchester. All rights reserved.