View Source JSON.LD.Decoder (JSON-LD.ex v0.3.9)
A decoder for JSON-LD serializations to RDF.Dataset
s.
As for all decoders of RDF.Serialization.Format
s, 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.
Summary
Functions
@spec node_to_rdf(String.t()) :: RDF.IRI.t() | RDF.BlankNode.t()
@spec parse_json(String.t(), [Jason.decode_opt()]) :: {:ok, map()} | {:error, Jason.DecodeError.t()}
@spec parse_json!(String.t(), [Jason.decode_opt()]) :: map()
@spec to_rdf(map(), JSON.LD.Options.t() | Enum.t()) :: RDF.Dataset.t() | RDF.Graph.t()