Grax (Grax v0.3.2) View Source

The Grax API.

For now there is no API documentation. Read about the API in the guide here.

Link to this section Summary

Link to this section Functions

Link to this function

add_additional_statements(mapping, predications)

View Source

Specs

add_additional_statements(Grax.Schema.t(), map()) :: Grax.Schema.t()
Link to this function

additional_statements(mapping)

View Source

Specs

additional_statements(Grax.Schema.t()) :: RDF.Description.t()
Link to this function

build(mod, id_schema, initial)

View Source
Link to this function

build!(mod, id, initial)

View Source
Link to this function

clear_additional_statements(mapping, opts \\ [])

View Source

Specs

clear_additional_statements(Grax.Schema.t(), opts :: keyword()) ::
  Grax.Schema.t()
Link to this function

id(id_schema, attributes)

View Source
Link to this function

id_schema(schema, initial)

View Source
Link to this function

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

View Source
Link to this function

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

View Source
Link to this function

normalize_preload_opt(depth, _)

View Source
Link to this function

preload(mapping, graph, opts \\ [])

View Source
Link to this function

preload!(mapping, graph, opts \\ [])

View Source
Link to this function

preloaded?(mapping, property)

View Source
Link to this function

put(mapping, property, predications)

View Source
Link to this function

put!(mapping, property, predications)

View Source
Link to this function

put_additional_statements(mapping, predications)

View Source

Specs

put_additional_statements(Grax.Schema.t(), map()) :: Grax.Schema.t()
Link to this function

setup_depth_preload_opts(opts)

View Source
Link to this function

to_rdf(mapping, opts \\ [])

View Source

Specs

to_rdf(Grax.Schema.t(), opts :: keyword()) ::
  {:ok, RDF.Graph.t()} | {:error, any()}
Link to this function

to_rdf!(mapping, opts \\ [])

View Source

Specs

to_rdf!(Grax.Schema.t(), opts :: keyword()) :: RDF.Graph.t()
Link to this function

valid?(mapping, opts \\ [])

View Source

Specs

valid?(Grax.Schema.t(), opts :: keyword()) :: boolean()
Link to this function

validate(mapping, opts \\ [])

View Source

Specs

validate(Grax.Schema.t(), opts :: keyword()) ::
  {:ok, Grax.Schema.t()} | {:error, Grax.ValidationError.t()}
Link to this function

validate!(mapping, opts \\ [])

View Source

Specs

validate!(Grax.Schema.t(), opts :: keyword()) :: Grax.Schema.t()