public class StreamRDFLib extends Object
Constructor and Description |
---|
StreamRDFLib() |
Modifier and Type | Method and Description |
---|---|
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(OutputStream out) |
static StreamRDF |
writer(Writer out) |
public static StreamRDF sinkNull()
public static StreamRDF writer(OutputStream out)
public static StreamRDF dataset(DatasetGraph dataset)
public static void triplesToStream(StreamRDF dest, Iterator<Triple> iter)
public static void quadsToStream(StreamRDF dest, Iterator<Quad> iter)
public static StreamRDF sinkTriples(Sink<Triple> sink)
public static StreamRDF sinkQuads(Sink<Quad> sink)
public static StreamRDF extendTriplesToQuads(StreamRDF base)
Quad.tripleInQuad
public static StreamRDF extendTriplesToQuads(Node graphNode, StreamRDF base)
public static StreamRDFCounting count()
public static StreamRDFCounting count(StreamRDF other)
Licenced under the Apache License, Version 2.0