A Deep Dive into JSON-LD and Hydra

A Deep Dive into JSON-LD and Hydra
{
"id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
}
}
http://example.com/events/cake-apicon14
http://example.com/events/cake-apicon14
{
69 64: 63 61 6B 65 2D 61 70 69 63 6F 6E 31 34,
6E 61 6D 65: 43 41 4B 45 20 6C 69 76 65 20 69 6E 20 63 …
73 74 61 72 74 44 61 74 65: 32 30 31 34 2D 30 35 2D 32 …
65 6E 64 44 61 74 65: 32 30 31 34 2D 30 35 2D 32 38 54 …
6C 6F 63 61 74 69 6F 6E: {
6E 61 6D 65: 48 69 6C 74 6F 6E 20 53 61 6E 20 46 72 6…
61 64 64 72 65 73 73: 33 33 33 20 4F 27 46 61 72 72 6…
}
}
http://example.com/events/cake-apicon14
{
"id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
}
}
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
http://example.com/events/cake-apicon14
{
"id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
}
}
http://example.com/events/cake-apicon14
{
"@context": {
"name": "http://schema.org/name",
"startDate": "http://schema.org/startDate",
"endDate": "http://schema.org/endDate",
...
},
"id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
}
}
http://example.com/events/cake-apicon14
{
"@context": {
"@vocab": "http://schema.org/"
},
"id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
}
}
http://example.com/events/cake-apicon14
{
"@context": {
"@vocab": "http://schema.org/"
},
"id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
}
}
http://example.com/events/cake-apicon14
{
"@context": {
"@vocab": "http://schema.org/"
},
"@id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
}
}
http://example.com/events/cake-apicon14
{
"@context": {
"@vocab": "http://schema.org/"
},
"@id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
},
"performer": { "@id": "/bands/cake" }
}
http://example.com/events/cake-apicon14
{
"@context": {
"@vocab": "http://schema.org/",
"performer": { "@type": "@id" }
},
"@id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
},
"performer": "/bands/cake"
}
http://example.com/events/cake-apicon14
{
"@context": {
"@vocab": "http://schema.org/",
"performer": { "@type": "@id" },
"startDate": { "@type": "http://schema.org/DateTime" }
},
"@id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
},
"performer": "/bands/cake"
}
http://example.com/events/cake-apicon14
{
"@context": {
"@vocab": "http://schema.org/",
"performer": { "@type": "@id" },
"startDate": { "@type": "DateTime" }
},
"@id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
},
"performer": "/bands/cake"
}
http://example.com/events/cake-apicon14
{
"@context": {
"@vocab": "http://schema.org/",
"performer": { "@type": "@id" },
"startDate": { "@type": "DateTime" }
},
"@id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"@type": "Place",
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
},
"performer": "/bands/cake"
}
http://example.com/events/cake-apicon14
{
"@context": {
"@vocab": "http://schema.org/",
"performer": { "@type": "@id" },
"startDate": { "@type": "DateTime" },
"type": "@type"
},
"@id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"type": "Place",
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
},
"performer": "/bands/cake"
}
http://example.com/events/cake-apicon14
{
"@context": "/contexts/event.jsonld",
"id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"type": "Place",
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
},
"performer": "/bands/cake"
}
http://example.com/events/cake-apicon14
{
"id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"type": "Place",
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
},
"performer": "/bands/cake"
}
http://example.com/events/cake-apicon14
HTTP/1.1 200 OK
Content-Type: application/json
Link: </contexts/event.jsonld>;
rel="http://www.w3.org/ns/json-ld#context";
type="application/ld+json"
{
"id": "cake-apicon14",
"name": "CAKE live in concert at APIcon 2014",
"startDate": "2014-05-28T20:00-07",
"endDate": "2014-05-28T23:00-07",
"location": {
"type": "Place",
"name": "Hilton San Francisco Union Square",
"address": "333 O'Farrell St, San Francisco, CA 94102"
},
"performer": "/bands/cake"
}
A Deep Dive into JSON-LD and Hydra
<script type="application/ld+json">
...
</script>
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
http://example.com/events/
{
"@id": "/events/",
"@type": "Collection",
"member": [ ... ],
...
"operation": {
"@type": "http://schema.org/AddAction",
}
}
{
"@id": "Event",
"@type": "Class",
"supportedProperty": {
"property": "name",
"required": true
}
}
http://example.com/events/
{
"@id": "/events/",
"@type": "Collection",
"member": [ ... ],
...
"operation": {
"@type": "AddAction",
"method": "POST",
"expects": "Event"
}
}
{
"@id": "Event",
"@type": "Class",
"supportedProperty": {
"property": "name",
"required": true
}
}
http://example.com/events/california/
{
"@id": "/events/california/",
"@type": "Collection",
"member": [ ... ],
...
"operation": {
"@type": "AddAction",
"method": "POST",
"expects": "Event"
}
}
http://example.com/events/california/
{
"@id": "/events/california/",
"@type": "Collection",
"member": [ ... ],
...
}
{
"@type": "AddAction",
"method": "POST",
"expects": "Event"
}
{
"@id": "EventCollection",
"@type": "Class",
"subClassOf": "Collection",
"supportedOperation": {
"@type": "AddAction",
"method": "POST",
"expects": "Event"
}
}
http://example.com/events/california/
{
"@id": "/events/california/",
"@type": "EventCollection",
"member": [ ... ],
...
}
{
"@type": "AddAction",
"method": "POST",
"expects": "Event"
}
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
A Deep Dive into JSON-LD and Hydra
1 of 43

More Related Content

What's hot(20)

Node.js  ExpressNode.js  Express
Node.js Express
Eyal Vardi4.8K views
Java script pptJava script ppt
Java script ppt
The Health and Social Care Information Centre29.8K views
ES6 presentationES6 presentation
ES6 presentation
ritika1559 views
Rest web servicesRest web services
Rest web services
Paulo Gandra de Sousa7.7K views
JSON-LD and SHACL for Knowledge GraphsJSON-LD and SHACL for Knowledge Graphs
JSON-LD and SHACL for Knowledge Graphs
Franz Inc. - AllegroGraph1.2K views
CSS BasicsCSS Basics
CSS Basics
Sanjeev Kumar1.5K views
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
Gopi A10.7K views
Express JSExpress JS
Express JS
Designveloper1.7K views
Use Node.js to create a REST APIUse Node.js to create a REST API
Use Node.js to create a REST API
Fabien Vauchelles2.6K views
DBIx::Class beginnersDBIx::Class beginners
DBIx::Class beginners
leo lapworth26.1K views
JSON-LD and MongoDBJSON-LD and MongoDB
JSON-LD and MongoDB
Gregg Kellogg34.2K views
Flask – PythonFlask – Python
Flask – Python
Max Claus Nunes15.9K views
Css positionCss position
Css position
Webtech Learning2.4K views
Java scriptJava script
Java script
Oğuzhan TAŞ Akademi13.6K views
Why MongoDB is awesomeWhy MongoDB is awesome
Why MongoDB is awesome
John Nunemaker79.2K views

Viewers also liked(10)

Recently uploaded(20)

ThroughputThroughput
Throughput
Moisés Armani Ramírez28 views
Green Leaf Consulting: Capabilities DeckGreen Leaf Consulting: Capabilities Deck
Green Leaf Consulting: Capabilities Deck
GreenLeafConsulting170 views

A Deep Dive into JSON-LD and Hydra