Grax.Callbacks behaviour (Grax v0.6.0)

View Source

Summary

Callbacks

on_load(t, arg2, opts)

@callback on_load(Grax.Schema.t(), RDF.Graph.t() | RDF.Description.t(), opts :: keyword()) ::
  {:ok, Grax.Schema.t()} | {:error, any()}

on_to_rdf(t, t, opts)

@callback on_to_rdf(Grax.Schema.t(), RDF.Graph.t(), opts :: keyword()) ::
  {:ok, RDF.Graph.t()} | {:error, any()}