public interface RuleContext
Modifier and Type | Method and Description |
---|---|
void |
add(Triple t)
Assert a new triple in the deduction graph, triggering any consequent processing as appropriate.
|
boolean |
contains(Node s,
Node p,
Node o)
Return true if the triple pattern is already in either the graph or the stack.
|
boolean |
contains(Triple t)
Return true if the triple is already in either the graph or the stack.
|
com.hp.hpl.jena.util.iterator.ClosableIterator<Triple> |
find(Node s,
Node p,
Node o)
In some formulations the context includes deductions that are not yet
visible to the underlying graph but need to be checked for.
|
BindingEnvironment |
getEnv()
Returns the current variable binding environment for the current rule.
|
InfGraph |
getGraph()
Returns the parent inference graph.
|
Rule |
getRule()
Returns the rule.
|
void |
remove(Triple t)
Remove a triple from the deduction graph (and the original graph if relevant).
|
void |
setRule(Rule rule)
Sets the rule.
|
void |
silentAdd(Triple t)
Assert a new triple in the deduction graph, bypassing any processing machinery.
|
BindingEnvironment getEnv()
InfGraph getGraph()
Rule getRule()
void setRule(Rule rule)
rule
- The rule to setboolean contains(Triple t)
boolean contains(Node s, Node p, Node o)
com.hp.hpl.jena.util.iterator.ClosableIterator<Triple> find(Node s, Node p, Node o)
void silentAdd(Triple t)
void add(Triple t)
void remove(Triple t)
Licenced under the Apache License, Version 2.0