org.openrdf.query.dawg
Class DAWGTestResultSetWriter

java.lang.Object
  extended by org.openrdf.query.dawg.DAWGTestResultSetWriter
All Implemented Interfaces:
TupleQueryResultHandler

public class DAWGTestResultSetWriter
extends Object
implements TupleQueryResultHandler

A TupleQueryResultWriter that converts query results to an RDF graph using the Data Access Working Group Test Result Set RDF Vocabulary (http://www.w3.org/2001/sw/DataAccess/tests/result-set#).


Constructor Summary
DAWGTestResultSetWriter(RDFHandler rdfHandler)
           
DAWGTestResultSetWriter(RDFHandler rdfHandler, ValueFactory vf)
           
 
Method Summary
 void endQueryResult()
          Indicates the end of a sequence of solutions.
 void handleSolution(BindingSet bindingSet)
          Handles a solution.
 void startQueryResult(List<String> bindingNames)
          Indicates the start of a sequence of Solutions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAWGTestResultSetWriter

public DAWGTestResultSetWriter(RDFHandler rdfHandler)

DAWGTestResultSetWriter

public DAWGTestResultSetWriter(RDFHandler rdfHandler,
                               ValueFactory vf)
Method Detail

startQueryResult

public void startQueryResult(List<String> bindingNames)
                      throws TupleQueryResultHandlerException
Description copied from interface: TupleQueryResultHandler
Indicates the start of a sequence of Solutions. The supplied bindingNames are an indication of the values that are in the Solutions. For example, a SeRQL query like select X, Y from {X} P {Y} will have binding names X and Y.

Specified by:
startQueryResult in interface TupleQueryResultHandler
Parameters:
bindingNames - An ordered set of binding names.
Throws:
TupleQueryResultHandlerException

endQueryResult

public void endQueryResult()
                    throws TupleQueryResultHandlerException
Description copied from interface: TupleQueryResultHandler
Indicates the end of a sequence of solutions.

Specified by:
endQueryResult in interface TupleQueryResultHandler
Throws:
TupleQueryResultHandlerException

handleSolution

public void handleSolution(BindingSet bindingSet)
                    throws TupleQueryResultHandlerException
Description copied from interface: TupleQueryResultHandler
Handles a solution.

Specified by:
handleSolution in interface TupleQueryResultHandler
Throws:
TupleQueryResultHandlerException


Copyright © 2001-2008 Aduna. All Rights Reserved.