Skip to main content

Module jsonld

Module jsonld 

Source
Expand description

Minimal JSON-LD context builder for DPP passport payloads.

Intentionally small and flat: three cohesive functions (build/frame/strip the @context envelope), not a growing vocabulary layer. If this module starts accumulating per-vocabulary mapping logic, split it then — until then, one file is the right size.

Constants§

REMOTE_CONTEXTS
Remote contexts this passport context references.

Functions§

context_value
The @context value alone, for a caller that already has a passport object and needs to stamp the context onto it.
frame_passport
Wrap a passport JSON value in a JSON-LD envelope.
passport_context
Build the JSON-LD context for an Odal Node passport.
strip_context
Extract the plain data from a JSON-LD framed passport (strip @context).