- From: Pierre-Antoine Champin <pierre-antoine.champin@liris.cnrs.fr>
- Date: Sun, 20 Oct 2013 11:21:04 +0200
- To: "public-linked-json@w3.org" <public-linked-json@w3.org>
Received on Sunday, 20 October 2013 09:21:31 UTC
Hi,
I add a surprise today using @reverse with blank node:
{
"@context": {
"foo": "http://example.org/foo",
"bar": { "@reverse": "http://example.org/", "@type": "@id" }
},
"foo": "Foo",
"bar": "http://example.org/origin"
}
produces the following graph:
<http://example.org/origin> <http://example.org/> _:b1 .
_:b0 <http://example.org/foo> "Foo" .
with *two different bnodes*!...
I have the same behaviour with PyLD and the online playground, so may be
this is a deliberate feature of the JSON-LD algorithm (I didn't go and
check the API document, I admit...). But if it is so there should be a big
warning sign in the syntax document, because this is *very*
counter-intuitive.
pa
Received on Sunday, 20 October 2013 09:21:31 UTC