| java.lang.Object com.hp.hpl.jena.reasoner.rdfsReasoner1.BRWRule com.hp.hpl.jena.reasoner.rdfsReasoner1.ResourceBRWRule
ResourceBRWRule | public class ResourceBRWRule extends BRWRule (Code) | | A special case of a backchaing rule to handle the nasty case
of "anything mentioned in any triple is a Resource".
author: Dave Reynolds version: $Revision: 1.13 $ on $Date: 2008/01/02 12:06:44 $ |
ResourceBRWRule | public ResourceBRWRule()(Code) | | Constructor
|
completeFor | public boolean completeFor(TriplePattern query)(Code) | | Return true if this rule is a a complete solution to the given
query and the router need look no further
|
execute | public ExtendedIterator execute(TriplePattern query, InfGraph infGraph, Finder data, HashSet firedRules)(Code) | | Use the rule to implement the given query. This will
instantiate the rule against the query, run the new query
against the whole reasoner+rawdata again and then rewrite the
results from that query according the rule.
Parameters: query - the query being processed Parameters: infGraph - link to originating inference graph, may be re-invoked after a pattern rewrite Parameters: data - the raw data graph which gets passed back to the reasoner as part of the recursive invocation Parameters: firedRules - set of rules which have already been fired and should now be blocked a ExtendedIterator which aggregates the matches and rewrites themaccording to the rule |
|
|