Why RDFa?

  • 3,138 views
Uploaded on

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

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

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
3,138
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
22
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Why RDFa? Sergey Chernyshev some slides from Yaron Koren’s “ Introduction to RDFa ” SWNYC Meetup November 20 th , 2008 http:// www.techpresentations.org/Why_RDFa ?
  • 2. Status
    • W3C recommendation since October 14, 2008: http://www.w3.org/TR/rdfa-syntax/
    • First proposed in 2004
  • 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. HTML source <html> <head> <title>Joe Programmer's contact info</title> <base href=&quot;http://joeprogrammer.com/contact-info.html&quot; /> </head> <body> <h1>Joe Semantic's personal information</h1> <p>I work as a programmer at <a href=&quot;http://megacorp.com&quot;>MegaCorp</a> - you can contact me at <a href=&quot;mailto:js@megacorp.com&quot;>js@megacorp.com</a>, or by phone at (101)010-1010.</p> </body> </html>
  • 5. RDF / XML <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?> <rdf:RDF xmlns:contact=&quot;http://www.w3.org/2001/vcard-rdf/3.0#&quot;> <rdf:Description rdf:about=&quot;http://joesemantic.com/contact-info.html&quot;> <contact:title xml:lang=&quot;en&quot;>programmer</contact:title> <contact:org rdf:resource=&quot;http://megacorp.com&quot;/> <contact:email rdf:resource=&quot;js@megacorp.com&quot;/> <contact:tel xml:lang=&quot;en&quot;>(101) 010-1010</contact:tel> </rdf:Description> </rdf:RDF>
  • 6. Why not combine the two?
  • 7. <html xmlns:contact=&quot;http://www.w3.org/2001/vcard-rdf/3.0#&quot; > <head> <title>Joe Semantic's personal information</title> <base href=&quot;http://joesemantic.com/contact-info.html&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;http://megacorp.com&quot;> MegaCorp </a> - you can contact me at <a rel=&quot;contact:email“ href=&quot;mailto:js@megacorp.com&quot;> [email_address] </a> , or by phone at <span property=”contact:tel”>(101)010-1010</span> . </p> </body> </html>
  • 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. 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. Easier to produce
    • Much easier then RDF/XML or N-triples
    • Almost as easy as Microformats
    • Easy to integrate with existing publishing tools – just change your HTML templates
  • 11. Easy to use
    • Probably first to be adopted by conventional search engines because they already crawl HTML ( Yahoo! Search Monkey )
    • Can be used with JavaScript ( http://www.w3.org/2006/07/SWD/RDFa/impl/js/ )
    • Easy to integrate into current “web page” paradigm and workflow (CC license link at http:// ben.adida.net / )
  • 12. Links
    • RDFa.info http://rdfa.info/
    • RDFa primer http://www.w3.org/TR/xhtml-rdfa-primer/
    • Yahoo! Search Monkey http:// developer.yahoo.com/searchmonkey
    • [*shameless plug*] My Semantic Profile http:// www.sergeychernyshev.com /profile/