rdf top-level property

RdfCore rdf
final

Global convenience variable for accessing RDF functionality with standard codecs pre-registered

This variable provides a pre-configured RDF library instance with Turtle, N-Triples, TriG, and N-Quads codecs registered.

For JSON-LD support, use locorda_rdf_jsonld.

Example:

final graph = rdf.decode(turtleData, contentType: 'text/turtle');
final serialized = rdf.encode(graph, contentType: 'application/n-triples');

Implementation

final rdf = RdfCore.withStandardCodecs();