AshR2RML.JSONLD (AshR2RML v26.8.22)

Copy Markdown View Source

JSON-LD 1.1 projection and ingestion through JSON-LD.ex.

JSON-LD and Turtle are alternate RDF serializations feeding the same SHACL admission boundary. Remote contexts are refused by default because ambient network context resolution would make compilation depend on mutable external state without a receipt.

Summary

Functions

compact(input, context, opts \\ [])

@spec compact(String.t() | map() | list(), map() | String.t(), keyword()) ::
  {:ok, map()} | {:error, AshR2RML.Refusal.t()}

compile(input, opts \\ [])

@spec compile(
  String.t() | map() | list(),
  keyword()
) :: {:ok, AshR2RML.Mapping.Bundle.t()} | {:error, term()}

encode_rdf(data, opts \\ [])

@spec encode_rdf(
  RDF.Data.Source.t(),
  keyword()
) :: {:ok, String.t()} | {:error, AshR2RML.Refusal.t()}

expand(input, opts \\ [])

@spec expand(
  String.t() | map() | list(),
  keyword()
) :: {:ok, term()} | {:error, AshR2RML.Refusal.t()}

ingest(input, opts \\ [])

@spec ingest(
  String.t() | map() | list(),
  keyword()
) :: {:ok, map()} | {:error, term()}

to_rdf(input, opts \\ [])

@spec to_rdf(
  String.t() | map() | list(),
  keyword()
) :: {:ok, RDF.Dataset.t()} | {:error, AshR2RML.Refusal.t()}