| com.hp.hpl.jena.reasoner.rulesys.RulePreprocessHook
All known Subclasses: com.hp.hpl.jena.reasoner.rulesys.impl.OWLRuleTranslationHook, com.hp.hpl.jena.reasoner.rulesys.impl.RDFSCMPPreprocessHook, com.hp.hpl.jena.reasoner.rulesys.impl.OWLExptRuleTranslationHook,
RulePreprocessHook | public interface RulePreprocessHook (Code) | | Implementors of this interface can be used as proprocessing passes
during intialization of (hybrid) rule systems. They are typically
used to generate additional data-dependent rules or additional
deductions (normally from comprehension axioms) which are cheaper
this way than using the generic rule engines.
author: Dave Reynolds version: $Revision: 1.9 $ on $Date: 2008/01/02 12:07:47 $ |
needsRerun | public boolean needsRerun(FBRuleInfGraph infGraph, Triple t)(Code) | | Validate a triple add to see if it should reinvoke the hook. If so
then the inference will be restarted at next prepare time. Incremental
re-processing is not yet supported.
|
run | public void run(FBRuleInfGraph infGraph, Finder dataFind, Graph inserts)(Code) | | Invoke the preprocessing hook. This will be called during the
preparation time of the hybrid reasoner.
Parameters: infGraph - the inference graph which is being prepared,the hook code can use this to add pure deductions or add additionalrules (using addRuleDuringPrepare). Parameters: dataFind - the finder which packages up the raw data (bothschema and data bind) and any cached transitive closures. Parameters: inserts - a temporary graph into which the hook should insertall new deductions that should be seen by the rules. |
|
|