public interface FRuleEngineI
Modifier and Type | Method and Description |
---|---|
void |
add(Triple t)
Add one triple to the data graph, run any rules triggered by
the new data item, recursively adding any generated triples.
|
boolean |
delete(Triple t)
Remove one triple to the data graph.
|
void |
fastInit(Finder inserts)
Process all available data.
|
long |
getNRulesFired()
Return the number of rules fired since this rule engine instance
was created and initialized
|
Object |
getRuleStore()
Access the precomputed internal rule form.
|
void |
init(boolean ignoreBrules,
Finder inserts)
Process all available data.
|
void |
setDerivationLogging(boolean recordDerivations)
Set to true to enable derivation caching
|
void |
setRuleStore(Object ruleStore)
Set the internal rule from a precomputed state.
|
boolean |
shouldTrace()
Return true if the internal engine state means that tracing is worthwhile.
|
void init(boolean ignoreBrules, Finder inserts)
ignoreBrules
- set to true if rules written in backward notation should be ignoredinserts
- the set of triples to be processed, normally this is the
raw data graph but may include additional deductions made by preprocessing hooksvoid fastInit(Finder inserts)
inserts
- the set of triples to be processed, normally this is the
raw data graph but may include additional deductions made by preprocessing hooksvoid add(Triple t)
boolean delete(Triple t)
long getNRulesFired()
boolean shouldTrace()
void setDerivationLogging(boolean recordDerivations)
Object getRuleStore()
void setRuleStore(Object ruleStore)
Licenced under the Apache License, Version 2.0