RdfDatasetEncoder class abstract

Interface for encoding RDF datasets to different serialization formats.

This base class defines the contract for encoding RDF datasets into textual representations using various formats like N-Quads, TriG, etc. It's part of the Strategy pattern implementation that allows the library to support multiple dataset encoding formats.

Dataset format-specific encoders should extend this base class to be registered with the RDF library's codec framework.

Dataset encoders are responsible for:

  • Determining how to represent quads and graph context in their specific format
  • Handling namespace prefixes and base URIs
  • Applying format-specific optimizations for readability or size
  • Managing default graph and named graph serialization
Inheritance
Implementers

Constructors

RdfDatasetEncoder()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(Stream<RdfDataset> stream) Stream<String>
Transforms the provided stream.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(RdfDataset dataset, {String? baseUri}) String
Encodes an RDF dataset to a string representation in a specific format.
override
fuse<TT>(Converter<String, TT> other) Converter<RdfDataset, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<String> sink) Sink<RdfDataset>
Starts a chunked conversion.
inherited
toString() String
A string representation of this object.
inherited
withOptions(RdfGraphEncoderOptions options) RdfDatasetEncoder
Creates a new encoder instance with the specified options.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited