Class StreamRDFWriterEx
java.lang.Object
org.aksw.jenax.arq.util.streamrdf.StreamRDFWriterEx
Special purpose RDF writer generation.
Especially blank nodes are preserved as given.
- Author:
- raven
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.jena.riot.system.StreamRDFenhanceWriter(org.apache.jena.riot.system.StreamRDF rawWriter, org.apache.jena.riot.Lang lang, org.apache.jena.shared.PrefixMapping fixedPrefixes, org.apache.jena.irix.IRIx irix, org.apache.jena.riot.out.NodeToLabel nodeToLabel, Boolean mapQuadsToTriplesForTripleLangs) static org.apache.jena.riot.system.StreamRDFenhanceWriterAsGiven(org.apache.jena.riot.system.StreamRDF rawWriter, org.apache.jena.riot.Lang lang) static org.apache.jena.riot.system.StreamRDFgetWriterStream(OutputStream out, org.apache.jena.riot.Lang lang, org.apache.jena.sparql.util.Context context) static org.apache.jena.riot.system.StreamRDFgetWriterStream(OutputStream out, org.apache.jena.riot.RDFFormat rdfFormat, org.apache.jena.sparql.util.Context context) static org.apache.jena.riot.system.StreamRDFgetWriterStream(OutputStream out, org.apache.jena.riot.RDFFormat rdfFormat, org.apache.jena.sparql.util.Context context, org.apache.jena.shared.PrefixMapping fixedPrefixes, org.apache.jena.irix.IRIx irix, org.apache.jena.riot.out.NodeToLabel nodeToLabel, Boolean mapQuadsToTriplesForTripleLangs) Create a StreamRDF writer with extended options.static voidwriteAsGiven(org.apache.jena.graph.Graph graph, OutputStream out, org.apache.jena.riot.RDFFormat format, org.apache.jena.sparql.util.Context cxt, Function<org.apache.jena.riot.system.StreamRDF, org.apache.jena.riot.system.StreamRDF> applyWrapper) static voidwriteAsGiven(org.apache.jena.sparql.core.DatasetGraph dg, OutputStream out, org.apache.jena.riot.RDFFormat format, org.apache.jena.sparql.util.Context cxt, Function<org.apache.jena.riot.system.StreamRDF, org.apache.jena.riot.system.StreamRDF> applyWrapper) static <T> voidwriteAsGiven(T data, BiConsumer<T, org.apache.jena.riot.system.StreamRDF> sendToStream, OutputStream out, org.apache.jena.riot.RDFFormat format, org.apache.jena.sparql.util.Context cxt, Function<org.apache.jena.riot.system.StreamRDF, org.apache.jena.riot.system.StreamRDF> applyWrapper)
-
Constructor Details
-
StreamRDFWriterEx
public StreamRDFWriterEx()
-
-
Method Details
-
getWriterStream
public static org.apache.jena.riot.system.StreamRDF getWriterStream(OutputStream out, org.apache.jena.riot.RDFFormat rdfFormat, org.apache.jena.sparql.util.Context context) -
getWriterStream
public static org.apache.jena.riot.system.StreamRDF getWriterStream(OutputStream out, org.apache.jena.riot.Lang lang, org.apache.jena.sparql.util.Context context) -
writeAsGiven
public static void writeAsGiven(org.apache.jena.sparql.core.DatasetGraph dg, OutputStream out, org.apache.jena.riot.RDFFormat format, org.apache.jena.sparql.util.Context cxt, Function<org.apache.jena.riot.system.StreamRDF, org.apache.jena.riot.system.StreamRDF> applyWrapper) -
writeAsGiven
public static void writeAsGiven(org.apache.jena.graph.Graph graph, OutputStream out, org.apache.jena.riot.RDFFormat format, org.apache.jena.sparql.util.Context cxt, Function<org.apache.jena.riot.system.StreamRDF, org.apache.jena.riot.system.StreamRDF> applyWrapper) -
writeAsGiven
public static <T> void writeAsGiven(T data, BiConsumer<T, org.apache.jena.riot.system.StreamRDF> sendToStream, OutputStream out, org.apache.jena.riot.RDFFormat format, org.apache.jena.sparql.util.Context cxt, Function<org.apache.jena.riot.system.StreamRDF, org.apache.jena.riot.system.StreamRDF> applyWrapper) - Parameters:
dg- The datasetout- The output streamformat- The RDF formatcxt- The context for riotapplyWrapper- A callback for optionally wrapping the internal streamRdf (e.g. deferring output while sampling used prefixes); may be null.
-
enhanceWriterAsGiven
public static org.apache.jena.riot.system.StreamRDF enhanceWriterAsGiven(org.apache.jena.riot.system.StreamRDF rawWriter, org.apache.jena.riot.Lang lang)
-