org.apache.jena.riot.system
Class StreamRDFLib

java.lang.Object
  extended by org.apache.jena.riot.system.StreamRDFLib

public class StreamRDFLib
extends Object

Various Common StreamRDF setups


Constructor Summary
StreamRDFLib()
           
 
Method Summary
static StreamRDFCounting count()
           
static StreamRDFCounting count(StreamRDF other)
           
static StreamRDF dataset(DatasetGraph dataset)
           
static StreamRDF extendTriplesToQuads(Node graphNode, StreamRDF base)
          Convert any triples seen to a quads, adding the specified graph node
static StreamRDF extendTriplesToQuads(StreamRDF base)
          Convert any triples seen to a quads, adding a graph node of Quad.tripleInQuad
static StreamRDF graph(Graph graph)
           
static void quadsToStream(StreamRDF dest, Iterator<Quad> iter)
          Set quads to a StreamRDF - does not call .start/.finish
static StreamRDF sinkNull()
          Send everything to nowhere ...
static StreamRDF sinkQuads(Sink<Quad> sink)
          Output to a sink; prefix and base handled only within the parser.
static StreamRDF sinkTriples(Sink<Triple> sink)
          Output to a sink; prefix and base handled only within the parser.
static void triplesToStream(StreamRDF dest, Iterator<Triple> iter)
          Set triples to a StreamRDF - does not call .start/.finish
static StreamRDF writer(AWriter out)
           
static StreamRDF writer(AWriter out, CharSpace charSpace)
           
static StreamRDF writer(OutputStream out)
           
static StreamRDF writer(OutputStream out, CharSpace charSpace)
           
static StreamRDF writer(Writer out)
           
static StreamRDF writer(Writer out, CharSpace charSpace)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamRDFLib

public StreamRDFLib()
Method Detail

sinkNull

public static StreamRDF sinkNull()
Send everything to nowhere ... efficiently


writer

public static StreamRDF writer(OutputStream out)

writer

public static StreamRDF writer(AWriter out)

writer

public static StreamRDF writer(Writer out)

writer

public static StreamRDF writer(OutputStream out,
                               CharSpace charSpace)

writer

public static StreamRDF writer(AWriter out,
                               CharSpace charSpace)

writer

public static StreamRDF writer(Writer out,
                               CharSpace charSpace)

graph

public static StreamRDF graph(Graph graph)

dataset

public static StreamRDF dataset(DatasetGraph dataset)

triplesToStream

public static void triplesToStream(StreamRDF dest,
                                   Iterator<Triple> iter)
Set triples to a StreamRDF - does not call .start/.finish


quadsToStream

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


sinkTriples

public static StreamRDF sinkTriples(Sink<Triple> sink)
Output to a sink; prefix and base handled only within the parser. Unfortunately, Java needs different names for the triples and quads versions because of type erasure.


sinkQuads

public static StreamRDF sinkQuads(Sink<Quad> sink)
Output to a sink; prefix and base handled only within the parser. Unfortunately, Java needs different names for the triples and quads versions because of type erasure.


extendTriplesToQuads

public static StreamRDF extendTriplesToQuads(StreamRDF base)
Convert any triples seen to a quads, adding a graph node of Quad.tripleInQuad


extendTriplesToQuads

public static StreamRDF extendTriplesToQuads(Node graphNode,
                                             StreamRDF base)
Convert any triples seen to a quads, adding the specified graph node


count

public static StreamRDFCounting count()

count

public static StreamRDFCounting count(StreamRDF other)


Licenced under the Apache License, Version 2.0