View Source Grax.Callbacks behaviour (Grax v0.5.0)

Summary

Callbacks

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