View Source JSON.LD.Decoder (JSON-LD.ex v0.3.5)

A decoder for JSON-LD serializations to RDF.Datasets.

As for all decoders of RDF.Serialization.Formats, you normally won't use these functions directly, but via one of the read_ functions on the JSON.LD format module or the generic RDF.Serialization module.

Link to this section Summary

Link to this section Functions

@spec node_to_rdf(String.t()) :: RDF.IRI.t() | RDF.BlankNode.t()
Link to this function

parse_json!(content, opts \\ [])

View Source
@spec parse_json!(String.t(), [Jason.decode_opt()]) :: map()
Link to this function

parse_json(content, opts \\ [])

View Source
@spec parse_json(String.t(), [Jason.decode_opt()]) ::
  {:ok, map()} | {:error, Jason.DecodeError.t()}
Link to this function

to_rdf(element, options \\ %Options{})

View Source
@spec to_rdf(map(), JSON.LD.Options.t() | Enum.t()) :: RDF.Dataset.t() | RDF.Graph.t()