W3C home > Mailing lists > Public > public-linked-json@w3.org > October 2013

Bug with @reverse and blank nodes?

From: Pierre-Antoine Champin <pierre-antoine.champin@liris.cnrs.fr>
Date: Sun, 20 Oct 2013 11:21:04 +0200
Message-ID: <CA+OuRR-vJRLpaW-R37RV5+OqeTNa31tZps9skCt77jrfLp-_uw@mail.gmail.com>
To: "public-linked-json@w3.org" <public-linked-json@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:39 UTC