convert abstract method
override
Decodes an RDF document and returns the appropriate RDF data structure
This method transforms a textual RDF document into a structured RDF data object
(graph, dataset, etc.) containing the parsed data from the input. It implements
the convert
method from the Converter
interface.
Parameters:
input
The RDF document to decode, as a string.documentUrl
The absolute URL of the document, used for resolving relative IRIs. If not provided, relative IRIs will be kept as-is or handled according to format-specific rules.
Returns:
- A data structure of type
G
containing the parsed data from the input.
The specific decoding behavior depends on the implementation of this interface, which will handle format-specific details like prefix resolution, blank node handling, etc.
May throw format-specific parsing exceptions if the input is malformed.
Implementation
@override
G convert(String input, {String? documentUrl});