public class IDCompilation extends AbstractRulesCompilation
Constructor and Description |
---|
IDCompilation() |
Modifier and Type | Method and Description |
---|---|
void |
appendTo(StringBuilder sb) |
void |
compile(Iterator<Rule> ruleset)
Extract compilable rules from the specified ruleset and compile them.
|
List<fr.lirmm.graphik.graal.core.compilation.IDCondition> |
getConditions(Predicate predB,
Predicate predH) |
Collection<org.apache.commons.lang3.tuple.Pair<Atom,Substitution>> |
getRewritingOf(Atom atom)
Return all possible rewritings of this Atom by this compilation.
|
Iterable<Rule> |
getSaturation() |
Collection<Predicate> |
getUnifiablePredicate(Predicate p)
Return a collection of predicate unifiable with the given one
|
LinkedList<Partition<Term>> |
getUnification(Atom father,
Atom son)
Return the list of c-unifier from the atom father to the atom son
|
LinkedList<Substitution> |
homomorphism(Atom father,
Atom son)
Return the list of c-homomorphisms of the atom father to the atom son i.
|
boolean |
isCompilable(Rule r)
Return true if the specified rule is compilable.
|
boolean |
isImplied(Atom father,
Atom son)
Return true iff the atom father is implied from the atom son with
compiled rules (son -> father) i.
|
boolean |
isMappable(Predicate father,
Predicate son)
can return true if there are not mappable
|
void |
load(Iterator<Rule> ruleSet,
Iterator<Rule> saturation)
Load compilation from a preprocessed ruleset
|
String |
toString() |
extractCompilable, getIrredondant, getProfiler, setProfiler
public void compile(Iterator<Rule> ruleset)
RulesCompilation
public void load(Iterator<Rule> ruleSet, Iterator<Rule> saturation)
RulesCompilation
public List<fr.lirmm.graphik.graal.core.compilation.IDCondition> getConditions(Predicate predB, Predicate predH)
public boolean isCompilable(Rule r)
public boolean isMappable(Predicate father, Predicate son)
public LinkedList<Substitution> homomorphism(Atom father, Atom son)
RulesCompilation
public LinkedList<Partition<Term>> getUnification(Atom father, Atom son)
RulesCompilation
public boolean isImplied(Atom father, Atom son)
RulesCompilation
public Collection<Predicate> getUnifiablePredicate(Predicate p)
RulesCompilation
public Collection<org.apache.commons.lang3.tuple.Pair<Atom,Substitution>> getRewritingOf(Atom atom)
public void appendTo(StringBuilder sb)
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.