Gno.Store.Adapters.Oxigraph (Gno v0.1.0)

Copy Markdown View Source

A Gno.Store.Adapter implementation for Oxigraph.

Manifest Configuration

@prefix gno:  <http://gno.app/> .
@prefix gnoa: <http://gno.app/ns/adapter/> .

<Oxigraph> a gnoa:Oxigraph
    ; gno:storeEndpointScheme "http"     # optional (default: "http")
    ; gno:storeEndpointHost "localhost"  # optional (default: "localhost")
    ; gno:storeEndpointPort 7878         # optional (default: 7878)
.

Summary

Types

t()

@type t() :: %Gno.Store.Adapters.Oxigraph{
  __additional_statements__: term(),
  __id__: term(),
  default_graph_semantics_config: term(),
  graph_store_endpoint: term(),
  host: term(),
  port: term(),
  query_endpoint: term(),
  scheme: term(),
  update_endpoint: term(),
  userinfo: term()
}

Functions

build(id)

build(id, initial)

build!(id)

build!(id, initial)

build_id(attributes)

from(value)

@spec from(Grax.Schema.t()) :: {:ok, t()} | {:error, any()}

from!(value)

@spec from!(Grax.Schema.t()) :: t()

graph_semantics(adapter)

Returns the graph semantics for a specific adapter instance.

Checks the default_graph_semantics_config manifest property first, falling back to default_graph_semantics/0.

load(graph, id, opts \\ [])

@spec load(
  RDF.Graph.t() | RDF.Description.t(),
  RDF.IRI.coercible() | RDF.BlankNode.t(),
  opts :: keyword()
) :: {:ok, t()} | {:error, any()}

load!(graph, id, opts \\ [])

@spec load!(
  RDF.Graph.t() | RDF.Description.t(),
  RDF.IRI.coercible() | RDF.BlankNode.t(),
  opts :: keyword()
) :: t()