Fwd: JSON-LD errors in LDP spec

In addition to the JSON-LD problem noted in the mail to public-ldp-wg@w3.org, the spec says to send comments to a restricted list; this should be updated to public-ldp@w3.org.

Gregg Kellogg
gregg@greggkellogg.net

Begin forwarded message:

> From: public-ldp-wg-request@w3.org
> Subject: Re: JSON-LD errors in LDP spec
> Date: July 4, 2014 at 3:31:08 PM PDT
> To: gregg@greggkellogg.net
> 
> Posting to this mailing list is restricted to members of the
> Linked Data Platform (LDP) Working Group.
> 
> If you are not a member of this group, please send any comments
> to public-ldp@w3.org.
> 
> If you are a member of the group, please verify that you are posting
> from the correct address. If you need to update the email address
> associated with your W3C account, you may do so using
> https://www.w3.org/Systems/db/userInfo
> 
> A Twitter user noticed a problem with some of the JSON-LD published in =
> <https://dvcs.w3.org/hg/ldpwg/raw-file/default/ldp-primer/ldp-primer.html#=
> navandret>. In particular, the example in section 3.1 is invalid JSON. =
> Even when correcting, it does not evaluate using =
> http://json-ld.org/playground, probably because there are missing CORS =
> headers on your context. Also note, that the context either needs to be =
> repeated for each element, included in a surrounding element, or use an =
> embedded form for the content.
> 
> An alternative version of this example could be:
> 
> {
>  "@id": "",
>  "@type": [ "ldp:DirectContainer", "bt:Product"],
>  "@context": =
> "https://dvcs.w3.org/hg/ldpwg/raw-file/default/ldp-primer/context.json",
>  "dc:title": "Product description of LDP Demo product which is also an =
> LDP-DC",
>  "ldp:contains": [{ "@id": "bug3"}, { "@id": "bug4"}],
>  "ldp:hasMemberRelation": "bt:hasBug",
>  "ldp:membershipResource": {
>      "@id": "#it",
>      "@type": "bt:Product",
>      "dc:title": "LDP Demo",
>      "bt:hasBug": [{ "@id": "bug3"}, { "@id": "bug4"} ]
>  }
> }
> 
> Example 28 in section 3.2 , Example 32 in section 3.3, Example 34 in =
> 4.1, Example 35 and 37 in 4.2 all have similar problems.
> 
> I'd recommend validating examples as part of the publication process.
> 
> Gregg Kellogg
> gregg@greggkellogg.net
> 
> 

Received on Friday, 4 July 2014 22:33:28 UTC