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.

RDFa In A Nutshell V2

29,352 views

Published on

Takahashi style tutorial on RDFa (Version 1)

Published in: Technology, Design

RDFa In A Nutshell V2

  1. 1. in a nutshell RDFa fabien, gandon, inria
  2. 2. many data buried and dormant in web pages 2
  3. 3. in particular data in the deep web 3
  4. 4. several initiatives to make data embedding explicit 4
  5. 5. for specific, common, concise data for custom data, RDF data, multiple schemas 5
  6. 6. RDFa = a domain-independent way to explicitly embed your data 6
  7. 7. RDFa = a domain-independent way to explicitly embed RDF data 7
  8. 8. RDFa stands for… RDF… in HTML … attributes 8
  9. 9. RDFa in attributes of a web page to… … transfer data from an application to another through the web. … write data only once for web users and web applications. 9
  10. 10. weaving RDFa in web pages 10
  11. 11. RDFa step 1 declare the schemas you are using 11
  12. 12. RDFa step 2 use attributes to mark, type and add data 12
  13. 13. RDFa step 3 let RDFa agents extract RDF from the document 13
  14. 14. take this minimal web page 14
  15. 15. don't look at the code of this web page <html xmlns=quot;http://www.w3.org/1999/xhtmlquot; xmlns:cal=quot;http://www.w3.org/2002/12/cal/icaltzd#quot; xmlns:xs=quot;http://www.w3.org/2001/XMLSchema#quot; > <body> <p about=quot;#event1quot; typeof=quot;cal:Veventquot;> <b property=quot;cal:summaryquot;>Weekend off in Iona</b>: <span property=quot;cal:dtstartquot; datatype=quot;xs:datequot;>2006-10-21 </span> to <span property=quot;cal:dtendquot; datatype=quot;xs:datequot;>2006-10-23 </span>. see <a rel=quot;cal:urlquot; href=quot;http://freetime.example.org/quot;> Free time web site</a> for info on <span property=quot;cal:locationquot;>Iona, UK</span>. </p> </body> </html> 15
  16. 16. schemas for data in this web page <html xmlns=quot;http://www.w3.org/1999/xhtmlquot; xmlns:cal=quot;http://www.w3.org/2002/12/cal/icaltzd#quot; xmlns:xs=quot;http://www.w3.org/2001/XMLSchema#quot; > <body> <p about=quot;#event1quot; typeof=quot;cal:Veventquot;> <b property=quot;cal:summaryquot;>Weekend off in Iona</b>: <span property=quot;cal:dtstartquot; datatype=quot;xs:datequot;>2006-10-21 </span> to <span property=quot;cal:dtendquot; datatype=quot;xs:datequot;>2006-10-23 </span>. see <a rel=quot;cal:urlquot; href=quot;http://freetime.example.org/quot;> Free time web site</a> for info on <span property=quot;cal:locationquot;>Iona, UK</span>. </p> </body> </html> 16
  17. 17. data seen by users viewing this web page <html xmlns=quot;http://www.w3.org/1999/xhtmlquot; xmlns:cal=quot;http://www.w3.org/2002/12/cal/icaltzd#quot; xmlns:xs=quot;http://www.w3.org/2001/XMLSchema#quot; > <body> <p about=quot;#event1quot; typeof=quot;cal:Veventquot;> <b property=quot;cal:summaryquot;>Weekend off in Iona</b>: <span property=quot;cal:dtstartquot; datatype=quot;xs:datequot;>2006-10-21 </span> to <span property=quot;cal:dtendquot; datatype=quot;xs:datequot;>2006-10-23 </span>. see <a rel=quot;cal:urlquot; href=quot;http://freetime.example.org/quot;> Free time web site</a> for info on <span property=quot;cal:locationquot;>Iona, UK</span>. </p> </body> </html> 17
  18. 18. data for an RDFa agent in this web page <html xmlns=quot;http://www.w3.org/1999/xhtmlquot; xmlns:cal=quot;http://www.w3.org/2002/12/cal/icaltzd#quot; xmlns:xs=quot;http://www.w3.org/2001/XMLSchema#quot; > <body> <p about=quot;#event1quot; typeof=quot;cal:Veventquot;> <b property=quot;cal:summaryquot;>Weekend off in Iona</b>: <span property=quot;cal:dtstartquot; datatype=quot;xs:datequot;>2006-10-21 </span> to <span property=quot;cal:dtendquot; datatype=quot;xs:datequot;>2006-10-23 </span>. see <a rel=quot;cal:urlquot; href=quot;http://freetime.example.org/quot;> Free time web site</a> for info on <span property=quot;cal:locationquot;>Iona, UK</span>. </p> </body> </html> 18
  19. 19. data shared by both in this web page <html xmlns=quot;http://www.w3.org/1999/xhtmlquot; xmlns:cal=quot;http://www.w3.org/2002/12/cal/icaltzd#quot; xmlns:xs=quot;http://www.w3.org/2001/XMLSchema#quot; > <body> <p about=quot;#event1quot; typeof=quot;cal:Veventquot;> <b property=quot;cal:summaryquot;>Weekend off in Iona</b>: <span property=quot;cal:dtstartquot; datatype=quot;xs:datequot;>2006-10-21 </span> to <span property=quot;cal:dtendquot; datatype=quot;xs:datequot;>2006-10-23 </span>. see <a rel=quot;cal:urlquot; href=quot;http://freetime.example.org/quot;> Free time web site</a> for info on <span property=quot;cal:locationquot;>Iona, UK</span>. </p> </body> </html> 19
  20. 20. what an RDFa agent knows from this web page #event1 isA cal:Vevent #event1 cal:summary quot;Weekend off in Ionaquot; #event1 cal:dtstart quot;2006-10-21quot;^^xs:date #event1 cal:dtend quot;2006-10-23quot;^^ xs:date #event1 cal:url <http://freetime.example.org/> #event1 cal:location quot;Iona, UKquot; 20
  21. 21. take away message 21
  22. 22. don't bury your data in some HTML page 22
  23. 23. when you publish a page that contains data… 23
  24. 24. do make the embedding explicit 24
  25. 25. fabien, gandon 25

×