de.fuberlin.wiwiss.d2rq.jena
Class D2RQQueryHandler

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

public class D2RQQueryHandler
extends com.hp.hpl.jena.graph.query.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(GraphD2RQ graph)
           
 
Method Summary
 com.hp.hpl.jena.graph.query.BindingQueryPlan prepareBindings(com.hp.hpl.jena.graph.query.Query q, Node[] variables)
           
 com.hp.hpl.jena.graph.query.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(GraphD2RQ graph)
Method Detail

prepareTree

public com.hp.hpl.jena.graph.query.TreeQueryPlan prepareTree(Graph pattern)
Specified by:
prepareTree in interface com.hp.hpl.jena.graph.query.QueryHandler
Overrides:
prepareTree in class com.hp.hpl.jena.graph.query.SimpleQueryHandler

prepareBindings

public com.hp.hpl.jena.graph.query.BindingQueryPlan prepareBindings(com.hp.hpl.jena.graph.query.Query q,
                                                                    Node[] variables)
Specified by:
prepareBindings in interface com.hp.hpl.jena.graph.query.QueryHandler
Overrides:
prepareBindings in class com.hp.hpl.jena.graph.query.SimpleQueryHandler