Class SPARQLResultsJSONWriter
- java.lang.Object
-
- org.eclipse.rdf4j.query.resultio.AbstractQueryResultWriter
-
- org.eclipse.rdf4j.query.resultio.sparqljson.AbstractSPARQLJSONWriter
-
- org.eclipse.rdf4j.query.resultio.sparqljson.SPARQLResultsJSONWriter
-
- All Implemented Interfaces:
CharSink,Sink,QueryResultHandler,QueryResultWriter,TupleQueryResultWriter,TupleQueryResultHandler
- Direct Known Subclasses:
SPARQLStarResultsJSONWriter
public class SPARQLResultsJSONWriter extends AbstractSPARQLJSONWriter implements TupleQueryResultWriter
A TupleQueryResultWriter that writes query results in the SPARQL Query Results JSON Format.
-
-
Field Summary
-
Fields inherited from class org.eclipse.rdf4j.query.resultio.sparqljson.AbstractSPARQLJSONWriter
documentOpen, firstTupleWritten, headerComplete, headerOpen, jg, linksFound, tupleVariablesFound
-
-
Constructor Summary
Constructors Constructor Description SPARQLResultsJSONWriter(java.io.OutputStream out)SPARQLResultsJSONWriter(java.io.Writer writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TupleQueryResultFormatgetQueryResultFormat()Gets the query result format that this writer uses.TupleQueryResultFormatgetTupleQueryResultFormat()Gets the query result format that this writer uses.protected voidwriteValue(Value value)-
Methods inherited from class org.eclipse.rdf4j.query.resultio.sparqljson.AbstractSPARQLJSONWriter
endDocument, endHeader, endQueryResult, getSupportedSettings, getWriter, handleBoolean, handleLinks, handleNamespace, handleSolutionImpl, handleStylesheet, startDocument, startHeader, startQueryResult
-
Methods inherited from class org.eclipse.rdf4j.query.resultio.AbstractQueryResultWriter
getFileFormat, getWriterConfig, handleSolution, setWriterConfig, xsdStringToPlainLiteral
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.query.QueryResultHandler
endQueryResult, handleBoolean, handleLinks, handleSolution, startQueryResult
-
Methods inherited from interface org.eclipse.rdf4j.query.resultio.QueryResultWriter
endHeader, getSupportedSettings, getWriterConfig, handleNamespace, handleStylesheet, setWriterConfig, startDocument, startHeader
-
Methods inherited from interface org.eclipse.rdf4j.common.io.Sink
acceptsFileFormat, getFileFormat
-
-
-
-
Method Detail
-
getTupleQueryResultFormat
public TupleQueryResultFormat getTupleQueryResultFormat()
Description copied from interface:TupleQueryResultWriterGets the query result format that this writer uses.- Specified by:
getTupleQueryResultFormatin interfaceTupleQueryResultWriter
-
getQueryResultFormat
public TupleQueryResultFormat getQueryResultFormat()
Description copied from interface:QueryResultWriterGets the query result format that this writer uses.- Specified by:
getQueryResultFormatin interfaceQueryResultWriter
-
writeValue
protected void writeValue(Value value) throws java.io.IOException, QueryResultHandlerException
- Overrides:
writeValuein classAbstractSPARQLJSONWriter- Throws:
java.io.IOExceptionQueryResultHandlerException
-
-