AshR2RML.SPARQL.Query (AshR2RML v26.8.22)

Copy Markdown View Source

Admitted SPARQL query identity.

Parsing is delegated to SPARQL.ex. The receipt identity covers the exact lexical query supplied by the caller; it is not a claim of canonical SPARQL algebra equivalence.

Summary

Types

t()

@type t() :: %AshR2RML.SPARQL.Query{
  form: atom(),
  parsed: SPARQL.Query.t(),
  sha256: String.t(),
  source: String.t()
}

Functions

admit(parsed)

@spec admit(String.t() | SPARQL.Query.t()) ::
  {:ok, t()} | {:error, AshR2RML.Refusal.t()}

admit(parsed, source)

load_file(file_path, opts \\ [])

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