Skip to main content

Module rdf

Module rdf 

Source
Expand description

RDF / JSON-LD mapping (spec §26): export CL facts as JSON-LD claims so ACL vocabularies interoperate with the RDF/Linked-Data ecosystem (schema.org, W3C ontologies). Scope: mapping layer, not a full RDF lib.

Functions§

cl_to_graph
Export a full Cl body (all facts) as a JSON-LD graph.
context_for
Build a compact JSON-LD @context for a vocabulary namespace.
fact_to_jsonld
Convert one CL fact to a JSON-LD claim node.