View Source JSON.LD.Flattening (JSON-LD.ex v0.3.7)

Implementation of the JSON-LD 1.0 Flattening Algorithms.

Link to this section Summary

Link to this section Functions

Link to this function

flatten(input, context \\ nil, options \\ %Options{})

View Source
@spec flatten(map() | [map()], map() | nil, JSON.LD.Options.convertible()) :: [map()]
Link to this function

generate_node_map(element, node_map, node_id_map, active_graph \\ "@default", active_subject \\ nil, active_property \\ nil, list \\ nil)

View Source
@spec generate_node_map(
  [map()] | map(),
  map(),
  pid(),
  String.t(),
  String.t() | nil,
  String.t() | nil,
  pid() | nil
) :: map()

Node Map Generation

Details at https://www.w3.org/TR/json-ld-api/#node-map-generation

Link to this function

node_map(input, node_id_map \\ nil)

View Source
@spec node_map([map()], pid() | nil) :: map()