RDF.Description.values
You're seeing just the function
values
, go back to RDF.Description module for more information.
Specs
Returns a map of the native Elixir values of a RDF.Description
.
The subject is not part of the result. It can be converted separately with
RDF.Term.value/1
, or, if you want the subject in an outer map, just put the
the description in a graph and use RDF.Graph.values/2
.
When a :context
option is given with a RDF.PropertyMap
, predicates will
be mapped to the terms defined in the RDF.PropertyMap
, if present.
Examples
iex> RDF.Description.new(~I<http://example.com/S>, init: {~I<http://example.com/p>, ~L"Foo"})
...> |> RDF.Description.values()
%{"http://example.com/p" => ["Foo"]}
iex> RDF.Description.new(~I<http://example.com/S>, init: {~I<http://example.com/p>, ~L"Foo"})
...> |> RDF.Description.values(context: %{p: ~I<http://example.com/p>})
%{p: ["Foo"]}