NTriplesToTriplesDecoder class final

Decoder for the N-Triples format.

N-Triples is a line-based, plain text serialization for RDF data. Each line contains exactly one triple and ends with a period. This decoder implements the N-Triples format as specified in the RDF 1.1 N-Triples specification.

The parser processes the input line by line, ignoring comment lines (starting with '#') and empty lines, and parses each remaining line as a separate triple.

This decoder is the list-level API and owns chunk-to-chunk parser continuity for stream processing.

Inheritance

Constructors

NTriplesToTriplesDecoder({NTriplesDecoderOptions options = const NTriplesDecoderOptions(), IriTermFactory iriTermFactory = IriTerm.validated})

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<Iterable<Triple>>
Decodes streamed N-Triples chunks while preserving blank-node identity across chunk boundaries at triple-list level.
override
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(String input, {String? documentUrl}) Iterable<Triple>
Decodes an RDF document and returns the appropriate RDF data structure
override
decode(String input, {String? documentUrl, Map<String, BlankNodeTerm>? bnodeMap}) → ({Map<BlankNodeTerm, String> blankNodeLabels, Iterable<Triple> triples})
fuse<TT>(Converter<Iterable<Triple>, 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<Iterable<Triple>> sink) Sink<String>
Starts a chunked conversion.
inherited
toString() String
A string representation of this object.
inherited
withOptions(RdfGraphDecoderOptions options) RdfTriplesDecoder
Creates a new decoder with the specified options
override

Operators

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