public class StreamRDFWriter extends Object
RDFDataMgr operations do not provide this guaranttee.
See RDFWriterRegistry for general purpose writers.RDFDataMgr,
RDFWriterRegistry| Modifier and Type | Class and Description |
|---|---|
static class |
StreamRDFWriter.WriterRegistry<T>
Writer registry
|
| Constructor and Description |
|---|
StreamRDFWriter() |
| Modifier and Type | Method and Description |
|---|---|
static RDFFormat |
defaultSerialization(Lang lang)
Return the format registered as the default for the language
|
static StreamRDF |
getWriterStream(OutputStream output,
Lang lang)
Get a StreamRDF destination that will output in syntax Lang
and is guaranteed to do so in a scaling, streaming fashion.
|
static StreamRDF |
getWriterStream(OutputStream output,
RDFFormat format)
Get a StreamRDF destination that will output in syntax RDFFormat
and is guaranteed to do so in a scaling, streaming fashion.
|
static void |
register(Lang lang,
RDFFormat format)
Register the default serialization for the language (replace any existing registration).
|
static void |
register(RDFFormat serialization,
StreamRDFWriterFactory streamWriterFactory)
Register the serialization for datasets and it's associated factory
|
static Collection<RDFFormat> |
registered() |
static boolean |
registered(Lang lang) |
static boolean |
registered(RDFFormat format) |
static void |
write(OutputStream output,
DatasetGraph datasetGraph,
Lang lang)
Write a DatasetGraph in streaming fashion
|
static void |
write(OutputStream output,
DatasetGraph datasetGraph,
RDFFormat format)
Write a DatasetGraph in streaming fashion
|
static void |
write(OutputStream output,
Graph graph,
Lang lang)
Write a Graph in streaming fashion
|
static void |
write(OutputStream output,
Graph graph,
RDFFormat lang)
Write a Graph in streaming fashion
|
public static void register(Lang lang, RDFFormat format)
lang - Languagesformat - The serialization forma to use when the language is used for writing.public static void register(RDFFormat serialization, StreamRDFWriterFactory streamWriterFactory)
serialization - RDFFormat for the output format.streamWriterFactory - Source of writer enginespublic static RDFFormat defaultSerialization(Lang lang)
public static StreamRDF getWriterStream(OutputStream output, Lang lang)
output - OutputStreamlang - The syntaxStreamOps.graphToStream(com.hp.hpl.jena.graph.Graph, org.apache.jena.riot.system.StreamRDF),
StreamOps.datasetToStream(com.hp.hpl.jena.sparql.core.DatasetGraph, org.apache.jena.riot.system.StreamRDF)public static StreamRDF getWriterStream(OutputStream output, RDFFormat format)
output - OutputStreamformat - The syntax (as an RDFFormat)StreamOps.graphToStream(com.hp.hpl.jena.graph.Graph, org.apache.jena.riot.system.StreamRDF),
StreamOps.datasetToStream(com.hp.hpl.jena.sparql.core.DatasetGraph, org.apache.jena.riot.system.StreamRDF)public static boolean registered(Lang lang)
public static boolean registered(RDFFormat format)
public static Collection<RDFFormat> registered()
public static void write(OutputStream output, Graph graph, Lang lang)
output - OutputStreamgraph - Graph to writelang - Syntaxpublic static void write(OutputStream output, Graph graph, RDFFormat lang)
output - OutputStreamgraph - Graph to writelang - Syntaxpublic static void write(OutputStream output, DatasetGraph datasetGraph, Lang lang)
output - OutputStreamdatasetGraph - DatasetGraph to writelang - Syntaxpublic static void write(OutputStream output, DatasetGraph datasetGraph, RDFFormat format)
output - OutputStreamdatasetGraph - DatasetGraph to writeformat - SyntaxLicenced under the Apache License, Version 2.0