| java.lang.Object com.hp.hpl.jena.reasoner.rulesys.impl.RuleStore
All known Subclasses: com.hp.hpl.jena.reasoner.rulesys.impl.LPRuleStore,
RuleStore | public class RuleStore (Code) | | Indexes a collection of rule. The currently implementation is
a crude first version aimed at supporting the backchaining
interpreter. It only indexes on predicate.
The rules are normalized to only contain a single head element
by duplicating any multi headed rules.
author: Dave Reynolds version: $Revision: 1.18 $ on $Date: 2008/01/02 12:06:15 $ |
allRules | protected List allRules(Code) | | The list of all rules in the store
|
ruleIndex | protected Set ruleIndex(Code) | | Index of the rules, used to block multiple entries
|
RuleStore | public RuleStore()(Code) | | Constructor. Create an empty rule store.
|
RuleStore | public RuleStore(List rules)(Code) | | Constructor. Stores and indexes a list of rules.
|
addAll | public void addAll(RuleStore store)(Code) | | Add all the rules and from an existing rulestore into this one.
|
addRule | public void addRule(Rule rule)(Code) | | Add a single rule to the store.
|
deleteAllRules | public void deleteAllRules()(Code) | | Delete all the rules.
|
deleteRule | public void deleteRule(Rule rule)(Code) | | Remove a single rule from the store
|
doAddRemoveRule | protected void doAddRemoveRule(Rule rule, boolean isAdd)(Code) | | Add/remove a single rule from the store.
Parameters: rule - the rule, single headed only Parameters: isAdd - true to add, false to remove |
getAllRules | public List getAllRules()(Code) | | Return an ordered list of all registered rules.
|
rulesFor | public List rulesFor(TriplePattern goal)(Code) | | Return a list of rules that match the given goal pattern
Parameters: goal - the goal being matched |
|
|