Toward a Web of Linked Data

HTML5, RDFa, and JSON-LD

Slide navigation:

Press key to advance.

Toggle notes with the 2 key.

Zoom in/out: Ctrl or Command + +/-

This presentation was printed from an HTML page.

A fully interactive version of these slides containing examples and links to further resources can be found at:
http://payswarm.com/slides/.

Intro

Web Payments

What I do

Manu


  • W3C Standards Chair dealing with
    • Web Payments, Linked Data
    • Identity, Security

  • Founder/CEO of Digital Bazaar

  • Championing these technologies: Web Commerce API, Secure/Verifiable Messaging, PaySwarm, Crowdfunding, JSON-LD, RDFa, and Bitcoin.

Future

Metadata

Web-aware Metadata Formats

meta


  • Problem: Lots of information on the Web, but machines can't understand it.

  • RDFa - machine-readable web pages

  • JSON-LD - machine-readable Linked Data

  • People, places, events, transactions, digital receipts, digital contracts

Future

Metadata

What is Linked Data?

LD


A new way of publishing data on the Web:


  • Use URLs to identify things.

  • Provide useful information at those identifiers.

  • Use Web standards to express information.

  • Link to other useful information.

Future

Metadata

Linked Data Example

LD

Future

Metadata

RDFa: Visible Web Metadata

RDFa



  • Makes the human-readable, machine-readable

  • Useful when documents are HTML or XML

  • Used by Google, Microsoft, Facebook, Yahoo!, Yandex

  • Example: Who is the president of the UAE?

Future

Metadata

RDFa Examples

RDFa

RDFa Markup Examples

Future

Metadata

JSON-LD: Metadata for Web Services

JSON-LD



  • Makes JSON data machine-readable

  • Useful for Web APIs and databases using JSON

  • Used by Google, IBM, Yahoo!, Yandex

Future

Metadata

JSON-LD: Vocabularies


  • A vocabulary defines terms that can be used to losslessly exchange information.

  • Example: name - a word or set of words by which a thing is known, addressed, or referred to.

  • name - http://schema.org/name.

  • Anyone may publish a vocabulary on the Web.

Future

Metadata

JSON-LD: The Context

Context



  • The heart of JSON-LD: The Context

  • Conversations happen in a context, data is no different

  • JSON-LD uses context to map terms to vocabulary URLs to give data meaning.

Future

Metadata

JSON-LD Examples

JSON-LD

JSON-LD Markup Examples

Future

Metadata

Machine-readable Products



An example of a product:


{
  "@context": "https://w3id.org/payswarm/v1",
  "id": "http://domino-records.com/arctic-monkeys/albums/humbug",
  "type": ["Asset", "Album"],
  "creator": { "fullName": "The Arctic Monkeys" },
  "title": "Humbug",
  "assetContent": "http://domino-records.com/download/albums/humbug",
  "assetProvider": "https://bluebank.com/i/domino"
}
            

Future

Metadata

JSON-LD Markup Example

JSON-LD


An example of a financial transaction in JSON-LD:

{
  "@context": "https://w3id.org/payswarm/v1",
  "id": "https://redbank.com/transactions/1.A.F23BC",
  "type": "Transaction",
  "amount": "1.04",
  "currency": "USD",
  "comment": "Purchase of Bad Romance by Lady Gaga from Best Buy"
  "date": "2013-09-16T12:34:36.14532",
  "transfer": [{
    "type": "Transfer",
    "source": "https://redbank.com/accounts/12345",
    "destination": "https://greenbank.com/accounts/54321",
    "amount": "0.89",
    "currency": "USD"
  }, ... ]
}
            

Thanks

Learn more...

The End

This Presentation will be posted online at:

Questions, comments or more info:

This slide deck is based on HTML5 Slideshow by Marcin Wichary, Ernest Delgado, Alex Russell, and Brad Neuberg with CSS additions by Matthew Richmond and Manu Sporny.

loading