View Source Ontogen.Repository (Ontogen v0.1.1)

Summary

Types

@type t() :: %Ontogen.Repository{
  __additional_statements__: term(),
  __id__: term(),
  dataset: term(),
  head: term(),
  history: term()
}

Functions

Link to this function

dataset_graph_id(repository)

View Source
Link to this function

deref!(ref, graph, opts \\ [])

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

history_graph_id(repository)

View Source
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()
Link to this function

set_head(repository, commit)

View Source
Link to this function

set_head!(repository, commit)

View Source
Link to this function

this!(graph, opts \\ [])

View Source