java.lang.Object
org.apache.jena.reasoner.rulesys.impl.RuleStore
- Direct Known Subclasses:
LPRuleStore
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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add all the rules and from an existing rulestore into this one.void
Add a single rule to the store.void
Delete all the rules.void
deleteRule
(Rule rule) Remove a single rule from the storeReturn an ordered list of all registered rules.rulesFor
(TriplePattern goal) Return a list of rules that match the given goal pattern
-
Constructor Details
-
RuleStore
public RuleStore()Constructor. Create an empty rule store. -
RuleStore
Constructor. Stores and indexes a list of rules.
-
-
Method Details
-
addAll
Add all the rules and from an existing rulestore into this one. -
addRule
Add a single rule to the store. -
deleteRule
Remove a single rule from the store -
rulesFor
Return a list of rules that match the given goal pattern- Parameters:
goal
- the goal being matched
-
getAllRules
Return an ordered list of all registered rules. -
deleteAllRules
public void deleteAllRules()Delete all the rules.
-