JSON.LD.IRIExpansion (JSON-LD.ex v1.0.0)

View Source

Implementation of the JSON-LD 1.1 IRI Expansion algorithm.

https://www.w3.org/TR/json-ld11-api/#iri-expansion

Summary

Functions

expand_iri(value, active_context, options \\ Options.new(), doc_relative \\ false, vocab \\ false, local_context \\ nil, defined \\ nil)

@spec expand_iri(
  String.t(),
  JSON.LD.Context.t(),
  JSON.LD.Options.t(),
  boolean(),
  boolean(),
  map() | nil,
  map() | nil
) :: {String.t() | nil, JSON.LD.Context.t(), map()} | String.t() | nil