|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.reasoner.rdfsReasoner1.PatternRouter
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.
Constructor Summary | |
PatternRouter()
Constructor |
Method Summary | |
ExtendedIterator |
find(TriplePattern pattern,
Finder tripleCache,
Finder data,
InfGraph infGraph)
Process a query according to the known routing information. |
ExtendedIterator |
find(TriplePattern pattern,
Finder tripleCache,
Finder data,
InfGraph infGraph,
java.util.HashSet firedRules)
Process a query according to the known routing information. |
void |
register(BRWRule rule)
Register a backward rewrite rule |
void |
register(TransitiveGraphCache cache)
Register a transitive closure cache and a means of satisfying the direct and closed versions of the cached predicate. |
void |
register(TriplePattern pattern,
java.lang.Object satisfier)
Register an object against a specific search pattern |
java.lang.String |
toString()
Printable version of the whole reasoner state. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PatternRouter()
Method Detail |
public void register(TransitiveGraphCache cache)
cache
- the TransitiveGraphCachepublic void register(BRWRule rule)
public void register(TriplePattern pattern, java.lang.Object satisfier)
public ExtendedIterator find(TriplePattern pattern, Finder tripleCache, Finder data, InfGraph infGraph)
pattern
- the query to be processedtripleCache
- a cascade of any generic caches which can supply additional answersdata
- the raw data graph being processedinfGraph
- link to originating inference graph, may be re-invoked after a pattern rewritepublic ExtendedIterator find(TriplePattern pattern, Finder tripleCache, Finder data, InfGraph infGraph, java.util.HashSet firedRules)
pattern
- the query to be processedtripleCache
- a cascade of any generic caches which can supply additional answersdata
- the raw data graph being processedinfGraph
- link to originating inference graph, may be re-invoked after a pattern rewritefiredRules
- set of rules which have already been fired and should now be blockedpublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |