gtut
41.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://www.w3.org/2006/03/hcard
http://www.w3.org/2002/12/cal/hcal
http://www.w3.org/2003/g/data-view">
<title>Deploying Web-scale Mash-ups by Linking Microformats
and the Semantic Web</title>
<meta name="copyright" content="$Revision: 1.42 $ Copyright (c) $Date: 2007/05/08 19:25:24 $ Connolly and Halpin. some rights reserved" />
<link rel="stylesheet" href="http://www.w3.org/Talks/Tools/Slidy/slidy.css"
type="text/css"
media="screen, projection, print" />
<link rel="stylesheet" href="http://www.w3.org/Talks/Tools/Slidy/w3c-blue.css"
type="text/css" media="screen, projection, print" />
<link rel="transformation" href="http://www.w3.org/2006/vcard/signit"
type="text/css" media="screen, projection, print" />
<script src="http://www.w3.org/Talks/Tools/Slidy/slidy.js"
type="text/javascript">
</script>
<style type="text/css">
blockquote {
border-left: double; padding-left: 1em;
font-style: italic;
}
blockquote address { text-align: right; font-size: smaller }
.source { text-align: right; font-size: smaller }
.footnote { font-size: smaller }
div.figure { text-align: center }
.attn { font-weight: bold; font-style: italic; color: red;}
.screenshot { float: right; margin: 3em }
table.compare {
margin-left:auto;
margin-right:auto;
}
table.compare td {
text-align: center
}
</style>
</head>
<body>
<div class="background">
<img id="head-icon" alt="graphic with four colored squares"
src="http://www.w3.org/Talks/Tools/Slidy/icon-blue.png" />
<object id="head-logo" title="W3C logo" type="image/svg+xml"
data="http://www.w3.org/Talks/Tools/Slidy/w3c-logo-blue.svg"><img
src="http://www.w3.org/Talks/Tools/Slidy/w3c-logo-blue.gif"
alt="W3C logo" id="head-logo-fallback" /></object>
<!-- is this really worth the screenspace?
<div class="footer">
<a href="http://www.w3.org/">
<img alt="W3C logo" id="w3c-logo-fallback"
src="http://www.w3.org/Talks/Tools/Slidy/w3c-logo-blue.gif" /> </a>
Halpin
and Connolly<br /> WWW2007 May 2007
</div>
-->
</div>
<div class="background slanty">
<img src="http://www.w3.org/Talks/Tools/Slidy/w3c-logo-slanted.jpg"
alt="slanted W3C logo" />
</div>
<div class="slide cover">
<img align="right"
src="http://www.w3.org/Talks/Tools/Slidy/keys.jpg"
alt="Cover page images (keys)" class="cover" />
<h1>Deploying Web-scale Mash-ups by Linking Microformats and the
Semantic Web</h1>
<address class="vcard" id="danc">
<a class="url fn" href="http://www.w3.org/People/Connolly/"
>Dan Connolly</a>, W3C/MIT<br />
</address>
<address class="vcard" id="hhalpin">
<a class="url fn"
href="http://www.ibiblio.org/hhalpin/">Harry Halpin</a>, University of Edinburgh<br />
</address>
<div class="vevent">
<a class="url summary" href="http://www2007.org/">16th International World Wide Web Conference
</a><br />
<span class="location">Banff, Alberta, Canada</span><br />
<abbr class="dtstart" title="2007-05-08">April 2007</abbr>
</div>
</div>
<div class="slide"><h1>Overview</h1>
<ul>
<li>1:30 - 3:00:
<ul>
<li>Calendar Mash-up</li>
<li>Hotel review mash-up</li>
</ul>
<p><em>covers: semantic html, microformats, turtle, RDF, and SPARQL</em></p>
</li>
<li>3:00-3:30: break </li>
<li>3:30-5:00:
<ul>
<li>More examples, practical applications</li>
<li>Where GRDDL fits in the Semantic Web</li>
<li>State of the art: tools you can use</li>
</ul>
</li>
<li>If we have any time...</li>
<li>Open Time to get your calendar/web-page/etc. microformat+GRDDL enabled</li>
</ul>
</div>
<div class="slide">
<h1>Calendar Mash-up: The Problem</h1>
<p>When can Jane, David, and Robin meet?</p>
<ul>
<li>Jane keeps <a href="../doc29/janeschedule.html">her calendar</a> in one format (RDFa)</li>
<li>David uses another (eRDF) for <a
href="../doc29/david-erdf.html">his calendar</a></li>
<li>Robin keeps <a href="../doc29/robin-hcal-grddl.html">his schedule</a> in a 3rd format (hCalendar)</li>
</ul>
</div>
<div class="slide">
<h1>Calendar Mash-up: Problem Solved</h1>
<p>GRDDL and SPARQL to the rescue!</p>
<table border="1">
<tr>
<th>Start</th><th>End</th><th>Place</th><th>Summary</th>
</tr>
<tr>
<td>"2007-01-08"</td><td>"2007-01-11"</td><td>Edinburgh, UK</td><td>Web Design Conference</td>
</tr>
</table>
<p>Jane's friends Robin and David are both in town with her in Edinburgh on January 8th through 10th for the Web Design Conference.</p>
<div class="incremental" style="margin-left: 1em; position: relative;" >
<img src="images/Calendar_01.png" alt="calendars" style="position: static; vertical-align: bottom;" />
<img src="images/Calendar_02.png" alt="Data in RDF" style="position: absolute; left: 0pt; top: 0pt;" />
<img src="images/Calendar_03.png" alt="SPARQL" style="position: absolute; left: 0pt; top: 0pt;" />
</div>
</div>
<div class="slide">
<h1>Robin uses hCalendar</h1>
<p>Events in
<a href="../doc29/robin-hcal-no-grddl.html">Robin's schedule</a>...</p>
<ul>
<li class="vevent"><strong class="summary">Fashion Expo</strong> in
<span class="location">Paris, France</span>: <abbr class="dtstart"
title="2006-10-20">Oct 20</abbr> to <abbr class="dtend"
title="2006-10-23">22</abbr></li>
</ul>
<p>... are marked up like this:</p>
<pre>
<li class="vevent">
<strong class="summary">Fashion Expo</strong> in
<span class="location">Paris, France</span>:
<abbr class="dtstart" title="2006-10-20">Oct 20</abbr> to
<abbr class="dtend" title="2006-10-23">22</abbr>
</li>
</pre>
</div>
<div class="slide">
<h1>What is hCalendar?</h1>
<div class="screenshot">
<img alt="cal screen shot"
src="http://www.w3.org/2000/10/swap/pim/calIntShot.png" />
</div>
<p>hCalendar = iCalendar in XHTML</p>
<p>iCalendar (<a href="../rfc2445">RFC2445</a>):</p>
<pre>BEGIN:VEVENT
<span xml:lang="en" lang="en">UID:20020630T230445Z-3895-69-1-7@jammer</span>
<span xml:lang="en" lang="en">DTSTART;VALUE=DATE:20020703</span>
<span xml:lang="en" lang="en">DTEND;VALUE=DATE:20020706</span>
<span xml:lang="en" lang="en">SUMMARY:XYZ Conference</span>
<span xml:lang="en" lang="en">LOCATION:San Francisco</span>
<span xml:lang="en" lang="en">END:VEVENT</span></pre>
</div>
<div class="slide">
<h1>Why hCalendar?</h1>
<img src="images/microformatlogo.gif" alt="Microformats Logo" align="right" />
<p>hCalendar and other microformats have shared tools, knowledge, process...</p>
<ul>
<li><a href="http://theryanking.com/microformats/hcalendar-creator.html">hCalendar creator</a>,
<a href="http://suda.co.uk/projects/X2V/">iCal Extraction</a>
</li>
<li>large and growing list of sites:
<ol>
<li><a href="http://eventful.com/events/categories/festivals_parades?l=Canmore%2C%20Alberta%2C%20CAN">Eventful.com</a></li>
<li><a href="http://www.linkedin.com/in/harryhalpin">LinkedIn</a></li>
<li><a href="http://yedda.com/">Yedda</a></li>
<li><a href="http://local.yahoo.com/details;_ylt=AlBC0TJPA26ZXjIWHr5PztOHNcIF?id=10209103&state=MA&city=Boston&stx=Sheraton&csz=Boston%2C+MA&fr=&ed=gN5LSq131DweU4LpfshbDWHQkTbySVPO15smT63p66zc3RmmDPmkz0dh&lcscb=">Yahoo! Local</a>
</li>
<li><a href="http://tech.yahoo.com/pr/apple-macbook-pro/1993616948;_ylt=AldL2bqT6OO3JluLXzEArl0FLZA5">Yahoo! Tech Reviews</a></li>
</ol>
</li>
<li><a href="http://www.webstandards.org/action/dwtf/microformats/">Dreamweaver</a> plug-in</li>
</ul>
<a href="http://www.ibiblio.org/hhalpin"><span class="attn">Demo of Microformat Browsing using Tails</span></a>
</div>
<div class="slide">
<h1>Microformats Unleashed</h1>
<p>Microformats are centralized data formats for different types of data, often (nearly) isomorphic to already widely adopted non-Web standards:</p>
<ul>
<li>Personal Data: <a href="http://microformats.org/wiki/hcard">hCard</a> (vCard)</li>
<li>Calendar and Events: <a href="http://microformats.org/wiki/hcalendar">hCal</a> (iCal)</li>
<li>Social Networking: <a href="http://gmpg.org/xfn">XFN</a></li>
<li>Reviews: <a href="http://microformats.org/wiki/hreview">hReview</a></li>
<li>Licenses: <a href="http://microformats.org/wiki/rel-license">rel-license</a></li>
<li>Folksonomies: <a href="http://microformats.org/wiki/rel-tag">rel-tag</a> </li>
</ul>
<p class="subhead">The lower-case semantic web</p>
</div>
<div class="slide">
<h1>The Limits of Microformats</h1>
<ul class="incremental">
<li>The microformats process applies to common problems...</li>
<li>... and <em>only</em> common problems.</li>
<li>Mixing works in some cases, but don't push it.</li>
<li>Validation, query tools emerging.</li>
<li>So what if my problem is not so common?</li>
<li>Maybe the Semantic Web (uppercase) can help...</li>
</ul>
</div>
<div class="slide">
<h1>Hotel Review Mash-Up: Problem</h1>
<ul>
<li>Jane wants to book a hotel.</li>
<li>Not just any hotel.
<p>She doesn't trust the <em>wisdom of crowds</em>. She trusts:</p>
<ul class="xoxo">
<li class="vcard"><a href="http://peter.example.org" class="url fn" rel="met colleague friend">Peter Smith</a></li>
<li class="vcard"><a href="http://john.example.org" class="url fn" rel="met">John Doe</a></li>
<li class="vcard"><a href="http://paul.example.org" class="url fn" rel="met">Paul Revere</a></li>
</ul>
</li>
<li>Mix in
<a href="../doc29/janefriends.html">social network data</a>
to get <em>trusted reviews</em>.</li>
</ul>
</div>
<div class="slide">
<h1>Hotel Review Mash-Up: Problem Solved</h1>
<p>A hotel with a ranking of 5 reviewed by a trusted friend:</p>
<div class="incremental" style="margin-left: 1em; position: relative;" >
<img src="images/Review_01.png" alt="reviews" style="position: static; vertical-align: bottom;" />
<img src="images/Review_02.png" alt="Data in RDF" style="position: absolute; left: 0pt; top: 0pt;" />
<img src="images/Review_03.png" alt="query" style="position: absolute; left: 0pt; top: 0pt;" />
</div>
<table border="1">
<tr>
<th>rating</th><th>name</th><th>region</th>
<th>homepage</th>
<th>hotelname</th>
</tr>
<tr>
<td>5</td>
<td>PeterS</td>
<td>Edinburgh</td>
<td>http://peter.example.org</td>
<td>Witch's Caldron Hotel, Edinburgh</td>
</tr>
</table>
<p>"How did you do that?" I'm glad you asked...</p>
</div>
<div class="slide">
<h1>Data Mash-Up</h1>
<div class="figure">
<img alt="hotel review query answer diagram" src="hotel-answer.png" />
</div>
</div>
<div class="slide">
<h1>The Straw that broke the Camel's Back</h1>
<div class="screenshot">
<img src="images/straw.jpg" alt="twitter screenshot" />
</div>
<p>Too many services replicate the same sort of data....what if you have a <i>Friendster</i>, a <i>Myspace</i>, and a <i>Twtter</i> account?</p>
<p class="footnote">photo by Jon Hicks</p>
</div>
<div class="slide"><h1>Toward Open Data</h1>
<ul>
<li><blockquote><p>I want my data back.</p>
<div class="source"><cite>Jon Bosak circa 1997</cite></div>
</blockquote></li>
<li><blockquote>
<p>I've long believed that customers of any application own the
data they enter into it.</p>
<div class="source"><cite><a
href="http://www.veen.com/jeff/archives/000810.html">Jeffrey Veen 2
November 2005</a></cite></div>
</blockquote>
</li>
</ul>
<p><em>Is this what Web 2.0 is all about? If so, maybe it's not such a
bad thing.</em></p>
</div>
<div class="slide">
<h1>The Semantic Web</h1>
<p>... is an <b>open world</b> and universal space for
<b>machine-readable</b> data.</p>
<div class="screenshot">
<img src="images/semantic.jpg" alt="things in documents"/>
</div>
<blockquote>
To a computer, then, the web is a flat, boring world devoid of meaning...This is a pity, as in fact documents on the web describe real objects and imaginary concepts, and give particular relationships between them...Adding semantics to the web involves two things: allowing documents which have information in machine-readable forms, and allowing links to be created with relationship values.
<address>TimBL, WWW1994</address>
</blockquote>
</div>
<div class="slide"><h1>The element of the Semantic Web</h1>
<p><img alt="arrow tail, body and head are l are subject, property and value." src="../../../../DesignIssues/diagrams/spv-arrow.png" /></p>
<ul>
<li>The Resource Description Framework (RDF)
<ul>
<li>abstract syntax, formal semantics</li>
<li>standard encoding in XML</li>
<li>emerging programmer-friendly short-hand encoding: <a href="http://www.w3.org/2000/10/swap/Primer.html">N3</a>/<a href="http://www.dajobe.org/2004/01/turtle/">turtle</a>
</li>
</ul>
</li>
</ul>
<pre>
<#p> foaf:name "PeterS";
<#p> foaf:homepage <http://peter.example.org>.
</pre>
<p>Note the relationship to HTML links, especially with the
re-discovery of the <tt>rel</tt> attribute.</p>
</div>
<div class="slide">
<h1>Use URIs to name relationships</h1>
<pre>
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix rev: <http://www.purl.org/stuff/rev#>.
@prefix vcard: <http://www.w3.org/2006/vcard/ns#>.
@prefix xfn: <http://gmpg.org/xfn/11#>.
_:hotel
vcard:adr [ vcard:locality "Edinburgh" ];
rev:hasReview [
rev:rating 5;
rev:reviewer _:who;
rdfs:label "Witch's Caldron Hotel, Edinburgh"
].
<jane> xfn:friend _:who.
_:who
foaf:name "PeterS";
foaf:homepage <http://peter.example.org>.
</pre>
</div>
<div class="slide">
<h1>Data Mash-Up</h1>
<div class="figure">
<img alt="hotel review query answer diagram" src="hotel-answer.png" />
</div>
</div>
<div class="slide"><h1>Semantic Web Basics</h1>
<ul>
<li>What is the Semantic Web?
<ul>
<li>Data integration across application, organizational boundaries</li>
</ul>
</li>
<li>How does it work?
<ol>
<li>Apply power of URIs to concepts of relational data
<ul>
<li>Don't say "colour" say <http://example.com/2002/std6#col></li>
</ul>
</li>
<li>Model real people, places and things, not just documents or
database tables</li>
</ol>
</li>
</ul>
</div>
<div class="slide"><h1>Semantic web includes tables, trees...</h1>
<p><img alt="Arrows can make a table, an arrow from each row to each value"
src="../../../../DesignIssues/diagrams/arrow-table.png" /></p>
<p><img alt="Arrows can make a table, an arrow from each row to each value"
src="../../../../DesignIssues/diagrams/tree.png" /></p>
</div>
<div class="slide"><h1>... and tangly messes</h1>
<p><img alt="Arrows can make a table, an arrow from each row to each value"
src="../../../../DesignIssues/diagrams/tree-and-table2.png" /></p>
</div>
<div class="slide"><h1>Semantic Web Architecture</h1>
<p>The Semantic Web is to
spreadsheets and databases what the Web of hypertext documents is to
word processor files.</p>
<table border="1" class="compare">
<tr><td> </td><th>Web</th><th>Semantic Web</th></tr>
<tr><th>Traditional Design</th><td>hypertext</td><td>database, spreadsheet, logic</td></tr>
<tr><th>+</th><td colspan="2">URIs</td></tr>
<tr><th>-</th><td>link consistency</td><td><em>global consistency?</em></td></tr>
<tr><th>=</th><td colspan="2">viral growth</td></tr>
</table>
</div>
<div class="slide">
<h1>XML and Trees</h1>
<p>XML (<b>X</b>tensible <b>M</b>arkup <b>L</b>anguage) is a generalization of <b>HTML</b> that lets anyone name the elements and attributes</p>
<img src="images/xml.png" align="left" alt="XML" />
<p>Think <b>ASCII for the 21st Century</b>!</p>
<p>Also a <i>tree model</i> (<b>DOM</b> - <b>D</b>ocument <b>O</b>bject <b>M</b>odel), which is a handy data structure.</p>
</div>
<div class="slide"><h1>RDF merges naturally</h1>
<img style="float:right" width="50%" class="incremental"
src="http://www.w3.org/2000/Talks/0906-xmlweb-tbl/arcs-3.gif"
alt="stack" />
<img src="http://www.w3.org/2000/Talks/0906-xmlweb-tbl/arcs-1.gif"
alt="stack" />
</div>
<div class="slide"><h1>Partial Understanding</h1>
<p>RDF statements* are independent. RDF semantics are <dfn><a href=
"http://en.wikipedia.org/wiki/Monotonicity_of_entailment"
>monotonic</a></dfn>.</p>
<table>
<tr><th></th><th>RDF</th><th>XML</th></tr>
<tr>
<th>Premise</th>
<td>
<pre>
<Book rdf:ID="book1">
<dc:title>The Grapes of Wrath</title>
<dc:creator>Steinbeck</author>
</Book>
</pre>
</td>
<td>
<pre>
<xsd:simpleType name="myInteger">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="10000"/>
<xsd:maxInclusive value="99999"/>
</xsd:restriction>
</xsd:simpleType>
</pre>
</td>
</tr>
<tr><th>Conclusion</th>
<td>
<pre>
<Book rdf:ID="book1">
<dc:title>The Grapes of Wrath</title>
</Book>
</pre>
</td>
<td>
<pre>
<!-- no, this does not follow -->
<xsd:simpleType name="myInteger">
<xsd:restriction base="xsd:integer">
<xsd:maxInclusive value="99999"/>
</xsd:restriction>
</xsd:simpleType>
</pre>
</td>
</tr>
</table>
<p class="footnote">*RDF/XML does have a
<tt>rdf:parseType="Collection"</tt> syntax, which
expands to a lisp style binary tree in the abstract syntax. This
erasure property works not on XML elements, but on RDF statements.
</p>
</div>
<div class="slide"><h1>On RDF/XML Syntax</h1>
<ul>
<li>Too constrained for some
<ul>
<li>Tries to look like Book/author/title metadata but has subtle
constraints with striping, rdf:about,rdf:resource, etc.</li>
</ul>
</li>
<li>Not constrained enough for others
<ul>
<li>doesn't work with DTDs nor W3C XML Schemas; works awkwardly
with XPath and XSLT</li>
</ul>
</li>
</ul>
<p>At least the issues in the 1998 spec have all been resolved,
complete with test cases. There are plenty of interoperable
parsers. And it works great with Relax-NG and nxml-mode :)</p>
</div>
<div class="slide">
<h1>Using GRDDL to get RDF from XML, XHTML</h1>
<p><b>GRDDL</b> (<b>G</b>leaning <b>R</b>esource <b>D</b>escriptions
from <b>D</b>ialects of <b>L</b>anguages) is a
way to boostrap <b>RDF</b> out of <b>XML</b> and in
particular <b>XHTML</b> data by explicitly linking
<b>transformations</b> from RDF to XML.</p>
<p><b>GRDDL</b> terminology:</p>
<ol>
<li><dfn>Source Document</dfn>: an XML document which references at least one GRDDL transformation and hence licenses a GRDDL-aware to extract RDF.</li>
<li><dfn>GRDDL-aware agent</dfn>: a software agent able to identify the GRDDL transformations and run them to extract RDF.</li>
<li><dfn>GRDDL Transformation</dfn>: an algorithm for getting RDF from a source document</li>
</ol>
</div>
<div class="slide">
<h1>Microformats and the Semantic Web?</h1>
<div class="figure">
<img align="center" src="images/newsemanticweb.jpg" >
</div>
</div>
<div class="slide">
<h1>Describing your Social Network</h1>
<p>Recall Jane needs to her list of trusted sources
in some machine readable format.</p>
<ul>
<li><b>RDF</b>: <a href="http://www.foaf-project.org/">FOAF</a> "Friend of a Friend"</li>
<li><b>RDF</b>: VCard/RDF <a href="http://www.w3.org/2006/vcard/ns">vCard/RDF</a>.</li>
<li> <b>Microformats</b>: <a href="http://gmpg.org/xfn/">XFN</a>,
"<strong>X</strong>HTML <strong>F</strong>riends <strong>N</strong>etwork"
</li>
</ul>
<p>As long as they can be mapped to RDF, they can be mapped to each other.</p>
</div>
<div class="slide">
<h1>Xhtml Friends Network (XFN): an XHTML profile</h1>
<ol>
<li><a href="http://gmpg.org/xfn/">XFN</a>
is an microformat for social network data; this profile
of HTML is named with a URI.</li>
<li>The <a href="http://www.w3.org/2001/sw/grddl-wg/doc29/janefriends.html">page of Jane's friends</a>
adds one attribute to declare this profile:</li>
</ol>
<pre>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head <span class="attn">profile="http://gmpg.org/xfn/11"</span>>
<title>Jane's XFN List</title>
</head>
<body>
<h1>Jane's <abbr title="XHTML Friends Network">XFN</abbr> List</h1>
<ul class="xoxo">
<li class="vcard"><a href="http://peter.example.org" class="url fn"
<span class="attn">rel="met collegue friend"</span>>Peter Smith</a></li>
<li class="vcard"><a href="http://john.example.org" class="url fn"
<span class="attn">rel="met"</span>>John Doe</a></li>
<li class="vcard"><a href="http://paul.example.org" class="url fn"
<span class="attn">rel="met"</span>>Paul Revere</a></li>
</ul>
</body>
</html>
</pre>
<p class="footnote">* actually, the XFN profile isn't quite
GRDDL-happy yet; but the
<a href="http://research.talis.com/2005/erdf/wiki/Main/RdfInHtml">eRDF</a>
profile is.</p>
</div>
<div class="slide">
<h1>Out comes mergeable RDF data</h1>
<p><em>magic* happens here...</em></p>
<pre>
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix h: <http://www.w3.org/1999/xhtml> .
@prefix xfn: <http://gmpg.org/xfn/11#> .
[]
foaf:homepage <http://www.w3.org/2001/sw/grddl-wg/doc29/janefriends.html>;
xfn:friend [
foaf:homepage <http://peter.example.org>
];
xfn:met [
foaf:homepage <http://peter.example.org>
], [
foaf:homepage <http://john.example.org>
], [
foaf:homepage <http://paul.example.org>
] .
</pre>
<p>*we'll explain the trick later.</p>
</div>
<div class="slide">
<h1>Using a GRDDL Transformation Directly</h1>
<p>The hReview microformat doesn't have an established profile yet, so the
<a href="http://www.w3.org/2001/sw/grddl-wg/doc29/hotel-data.html">Hotel Review</a> data uses GRDDL directly:</p>
<pre>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head <span class="attn">profile="http://www.w3.org/2003/g/data-view"</span>>
<title>Hotel Reviews from Example.com</title>
<span class="attn"><link rel="transformation"
href="http://www.w3.org/2001/sw/grddl-wg/doc29/hreview2rdfxml.xsl"/></span>
</head>
<div class="hreview" id="_665">
<div class="item vcard">
<b class="fn org">Witch's Caldron Hotel, Edinburgh</b>
<span class="attn"><span><span class="rating">5</span> out of 5 stars</span></span>
</pre>
<ol>
<li>The <tt>transformation</tt> link tells a GRDDL-aware agent how to
find an transformation, <tt>../hreview2rdfxml.xsl</tt> from this syntax to
standard RDF/XML syntax.</li>
<li>The <a
href="http://www.w3.org/2003/g/data-view">http://www.w3.org/2003/g/data-view</a>
profile shows that this document uses <tt>rel="transformation"</tt> as
specified in by GRDDL.</li>
</ol>
</div>
<div class="slide"><h1>SQL * URIs = SPARQL</h1>
<img align="right"
src="http://www.w3.org/DesignIssues/diagrams/spv-table.png"
alt="table subject/property/value" />
<pre>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX c: <http://www.w3.org/2002/12/cal/icaltzd#>
SELECT ?name, ?summary, ?when
FROM <myFriendsBlogsData>
WHERE { ?somebody foaf:name ?name; foaf:mbox ?mbox.
?event c:summary ?summary;
c:dtstart ?ymd;
c:attendee [ c:calAddress ?mbox ]
}.
</pre>
<table border="1">
<tr><th>?name</th><th>?summary</th><th>?when</th></tr>
<tr><td>Tantek Çelik</td><td>Web 2.0</td><td>2005-10-05</td></tr>
<tr><td>Norm Walsh</td><td>XML 2005</td><td>2005-11-13</td></tr>
<tr><td>Dan Connolly</td><td>W3C tech plenary</td><td>2006-02-27</td></tr>
</table>
<p>See <cite><a href="http://www.w3.org/TR/rdf-sparql-query/">SPARQL
Query Language for RDF</a></cite> W3C Working Draft.</p>
</div>
<div class="slide">
<h1>Putting RDF to Work with SPARQL</h1>
<p>"Find reviews better than 2 stars and tell me the name
of the hotel and the reviewer."</p>
<pre>
<code>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX rev: <http://www.purl.org/stuff/rev#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?name ?rating ?hotelname
FROM <http://www.w3.org/2001/sw/grddl-wg/doc29/review.rdf>
WHERE {
?x rev:hasReview ?review.
?review rev:rating ?rating;
rdfs:label ?hotelname;
rev:reviewer [ foaf:name ?name ].
FILTER (?rating > 2).
}
</code>
</pre>
<p>Details: <a href="../doc29/hotelquery1.rq">hotelquery1.rq</a></p>
</div>
<div class="slide">
<h1>SPARQL results from hReview data</h1>
<p>The query worked, but it's not precise enough:</p>
<table border="1">
<tr>
<td><b>name</b> </td><td> <b>rating</b> </td><td> <b>hotelname</b> </td>
</tr><tr>
<td> "PeterS" </td><td> 5 </td><td>"Enlightenment Amsterdam Hotel" </td>
</tr><tr>
<td> "RexR" </td><td> 5 </td><td> "Pilgrim Hostel" </td>
</tr><tr>
<td> "PeterS" </td><td> 4 </td><td>"Fano Hotel" </td>
</tr><tr>
<td> "MaryV" </td><td> 5 </td><td>"Franklin Hotel, Philadelphia" </td>
</tr><tr>
<td> "Simon" </td><td>5 </td><td> "Forest Cafe Youth Hostel, Edinburgh" </td>
</tr><tr>
<td> "JennyR" </td><td>3 </td><td>"Merton Atlanta" </td>
</tr><tr>
<td> "JohnD" </td><td>4 </td><td>"Walter Scot Hotel, Edinburgh" </td>
</tr><tr>
<td> "PeterS" </td><td>5 </td><td>"Royal Moon Hotel, Boston" </td>
</tr><tr>
<td> "JohnD" </td><td>5 </td><td>"Elena Plaza Hotel" </td>
</tr><tr>
<td> "PeterS" </td><td>5 </td><td>"Witch's Caldron Hotel, Edinburgh" </td>
</tr><tr>
<td> "RexR" </td><td>3 </td><td>"Bond Plaza Hotel" </td>
</tr><tr>
<td> "RexR" </td><td>5 </td><td>"McRae Palace, Edinburgh" </td>
</tr><tr>
<td> "RexR" </td><td>5 </td><td>"Ritchie Centre, Edinburgh" </td>
</tr><tr>
<td> "PeterS" </td><td> 5 </td><td> "Maximus New York Hotel & Towers" </td>
</tr>
</table>
</div>
<div class="slide">
<h1>More precise SPARQL query</h1>
<p>"Find reviews
of hotels <span class="attn">in Edinburgh</span>
better than 2 stars and tell me the name
of the hotel and the reviewer."</p>
<pre>
<code>
SELECT DISTINCT ?name ?rating ?homepage
FROM <hotel-data.rdf>
FROM <janefriends.rdf>
WHERE {
?x rev:hasReview ?review;
<span class="attn">vcard:adr [ vcard:locality "Edinburgh" ].</span>
?review rev:rating ?rating;
rdfs:label ?hotelname;
rev:reviewer [ foaf:name ?name ].
FILTER (?rating > 2).
</code>
</pre>
<p><a href="http://www.w3.org/2001/sw/grddl-wg/doc29/hotelquery2.rq">Sample Query Online</a></p>
</div>
<div class="slide">
<h1>SPARQL results from hReview and vcard locality data</h1>
<p>This shows hotels with a rating of 2 stars or higher that are
located in Edinburgh, but there might be review spam:</p>
<table border="1">
<tr>
<td><b> rating</b> </td><td> <b>name</b> </td><td> <b>hotelname</b> </td><td> <b>region</b> </td>
</tr><tr>
<td> 5 </td><td> "RexR" </td><td>"Ritchie Centre, Edinburgh" </td><td> "Edinburgh" </td>
</tr><tr>
<td> 5 </td><td> "PeterS" </td><td> "Witch's Caldron Hotel, Edinburgh" </td><td>"Edinburgh" </td>
</tr><tr>
<td> 5 </td><td> "Simon" </td><td> "Forest Cafe Youth Hostel, Edinburgh" </td><td>"Edinburgh" </td>
</tr><tr>
<td> 5 </td><td> "RexR" </td><td>"McRae Palace, Edinburgh" </td><td> "Edinburgh" </td>
</tr><tr>
<td> 4 </td><td> "JohnD" </td><td>"Walter Scott Hotel, Edinburgh" </td><td>"Edinburgh" </td>
</tr>
</table>
</div>
<div class="slide">
<h1>Mashing up Friends and Hotel Reviews</h1>
<ul>
<li>Recall RDF data merges naturally... </li>
<li>... e.g. the <a href="../doc29/xfn.rdf">friends data</a>
and the <a href="../doc29/review.rdf">hotel data</a>
</li>
<li>Any URI used in both data sets is a shared point in the graph.</li>
</ul>
</div>
<div class="slide">
<h1>Querying for Trusted Reviews</h1>
<p>"Find reviews <span class="attn">by my friends</span> of hotels in
Edinburgh better than 2 stars and tell me the name of the hotel and
the reviewer."</p>
<pre><code>
PREFIX xfn: <http://gmpg.org/xfn/11#>
SELECT DISTINCT ?rating ?name ?homepage ?hotelname
FROM <review.rdf>
FROM <xfn.rdf>
WHERE {
?place rev:hasReview ?review;
vcard:adr [ vcard:Locality "Edinburgh"].
?review
rdfs:label ?hotelname;
rev:rating ?rating;
<span class="attn">rev:reviewer ?reviewer</span>.
FILTER (?rating > 2).
<span class="attn">?reviewer foaf:name ?name;
foaf:homepage ?homepage.
[ foaf:homepage <janefriends.html> ]
xfn:friend [ foaf:homepage ?homepage ].</span>
}
</code></pre>
<p>Details: <a href="http://www.w3.org/2001/sw/grddl-wg/doc29/hotelquery3.rq">hotelquery3.rq</a></p>
</div>
<div class="slide">
<h1>Hotel query diagram</h1>
<p>"Find reviews <span class="attn">by my friends</span> of hotels in
Edinburgh better than 2 stars and tell me the name of the hotel and
the reviewer."</p>
<div class="figure">
<img alt="hotel review query diagram" src="hotel-query.png" />
</div>
</div>
<div class="slide">
<h1>Trusted Reviews from SPARQL via GRDDL</h1>
<p>Just right:</p>
<table border="1">
<tr>
<th>rating</th><th>name</th><th>region</th>
<th>homepage</th>
<th>hotelname</th>
</tr>
<tr>
<td>5</td>
<td>PeterS</td>
<td>Edinburgh</td>
<td>http://peter.example.org</td>
<td>Witch's Caldron Hotel, Edinburgh</td>
</tr>
</table>
</div>
<div class="slide">
<h1>Return to Calendar Mash-up</h1>
<p>When can Jane, David, and Robin meet?</p>
<ul>
<li>Jane keeps <a href="../doc29/janeschedule.html">her calendar</a> in one format (RDFa)</li>
<li>David uses another (eRDF) for <a
href="../doc29/david-erdf.html">his calendar</a></li>
<li>Robin keeps <a href="../doc29/robin-hcal-grddl.html">his schedule</a> in a 3rd format (hCalendar)</li>
</ul>
</div>
<div class="slide">
<h1>Embedded RDF</h1>
<p>David has chosen to mark up his <a href="david-erdf.html">schedule</a> using <a href="http://research.talis.com/2005/erdf/wiki/Main/RdfInHtml">Embedded RDF</a> (an alternative to <a href="http://www.w3.org/2006/07/SWD/RDFa/primer/">RDFa</a>), a way to use GRDDL to get out RDF from documents.</p>
<p><a href="http://www.w3.org/2001/sw/grddl-wg/doc29/david-erdf.html">Embedded RDF file online</a></p>
<pre><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://purl.org/NET/erdf/profile">
<title>Where Am I</title>
<link rel="schema.cal" href="http://www.w3.org/2002/12/cal#" />
</head>
<body>
<p class="-cal-Vevent" id="tiddlywinks">
From <span <span class="attn">class="cal-dtstart" title="2006-10-07"</span>>7 October, 2006</span>
to <span class="cal-dtend" title="2006-10-13">12 October, 2006</span>
I will be attending the <span class="cal-summary">National Tiddlywinks
Championship</span> in
<span class="cal-location">Bognor Regis, UK</span>.
</p>
<p class="-cal-Vevent" id="holiday">
Then I'm <span class="cal-summary">on holiday</span> in the
<span class="cal-location">Cayman Islands</span> between
<span class="cal-dtstart" title="2006-11-14">14 November, 2006</span>
and <span class="cal-dtend" title="2007-01-02">1 January, 2007</span>.
</p>
<p class="-cal-Vevent" id="award">
I then visit Scotland on <span class="cal-dtstart" title="2007-01-08">the 8th
January</span> to <span class="cal-summary">pick up a lifetime
achievement award from the world gamers association</span>. This time
the ceremony is in <span class="cal-location">Edinburgh, UK</span>. I'll be
taking the train home on the <span class="cal-dtend" title="2007-01-11">10th</span>.
</p>
</body>
</html>
</pre>
</div>
<div class="slide">
<h1>The magic trick: GRDDL Recursion</h1>
<p>GRDDL <b>has gone meta</b>!</p>
<p>This allows the HTML profile document to be GRDDL-enabled to link the standard library transformation of <span class="attn"> <link rel="transformation" href="http://www.w3.org/2003/g/glean-profile" /></span> and so extract the <span class="attn"><a href="http://www.w3.org/2003/g/data-view#profileTransformation">http://www.w3.org/2003/g/data-view#profileTransformation</a></span> whose object is the transformation itself.</p>
<div class="figure">
<img src="http://www.w3.org/2004/01/rdxh/figGleanProfile.png"
alt="A diagram indicating the sequence of steps for obtaining RDF from a document using the profile URI as described in the preceding paragraph"
/>
</div>
</div>
<div class="slide">
<h1>Linking GRDDL to a Profile Document</h1>
<p>Embedded RDF has a link to a GRDDL transformation in its <a href="http://purl.org/NET/erdf/profile">profile document.</a></p>
<pre><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://www.w3.org/2003/g/data-view">
<title>Embedded RDF HTML Profile</title>
<span class="attn"> <link rel="transformation" href="http://www.w3.org/2003/g/glean-profile" /></span>
</head>
<body>
<p>
<span class="attn"> <a rel="profileTransformation"
href="http://purl.org/NET/erdf/extract-rdf">GRDDL transform</a>
</p></span>
</body>
</html>
</pre>
</div>
<div class="slide">
<h1>GRDDL in Namespace Documents</h1>
<p class="subhead">
No Transformation Links - just go to the <b>namespace</b> document!
</p>
<p>In RDF, OWL, RDF Schema:</p>
<pre>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
<font color="red">xmlns:dataview="http://www.w3.org/2003/g/data-view#"></font>
<rdf:Description <font color="red">rdf:about="http://www.w3.org/2004/01/rdxh/p3q-ns-example"></font>
<span class="attn"><dataview:namespaceTransformation
rdf:resource="http://www.w3.org/2004/01/rdxh/grokP3Q.xsl"/></span>
</rdf:Description>
</rdf:RDF>
</pre>
<p>In XML Schema:</p>
<pre>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http:.../Order-1.0"
targetNamespace="http:.../Order-1.0"
version="1.0"
...
xmlns:data-view="http://www.w3.org/2003/g/data-view#"
data-view:transformation="http://www.w3.org/2003/g/embeddedRDF.xsl" >
<xsd:element name="Order" type="OrderType">
<xsd:annotation
<xsd:documentation>This element is the root element.</xsd:documentation>
</xsd:annotation>
...
<xsd:annotation>
<xsd:appinfo>
<span class="attn"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="http://www.w3.org/2003/g/po-ex">
<data-view:namespaceTransformation
rdf:resource="grokPO.xsl" />
</rdf:Description>
</rdf:RDF></span>
</xsd:appinfo>
</xsd:annotation>
...
</pre>
</div>
<div class="slide">
<h1>RDF for Free</h1>
<p><i>Is it too much work to ask people to add the transformation and profile to their individual instance data?</i></p>
<p>Creators or maintainers of vocabularies can also give users of their data the option of having their data transformed into RDF without having to even add any new markup to individual documents</p>
<p>Since once the tranformation has been linked to the profile or namespace document, all the users of the dialect get the added value of RDF <b>for free</b></p>
<p>In either the namespace document or profile URI there has to be the following RDF property: <a href="http://www.w3.org/2003/g/data-view#profileTransformation">http://www.w3.org/2003/g/data-view#profileTransformation</a> whose subject is the namespace doc or profile document and whose object is the transformation itself.
</p>
</div>
<div class="slide">
<h1>RDFa</h1>
<p>While GRDDL has primarily in the wild been used to convert
widely deployed microformats to RDF, it can actually be used
with the W3C <a href=
"http://www.w3.org/2006/07/SWD/RDFa/primer/">RDFa</a> work item that
allows one to "microformat-style" embed arbitary RDF statements
in HTML</p>
<p>RDFa is useful because <a href=
"http://www.microformats.org">microformats</a> exist as a
number of centralized vocabularies, and what if you want to
mark-up meta-data in a web-page about a subject there isn't a
microformat about?</p>
<p>Since RDFa is still a <b>moving target</b>, we personally
recommend people use Embedded RDF for the time being unless
they are willing to track the changes in RDFa, but RDFa is more
expressive than Embedded RDF (allowing XML Schema datatypes,
etc.</p>
</div>
<div class="slide">
<h1>HTML Contains Implicit Structure</h1>
<pre style="font-size:1.1em;">
This document is licensed under a
<a href="http://cc.org/licenses/by/3.0/">
CC License
</a>
and was written by TimBL.
</pre>
<ul>
<li> The idea that this implicit structured can be marked up is not new: <b>microformats</b>.</li>
<li> What's new:
<ul>
<li> consistent syntax,</li>
<li> leveraging all the goodness of RDF,</li>
<li> true mashup-ability of web data.</li>
</ul>
</li>
<li> RDFa = RDF in attributes</li>
</ul>
</div>
<div class="slide">
<h1>Basic Stuff: Typing a Link</h1>
<pre style="font-size:1.1em;">
This document is licensed under a
<a href="http://cc.org/licenses/by/3.0/"
<font style="color:red;">xmlns:cc="http://cc.org/ns#" rel="cc:license"</font>>
CC License
</a>
and was written by TimBL.
</pre>
<ul>
<li> use existing HTML attributes whenever possible: <tt>rel</tt>.</li>
<li> "Bridging the Clickable and Semantic Webs": there's already a clickable link, now we type it.</li>
<li> self-contained:
<ul>
<li> copy-and-paste a chunk of HTML along with its RDFa.</li>
<li> build "RDFa wizards" to create copy-and-paste-able content-and-structure.</li>
<li> combine "widgets" on a page, each widget with its own HTML+RDFa (no interference).</li>
</ul></li>
</ul>
</div>
<div class="slide">
<h1>More Complex Structure: RDFa goes Deep</h1>
<pre style="font-size:1.1em;">
This document
...
<div <font style="color:red;">rel="dc:creator" class="foaf:Person"
xmlns:dc="http://..." xmlns:foaf="http://..."</font>>
and was written by
<span <font style="color:red;">property="foaf:nickname"</font>>
TimBL
</span>.
</div>
</pre>
<p>
yields
</p>
<pre style="font-size:1.1em;">
<> dc:creator [a foaf:Person ; foaf:nickname "TimBL"] .</pre>
<ul>
<li> slightly expand the use of HTML attributes: <tt>rel</tt> on any element to introduce a new RDF bnode (striping).</li>
<li> use the inherent semantics of HTML: <tt>class</tt> attribute is type information.</li>
</ul>
</div>
<div class="slide">
<h1>GRDDL Does RDFa</h1>
<p><a href=
"http://www.w3.org/2001/sw/grddl-wg/doc29/janeschedule.html">RDFa
for Jane's schedule online</a></p>
<p><a href=
"http://www.w3.org/2001/sw/grddl-wg/doc29/janeschedule.rdf">RDFa
After GRDDL</a></p>
<pre>
<html xmlns:cal="http://www.w3.org/2002/12/cal/icaltzd#" xmlns:xs="http://www.w3.org/2001/XMLSchema#"><br />
<span class=
"attn"><head profile="http://www.w3.org/2003/g/data-view"></span>
<title>Jane's Blog</title>
<span class="attn"> <link rel="transformation" <br />
href="http://www.w3.org/2001/sw/grddl-wg/td/RDFa2RDFXML.xsl"/></span>
</head>
<body>
<p about="#event1" class ="cal:Vevent">
<b <span class=
"attn">property="cal:summary"></span>Weekend off in Iona</b>: <br />
<span <span class=
"attn">property="cal:dtstart" content="2006-10-21" datatype="xs:date"</span>>Oct 21st</span><br />
<br />
to <span property="cal:dtend" content="2006-10-21" datatype="xs:date">Oct 23rd</span>.<br />
See <a rel="cal:url" href="http://freetime.example.org/">FreeTime.Example.org</a> for<br />
info on <span property="cal:location">Iona, UK</span>.<br />
</p><br />
<p about="#event2" class ="cal:Vevent"><br />
<b property="cal:summary">Holiday in Ireland</b>: <br />
<span property="cal:dtstart" content="2006-12-23" datatype="xs:date">Dec 23rd</span><br />
<br />
to <span property="cal:dtend" content="2006-12-27" datatype="xs:date">Dec 27th</span>.<br />
See <a rel="cal:url" href="http://vacation.example.org/">Vacation.Example.org</a> for<br />
info on <span property="cal:location">Belfast, Ireland</span>.<br />
</p><br />
<p><b>New Years!</b> Now it's 2007...</p><br />
<p about="#event3" class ="cal:Vevent"><br />
<br />
<b property="cal:summary">Web Conference</b>: <br />
<span property="cal:dtstart" content="2007-01-08" datatype="xs:date">Jan 8th</span><br />
to <span property="cal:dtend" content="2007-01-11" datatype="xs:date">Jan 11th</span>.<br />
See <a rel="cal:url" href="http://webconf.example.org/">webconf.example.org</a> for<br />
info on <span property="cal:location">Edinburgh, UK</span>.<br />
</p><br />
</pre>
</div>
<div class="slide">
<h1>Onwards!</h1>
<p>Time for a break!</p>
<p><a href="gtut2.html">Now to Second Part</a></p>
</div>
</body>
</html>