java.lang.Object
org.apache.jena.riot.system.StreamRDFLib
Various Common StreamRDF setups
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamRDFCountingcount()static StreamRDFCountingstatic StreamRDFdataset(DatasetGraph dataset) static StreamRDFextendTriplesToQuads(org.apache.jena.graph.Node graphNode, StreamRDF base) Convert any triples seen to a quads, adding the specified graph nodestatic StreamRDFConvert any triples seen to a quads, adding a graph node ofQuad.tripleInQuadstatic StreamRDFgraph(org.apache.jena.graph.Graph graph) static StreamRDFprint(OutputStream out) Create aStreamRDFthat prints to anOutputStream.static StreamRDFprint(org.apache.jena.atlas.io.AWriter out) Create aStreamRDFthat prints to anAWriter.static StreamRDFsinkNull()Send everything to nowhere ... efficientlystatic StreamRDFOutput to a sink; prefix and base handled only within the parser.static StreamRDFsinkTriples(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 StreamRDFwriter(OutputStream out) Create aStreamRDFthat outputs to anOutputStream.static StreamRDFwriter(OutputStream out, org.apache.jena.atlas.lib.CharSpace charSpace) static StreamRDFstatic StreamRDFstatic StreamRDFwriter(org.apache.jena.atlas.io.AWriter out) Create aStreamRDFthat outputs to anAWriter.static StreamRDFwriter(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 aStreamRDFthat prints to anOutputStream. This is debug output. -
print
Create aStreamRDFthat prints to anAWriter. This is debug output. -
writer
Create aStreamRDFthat outputs to anOutputStream. It is important to callStreamRDF.start()andStreamRDF.finish()because the output is buffered. -
writer
Create aStreamRDFthat outputs to anAWriter. -
writer
Create aStreamRDFthat outputs to anWriter. It is important to callStreamRDF.start()andStreamRDF.finish()because the output is buffered. -
writer
Create aStreamRDFthat outputs to anOutputStreamwith 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 aStreamRDFthat outputs to anOutputStreamwith a specificCharSpace(ASCII or UTF-8).It is important to call
StreamRDF.start()andStreamRDF.finish()because the output is buffered. -
writer
Create aStreamRDFthat outputs to anWriterwith 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
-