Class SPARQLStarResultsTSVWriter
java.lang.Object
org.eclipse.rdf4j.query.resultio.AbstractQueryResultWriter
org.eclipse.rdf4j.query.resultio.text.tsv.SPARQLResultsTSVWriter
org.eclipse.rdf4j.query.resultio.text.tsv.SPARQLStarResultsTSVWriter
- All Implemented Interfaces:
CharSink, Sink, QueryResultHandler, QueryResultWriter, TupleQueryResultWriter, TupleQueryResultHandler
Writer for SPARQL-star TSV results. This is equivalent to the SPARQL TSV writer with the addition of support for
RDF-star triples. Triples will be serialized in Turtle-star fashion with the notable exception that any embedded
literals will not use the triple quotes notation (as regular literals in SPARQL TSV).
- Author:
- Pavel Mihaylov
-
Field Summary
Fields inherited from class SPARQLResultsTSVWriter
tupleVariablesFound, writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the query result format that this writer uses.Methods inherited from class SPARQLResultsTSVWriter
endHeader, endQueryResult, getQueryResultFormat, getWriter, handleBoolean, handleLinks, handleNamespace, handleSolutionImpl, handleStylesheet, startDocument, startHeader, startQueryResult, writeBNode, writeResource, writeURI, writeValueModifier and TypeMethodDescriptionvoidIndicates the end of the header.voidIndicates the end of a sequence of solutions.final TupleQueryResultFormatGets the query result format that this writer uses.voidhandleBoolean(boolean value) Handles the specified boolean value.voidhandleLinks(List<String> linkUrls) Handles the links elements which are present in SPARQL Results JSON and SPARQL Results XML documents in the header.voidhandleNamespace(String prefix, String uri) Handles a namespace prefix declaration.protected voidhandleSolutionImpl(BindingSet bindingSet) Extending classes must implement this method instead of overridingAbstractQueryResultWriter.handleSolution(BindingSet)in order to benefit from automatic handling of RDF-star encoding.voidhandleStylesheet(String stylesheetUrl) Handles a stylesheet URL.voidIndicates the start of the document.voidIndicates the start of the header.voidstartQueryResult(List<String> bindingNames) Indicates the start of a sequence of Solutions.protected voidwriteBNode(BNode bNode) protected voidwriteResource(Resource res) protected voidprotected voidwriteValue(Value val) Methods inherited from class AbstractQueryResultWriter
getFileFormat, getSupportedSettings, getWriterConfig, handleSolution, setWriterConfig, xsdStringToPlainLiteralModifier and TypeMethodDescriptionGet theFileFormatthis sink uses.Collection<RioSetting<?>> Retrieves the current writer configuration as a single object.voidhandleSolution(BindingSet bindingSet) Handles a solution.voidsetWriterConfig(WriterConfig config) Sets all supplied writer configuration options.protected booleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Sink
acceptsFileFormatModifier and TypeMethodDescriptiondefault booleanacceptsFileFormat(FileFormat format) Check if this Sink accepts the suppliedFileFormat.
-
Constructor Details
-
SPARQLStarResultsTSVWriter
-
-
Method Details
-
getTupleQueryResultFormat
Description copied from interface:TupleQueryResultWriterGets the query result format that this writer uses.- Specified by:
getTupleQueryResultFormatin interfaceTupleQueryResultWriter- Overrides:
getTupleQueryResultFormatin classSPARQLResultsTSVWriter
-