JSON-LD for RESTful services

13,972
-1

Published on

Presentation of the paper "On Using JSON-LD to Create Evolvable RESTful Services" at the 3rd International Workshop on RESTful Design (WS-REST 2012) at WWW2012 in Lyon, France

Published in: Technology, Education, Business
6 Comments
33 Likes
Statistics
Notes
No Downloads
Views
Total Views
13,972
On Slideshare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
1
Comments
6
Likes
33
Embeds 0
No embeds

No notes for slide

JSON-LD for RESTful services

  1. 1. JSON-LDfor RESTful ServicesMarkus LanthalerGraz University of Technology
  2. 2. Web APIs are becoming a must-have
  3. 3. - Layered system
  4. 4. Semaphobia!?
  5. 5. Linked Data Graph
  6. 6. Example Jane Doe
  7. 7. http://example.com/persons/{id}{ "id": "mlanthaler", "name": "Markus Lanthaler", "title": { "de": "Dipl.Ing.", "en": "MSc" }, "workHomepage": "http://www.tugraz.at", "knows": [ { "id": "johndoe", "name": "John Doe" }, { "id": "janedoe", "name": "Jane Doe" } ]}
  8. 8. { "@id": "mlanthaler", "name": "Markus Lanthaler", "title": [ { "@language": "de", "@value": "Dipl.Ing." }, { "@language": "en", "@value": "MSc" } ], "workHomepage": "http://www.tugraz.at", "knows": [ { "@id": "johndoe", "name": "John Doe" }, { "@id": "janedoe", "name": "Jane Doe" } ]} { "@context": { "foaf": "http://xmlns.com/foaf/0.1/", "name": "foaf:name", "title": "foaf:title", "workHomepage": { "@id": "foaf:workplaceHomepage", "@type": "@id" }, "knows": "foaf:knows" } }
  9. 9. Link: </context.jsonld>; rel="describedby"{ "id": "mlanthaler", "name": "Markus Lanthaler", "title_de": "Dipl.Ing.", "title_en": "MSc", "homepage": "http://www.tugraz.at", "knows": [ { "id": "johndoe", "name": "John Doe" }, { "id": "janedoe", "name": "Jane Doe" } ]}{ "@context": { "foaf": "http://xmlns.com/foaf/0.1/", "name": "foaf:name", "title_de": { "@id": "foaf:title", "@language": "de" }, "title_en": { "@id": "foaf:title", "@language": "en" }, "homepage": { "@id": "foaf:workplaceHomepage", "@type": "@id" }, "knows": "foaf:knows", "id": "@id" }}
  10. 10. @context @id @language @list @set@value @type @container @graph
  11. 11. kTBS
  12. 12. Thank You© 2011, Markus Lanthaler. Some Rights Reserved.http://creativecommons.org/licenses/by-nc-sa/3.0/
  13. 13. Questions?Markus Lanthaler @MarkusLanthalerMarkus.Lanthaler@student.TUGraz.at http://www.slideshare.net/lanthaler
  14. 14. Image Credits(1) http://www.flickr.com/photos/bestrated1/49371264/(2) http://www.flickr.com/photos/johnmcnab/3759095224/(3) http://www.flickr.com/photos/alexdram/3095419858/(4) Adapted from: http://www.flickr.com/photos/elektronaut/243067805/(7) http://en.wikipedia.org/wiki/The_Scream

×