12
Why RDFa? Why RDFa? ergey Chernyshev me slides from ron Koren’s “Introduction to RDFa” SWNYC Meetup November 20 th , 2008 http://www.techpresentations.org/Why_RDFa?

Why RDFa?

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: Why RDFa?

Why RDFa?Why RDFa?

Sergey Chernyshev

some slides fromYaron Koren’s “Introduction to RDFa”

SWNYC MeetupNovember 20th, 2008

http://www.techpresentations.org/Why_RDFa?

Page 2: Why RDFa?

StatusStatus

W3C recommendation since October 14, 2008: W3C recommendation since October 14, 2008: http://www.w3.org/TR/rdfa-syntax/http://www.w3.org/TR/rdfa-syntax/

First proposed in 2004First proposed in 2004

Page 3: Why RDFa?

How RDFa worksHow RDFa works

Joe Semantic's personal informationJoe Semantic's personal information

I work as a programmer at I work as a programmer at MegaCorpMegaCorp - you - you can contact me at can contact me at [email protected]@megacorp.com, or by , or by phone at (101) 010-1010. phone at (101) 010-1010.

Page 4: Why RDFa?

HTML sourceHTML source<html><html>

<head><head>

<title>Joe Programmer's contact info</title><title>Joe Programmer's contact info</title>

<base href="http://joeprogrammer.com/contact-info.html" /><base href="http://joeprogrammer.com/contact-info.html" />

</head></head>

<body><body>

<h1>Joe Semantic's personal information</h1><h1>Joe Semantic's personal information</h1>

<p>I work as a programmer at<p>I work as a programmer at

<a href="http://megacorp.com">MegaCorp</a> -<a href="http://megacorp.com">MegaCorp</a> -

you can contact me atyou can contact me at

<a href="mailto:[email protected]">[email protected]</a>,<a href="mailto:[email protected]">[email protected]</a>,

or by phone at (101)010-1010.</p>or by phone at (101)010-1010.</p>

</body></body>

</html></html>

Page 5: Why RDFa?

RDF / XMLRDF / XML

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

Page 6: Why RDFa?

Why not combine the two?Why not combine the two?

Page 7: Why RDFa?

<html <html xmlns:contact="http://www.w3.org/2001/vcard-rdf/3.0#"xmlns:contact="http://www.w3.org/2001/vcard-rdf/3.0#">> <head><head> <title>Joe Semantic's personal information</title><title>Joe Semantic's personal information</title> <base href="http://joesemantic.com/contact-info.html" /><base href="http://joesemantic.com/contact-info.html" /> </head></head> <body><body> <h1>Joe Semantic's personal information</h1><h1>Joe Semantic's personal information</h1> <p>I work as a <p>I work as a

<span property=”contact:title”>programmer</span><span property=”contact:title”>programmer</span>atat<a rel="contact:org“ href="http://megacorp.com"><a rel="contact:org“ href="http://megacorp.com">MegaCorpMegaCorp</a></a>- you can contact me at- you can contact me at<a rel="contact:email“ href="mailto:[email protected]"><a rel="contact:email“ href="mailto:[email protected]">

[email protected]@megacorp.com</a></a>, or by phone at, or by phone at<span property=”contact:tel”>(101)010-1010</span><span property=”contact:tel”>(101)010-1010</span>..

</p></p> </body></body></html></html>

Page 8: Why RDFa?

Three main keywords in RDFaThree main keywords in RDFa

<a <a relrel=”=”predicatepredicate” href=”” href=”objectobject”>...</a>”>...</a>

...defines a linked triple...defines a linked triple

<span <span propertyproperty=”=”predicatepredicate”>”>objectobject</span></span>

...defines an unlinked triple (literal)...defines an unlinked triple (literal)

<span <span aboutabout=”=”subjectsubject”>...</span>”>...</span>

...creates a subject for triples...creates a subject for triples

Page 9: Why RDFa?

Creating subjectsCreating subjects......

I'm currently readingI'm currently reading

<span about=”urn:ISBN:0-596-00027-8”><span about=”urn:ISBN:0-596-00027-8”>

<span property="dc:title">Programming Perl</span><span property="dc:title">Programming Perl</span>

byby

<span property="dc:creator">Larry Wall</span><span property="dc:creator">Larry Wall</span>

</span></span>..

......

Page 10: Why RDFa?

Easier to produceEasier to produce

Much easier then RDF/XML or N-triplesMuch easier then RDF/XML or N-triples

Almost as easy as Almost as easy as Microformats

Easy to integrate with existing publishing tools – just change your HTML templates

Page 11: Why RDFa?

Easy to useEasy 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/)

Page 12: Why RDFa?

LinksLinks

RDFa.infoRDFa.infohttp://rdfa.info/http://rdfa.info/

RDFa primerRDFa primerhttp://www.w3.org/TR/xhtml-rdfa-primer/http://www.w3.org/TR/xhtml-rdfa-primer/

Yahoo! Search Monkeyhttp://developer.yahoo.com/searchmonkey

[*shameless plug*][*shameless plug*] My Semantic Profile My Semantic Profilehttp://www.sergeychernyshev.com/profile/http://www.sergeychernyshev.com/profile/