W3C home > Mailing lists > Public > public-rdf-comments@w3.org > November 2013

Error in RDF/JSON example 7

From: Gregg Kellogg <gregg@greggkellogg.net>
Date: Wed, 13 Nov 2013 17:44:33 -0800
Message-Id: <1D6C2417-BB42-464B-BE87-36DF59B51154@greggkellogg.net>
To: public-rdf-comments Comments <public-rdf-comments@w3.org>
Example 7 [1] isn't valid JSON:

[[[
{
  "http://example.org/about" : {
      "http://purl.org/dc/terms/creator" : [ { "value" : "_:anna", 
                                               "type" : "bnode" } ] ,
  "_:anna" : {
      "http://xmlns.com/foaf/0.1/name" : [ { "value" : "Anna", 
                                             "type" : "literal" } ] 
  }
} 
]]]

I think it should be the following:

[[[
{
  "http://example.org/about" : {
      "http://purl.org/dc/terms/creator" : [ { "value" : "_:anna",   "type" : "bnode" } ]
  },
  "_:anna" : {
      "http://xmlns.com/foaf/0.1/name" : [ { "value" : "Anna",  "type" : "literal" } ] 
  }
}]
]]

Gregg Kellogg
gregg@greggkellogg.net

[1] http://www.w3.org/TR/2013/NOTE-rdf-json-20131107/#sec-examples
Received on Thursday, 14 November 2013 01:45:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:29:58 UTC