8 RDFa HTML/XHTML : ISBN: 978-4839931957 : : 2009/5/28 1
Microformats i18n abbr img RDFa RDF XHTML <!DOCTYPE html PUBLIC -//W3C//DTD XHTML+RDFa 1.0//EN http://www.w3.org/markup/dtd/xhtml-rdfa- 1.dtd > <html version= XHTML+RDFa 1.0 xmlns= http://www.w3.org/1999/xhtml > HTML 2
rel/rev XHTML Metainformation Vocabulary license, alternate, stylesheet,... http://www.w3.org/1999/xhtml/vocab# license Microformats http://www.w3.org/1999/xhtml/vocab#license <a rel= license href= http://creativecommons.org/licenses/by/ 3.0/ >Creative Commons Attribution 3.0 License</a> 3
license RDF @prefix xhv: <http://www.w3.org/1999/xhtml/vocab#>. <http://examples.org/test.html> xhv:license <http://creativecommons.org/licenses/by/3.0/>. http://examples.org/test.html xhv:license http://creativecommons/licenses/by/3.0/ CURIE URI prefix : reference http://xmlns.com/foaf/0.1/name foaf:name prefix _ Safe CURIE [ prefix : reference ] URI 4
about : <p about= sfc.png > <img src= sfc.png alt= SFC photo /> <a rel= license href=... >license</a> </p> sfc.png... xhv:license property <p about= sfc.png > <img src= sfc.png alt= SFC photo /> <span property= dc:title >SFC </span> by <span property= dc:creator > </span>. <a rel= license href=... > </a> </p> dc:title SFC sfc.png dc:creator xhv:license... 5
content <p about= sfc.png > <img src= sfc.png alt= SFC photo /> <span property= dc:title >SFC </span> by <span property= dc:creator content= >fumi</span>. : <span property= dct:created content= 2009-06-01 >2009 6 1 </span> <a rel= license href=... > </a> </p> sfc.png dc:title xhv:license dc:creator dct:created SFC 2009-06-01... src resource @resource: @src: @about <img src= sfc.png rel= license resource=... /> <img src= sfc.png property= dc:creator content= rel= license resource=... /> sfc.png dc:creator xhv:license... 6
typeof <p typeof= ex:book about= urn:isbn:978-4274079795 > <cite property= dc:title > Web </cite> <span property= dc:creator > </span>... </p> urn:isbn:978-4274079795 rdf:type dc:title dc:creator ex:book Web typeof : @about <p typeof= foaf:person > <span property= foaf:name >Fumihiro Kato</span>, <span property= foaf:mbox >fumihiro@sfc.keio.ac.jp</span> </p> @prefix foaf: <http://xmlns.com/foaf/0.1/> _:a a foaf:person ; foaf:name Fumihiro Kato ; foaf:mbox fumihiro@sfc.keio.ac.jp. rdf:type foaf:name foaf:person Fumihiro Kato foaf:mbox fumihiro@sfc.keio.ac.jp 7
RDFa @href,@src @rel,@rev @property,@typeof @about, @resource URI CURIE / XHTML Vocab CURIE URI / Safe CURIE chaining <p about= [ex:fumi] typeof= foaf:person > <span property= foaf:name >Fumihiro Kato</span>, <span rel= foaf:img rev= dc:creator ><img src= myphoto.png rel= license resource= [cc:by/3.0/] /></span> </p> @prefix ex: <http://example.org/person/> @prefix foaf: <http://xmlns.com/foaf/0.1/> @prefix dc: <http://purl.org/dc/elements/1.1/> @prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> @prefix cc: <http://creativecommons.org/licenses/> ex:fumi a foaf:person; foaf:name Fumihiro Kato ; foaf:img <myphoto.png>. <myphoto.png> xhv:license cc:by/3.0/ ; dc:creator ex:fumi. 8
vcards/rdf http://www.w3.org/2006/vcard/ns @prefix v: <http://www.w3.org/2006/vcard/ns#. [] a v:vcard ; v:fn ; v:url <http://www.tom.sfc.keio.ac.jp/~hagino/> ; v:email <mailto:hagino@sfc.keio.ac.jp> ; v:org ; v:title v:workadr [a v:address ; v:postal-code 252-8520 ; v:region ; v:locality ; v:street-address 5322 ]. vcard in RDFa <address typeof= v:vcard xmlns:v= http://www.w3.org/2006/vcard/ns# > <span property= v:fn > </span>, <span property= v:org > </span><span property= v:title > </span> <br /> Email: <a rel= v:email href= mailto:hagino@sfc.keio.ac.jp >hagino@sfc.keio.ac.jp</a> <br /> : <span rel= v:workadr ><span typeof= v:address ><span property= v:postal-code >252-8520</span><span property= v:region > </span><span property= v:locality > </span><span property= v:street-address > 5322</span></span> </address> 9
RDF Calendar icalendar RDF http://www.w3.org/tr/rdfcal/ @prefix ical: < http://www.w3.org/2002/12/cal/icaltzd# >. @prefix dis: < http://www.tom.sfc.keio.ac.jp/~hagino/dis09/ >. dis:class#08 a ical:vevent ; ical:summary 8 ; ical:dtstart 2009-06-04T11:10:00Z ; ical:dtend 2009-06-04T12:40:00Z ; ical:location e21, SFC. RDF Calendar in RDFa <div typeof= ical:vevent > <h3 property= ical:summary > 8 </h3> <p><span property= ical:dtstart content= 2009-06-04T11:10:00Z ><span property= ical:dtend content= 2009-06- 04T12:40:00Z >6 4 2 </span></span>, <span property= ical:location >e21, SFC</span></p> </div> 10
<p about= #me typeof= foaf:person > <span property= foaf:name > </span> <span rel= foaf:based_near ><span property= geo:lat content= 35.388 ><span property= geo:long content= 139.428 >SFC </span></span></span> </p> @prefix foaf: @prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>. <#me> a foaf:person ; foaf:name ; foaf:based_near [ geo:lat 35.388 ; geo:long 139.42 8 ]. GeoNames http://www.geonames.org/ URI : URI <p typeof= ical:vevent ><span property= dtstart content= 2009-06-05T12:00:00Z ><span property= dtend content= 2009-06-05T15:00:00Z > </span></span><a rel= event:place href= http://sws.geonames.org/1864092 > </a> <span property= ical:summary > </span>.</p> 11
RDFa Distiller RDFa RDF http://www.w3.org/2007/08/pyrdfa/ RDF RDFa Turtle RDFa http://www.kanzaki.com/works/2009/p ub/graph-draw 12
Semantic Radar Firefox Add-on http://sioc-project.org/firefox GRDDL: Gleaning Resource Descriptions from Dialects of Languages RDF XSLT W3C GRDDL Service RDF http://www.w3.org/2007/08/grddl/ 13
head @profile RDF XSLT URI ) hcard Profile http://www.w3.org/2006/03/hcard/ <html xmlns= http://www.w3.org/1999/xhtml > <head profile= http://www.w3.org/2006/03/hcard >... head @profile GRDDL URI link @rel: transformation @href: URI <html xmlns= http://www.w3.org/1999/xhtml > <head profile= http://www.w3.org/2003/g/data-view > <link rel= transformation href= http://www.w3.org/2002/12/cal/glean-hcal />... 14
RDFa Profile http://ns.inria.fr/grddl/rdfa/2008/09/03/ hcard Profile http://www.w3.org/2006/03/hcard hcal Profile http://www.w3.org/2002/12/cal/hcal hcard, hcalendar, etc. profile http://www.w3.org/2002/12/cal/cardcaletc XHTML metainformation profile http://purl.org/net/ns/metaprof HTML meta,link Microformats class <head profile= http://purl.org/net/ns/metaprof >... 15
Swingnition Online http://buzzword.org.uk/swignition/try 16