- From: Pierre-Antoine Champin <pierre-antoine.champin@univ-lyon1.fr>
- Date: Mon, 16 Sep 2019 20:18:17 +0200
- To: W3C JSON-LD Working Group <public-json-ld-wg@w3.org>
Received on Monday, 16 September 2019 18:18:58 UTC
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?
best
Received on Monday, 16 September 2019 18:18:58 UTC