|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.query.VarBindingRdfWriter
A TableQueryResultListener that converts query results into an RDF document containing variable bindings. This format is based on the work done by Andy Seaborne. See http://www.w3.org/2003/03/rdfqr-tests/recording-query-results.html for a description of the results format.
| Constructor Summary | |
VarBindingRdfWriter(OutputStream out)
Creates a new VarBindingRdfWriter. |
|
VarBindingRdfWriter(RDFFormat rdfFormat,
OutputStream out)
|
|
| Method Summary | |
void |
endTableQueryResult()
Indicates the end of a table-like query result. |
void |
endTuple()
Indicates the end of a tuple/row. |
void |
error(QueryErrorType errType,
String msg)
Reports an error that has occurred during the query evaluation. |
void |
startTableQueryResult()
Indicates the start of a table-like query result. |
void |
startTableQueryResult(String[] columnHeaders)
Indicates the start of a table-like query result. |
void |
startTuple()
Indicates the start of a tuple/row. |
void |
tupleValue(Value value)
Delivers the next value in the current tuple/row. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VarBindingRdfWriter(OutputStream out)
public VarBindingRdfWriter(RDFFormat rdfFormat,
OutputStream out)
| Method Detail |
public void startTableQueryResult()
throws IOException
TableQueryResultListener
startTableQueryResult in interface TableQueryResultListenerIOException
public void startTableQueryResult(String[] columnHeaders)
throws IOException
TableQueryResultListener
startTableQueryResult in interface TableQueryResultListenerIOException
public void endTableQueryResult()
throws IOException
TableQueryResultListener
endTableQueryResult in interface TableQueryResultListenerIOException
public void startTuple()
throws IOException
TableQueryResultListener
startTuple in interface TableQueryResultListenerIOException
public void endTuple()
throws IOException
TableQueryResultListener
endTuple in interface TableQueryResultListenerIOException
public void tupleValue(Value value)
throws IOException
TableQueryResultListener
tupleValue in interface TableQueryResultListenervalue - The next value in the current tuple/row.
IOException
public void error(QueryErrorType errType,
String msg)
throws IOException
TableQueryResultListener
error in interface TableQueryResultListenererrType - The type of error.msg - A message describing the error.
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||