@PortedFrom(file="Kernel.h", name="ReasoningKernel") public class ReasoningKernel extends Object implements Serializable
| Constructor and Description |
|---|
ReasoningKernel(JFactReasonerConfiguration conf,
DatatypeFactory factory,
org.semanticweb.owlapi.model.OWLDataFactory df) |
| 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(org.semanticweb.owlapi.model.OWLEntity entity,
Collection<org.semanticweb.owlapitools.decomposition.AxiomWrapper> module,
Set<org.semanticweb.owlapi.model.OWLEntity> 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) |
List<org.semanticweb.owlapitools.decomposition.AxiomWrapper> |
getAtomAxioms(int index)
get a set of axioms that corresponds to the atom with the id INDEX
|
Set<org.semanticweb.owlapitools.decomposition.OntologyAtom> |
getAtomDependents(int index)
get a set of atoms on which atom with index INDEX depends
|
int |
getAtomicDecompositionSize(org.semanticweb.owlapi.model.OWLOntology o,
boolean useSemantics,
uk.ac.manchester.cs.owlapi.modularity.ModuleType type)
create new atomic decomposition of the loaded ontology using TYPE.
|
List<org.semanticweb.owlapitools.decomposition.AxiomWrapper> |
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 or,
RoleExpression os,
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) |
org.semanticweb.owlapitools.decomposition.Decomposer |
getModExtractor(boolean useSemantic,
org.semanticweb.owlapi.reasoner.OWLReasoner r) |
Collection<org.semanticweb.owlapitools.decomposition.AxiomWrapper> |
getModule(List<Expression> signature,
boolean useSemantic,
uk.ac.manchester.cs.owlapi.modularity.ModuleType type,
org.semanticweb.owlapi.reasoner.OWLReasoner r) |
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<org.semanticweb.owlapitools.decomposition.AxiomWrapper> |
getNonLocal(List<Expression> signature,
boolean useSemantic,
uk.ac.manchester.cs.owlapi.modularity.ModuleType type,
org.semanticweb.owlapi.reasoner.OWLReasoner r) |
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
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
getTautologies() |
TBox |
getTBox() |
List<org.semanticweb.owlapitools.decomposition.AxiomWrapper> |
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 or,
DataRoleExpression os) |
boolean |
isDisjointRoles(List<? extends RoleExpression> l) |
boolean |
isDisjointRoles(ObjectRoleExpression or,
ObjectRoleExpression os) |
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 ie,
IndividualExpression je) |
boolean |
isSatisfiable(ConceptExpression c) |
boolean |
isSubChain(ObjectRoleComplexExpression r,
List<ObjectRoleExpression> l) |
boolean |
isSubRoles(RoleExpression or,
RoleExpression os) |
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(org.semanticweb.owlapitools.decomposition.Signature sig)
set the signature of the expression translator
|
void |
setupSig(org.semanticweb.owlapi.model.OWLEntity entity)
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, org.semanticweb.owlapi.model.OWLDataFactory df)
conf - conffactory - factorydf - data 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<org.semanticweb.owlapitools.decomposition.AxiomWrapper> getTrace()
@PortedFrom(file="Kernel.h", name="setSignature") public void setSignature(org.semanticweb.owlapitools.decomposition.Signature sig)
sig - sig@PortedFrom(file="Kernel.h", name="getOntology") public Ontology getOntology()
@PortedFrom(file="Kernel.h", name="getModExtractor") public org.semanticweb.owlapitools.decomposition.Decomposer getModExtractor(boolean useSemantic, org.semanticweb.owlapi.reasoner.OWLReasoner r)
useSemantic - useSemanticr - reasoner@PortedFrom(file="Kernel.h", name="getModule") public Collection<org.semanticweb.owlapitools.decomposition.AxiomWrapper> getModule(List<Expression> signature, boolean useSemantic, uk.ac.manchester.cs.owlapi.modularity.ModuleType type, org.semanticweb.owlapi.reasoner.OWLReasoner r)
signature - signatureuseSemantic - useSemantictype - typer - reasoner@PortedFrom(file="Kernel.h", name="getNonLocal") public Set<org.semanticweb.owlapitools.decomposition.AxiomWrapper> getNonLocal(List<Expression> signature, boolean useSemantic, uk.ac.manchester.cs.owlapi.modularity.ModuleType type, org.semanticweb.owlapi.reasoner.OWLReasoner r)
signature - signatureuseSemantic - useSemantictype - typer - reasoner@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 or, ObjectRoleExpression os)
or - Ros - S@PortedFrom(file="Kernel.h", name="isDisjointRoles") public boolean isDisjointRoles(DataRoleExpression or, DataRoleExpression os)
or - Ros - S@PortedFrom(file="Kernel.h", name="isSubRoles") public boolean isSubRoles(RoleExpression or, RoleExpression os)
or - Ros - 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 ie, IndividualExpression je)
ie - Ije - J@PortedFrom(file="Kernel.h", name="buildCompletionTree") 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") 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(@Nullable org.semanticweb.owlapi.model.OWLEntity entity)
entity - entity@PortedFrom(file="Incremental.cpp", name="buildSignature") public void buildSignature(org.semanticweb.owlapi.model.OWLEntity entity, Collection<org.semanticweb.owlapitools.decomposition.AxiomWrapper> module, Set<org.semanticweb.owlapi.model.OWLEntity> 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 or, RoleExpression os, int op, Collection<IndividualExpression> individuals)
or - Ros - Sop - opindividuals - individuals@PortedFrom(file="Kernel.h", name="getAtomicDecompositionSize") public int getAtomicDecompositionSize(org.semanticweb.owlapi.model.OWLOntology o, boolean useSemantics, uk.ac.manchester.cs.owlapi.modularity.ModuleType type)
o - ontologyuseSemantics - useSemanticstype - type@PortedFrom(file="Kernel.h", name="getAtomAxioms") public List<org.semanticweb.owlapitools.decomposition.AxiomWrapper> getAtomAxioms(int index)
index - index@Original public Set<org.semanticweb.owlapi.model.OWLAxiom> getTautologies()
@PortedFrom(file="Kernel.h", name="getAtomModule") public List<org.semanticweb.owlapitools.decomposition.AxiomWrapper> getAtomModule(int index)
index - index@PortedFrom(file="Kernel.h", name="getAtomDependents") public Set<org.semanticweb.owlapitools.decomposition.OntologyAtom> getAtomDependents(int index)
index - index@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 © 2016 The University of Manchester. All rights reserved.