W3C home > Mailing lists > Public > public-json-ld-wg@w3.org > September 2019

possible bug in the distiller or the API spec ?

From: Pierre-Antoine Champin <pierre-antoine.champin@univ-lyon1.fr>
Date: Mon, 16 Sep 2019 20:18:17 +0200
Message-ID: <CA+OuRR-BGUJC7-2SwHQLfB4t1SarkW4=inVS=qzoAfd3o-oLTw@mail.gmail.com>
To: W3C JSON-LD Working Group <public-json-ld-wg@w3.org>
Hi all,

when converting the following to RDF:

  "@context": {
    "@version": 1.1
  "http://example.org/prop": {
    "@value": "hello",
    "@type": "@json"

the Ruby distiller gives this result

_:b0 <http://example.org/prop> "hello"^^<
http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .

which must be wrong because the literal does not parse correctly to JSON.
It seems to me that it should instead be

_:b0 <http://example.org/prop> "\"hello\""^^<
http://www.w3.org/1999/02/22-rdf-syntax-ns#JSON> .

I had a (very) quick look at the API spec but could not find the related
part. If this is what the spec says, it should probably be fixed?
Eitherway, should I propose a new unit test to checj this case?

Received on Monday, 16 September 2019 18:18:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:15:27 UTC