An ODD example of Data Portablity

By David Peterson

I recently became aware of a new initiative in the data portability arena – Open Data Definition (ODD). I applaud any effort to increase data portability between social networks and your data. But to really succeed the idea must be well thought out and research done to see what is out there and what really works.

Ben Werdmuller’s blog post introducing ODD defines it as a new format for import and export of data from social applications. He stresses that this project has risen from real world, not academic exercises. He makes a good argument for data portability; relating it the desktop taking a file created in one app and opening it in another. This is basic 101  here but the Web can’t do it — yet.

Where I feel he has seriously missed the boat is on the section where he talks about the Semantic Web. He describes the community as ambiguous and overcomplicated:

The semantic web community has RDF, a format designed for the purpose that is potentially powerful but – as one might expect from the semantic web community – prone to ambiguity and overcomplicated implementation.

And then the biggest problem I see with the entire argument comes from this:

… In small doses, it works (FOAF is based on a subset of RDF), but for more abstract data, it becomes exponentially harder to build for. Adding new data fields requires doing contortions in XML, which makes it harder to generate dynamically.

Now this is just plane odd. RDF is *not* XML. RDF is an abstract format that was built to be a scaleable data format for the World Wide Web (I stress world wide). RDF is built to model information of *any* shape and any size. It is quite simple really. Take three things (anything) and put them together and you have RDF. The example below is based on Turtle, an RDF format made for human writers. It is just one of many formats that all can be used to write RDF. RDFa is another way to write RDF. It embeds RDF into HTML, a bit like microformats but more extensible.

<> foaf:Name "David Peterson".

<> foaf:weblog <>.

<> foaf:based_near <>.

With those three sentences I have now constructed this graph:

RDF graph

It is all pretty simple

Of course I can continue to add anything I want to <>, or if I would like I can add to <http://>.  Just add more things…

Real data portability

My FOAF file is my online identity. I own it, I can put it on any server I want. This is the ultimate in data portability. It lists who my friends are, my contact details, anything I want. Again, RDF is infinitely extensible.

The wonderful thing about RDF and linked data is that each one of the statements above can be retrieved via its URL. This is the basis behind linked data. I can traverse the graph be GET-ing the URL with my browser, with a REST call, etc. If you want to know more about where I live go to From there you can find out the geo coordinates and pretty much anything you would want :)

The new state of the Web

The premise that this stuff is too hard and complicated doesn’t wash anymore. It might have a few years ago, but with Yahoo throwing their full support behind Semantic Web standards and the upcoming version of Drupal 7 to have an RDF linked data core, it definitely is out of touch.

The thorough blog post by Henry Story (foaf profile) entitled "Proof: Data Portability requires Linked Data" goes into much greater detail and I encourage anyone who is working in the data portability space to have a read and to also subscribe to the DataPortablity general discussion on Google Groups.

Any attempt to make data portability actually work needs to take into account RDF which is the fundamental building block of the Semantic Web. And don’t take my word for it, here is a quote from another blog:

… a lot of us are actually in business and actually implementing this stuff in real life (Companies such as Microsoft, Adobe, Sun Microsystems, OpenLink Software, Mozilla, Nokia, Skype, BBC, Joost and Oracle are all using RDF in one way or another) …

A few hours after publishing this I extended the example above to include more details on FOAF.

  • LatinPhilo

    RDF is *not* XML. is a bit of a stange statement. The W3C site for RDF clearly states “The Resource Description Framework (RDF) integrates a variety of applications from library catalogs and world-wide directories to syndication and aggregation of news, software, and content to personal collections of music, photos, and events using XML as an interchange syntax.” Maybe you just choose your words poorly but RDF is definitely XML.

  • david.seth.p

    Just wanted to add that Digg has recently announced some data portability initiatives. Key among these is their support for RDFa.

    – We’ve added RDFa, making Digg part of the “semantic web” where Web pages become more sophisticated, beyond simply words and pictures.

  • david.seth.p

    LatinPhilo: RDF is *not* XML :)

    Here are some links if you are interested:

    Daniel Lewis’s blog entry

    Learning N3 (an RDF syntax)

    Learning Notation3 (by Tim Berners-Lee himself)

    Intro to the Turtle syntax

    Reading and Writing RDF

  • Pingback: Catch up | Dave Tosh()

Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in Front-end, once a week, for free.