convert abstract method
- G data, {
- String? baseUri,
override
Encodes an RDF data structure to a string representation in a specific format.
Transforms an in-memory RDF data structure into an encoded text format that can be stored or transmitted. The exact output format depends on the implementing class.
Parameters:
data
The RDF data structure to encode.baseUri
Optional base URI for resolving/shortening IRIs in the output. When provided, the encoder may use this to produce more compact output.
Returns:
- The serialized representation of the data as a string.
Implementation
String convert(G data, {String? baseUri});