[Cubicweb] hypermedia API talk at EuroPython 2014

Jean-Baptiste Pressac Jean-Baptiste.Pressac at univ-brest.fr
Wed Jul 23 10:19:04 CEST 2014

Well, your mail made me discover hypermedia APIs 
<https://coderwall.com/p/xvzu-g>, so I am not an expert on the subject, 
but it seems that some articles on the Web seems to equally compare 
JSON-LD and HAL has both ways to support links in JSON :
- On choosing a hypermedia type for your API - HAL, JSON-LD, 
Collection+JSON, SIREN, Oh My! 
- Linking in JSON <https://www.mnot.net/blog/2011/11/25/linking_in_json>
- On APIs, JSON, Linked Data, attitude and opportunities 

Those articles and the sentence "HAL provides a set of conventions for 
expressing hyperlinks in either JSON or XML." in the HAL specification 
<http://stateless.co/hal_specification.html> make me think that HAL is 
"just" a convention to add (ressource ?) links to JSON. HAL does not 
seems to describe links to create/update/delete the ressources, it's 
just a hypermedia type <http://amundsen.com/hypermedia/> (like HTML).

Concerning hypermedia APIs with JSON-LD, you should consider Hydra 
<http://json-ld.org/learn.html> of Markus Lanthaler.

Other potentialy interesting ressources :
- Hyper­me­dia, quelques recherches pour JSON 
- That's not Hypermedia! <http://amundsen.com/blog/archives/1149>

Jean-Baptiste Pressac

Traitement et analyse de bases de données
Production et diffusion de corpus numérisés

Centre de Recherche Bretonne et Celtique
Unité mixte de service (UMS) 3554
20 rue Duquesne
CS 93837
29238 Brest cedex 3

tel : +33 (0)2 98 01 68 95
fax : +33 (0)2 98 01 63 93

Le 23/07/2014 07:53, Nicolas Chauvat a écrit :
> Hi Jean-Baptiste,
> On Tue, Jul 22, 2014 at 05:11:47PM +0200, Jean-Baptiste Pressac wrote:
>> And why not JSON-LD
>> <http://www.reddit.com/r/javascript/comments/1j08ov/hal_vs_jsonld>
>> instead of HAL ?
> Thank you for the feedback.
> As I said, I wish I had more time to research this topic properly and
> write up a summary. I knew about JSON-LD but it did not come to my
> mind when I wrote my email.
> JSON-LD <http://www.w3.org/TR/json-ld/> is now a W3C recommendation,
> but I have been seeing it as a way to publish data.
> The presentation I was citing was using HAL to describe an API using
> hypermedia. Basically, you get data *and* links to
> create/update/delete related data. Knowing the root url (entry point)
> and the vocabulary used to describe the data/actions in that domain
> you just crawl your way through and will never need to build urls
> after reading the documentation for the API (see REST in Roy
> Fielding's thesis).
> I have not (yet) read all the references mentionned in the first
> answer on reddit. Would they explain how JSON-LD is related to
> hypermedia APIs and not just publishing linked data as JSON?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20140723/6d2bf990/attachment-0186.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Jean-Baptiste_Pressac.vcf
Type: text/x-vcard
Size: 576 bytes
Desc: not available
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20140723/6d2bf990/attachment-0273.vcf>

More information about the Cubicweb mailing list