core: RDF.Dataset.graphs returns a list of graphs

instead of the map from graph names to graphs
This commit is contained in:
Marcel Otto 2017-06-05 02:41:44 +02:00
parent 0f517d4195
commit 0e8c15addf

View file

@ -39,9 +39,9 @@ defmodule JSON.LD.Encoder do
with options = JSON.LD.Options.new(options) do
graph_map =
Enum.reduce RDF.Dataset.graphs(dataset), %{},
fn ({name, graph}, graph_map) ->
fn graph, graph_map ->
# 3.1)
name = to_string(name || "@default")
name = to_string(graph.name || "@default")
# 3.3)
graph_map =