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

Copy Markdown View Source

Abstract base class for DCATR.Graphs containing DCAT-R configuration and catalog metadata.

Manifest graphs carry the configuration that defines the repository and service structure. DCAT-R depends on this structure for proper operation. Two concrete subtypes exist:

Summary

Types

t()

@type t() :: %DCATR.ManifestGraph{__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 \\ [])