Add docs on RDF.Graph.build/2
This commit is contained in:
parent
fd36ea15ed
commit
e1a025f722
1 changed files with 7 additions and 0 deletions
|
@ -137,6 +137,13 @@ defmodule RDF.Graph do
|
||||||
defp init(graph, fun, opts) when is_function(fun), do: add(graph, fun.(), opts)
|
defp init(graph, fun, opts) when is_function(fun), do: add(graph, fun.(), opts)
|
||||||
defp init(graph, data, opts), do: add(graph, data, opts)
|
defp init(graph, data, opts), do: add(graph, data, opts)
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Builds an `RDF.Graph` from a description of its content in a graph DSL.
|
||||||
|
|
||||||
|
All available opts of `new/2` are also supported here.
|
||||||
|
|
||||||
|
For a description of the DSL see [this guide](https://rdf-elixir.dev/rdf-ex/description-and-graph-dsl.html).
|
||||||
|
"""
|
||||||
defmacro build(opts \\ [], do: block) do
|
defmacro build(opts \\ [], do: block) do
|
||||||
Builder.build(block, opts)
|
Builder.build(block, opts)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue