JSON Linked Data JSONLD Notes from paper On

  • Slides: 5
Download presentation
JSON Linked Data (JSON-LD) Notes from paper “On Using JSON-LD to Create Evolvable RESTful

JSON Linked Data (JSON-LD) Notes from paper “On Using JSON-LD to Create Evolvable RESTful Services” by Lanthaler and Gutl 95 -733 Internet Technologies 1

Support • W 3 C Recommendation 16 January 2014 • Supported by Google and

Support • W 3 C Recommendation 16 January 2014 • Supported by Google and Facebook • Supported by Google for Product and Review Rich Snippits (may be included in an HTML script tag) • Returned by queries on Google’s Knowledge graph. See: • https: //developers. google. com/knowledge-graph/ • https: //developers. google. com/knowledgegraph/reference/rest/v 1/ 95 -733 Internet Technologies 2

Turtle Example 1 @prefix rdf: <http: //www. w 3. org/1999/02/22 - rdf-syntax-ns#>. 2 @prefix

Turtle Example 1 @prefix rdf: <http: //www. w 3. org/1999/02/22 - rdf-syntax-ns#>. 2 @prefix foaf: <http: //xmlns. com/foaf/0. 1/>. 3 4 <http: //me. markus-lanthaler. com> 5 rdf: type foaf: Person ; 6 foaf: title 7 "Dipl. Ing. "@de , 8 "MSc"@en ; 9 foaf: name "Markus Lanthaler" ; 10 foaf: workplace. Homepage 11 <http: //www. tugraz. at/>. 95 -733 Internet Technologies 3

JSON-LD Expanded form 1[{ 2 "@id": "http: //me. markus-lanthaler. com", 3 "@type": "http: //xmlns.

JSON-LD Expanded form 1[{ 2 "@id": "http: //me. markus-lanthaler. com", 3 "@type": "http: //xmlns. com/foaf/0. 1/Person", 4 "http: //xmlns. com/foaf/0. 1/title": [ 5 {"@value": "Dipl. Ing. ", "@language": "de"}, 6 {"@value": "MSc", "@language": "en"} 7 ], 8 "http: //xmlns. com/foaf/0. 1/name": 9 [ "Markus Lanthaler" ], 10 "http: //xmlns. com/foaf/0. 1/ ↵ workplace. Homepage": 11 [ { "@id": "http: //www. tugraz. at/" } ] 12 } ] 95 -733 Internet Technologies 4

JSON-LD Compact Form 1{ 2 3 4 5 6 7 8 9 10 11

JSON-LD Compact Form 1{ 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 } "@context": { "foaf": "http: //xmlns. com/foaf/0. 1/", "title": "foaf: title", "name": "foaf: name", "homepage": { "@id": "foaf: workplace. Homepage", "@type": "@id" } }, "@id": "http: //me. markus-lanthaler. com", "@type": "foaf: Person", "title": [ {"@value": "Dipl. Ing. ", "@language": "de"}, {"@value": "MSc", "@language": "en"} ], "name": "Markus Lanthaler", "homepage": "http: //www. tugraz. at/" 95 -733 Internet Technologies 5