AshR2RML.SPARQL.Protocol (AshR2RML v26.8.22)

Copy Markdown View Source

Read-only W3C SPARQL Protocol execution through SPARQL.Client.

SPARQL.Client also implements update operations, but this module deliberately exposes queries only. Verification capability never manufactures remote mutation authority.

Summary

Functions

Injected client path for deterministic unit tests. Never a remote-query witness.

Functions

query(endpoint, query, opts \\ [])

@spec query(String.t(), String.t() | AshR2RML.SPARQL.Query.t(), keyword()) ::
  {:ok, AshR2RML.SPARQL.Observation.t()} | {:error, term()}

query_with(endpoint, query, opts, client_fun)

@spec query_with(
  String.t(),
  String.t() | AshR2RML.SPARQL.Query.t(),
  keyword(),
  function()
) ::
  {:ok, AshR2RML.SPARQL.Observation.t()} | {:error, term()}

Injected client path for deterministic unit tests. Never a remote-query witness.