json_ld: RDF to JSON-LD serialization

This commit is contained in:
Marcel Otto 2017-05-20 14:47:18 +02:00
parent 7a2c165bbb
commit e01d641290

View file

@ -313,6 +313,12 @@ defmodule RDF.Dataset do
do: Map.get(graphs, nil, Graph.new)
@doc """
The set of all graphs.
"""
def graphs(%RDF.Dataset{graphs: graphs}), do: graphs
@doc """
Gets and updates the graph with the given name, in a single pass.