View Source DCAT.Role (DCAT.ex v0.1.0)

A Grax schema struct for dcat:Roles.

A role is the function of a resource or agent with respect to another resource, in the context of resource attribution or resource relationships.

See https://www.w3.org/TR/vocab-dcat-3/#Class:Role.

Summary

Types

@type t() :: %DCAT.Role{
  __additional_statements__: term(),
  __id__: term(),
  alt_label: term(),
  broad_matches: term(),
  broader: term(),
  change_note: term(),
  close_matches: term(),
  definition: term(),
  editorial_note: term(),
  exact_matches: term(),
  example: term(),
  hidden_label: term(),
  history_note: term(),
  in_schemes: term(),
  narrow_matches: term(),
  narrower: term(),
  notation: term(),
  note: term(),
  pref_label: term(),
  related: term(),
  related_matches: term(),
  scope_note: term(),
  top_concept_of: term()
}

Functions

@spec from(Grax.Schema.t()) :: {:ok, t()} | {:error, any()}
@spec from!(Grax.Schema.t()) :: t()
Link to this function

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

View Source
@spec load(
  RDF.Graph.t() | RDF.Description.t(),
  RDF.IRI.coercible() | RDF.BlankNode.t(),
  opts :: keyword()
) :: {:ok, t()} | {:error, any()}
Link to this function

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

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