[−][src]Module sophia::serializer
Serializers for standard RDF syntaxes, and tools for building new serializers.
Uniform interface
Each serializer module defines a Config
type, that
- implements
Default
, - has a
writer
method taking anyio::Write
and returning aTripleWriter
or aQuadWriter
, - has a
stringifier
method returning a [StringSerializer
] or aQuadStringifier
.
Each serializer module also provides two functions writer
and a stringifier
,
calling the corresponding methods from the default Config
.
TripleWriter
and TripleStringifier
are specializations of TripleSink
.
QuadWriter
and QuadStringifier
are specializations of QuadSink
.
Modules
common | Reusable types, functions and macros for implementing serializers. |
nq | Serializer for the N-Quads concrete syntax of RDF. |
nt | Serializer for the N-Triples concrete syntax of RDF. |
Traits
QuadStringifier | An extension of the |
QuadWriter | An extension of the |
TripleStringifier | An extension of the |
TripleWriter | An extension of the |