Bug with @reverse and blank nodes?

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