GRDDL

The Takahashi Way

I want my data back from my web pages
I want your data back from your web pages
Many dialects of XML in use
Many ways to embed data

Stephan wishes to buy a guitar,

he visits a site offering reviews

He uses GRDDL to aggregate reviews

and profiles of the reviewers

more use cases.

RDFa blends all data

Will It Blend? iPod, December 13, 2006, From Blendtec

<div class="foaf:Person"
   xmlns:foaf="http://...">
   and was written by
   <span property="foaf:nickname">
     TimBL</span>.
</div>
yields...

<> a foaf:Person ;
   foaf:nickname "TimBL" .

GRDDL to tidy

Tidy up like magic! April 22, 2007, From lentife

GRDDL:

a, declare a document is a source

b, link it to one or more extactors

declare a document is a source

(profile)

<head profile="http://www.w3.org/2003/g/data-view">
 <title>The man who mistook his wife for a hat</title>
 <link rel="transformation"
  href="http://www.w3.org/2000/06/
                  dc-extract/dc-extract.xsl" />
 <meta name="DC.Subject"
               content="clinical tales" />
  ...
</head>

link a document to one or more extactors

(transformations)

<head profile="http://www.w3.org/2003/g/data-view">
 <title>The man who mistook his wife for a hat</title>
 <link rel="transformation"
  href="http://www.w3.org/2000/06/
                 dc-extract/dc-extract.xsl" />
 <meta name="DC.Subject" content="clinical tales" />
  ...
</head>

declare a source and a transformation at once

(dedicated profile)

<head profile="http://purl.org/NET/erdf/profile">
  <title>The man who mistook his wife for a hat</title>
  <link rel="schema.cal"
    href="http://www.w3.org/2002/12/cal#" />
</head>

the profile document references a transformation

<html xmlns="http://www.w3.org/1999/xhtml">
 <head profile="http://www.w3.org/2003/g/data-view">
   <link rel="transformation"
       href="http://www.w3.org/2003/g/glean-profile" />
 </head>
 <body>
   <p><a rel="profileTransformation" 
      href="http://purl.org/NET/erdf/extract-rdf">
       GRDDL transform</a></p>
 </body>
</html>

more samples in the primer

existing profiles and transformations

existing implementations

conclusion:

Don't bury your data in some HTML page!

when you publish a document that contains data...

do reference profiles and/or transformations.

GRDDL Source