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, JSON-LD, and N-Triples codecs registered.

Example:

final graph = rdf.decode(turtleData, contentType: 'text/turtle');
final serialized = rdf.encode(graph, contentType: 'application/ld+json');

Implementation

final rdf = RdfCore.withStandardCodecs();