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
Writer for SPARQL-star JSON results. This is equivalent to the SPARQL JSON writer with the addition of support for
RDF-star triples. See
SPARQLStarResultsJSONConstants for a description of the RDF-star extension.-
Field Summary
Fields inherited from class AbstractSPARQLJSONWriter
documentOpen, firstTupleWritten, headerComplete, headerOpen, jg, linksFound, tupleVariablesFound -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsFileFormat(FileFormat format) Check if this Sink accepts the suppliedFileFormat.Gets the query result format that this writer uses.Gets the query result format that this writer uses.Methods inherited from class SPARQLResultsJSONWriter
writeValueMethods inherited from class AbstractSPARQLJSONWriter
endDocument, endHeader, endQueryResult, getSupportedSettings, getWriter, handleBoolean, handleLinks, handleNamespace, handleSolutionImpl, handleStylesheet, startDocument, startHeader, startQueryResultMethods inherited from class AbstractQueryResultWriter
getFileFormat, getWriterConfig, handleSolution, setWriterConfig, xsdStringToPlainLiteralMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface QueryResultHandler
endQueryResult, handleBoolean, handleLinks, handleSolution, startQueryResultMethods inherited from interface QueryResultWriter
endHeader, getSupportedSettings, getWriterConfig, handleNamespace, handleStylesheet, setWriterConfig, startDocument, startHeaderMethods inherited from interface Sink
getFileFormat
-
Constructor Details
-
SPARQLStarResultsJSONWriter
-
-
Method Details
-
getTupleQueryResultFormat
Description copied from interface:TupleQueryResultWriterGets the query result format that this writer uses.- Specified by:
getTupleQueryResultFormatin interfaceTupleQueryResultWriter- Overrides:
getTupleQueryResultFormatin classSPARQLResultsJSONWriter
-
getQueryResultFormat
Description copied from interface:QueryResultWriterGets the query result format that this writer uses.- Specified by:
getQueryResultFormatin interfaceQueryResultWriter- Overrides:
getQueryResultFormatin classSPARQLResultsJSONWriter
-
acceptsFileFormat
Description copied from interface:SinkCheck if this Sink accepts the suppliedFileFormat.- Parameters:
format- theFileFormatto check.- Returns:
trueif the sink accepts the supplied format,falseotherwise.
-