com.hp.hpl.jena.reasoner.rulesys
Class RETERuleInfGraph
java.lang.Object
com.hp.hpl.jena.graph.impl.GraphBase
com.hp.hpl.jena.reasoner.BaseInfGraph
com.hp.hpl.jena.reasoner.rulesys.BasicForwardRuleInfGraph
com.hp.hpl.jena.reasoner.rulesys.RETERuleInfGraph
- All Implemented Interfaces:
- ForwardRuleInfGraphI, Graph, GraphAdd, InfGraph, SilentAddI
- public class RETERuleInfGraph
- extends BasicForwardRuleInfGraph
RETE implementation of the forward rule infernce graph.
- Version:
- $Revision: 1.6 $ on $Date: 2004/02/02 14:20:58 $
- Author:
- Dave Reynolds
Method Summary |
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. |
void |
performDelete(Triple t)
Removes the triple t (if possible) from the set belonging to this graph. |
Methods inherited from class com.hp.hpl.jena.reasoner.rulesys.BasicForwardRuleInfGraph |
addBRule, addDeduction, close, deleteBRule, find, find, findDataMatches, findWithContinuation, getDeductionsGraph, getDerivation, getNRulesFired, getSchemaGraph, logDerivation, prepare, rebind, rebind, setDerivationLogging, setRuleStore, setTraceOn, shouldLogDerivations, shouldTrace, silentAdd, size |
Methods inherited from class com.hp.hpl.jena.reasoner.BaseInfGraph |
cloneWithPremises, contains, contains, find, find, getCapabilities, getGlobalProperty, getPrefixMapping, getRawGraph, getReasoner, getReifier, isEmpty, reset, testGlobalProperty, validate |
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase |
add, delete, dependsOn, getBulkUpdateHandler, getEventManager, getTransactionHandler, isIsomorphicWith, notifyAdd, notifyDelete, queryHandler, toString, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.hp.hpl.jena.graph.Graph |
contains, contains, delete, dependsOn, find, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, isEmpty, isIsomorphicWith, queryHandler |
Methods inherited from interface com.hp.hpl.jena.graph.GraphAdd |
add |
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 reasonerschema
- the (optional) schema data which is being processed
RETERuleInfGraph
public RETERuleInfGraph(Reasoner reasoner,
java.util.List 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 reasonerrules
- the list of rules to use this timeschema
- the (optional) schema or preload data which is being processed
RETERuleInfGraph
public RETERuleInfGraph(Reasoner reasoner,
java.util.List 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 reasonerrules
- the list of rules to use this timeschema
- the (optional) schema or preload data which is being processeddata
- the data graph to be processed
performAdd
public 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.
- Overrides:
performAdd
in class BasicForwardRuleInfGraph
performDelete
public void performDelete(Triple t)
- Removes the triple t (if possible) from the set belonging to this graph.
- Overrides:
performDelete
in class BasicForwardRuleInfGraph
Copyright © 2000-2003 Hewlett-Packard. All Rights Reserved.