RdfDatasetDecoder class abstract

Base class for decoding RDF dataset documents in various serialization formats

This abstract class extends the standard Converter interface to provide a common API for decoding different RDF dataset string serializations (such as N-Quads, TriG, JSON-LD datasets, etc.). Each format implements this interface to handle its specific syntax rules and parsing behavior.

Dataset format-specific decoders should implement this base class to be compatible with the RDF library's parsing framework and to ensure consistent behavior across different dataset formats.

Example:

final nquadsDecoder = NQuadsDecoder();
final dataset = nquadsDecoder.convert('<http://example.org/s> <http://example.org/p> "object" <http://example.org/g> .');
Inheritance
Implementers

Constructors

RdfDatasetDecoder()
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<String> stream) Stream<RdfDataset>
Transforms the provided stream.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(String input, {String? documentUrl}) RdfDataset
Decodes an RDF dataset document and returns an RDF dataset
override
fuse<TT>(Converter<RdfDataset, TT> other) Converter<String, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startChunkedConversion(Sink<RdfDataset> sink) Sink<String>
Starts a chunked conversion.
inherited
toString() String
A string representation of this object.
inherited
withOptions(RdfGraphDecoderOptions options) RdfDatasetDecoder
Creates a new decoder with the specified options
override

Operators

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