RdfGraphDecoder class abstract
Base class for decoding RDF documents in various serialization formats
This abstract class extends the standard Converter
interface to provide
a common API for decoding different RDF string serializations (such as Turtle,
JSON-LD, RDF/XML, N-Triples, etc.). Each format implements this interface to
handle its specific syntax rules and parsing behavior.
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 formats.
Example:
final turtleDecoder = TurtleDecoder();
final graph = turtleDecoder.convert('@prefix ex: <http://example.org/> . ex:subject ex:predicate "object" .');
- Inheritance
- Implementers
Constructors
- RdfGraphDecoder()
-
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<RdfGraph> -
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}) → RdfGraph -
Decodes an RDF document and returns an RDF graph
override
-
fuse<
TT> (Converter< RdfGraph, TT> other) → Converter<String, TT> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startChunkedConversion(
Sink< RdfGraph> sink) → Sink<String> -
Starts a chunked conversion.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withOptions(
RdfGraphDecoderOptions options) → RdfGraphDecoder - Creates a new decoder with the specified options
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited