Package org.apache.jena.riot.system
Class StreamRDFOps
- java.lang.Object
-
- org.apache.jena.riot.system.StreamRDFOps
-
public class StreamRDFOps extends java.lang.Object
Utilities for sending to StreamRDF. Unless otherwise stated, send* operations do not call stream.start()/stream.finish() whereas other operations do.
-
-
Constructor Summary
Constructors Constructor Description StreamRDFOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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(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, java.lang.String baseURI, PrefixMap prefixMap)
Send a dataset to a StreamRDF as triples and quads, using the explicitly given prefix mapstatic void
sendGraphToStream(Graph graph, StreamRDF stream)
Send the triples of graph and an explicitly given prefix mapping, to a StreamRDF.static void
sendGraphToStream(Graph graph, StreamRDF stream, java.lang.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(PrefixMapping prefixMap, StreamRDF stream)
static void
sendQuadsToStream(java.util.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(java.util.Iterator<Triple> iter, StreamRDF dest)
Set triples to a StreamRDF - does not call .start/.finishstatic void
sendTriplesToStream(Graph graph, StreamRDF stream)
Send the triples of graph to a StreamRDF (no prefix mapping)
-
-
-
Method Detail
-
datasetToStream
public static void datasetToStream(DatasetGraph datasetGraph, StreamRDF stream)
Send a dataset to a StreamRDF as prefixes, triples and quads, enclosed in stream.start()/stream.finish()
-
graphToStream
public static void graphToStream(Graph graph, StreamRDF stream)
Send the triples of graph and it's prefix mapping to a StreamRDF, enclosed in stream.start()/stream.finish()
-
sendPrefixesToStream
public static void sendPrefixesToStream(PrefixMap prefixMap, StreamRDF stream)
Send a PrefixMap to a stream
-
sendPrefixesToStream
public static void sendPrefixesToStream(PrefixMapping prefixMap, StreamRDF stream)
-
sendTriplesQuadsToStream
public static 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 prefixes
-
sendDatasetToStream
public static void sendDatasetToStream(DatasetGraph datasetGraph, StreamRDF stream)
Send a dataset to a StreamRDF as prefixes, triples and quads
-
sendDatasetToStream
public static void sendDatasetToStream(DatasetGraph datasetGraph, StreamRDF stream, java.lang.String baseURI, PrefixMap prefixMap)
Send a dataset to a StreamRDF as triples and quads, using the explicitly given prefix map
-
sendGraphToStream
public static void sendGraphToStream(Graph graph, StreamRDF stream)
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(Graph graph, StreamRDF stream, java.lang.String baseURI, PrefixMap prefixMap)
Send the triples of graph, and an explicitly given prefix mapping, to a StreamRDF
-
sendTriplesToStream
public static void sendTriplesToStream(Graph graph, StreamRDF stream)
Send the triples of graph to a StreamRDF (no prefix mapping)
-
sendTriplesToStream
public static void sendTriplesToStream(java.util.Iterator<Triple> iter, StreamRDF dest)
Set triples to a StreamRDF - does not call .start/.finish
-
sendQuadsToStream
public static void sendQuadsToStream(DatasetGraph datasetGraph, StreamRDF stream)
Send quads of a dataset (including default graph as quads) to a StreamRDF, without prefixes
-
-