1 / 12

Why RDFa?

Why RDFa?. http://www.techpresentations.org/Why_RDFa?. Sergey Chernyshev some slides from Yaron Koren’s “ Introduction to RDFa ”. SWNYC Meetup November 20 th , 2008. Status. W3C recommendation since October 14, 2008: http://www.w3.org/TR/rdfa-syntax/ First proposed in 2004.

kevork
Download Presentation

Why RDFa?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Why RDFa? http://www.techpresentations.org/Why_RDFa? Sergey Chernyshev some slides fromYaron Koren’s “Introduction to RDFa” SWNYC MeetupNovember 20th, 2008

  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 js@megacorp.com, or by phone at (101) 010-1010.

  4. HTML source <html> <head> <title>Joe Programmer's contact info</title> <base href="http://joeprogrammer.com/contact-info.html" /> </head> <body> <h1>Joe Semantic's personal information</h1> <p>I work as a programmer at <a href="http://megacorp.com">MegaCorp</a> - you can contact me at <a href="mailto:js@megacorp.com">js@megacorp.com</a>, or by phone at (101)010-1010.</p> </body> </html>

  5. RDF / XML <?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:contact="http://www.w3.org/2001/vcard-rdf/3.0#"> <rdf:Description rdf:about="http://joesemantic.com/contact-info.html"> <contact:title xml:lang="en">programmer</contact:title> <contact:org rdf:resource="http://megacorp.com"/> <contact:email rdf:resource="js@megacorp.com"/> <contact:tel xml:lang="en">(101) 010-1010</contact:tel> </rdf:Description> </rdf:RDF>

  6. Why not combine the two?

  7. <html xmlns:contact="http://www.w3.org/2001/vcard-rdf/3.0#"> <head> <title>Joe Semantic's personal information</title> <base href="http://joesemantic.com/contact-info.html" /> </head> <body> <h1>Joe Semantic's personal information</h1> <p>I work as a <span property=”contact:title”>programmer</span> at <a rel="contact:org“ href="http://megacorp.com">MegaCorp</a> - you can contact me at <a rel="contact:email“ href="mailto:js@megacorp.com"> js@megacorp.com</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="dc:title">Programming Perl</span> by <span property="dc:creator">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.infohttp://rdfa.info/ • RDFa primerhttp://www.w3.org/TR/xhtml-rdfa-primer/ • Yahoo! Search Monkeyhttp://developer.yahoo.com/searchmonkey • [*shameless plug*] My Semantic Profilehttp://www.sergeychernyshev.com/profile/

More Related