| java.lang.Object com.hp.hpl.jena.reasoner.rdfsReasoner1.PatternRouter
PatternRouter | public class PatternRouter (Code) | | A utility for mapping a TriplePattern to a sequence of operations
that could satisfy it. Sources register individual patterns that
they can satisfy. Then requesters use the Finder interface to
satisfy a query.
Types of sources that can be registered include TransitiveGraphCaches
(which are assumed complete for the predicates they cache), triple stores
(via a Finder interface) and simple rewrite rules.
This implementation only supports TGCs and rules. It only indexes on
pattern predicates and does a linear search down the rest.
author: Dave Reynolds version: $Revision: 1.8 $ on $Date: 2008/01/02 12:06:44 $ |
Inner Class :static class PatternEntry | |
logger | protected static Log logger(Code) | | |
patternIndex | Map patternIndex(Code) | | A map from pattern predicate to a list of satisfying Finders
|
PatternRouter | public PatternRouter()(Code) | | Constructor
|
find | public ExtendedIterator find(TriplePattern pattern, Finder tripleCache, Finder data, InfGraph infGraph)(Code) | | Process a query according to the known routing information.
The set of required parameters is redundant but enables different routing
tactics to be tried in the future.
Parameters: pattern - the query to be processed Parameters: tripleCache - a cascade of any generic caches which can supply additional answers Parameters: data - the raw data graph being processed Parameters: infGraph - link to originating inference graph, may be re-invoked after a pattern rewrite |
find | public ExtendedIterator find(TriplePattern pattern, Finder tripleCache, Finder data, InfGraph infGraph, HashSet firedRules)(Code) | | Process a query according to the known routing information.
The set of required parameters is redundant but enables different routing
tactics to be tried in the future.
Parameters: pattern - the query to be processed Parameters: tripleCache - a cascade of any generic caches which can supply additional answers Parameters: data - the raw data graph being processed Parameters: infGraph - link to originating inference graph, may be re-invoked after a pattern rewrite Parameters: firedRules - set of rules which have already been fired and should now be blocked |
register | public void register(TransitiveGraphCache cache)(Code) | | Register a transitive closure cache and a means of satisfying
the direct and closed versions of the cached predicate.
Parameters: cache - the TransitiveGraphCache |
register | public void register(BRWRule rule)(Code) | | Register a backward rewrite rule
|
register | public void register(TriplePattern pattern, Object satisfier)(Code) | | Register an object against a specific search pattern
|
toString | public String toString()(Code) | | Printable version of the whole reasoner state.
Used during debugging
|
|
|