core: fix bug in Inspect implementation for RDF.Literal

This commit is contained in:
Marcel Otto 2017-05-27 21:38:18 +02:00
parent 4e523b1bf1
commit 0581a45820

View file

@ -54,7 +54,7 @@ defimpl Inspect, for: RDF.Literal do
end
def inspect(%RDF.Literal{value: value, datatype: datatype}, _opts) do
if datatype == RDF.NS.XSD.string do
if datatype == RDF.Datatype.NS.XSD.string do
~s[~L"#{value}"]
else
"%RDF.Literal{value: #{inspect value}, datatype: ~I<#{datatype}>}"