com.hp.hpl.jena.reasoner.rdfsReasoner1
Class ResourceBRWRule

java.lang.Object
  extended bycom.hp.hpl.jena.reasoner.rdfsReasoner1.BRWRule
      extended bycom.hp.hpl.jena.reasoner.rdfsReasoner1.ResourceBRWRule

public class ResourceBRWRule
extends BRWRule

A special case of a backchaing rule to handle the nasty case of "anything mentioned in any triple is a Resource".

Version:
$Revision: 1.6 $ on $Date: 2003/04/15 21:24:32 $
Author:
Dave Reynolds

Constructor Summary
ResourceBRWRule()
          Constructor
 
Method Summary
 boolean completeFor(TriplePattern query)
          Return true if this rule is a a complete solution to the given query and the router need look no further
 ExtendedIterator execute(TriplePattern query, InfGraph infGraph, Finder data, java.util.HashSet firedRules)
          Use the rule to implement the given query.
 
Methods inherited from class com.hp.hpl.jena.reasoner.rdfsReasoner1.BRWRule
equals, getBody, getHead, hashCode, makeRule, parseNode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceBRWRule

public ResourceBRWRule()
Constructor

Method Detail

execute

public ExtendedIterator execute(TriplePattern query,
                                InfGraph infGraph,
                                Finder data,
                                java.util.HashSet firedRules)
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.

Overrides:
execute in class BRWRule
Parameters:
query - the query being processed
infGraph - link to originating inference graph, may be re-invoked after a pattern rewrite
data - the raw data graph which gets passed back to the reasoner as part of the recursive invocation
firedRules - set of rules which have already been fired and should now be blocked
Returns:
a ExtendedIterator which aggregates the matches and rewrites them according to the rule

completeFor

public boolean completeFor(TriplePattern query)
Return true if this rule is a a complete solution to the given query and the router need look no further

Overrides:
completeFor in class BRWRule


Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.