public class Rule
extends java.lang.Object
| Constructor and Description |
|---|
Rule() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCondition(RdfTriple condition)
Add a condition clause to the Rule
|
void |
addDerivedClause(CalcClause clause)
Add a derived clause to the rule
|
void |
addResult(RdfTriple result)
Add a result clause to this rule
|
java.util.Set<RdfTriple> |
applyRule(TripleStore store)
Apply the rule to the triple store provided.
|
java.lang.String |
toString()
Return the string representation of this rule.
|
public void addCondition(RdfTriple condition)
condition - the new condition clause for this rulepublic void addDerivedClause(CalcClause clause)
clause - the clause to addpublic void addResult(RdfTriple result)
result - the new result clausepublic java.util.Set<RdfTriple> applyRule(TripleStore store)
store - the triple store to check for matches to the condition
clausespublic java.lang.String toString()
toString in class java.lang.Object