public class RuleStore extends Object
The rules are normalized to only contain a single head element by duplicating any multi headed rules.
Constructor and Description |
---|
RuleStore()
Constructor.
|
RuleStore(List<Rule> rules)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAll(RuleStore store)
Add all the rules and from an existing rulestore into this one.
|
void |
addRule(Rule rule)
Add a single rule to the store.
|
void |
deleteAllRules()
Delete all the rules.
|
void |
deleteRule(Rule rule)
Remove a single rule from the store
|
List<Rule> |
getAllRules()
Return an ordered list of all registered rules.
|
List<Rule> |
rulesFor(TriplePattern goal)
Return a list of rules that match the given goal pattern
|
public void addAll(RuleStore store)
public void addRule(Rule rule)
public void deleteRule(Rule rule)
public List<Rule> rulesFor(TriplePattern goal)
goal
- the goal being matchedpublic void deleteAllRules()
Licenced under the Apache License, Version 2.0