org.d2rq.jena
Class D2RQQueryHandler

java.lang.Object
  extended by com.hp.hpl.jena.graph.query.SimpleQueryHandler
      extended by org.d2rq.jena.D2RQQueryHandler
All Implemented Interfaces:
QueryHandler

public class D2RQQueryHandler
extends SimpleQueryHandler

An implementation of Jena's QueryHandler interface that answers BGP queries on behalf of a GraphD2RQ. This is here for Jena compatibility, and is not involved in answering SPARQL queries through ARQ. It uses the QueryEngineD2RQ to answer BGP queries and wraps it into the expected interface.

Author:
Richard Cyganiak

Field Summary
 
Fields inherited from class com.hp.hpl.jena.graph.query.SimpleQueryHandler
graph
 
Constructor Summary
D2RQQueryHandler(Graph graph)
           
 
Method Summary
 BindingQueryPlan prepareBindings(Query q, Node[] variables)
           
 TreeQueryPlan prepareTree(Graph pattern)
           
 
Methods inherited from class com.hp.hpl.jena.graph.query.SimpleQueryHandler
containsNode, objectsFor, objectsFor, patternStage, predicatesFor, predicatesFor, subjectsFor, subjectsFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

D2RQQueryHandler

public D2RQQueryHandler(Graph graph)
Method Detail

prepareTree

public TreeQueryPlan prepareTree(Graph pattern)
Specified by:
prepareTree in interface QueryHandler
Overrides:
prepareTree in class SimpleQueryHandler

prepareBindings

public BindingQueryPlan prepareBindings(Query q,
                                        Node[] variables)
Specified by:
prepareBindings in interface QueryHandler
Overrides:
prepareBindings in class SimpleQueryHandler