JSON.LD.Context (JSON-LD.ex v1.0.0)
View SourceImplementation of the JSON-LD 1.1 Context Processing Algorithm.
https://www.w3.org/TR/json-ld11-api/#context-processing-algorithms
Summary
Types
@type remote() :: [map()]
@type t() :: %JSON.LD.Context{ api_base_iri: String.t() | nil, base_direction: String.t() | nil, base_iri: String.t() | nil | :not_present, default_language: String.t() | nil, inverse_context: map() | nil, original_base_url: String.t() | nil, previous_context: t() | nil, term_defs: map(), vocabulary_mapping: String.t() | nil }
Functions
@spec create(map(), JSON.LD.Options.convertible()) :: t()
Inverse Context Creation algorithm
See https://www.w3.org/TR/json-ld11-api/#inverse-context-creation
@spec new(JSON.LD.Options.convertible()) :: t()
@spec update(t(), [local()] | local(), JSON.LD.Options.convertible()) :: t()