com.hp.hpl.jena.reasoner.rdfsReasoner1
Class ResourceBRWRule
java.lang.Object
com.hp.hpl.jena.reasoner.rdfsReasoner1.BRWRule
com.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
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ResourceBRWRule
public ResourceBRWRule()
- Constructor
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 processedinfGraph
- link to originating inference graph, may be re-invoked after a pattern rewritedata
- the raw data graph which gets passed back to the reasoner as part of the recursive invocationfiredRules
- 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.