elm-cardano/json-ld/1.0.0

JsonLd

JSON-LD parsing, expansion, and canonicalization.

Supports inline contexts only (no remote HTTP fetching of @context URLs).

expand : Value -> Result String Value

Expand a JSON-LD document to its expanded form. Only inline contexts are supported.

toRdf : Value -> Result String Dataset

Expand a JSON-LD document and convert it to an RDF dataset.

toCanonicalNQuads : Value -> Result String String

Full pipeline: JSON-LD to canonical N-Quads via RDFC-1.0 with SHA-256.

toCanonicalNQuadsWith : Options -> Value -> Result String String

Full pipeline with configurable canonicalization options.