W3C home > Mailing lists > Public > public-annotation@w3.org > July 2015

Re: [web-annotation] Yet Another JSON-LD the protocol spec to use?

From: Rob Sanderson via GitHub <sysbot+gh@w3.org>
Date: Mon, 13 Jul 2015 17:08:07 +0000
To: public-annotation@w3.org
Message-ID: <issue_comment.created-120995060-1436807285-sysbot+gh@w3.org>
> Do not understand this last point. If the returned JSON payload does
 not include `@context`, it is easier on pure JSON based 
implementations, while JSON-LD implementations go on unchanged because
 they get the `@context` through the header. I do not think it is the 
same.

It involves more work on the server side to add the header, more work 
on the JSON-LD client side to retrieve the header, and doesn't save 
any work on the JSON client side, as it must just ignore the context 
key that it doesn't understand anyway.  No one is going to write code 
looking for structure that they then can't process.  There's no 
savings in transferred bytes, as the context is there in the HTTP 
headers, just much less accessible to systems that do want it.

The header option is designed to allow previous non-json-ld systems to
 assert their context without changing existing representations.


-- 
GitHub Notif of comment by azaroth42
See 
https://github.com/w3c/web-annotation/issues/52#issuecomment-120995060
Received on Monday, 13 July 2015 17:08:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:54:37 UTC