| com.hp.hpl.jena.reasoner.BaseInfGraph com.hp.hpl.jena.reasoner.rulesys.BasicForwardRuleInfGraph com.hp.hpl.jena.reasoner.rulesys.RETERuleInfGraph
RETERuleInfGraph | public class RETERuleInfGraph extends BasicForwardRuleInfGraph (Code) | | RETE implementation of the forward rule infernce graph.
author: Dave Reynolds version: $Revision: 1.11 $ on $Date: 2008/01/02 12:07:47 $ |
Method Summary | |
protected void | instantiateRuleEngine(List rules) Instantiate the forward rule engine to use. | public synchronized void | performAdd(Triple t) Add one triple to the data graph, run any rules triggered by
the new data item, recursively adding any generated triples. | public void | performDelete(Triple t) Removes the triple t (if possible) from the set belonging to this graph. |
RETERuleInfGraph | public RETERuleInfGraph(Reasoner reasoner, Graph schema)(Code) | | 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
RETERuleInfGraph.rebind rebind then any operations
like add, remove, find will result in errors.
Parameters: reasoner - the parent reasoner Parameters: schema - the (optional) schema data which is being processed |
RETERuleInfGraph | public RETERuleInfGraph(Reasoner reasoner, List rules, Graph schema)(Code) | | 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
RETERuleInfGraph.rebind rebind then any operations
like add, remove, find will result in errors.
Parameters: reasoner - the parent reasoner Parameters: rules - the list of rules to use this time Parameters: schema - the (optional) schema or preload data which is being processed |
RETERuleInfGraph | public RETERuleInfGraph(Reasoner reasoner, List rules, Graph schema, Graph data)(Code) | | 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 Parameters: rules - the list of rules to use this time Parameters: schema - the (optional) schema or preload data which is being processed Parameters: data - the data graph to be processed |
instantiateRuleEngine | protected void instantiateRuleEngine(List rules)(Code) | | Instantiate the forward rule engine to use.
Subclasses can override this to switch to, say, a RETE imlementation.
Parameters: rules - the rule set or null if there are not rules bound in yet. |
performAdd | public synchronized void performAdd(Triple t)(Code) | | Add one triple to the data graph, run any rules triggered by
the new data item, recursively adding any generated triples.
|
performDelete | public void performDelete(Triple t)(Code) | | Removes the triple t (if possible) from the set belonging to this graph.
|
|
|