|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.repository.format.SPARQLTextWriter
public class SPARQLTextWriter
Tuple query results writer for plain text format. Very simple and stupid "TSV" (tab-separated values) format, not even checking for embedded tabs in values. Perhaps it would be better to have a more human-readable text format (e.g. columns aligned by whitespace, maybe borders) but this was quick and expedient.
| Field Summary | |
|---|---|
static org.openrdf.query.resultio.TupleQueryResultFormat |
FORMAT
Constant FORMAT describes this format |
| Constructor Summary | |
|---|---|
SPARQLTextWriter(java.io.OutputStream out)
Default constructor for SPARQLTextWriter. |
|
| Method Summary | |
|---|---|
void |
endQueryResult()
Finish streaming result |
org.openrdf.query.resultio.TupleQueryResultFormat |
getTupleQueryResultFormat()
Get description of format |
void |
handleSolution(org.openrdf.query.BindingSet bs)
Add a solution to the stream |
void |
startQueryResult(java.util.List<java.lang.String> bindingNames)
Start streaming result for given bindings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.openrdf.query.resultio.TupleQueryResultFormat FORMAT
FORMAT describes this format
| Constructor Detail |
|---|
public SPARQLTextWriter(java.io.OutputStream out)
Default constructor for SPARQLTextWriter. Assumes UTF-8 character set in output.
out - desintation stream, a OutputStream object.| Method Detail |
|---|
public org.openrdf.query.resultio.TupleQueryResultFormat getTupleQueryResultFormat()
getTupleQueryResultFormat in interface org.openrdf.query.resultio.TupleQueryResultWriter
public void startQueryResult(java.util.List<java.lang.String> bindingNames)
throws org.openrdf.query.TupleQueryResultHandlerException
startQueryResult in interface org.openrdf.query.TupleQueryResultHandlerbindingNames -
org.openrdf.query.TupleQueryResultHandlerException
public void endQueryResult()
throws org.openrdf.query.TupleQueryResultHandlerException
endQueryResult in interface org.openrdf.query.TupleQueryResultHandlerorg.openrdf.query.TupleQueryResultHandlerException
public void handleSolution(org.openrdf.query.BindingSet bs)
throws org.openrdf.query.TupleQueryResultHandlerException
handleSolution in interface org.openrdf.query.TupleQueryResultHandlerbs -
org.openrdf.query.TupleQueryResultHandlerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||