Package com.stardog.stark.query.io.json
Class SPARQLJSONSelectResultWriter
java.lang.Object
com.stardog.stark.query.io.json.AbstractSPARQLJSONWriter<BindingSet>
com.stardog.stark.query.io.json.SPARQLJSONSelectResultWriter
- All Implemented Interfaces:
QueryResultWriter<BindingSet>,SelectQueryResultWriter,QueryResultHandler<BindingSet>,SelectQueryResultHandler
public class SPARQLJSONSelectResultWriter
extends AbstractSPARQLJSONWriter<BindingSet>
implements SelectQueryResultWriter
SelectQueryResultWriter for select results as SPARQL/JSON
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
Fields inherited from class com.stardog.stark.query.io.json.AbstractSPARQLJSONWriter
documentOpen, firstTupleWritten, headerComplete, headerOpen, jg, linksFound, mOptions, tupleVariablesFound -
Constructor Summary
ConstructorsConstructorDescriptionSPARQLJSONSelectResultWriter(OutputStream theOutputStream, Options theOptions) -
Method Summary
Modifier and TypeMethodDescriptionvoidend()Signal that query processing has completedformat()Theformatthis writer will serialize output invoidhandle(BindingSet theBindings) Handle a result to a queryvoidThe variables in the projection of the queryMethods inherited from class com.stardog.stark.query.io.json.AbstractSPARQLJSONWriter
endHeader, links, namespace, start, startHeader, writeHeaderFields, writeValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.stardog.stark.query.io.QueryResultWriter
links, namespace, start
-
Constructor Details
-
SPARQLJSONSelectResultWriter
-
-
Method Details
-
variables
The variables in the projection of the query- Specified by:
variablesin interfaceSelectQueryResultHandler- Parameters:
theVars- the variables- See Also:
-
handle
Handle a result to a query- Specified by:
handlein interfaceQueryResultHandler<BindingSet>- Specified by:
handlein interfaceQueryResultWriter<BindingSet>- Parameters:
theBindings- the result- Throws:
ResultWritingFailed
-
end
public void end()Signal that query processing has completed- Specified by:
endin interfaceQueryResultHandler<BindingSet>- Specified by:
endin interfaceQueryResultWriter<BindingSet>- Overrides:
endin classAbstractSPARQLJSONWriter<BindingSet>
-
format
Theformatthis writer will serialize output in- Specified by:
formatin interfaceQueryResultWriter<BindingSet>- Overrides:
formatin classAbstractSPARQLJSONWriter<BindingSet>- Returns:
- the format
-