core: Inspect protocol implementation for RDF.BlankNode
This commit is contained in:
parent
34f6a0e28b
commit
229f42ee3c
1 changed files with 6 additions and 0 deletions
|
@ -37,6 +37,12 @@ defmodule RDF.InspectHelper do
|
|||
end
|
||||
end
|
||||
|
||||
defimpl Inspect, for: RDF.BlankNode do
|
||||
def inspect(%RDF.BlankNode{id: id}, _opts) do
|
||||
"~B<#{id}>"
|
||||
end
|
||||
end
|
||||
|
||||
defimpl Inspect, for: RDF.Literal do
|
||||
def inspect(%RDF.Literal{value: value, language: language}, _opts) when not is_nil(language) do
|
||||
~s[~L"#{value}"#{language}]
|
||||
|
|
Loading…
Reference in a new issue