java.lang.Object
org.apache.jena.riot.system.StreamRDFOps
Utilities for sending to StreamRDF.
Unless otherwise stated, send* operations do not call stream.start()/stream.finish()
whereas other operations do.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
datasetToStream
(DatasetGraph datasetGraph, StreamRDF stream) Send a dataset to a StreamRDF as prefixes, triples and quads, enclosed in stream.start()/stream.finish()static void
graphToStream
(org.apache.jena.graph.Graph graph, StreamRDF stream) Send the triples of graph and it's prefix mapping to a StreamRDF, enclosed in stream.start()/stream.finish()static void
sendDatasetToStream
(DatasetGraph datasetGraph, StreamRDF stream) Send a dataset to a StreamRDF as prefixes, triples and quadsstatic void
sendDatasetToStream
(DatasetGraph datasetGraph, StreamRDF stream, String baseURI, PrefixMap prefixMap) Send a dataset to a StreamRDF as triples and quads, using the explicitly given prefix mapstatic void
sendGraphToStream
(org.apache.jena.graph.Graph graph, StreamRDF stream) Send the triples of graph and an explicitly given prefix mapping, to a StreamRDF.static void
sendGraphToStream
(org.apache.jena.graph.Graph graph, StreamRDF stream, String baseURI, PrefixMap prefixMap) Send the triples of graph, and an explicitly given prefix mapping, to a StreamRDFstatic void
sendPrefixesToStream
(PrefixMap prefixMap, StreamRDF stream) Send a PrefixMap to a streamstatic void
sendPrefixesToStream
(org.apache.jena.shared.PrefixMapping prefixMap, StreamRDF stream) static void
sendQuadsToStream
(Iterator<Quad> iter, StreamRDF dest) Set quads to a StreamRDF - does not call .start/.finishstatic void
sendQuadsToStream
(DatasetGraph datasetGraph, StreamRDF stream) Send quads of a dataset (including default graph as quads) to a StreamRDF, without prefixesstatic void
sendTriplesQuadsToStream
(DatasetGraph datasetGraph, StreamRDF stream) Send a dataset graph to a stream with triples for the default graph and quads for the named graphs without prefixesstatic void
sendTriplesToStream
(Iterator<org.apache.jena.graph.Triple> iter, StreamRDF dest) Set triples to a StreamRDF - does not call .start/.finishstatic void
sendTriplesToStream
(org.apache.jena.graph.Graph graph, StreamRDF stream) Send the triples of graph to a StreamRDF (no prefix mapping) See alsosendGraphToStream(org.apache.jena.graph.Graph, org.apache.jena.riot.system.StreamRDF)
which does send the prefix mapping.
-
Constructor Details
-
StreamRDFOps
public StreamRDFOps()
-
-
Method Details
-
datasetToStream
Send a dataset to a StreamRDF as prefixes, triples and quads, enclosed in stream.start()/stream.finish() -
graphToStream
Send the triples of graph and it's prefix mapping to a StreamRDF, enclosed in stream.start()/stream.finish() -
sendPrefixesToStream
Send a PrefixMap to a stream -
sendTriplesQuadsToStream
Send a dataset graph to a stream with triples for the default graph and quads for the named graphs without prefixes -
sendDatasetToStream
Send a dataset to a StreamRDF as prefixes, triples and quads -
sendDatasetToStream
public static void sendDatasetToStream(DatasetGraph datasetGraph, StreamRDF stream, String baseURI, PrefixMap prefixMap) Send a dataset to a StreamRDF as triples and quads, using the explicitly given prefix map -
sendGraphToStream
Send the triples of graph and an explicitly given prefix mapping, to a StreamRDF. This operation does not include start/finish nesting - seegraphToStream(org.apache.jena.graph.Graph, org.apache.jena.riot.system.StreamRDF)
. -
sendGraphToStream
public static void sendGraphToStream(org.apache.jena.graph.Graph graph, StreamRDF stream, String baseURI, PrefixMap prefixMap) Send the triples of graph, and an explicitly given prefix mapping, to a StreamRDF -
sendTriplesToStream
Send the triples of graph to a StreamRDF (no prefix mapping) See alsosendGraphToStream(org.apache.jena.graph.Graph, org.apache.jena.riot.system.StreamRDF)
which does send the prefix mapping. -
sendTriplesToStream
Set triples to a StreamRDF - does not call .start/.finish -
sendQuadsToStream
Send quads of a dataset (including default graph as quads) to a StreamRDF, without prefixes -
sendQuadsToStream
Set quads to a StreamRDF - does not call .start/.finish
-