Adapt to rename of RDF.Literal.datatype/1

This commit is contained in:
Marcel Otto 2020-05-18 02:00:43 +02:00
parent 33946bae8f
commit 81a2a3f281

View file

@ -301,7 +301,7 @@ defmodule JSON.LD.Encoder do
{converted_value, type, result}
end
true ->
{converted_value, Literal.datatype(literal), result}
{converted_value, Literal.datatype_id(literal), result}
end
else
cond do
@ -310,7 +310,7 @@ defmodule JSON.LD.Encoder do
datatype == XSD.String ->
{converted_value, type, result}
true ->
{Literal.lexical(literal), Literal.datatype(literal), result}
{Literal.lexical(literal), Literal.datatype_id(literal), result}
end
end