Class BBRuleContext

  • All Implemented Interfaces:
    RuleContext

    public class BBRuleContext
    extends java.lang.Object
    implements RuleContext
    Implementation of RuleContext for use in the backward chaining interpreter. The RuleContext allows builtin predicates to interpret variable bindings to access the static triple data.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      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.
      Node getTemp​(Node instance, Node prop, Node pclass)
      Retrieve or create a bNode representing an inferred property value.
      void remove​(Triple t)
      Remove a triple from the deduction graph (and the original graph if relevant).
      void setEnv​(BindingEnvironment env)
      Set the binding environment for the this context
      void setRule​(Rule rule)
      Sets the rule.
      void silentAdd​(Triple t)
      Assert a new triple in the deduction graph, bypassing any processing machinery.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait