O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

A Deep Dive into JSON-LD and Hydra

Presented at the APIcon 2014 conference in San Francisco, CA, USA.

Livros relacionados

Gratuito durante 30 dias do Scribd

Ver tudo

Audiolivros relacionados

Gratuito durante 30 dias do Scribd

Ver tudo
  • Seja o primeiro a comentar

A Deep Dive into JSON-LD and Hydra

  1. 1. { "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
  2. 2. 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… } }
  3. 3. 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" } }
  4. 4. 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" } }
  5. 5. 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" } }
  6. 6. 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" } }
  7. 7. 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" } }
  8. 8. 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" } }
  9. 9. 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" } }
  10. 10. 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" }
  11. 11. 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" }
  12. 12. 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" }
  13. 13. 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" }
  14. 14. 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" }
  15. 15. 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" }
  16. 16. 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" }
  17. 17. 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" }
  18. 18. <script type="application/ld+json"> ... </script>
  19. 19. http://example.com/events/ { "@id": "/events/", "@type": "Collection", "member": [ ... ], ... "operation": { "@type": "http://schema.org/AddAction", } }
  20. 20. { "@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" } }
  21. 21. { "@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" } }
  22. 22. http://example.com/events/california/ { "@id": "/events/california/", "@type": "Collection", "member": [ ... ], ... } { "@type": "AddAction", "method": "POST", "expects": "Event" }
  23. 23. { "@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" }

    Seja o primeiro a comentar

    Entre para ver os comentários

  • mihailoff

    Jul. 25, 2014
  • mheevunsin

    Sep. 27, 2014
  • HowardCheng

    Oct. 7, 2014
  • joshuuu

    Oct. 14, 2014
  • ceefour

    Dec. 2, 2014
  • AnthonyBaker

    Dec. 5, 2014
  • jalbertbowden

    Feb. 25, 2015
  • olegvilchinski

    Mar. 8, 2015
  • pantaluna

    Mar. 11, 2015
  • sergeynevmerzhitsky

    Mar. 13, 2015
  • torkveen

    Mar. 18, 2015
  • mythii

    Jun. 21, 2015
  • staypufd

    Dec. 9, 2015
  • ofadeyi

    Dec. 21, 2015
  • mallarapusidhu

    Jan. 20, 2016
  • ErsinDemirtas

    Apr. 17, 2016
  • byaur

    Aug. 4, 2016
  • RichardRigby3

    Oct. 12, 2016
  • KristianKoci

    Sep. 26, 2017
  • deciowbj

    Oct. 30, 2018

Presented at the APIcon 2014 conference in San Francisco, CA, USA.

Vistos

Vistos totais

9.255

No Slideshare

0

De incorporações

0

Número de incorporações

1.241

Ações

Baixados

0

Compartilhados

0

Comentários

0

Curtir

27

×