JSON.LD.Context.TermDefinition (JSON-LD.ex v1.0.0)

View Source

Implementation of the JSON-LD 1.1 Create Term Definition Algorithm.

https://www.w3.org/TR/json-ld11-api/#create-term-definition

Summary

Functions

Expands the given input according to the steps in the JSON-LD Create Term Definition algorithm.

Types

t()

@type t() :: %JSON.LD.Context.TermDefinition{
  base_url: nil | String.t(),
  container_mapping: nil | [String.t()],
  direction_mapping: false | nil | :ltr | :rtl,
  index_mapping: nil | String.t(),
  iri_mapping: String.t(),
  language_mapping: false | nil | String.t(),
  local_context: nil | map() | String.t(),
  nest_value: nil | String.t(),
  prefix_flag: boolean(),
  protected: boolean(),
  reverse_property: boolean(),
  type_mapping: false | nil | String.t()
}

value()

@type value() :: map() | String.t() | nil

Functions

create(active, local, term, value, defined, popts, opts \\ [])

@spec create(
  JSON.LD.Context.t(),
  map(),
  String.t(),
  value(),
  map(),
  JSON.LD.Options.t(),
  keyword()
) ::
  {JSON.LD.Context.t(), map()}

Expands the given input according to the steps in the JSON-LD Create Term Definition algorithm.

direction(arg1, context)

language(arg1, context)