Class SPARQLStarResultsJSONWriter
- java.lang.Object
-
- org.eclipse.rdf4j.query.resultio.AbstractQueryResultWriter
-
- org.eclipse.rdf4j.query.resultio.sparqljson.AbstractSPARQLJSONWriter
-
- org.eclipse.rdf4j.query.resultio.sparqljson.SPARQLResultsJSONWriter
-
- org.eclipse.rdf4j.query.resultio.sparqljson.SPARQLStarResultsJSONWriter
-
- All Implemented Interfaces:
CharSink
,Sink
,QueryResultHandler
,QueryResultWriter
,TupleQueryResultWriter
,TupleQueryResultHandler
- Direct Known Subclasses:
SPARQLStarResultsJSONWriter
public class SPARQLStarResultsJSONWriter extends SPARQLResultsJSONWriter
Writer for SPARQL-star JSON results. This is equivalent to the SPARQL JSON writer with the addition of support for RDF-star triples. SeeSPARQLStarResultsJSONConstants
for a description of the RDF-star extension.
-
-
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 SPARQLStarResultsJSONWriter(java.io.OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptsFileFormat(FileFormat format)
Check if this Sink accepts the suppliedFileFormat
.TupleQueryResultFormat
getQueryResultFormat()
Gets the query result format that this writer uses.TupleQueryResultFormat
getTupleQueryResultFormat()
Gets the query result format that this writer uses.-
Methods inherited from class org.eclipse.rdf4j.query.resultio.sparqljson.SPARQLResultsJSONWriter
writeValue
-
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
getFileFormat
-
-
-
-
Method Detail
-
getTupleQueryResultFormat
public TupleQueryResultFormat getTupleQueryResultFormat()
Description copied from interface:TupleQueryResultWriter
Gets the query result format that this writer uses.- Specified by:
getTupleQueryResultFormat
in interfaceTupleQueryResultWriter
- Overrides:
getTupleQueryResultFormat
in classSPARQLResultsJSONWriter
-
getQueryResultFormat
public TupleQueryResultFormat getQueryResultFormat()
Description copied from interface:QueryResultWriter
Gets the query result format that this writer uses.- Specified by:
getQueryResultFormat
in interfaceQueryResultWriter
- Overrides:
getQueryResultFormat
in classSPARQLResultsJSONWriter
-
acceptsFileFormat
public boolean acceptsFileFormat(FileFormat format)
Description copied from interface:Sink
Check if this Sink accepts the suppliedFileFormat
.- Parameters:
format
- theFileFormat
to check.- Returns:
true
if the sink accepts the supplied format,false
otherwise.
-
-