| java.lang.Object com.hp.hpl.jena.reasoner.rulesys.impl.OWLRuleTranslationHook
OWLRuleTranslationHook | public class OWLRuleTranslationHook implements RulePreprocessHook(Code) | | A rule preprocessor that scans the data looking for interesection
definitions and augements the rule base by translations of the
intersection statement.
author: Dave Reynolds version: $Revision: 1.11 $ on $Date: 2008/01/02 12:06:15 $ |
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 addDeductions 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. |
translateIntersectionList | protected static void translateIntersectionList(Node node, Finder dataFind, List elements)(Code) | | Translation code to translate a list of intersection elements into a
Java list of corresponding class names or restriction functors.
Parameters: node - the list node currently being processed Parameters: data - the source data to use as a context for this processing Parameters: elements - the list of elements found so far |
|
|