| Constructor and Description |
|---|
InferenceRule(Rule rule,
EmbeddedGraknTx<?> tx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ReasonerQueryImpl |
getBody() |
ReasonerAtomicQuery |
getHead() |
MultiUnifier |
getMultiUnifier(Atom parentAtom) |
Rule |
getRule() |
Atom |
getRuleConclusionAtom() |
int |
hashCode() |
boolean |
isAppendRule() |
boolean |
requiresMaterialisation(Atom parentAtom)
rule requires materialisation in the context of resolving parent atom
if parent atom requires materialisation, head atom requires materialisation or if the head contains only fresh variables
|
long |
resolutionPriority() |
InferenceRule |
rewrite(Atom parentAtom)
rewrite the rule to a form with user defined variables
|
ResolutionState |
subGoal(Atom parentAtom,
Unifier ruleUnifier,
QueryStateBase parent,
Set<ReasonerAtomicQuery> visitedSubGoals,
SimpleQueryCache<ReasonerAtomicQuery> cache) |
String |
toString() |
public InferenceRule(Rule rule, EmbeddedGraknTx<?> tx)
public long resolutionPriority()
public Rule getRule()
public boolean requiresMaterialisation(Atom parentAtom)
public ReasonerQueryImpl getBody()
public ReasonerAtomicQuery getHead()
public Atom getRuleConclusionAtom()
public boolean isAppendRule()
public InferenceRule rewrite(Atom parentAtom)
parentAtom - reference parent atompublic ResolutionState subGoal(Atom parentAtom, Unifier ruleUnifier, QueryStateBase parent, Set<ReasonerAtomicQuery> visitedSubGoals, SimpleQueryCache<ReasonerAtomicQuery> cache)
parentAtom - atom to which this rule is appliedruleUnifier - unifier with parent stateparent - parent statevisitedSubGoals - set of visited sub goalscache - query cachepublic MultiUnifier getMultiUnifier(Atom parentAtom)
parentAtom - atom to unify the rule withCopyright © 2018 Grakn Labs Ltd. All rights reserved.