Class StreamRDFOps

java.lang.Object
org.apache.jena.riot.system.StreamRDFOps

public class StreamRDFOps extends Object
Utilities for sending to StreamRDF. Unless otherwise stated, send* operations do not call stream.start()/stream.finish() whereas other operations do.
  • Constructor Details

    • StreamRDFOps

      public StreamRDFOps()
  • Method Details

    • 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(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()
    • sendPrefixesToStream

      public static void sendPrefixesToStream(PrefixMap prefixMap, StreamRDF stream)
      Send a PrefixMap to a stream
    • sendPrefixesToStream

      public static void sendPrefixesToStream(org.apache.jena.shared.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, 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(org.apache.jena.graph.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 - see graphToStream(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

      public static void sendTriplesToStream(org.apache.jena.graph.Graph graph, StreamRDF stream)
      Send the triples of graph to a StreamRDF (no prefix mapping) See also sendGraphToStream(org.apache.jena.graph.Graph, org.apache.jena.riot.system.StreamRDF) which does send the prefix mapping.
    • sendTriplesToStream

      public static void sendTriplesToStream(Iterator<org.apache.jena.graph.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
    • sendQuadsToStream

      public static void sendQuadsToStream(Iterator<Quad> iter, StreamRDF dest)
      Set quads to a StreamRDF - does not call .start/.finish