View Source PROV.Agent (PROV.ex v0.1.0)

A Grax schema struct for prov:Agents.

See http://www.w3.org/TR/prov-o/#Agent.

Summary

Types

@type t() :: %PROV.Agent{
  __additional_statements__: term(),
  __id__: term(),
  acted_on_behalf_of: term(),
  at_location: term(),
  qualified_delegation: term(),
  qualified_influence: term(),
  was_influenced_by: 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()