DCATR.SystemGraph (DCAT-R.ex v0.1.0)

Copy Markdown View Source

Base class for DCATR.Graphs containing application-specific operational data.

System graphs store infrastructure that supports service operations but is opaque to DCAT-R itself. Examples include version history, provenance records, inference results, shared indexes, caches, and logs.

System graphs can be deployed in two modes:

  • Distributed (in DCATR.Repository): Replicated with the repository (e.g., history graphs, provenance, shared indexes)
  • Local (in DCATR.ServiceData): Instance-specific and never distributed (e.g., caches, logs, local indexes)

Summary

Types

t()

@type t() :: %DCATR.SystemGraph{__additional_statements__: term(), __id__: 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()

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()

new(id, attrs \\ [])

new!(id, attrs \\ [])