Class RETERuleInfGraph

All Implemented Interfaces:
Graph, GraphWithPerform, InfGraph, ForwardRuleInfGraphI, SilentAddI

public class RETERuleInfGraph extends BasicForwardRuleInfGraph
RETE implementation of the forward rule inference graph.
  • Constructor Details

    • RETERuleInfGraph

      public RETERuleInfGraph(Reasoner reasoner, Graph schema)
      Constructor. Creates a new inference graph to which a (compiled) rule set and a data graph can be attached. This separation of binding is useful to allow any configuration parameters (such as logging) to be set before the data is added. Note that until the data is added using rebind then any operations like add, remove, find will result in errors.
      Parameters:
      reasoner - the parent reasoner
      schema - the (optional) schema data which is being processed
    • RETERuleInfGraph

      public RETERuleInfGraph(Reasoner reasoner, List<Rule> rules, Graph schema)
      Constructor. Creates a new inference graph based on the given rule set. No data graph is attached at this stage. This is to allow any configuration parameters (such as logging) to be set before the data is added. Note that until the data is added using rebind then any operations like add, remove, find will result in errors.
      Parameters:
      reasoner - the parent reasoner
      rules - the list of rules to use this time
      schema - the (optional) schema or preload data which is being processed
    • RETERuleInfGraph

      public RETERuleInfGraph(Reasoner reasoner, List<Rule> rules, Graph schema, Graph data)
      Constructor. Creates a new inference graph based on the given rule set then processes the initial data graph. No precomputed deductions are loaded.
      Parameters:
      reasoner - the parent reasoner
      rules - the list of rules to use this time
      schema - the (optional) schema or preload data which is being processed
      data - the data graph to be processed
  • Method Details