View Source JSON.LD.Compaction (JSON-LD.ex v0.3.8)
Implementation of the JSON-LD 1.0 Compaction Algorithms.
Summary
Functions
IRI Compaction
Functions
Link to this function
compact_iri(iri, active_context, inverse_context, value \\ nil, vocab \\ false, reverse \\ false)
View Source@spec compact_iri( any(), JSON.LD.Context.t(), map(), any() | nil, boolean(), boolean() ) :: any() | nil
IRI Compaction
Details at https://www.w3.org/TR/json-ld-api/#iri-compaction
Link to this function
compact_value(value, active_context, inverse_context, active_property)
View Source@spec compact_value(any(), JSON.LD.Context.t(), map(), String.t()) :: any()
Value Compaction
Details at https://www.w3.org/TR/json-ld-api/#value-compaction
Link to this function
select_term(inverse_context, iri, containers, type_language, preferred_values)
View SourceTerm Selection
Details at https://www.w3.org/TR/json-ld-api/#term-selection