- All Known Implementing Classes:
JsonLD11Writer
,NQuadsWriter
,NullWriter
,TriGWriter
,TriGWriterBase
,TriGWriterBlocks
,TriGWriterFlat
,TriGWriterLong
,WriterDatasetProtobuf
,WriterDatasetRIOTBase
,WriterDatasetThrift
,WriterTriX
public interface WriterDatasetRIOT
A RIOT serializer for a language.
This covers both graphs and datasets.
A WriterRIOT is a one-time use object (they may accumulate state, e.g. pretty writers).
-
Method Summary
Modifier and TypeMethodDescriptiongetLang()
void
write
(OutputStream out, DatasetGraph datasetGraph, PrefixMap prefixMap, String baseURI, Context context) void
Use of Writer is discouraged - let the serializer manage character sets in accordance with the format
-
Method Details
-
write
void write(OutputStream out, DatasetGraph datasetGraph, PrefixMap prefixMap, String baseURI, Context context) - Parameters:
out
- OutputStreamdatasetGraph
- DatasetGraph to be writtenprefixMap
- PrefixMap - maybe null (default should be to use the prefix mapping from the Graph)baseURI
- base URI - may be null for "none"context
- Context (see specific implementation for details)
-
write
void write(Writer out, DatasetGraph datasetGraph, PrefixMap prefixMap, String baseURI, Context context) Use of Writer is discouraged - let the serializer manage character sets in accordance with the format- Parameters:
out
- WriterdatasetGraph
- DatasetGraph to be writtenprefixMap
- PrefixMap - maybe null (default should be to use the prefix mapping from the Graph)baseURI
- base URI - may be null for "none"context
- Context (see specific implementation for details)
-
getLang
Lang getLang()
-