java.lang.Object
org.apache.jena.riot.system.StreamRDFLib
Various Common StreamRDF setups
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StreamRDFCounting
count()
static StreamRDFCounting
static StreamRDF
dataset
(DatasetGraph dataset) static StreamRDF
extendTriplesToQuads
(org.apache.jena.graph.Node graphNode, StreamRDF base) Convert any triples seen to a quads, adding the specified graph nodestatic StreamRDF
Convert any triples seen to a quads, adding a graph node ofQuad.tripleInQuad
static StreamRDF
graph
(org.apache.jena.graph.Graph graph) static StreamRDF
print
(OutputStream out) Create aStreamRDF
that prints to anOutputStream
.static StreamRDF
print
(org.apache.jena.atlas.io.AWriter out) Create aStreamRDF
that prints to anAWriter
.static StreamRDF
sinkNull()
Send everything to nowhere ... efficientlystatic StreamRDF
Output to a sink; prefix and base handled only within the parser.static StreamRDF
sinkTriples
(org.apache.jena.atlas.lib.Sink<org.apache.jena.graph.Triple> sink) Output to a sink; prefix and base handled only within the parser.static StreamRDF
writer
(OutputStream out) Create aStreamRDF
that outputs to anOutputStream
.static StreamRDF
writer
(OutputStream out, org.apache.jena.atlas.lib.CharSpace charSpace) static StreamRDF
static StreamRDF
static StreamRDF
writer
(org.apache.jena.atlas.io.AWriter out) Create aStreamRDF
that outputs to anAWriter
.static StreamRDF
writer
(org.apache.jena.atlas.io.AWriter out, org.apache.jena.atlas.lib.CharSpace charSpace)
-
Constructor Details
-
StreamRDFLib
public StreamRDFLib()
-
-
Method Details
-
sinkNull
Send everything to nowhere ... efficiently -
print
Create aStreamRDF
that prints to anOutputStream
. This is debug output. -
print
Create aStreamRDF
that prints to anAWriter
. This is debug output. -
writer
Create aStreamRDF
that outputs to anOutputStream
. It is important to callStreamRDF.start()
andStreamRDF.finish()
because the output is buffered. -
writer
Create aStreamRDF
that outputs to anAWriter
. -
writer
Create aStreamRDF
that outputs to anWriter
. It is important to callStreamRDF.start()
andStreamRDF.finish()
because the output is buffered. -
writer
Create aStreamRDF
that outputs to anOutputStream
with a specificCharSpace
(ASCII or UTF-8).It is important to call
StreamRDF.start()
andStreamRDF.finish()
because the output is buffered. -
writer
public static StreamRDF writer(org.apache.jena.atlas.io.AWriter out, org.apache.jena.atlas.lib.CharSpace charSpace) Create aStreamRDF
that outputs to anOutputStream
with a specificCharSpace
(ASCII or UTF-8).It is important to call
StreamRDF.start()
andStreamRDF.finish()
because the output is buffered. -
writer
Create aStreamRDF
that outputs to anWriter
with a specificCharSpace
(ASCII or UTF-8) writing out-of-range codepoints (if ASCII) as "\ uXXXX".It is important to call
StreamRDF.start()
andStreamRDF.finish()
because the output is buffered. -
graph
-
dataset
-
sinkTriples
public static StreamRDF sinkTriples(org.apache.jena.atlas.lib.Sink<org.apache.jena.graph.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
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
Convert any triples seen to a quads, adding a graph node ofQuad.tripleInQuad
-
extendTriplesToQuads
Convert any triples seen to a quads, adding the specified graph node -
count
-
count
-