Class 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 Detail

      • StreamRDFOps

        public StreamRDFOps()
    • 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,
                                             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
      • sendQuadsToStream

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