Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Why RDFa?


Published on

Why RDFa? Presentation I'm giving at SWNYC Meetup today (11/20/2008).

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Why RDFa?

  1. 1. Why RDFa? Sergey Chernyshev some slides from Yaron Koren’s “ Introduction to RDFa ” SWNYC Meetup November 20 th , 2008 http:// ?
  2. 2. Status <ul><li>W3C recommendation since October 14, 2008: </li></ul><ul><li>First proposed in 2004 </li></ul>
  3. 3. How RDFa works Joe Semantic's personal information I work as a programmer at MegaCorp - you can contact me at [email_address] , or by phone at (101) 010-1010.
  4. 4. HTML source <html> <head> <title>Joe Programmer's contact info</title> <base href=&quot;; /> </head> <body> <h1>Joe Semantic's personal information</h1> <p>I work as a programmer at <a href=&quot;;>MegaCorp</a> - you can contact me at <a href=&quot;;></a>, or by phone at (101)010-1010.</p> </body> </html>
  5. 5. RDF / XML <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?> <rdf:RDF xmlns:contact=&quot;;> <rdf:Description rdf:about=&quot;;> <contact:title xml:lang=&quot;en&quot;>programmer</contact:title> <contact:org rdf:resource=&quot;;/> <contact:email rdf:resource=&quot;;/> <contact:tel xml:lang=&quot;en&quot;>(101) 010-1010</contact:tel> </rdf:Description> </rdf:RDF>
  6. 6. Why not combine the two?
  7. 7. <html xmlns:contact=&quot;; > <head> <title>Joe Semantic's personal information</title> <base href=&quot;; /> </head> <body> <h1>Joe Semantic's personal information</h1> <p>I work as a <span property=”contact:title”>programmer</span> at <a rel=&quot;contact:org“ href=&quot;;> MegaCorp </a> - you can contact me at <a rel=&quot;contact:email“ href=&quot;;> [email_address] </a> , or by phone at <span property=”contact:tel”>(101)010-1010</span> . </p> </body> </html>
  8. 8. Three main keywords in RDFa <a rel =” predicate ” href=” object ”>...</a> ...defines a linked triple <span property =” predicate ”> object </span> ...defines an unlinked triple (literal) <span about =” subject ”>...</span> ...creates a subject for triples
  9. 9. Creating subjects ... I'm currently reading <span about=”urn:ISBN:0-596-00027-8”> <span property=&quot;dc:title&quot;>Programming Perl</span> by <span property=&quot;dc:creator&quot;>Larry Wall</span> </span> . ...
  10. 10. Easier to produce <ul><li>Much easier then RDF/XML or N-triples </li></ul><ul><li>Almost as easy as Microformats </li></ul><ul><li>Easy to integrate with existing publishing tools – just change your HTML templates </li></ul>
  11. 11. Easy to use <ul><li>Probably first to be adopted by conventional search engines because they already crawl HTML ( Yahoo! Search Monkey ) </li></ul><ul><li>Can be used with JavaScript ( ) </li></ul><ul><li>Easy to integrate into current “web page” paradigm and workflow (CC license link at http:// / ) </li></ul>
  12. 12. Links <ul><li> </li></ul><ul><li>RDFa primer </li></ul><ul><li>Yahoo! Search Monkey http:// </li></ul><ul><li>[*shameless plug*] My Semantic Profile http:// /profile/ </li></ul>