-
Notifications
You must be signed in to change notification settings - Fork 0
/
dwbp-example.html
599 lines (564 loc) · 25 KB
/
dwbp-example.html
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
<!DOCTYPE html>
<html prefix="dcat: http://www.w3.org/ns/dcat#
dqv: http://www.w3.org/ns/dqv#
dct: http://purl.org/dc/terms/" lang="en" >
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title>DWBP - Examples</title>
<meta content="width=device-width,initial-scale=1" name="viewport" />
<style type="text/css">
.container {
font-family: sans-serif;
max-width: 968px;
margin: 0 auto;
}
.human-readable-example {
background-color: transparent;
border-collapse: collapse;
border-spacing: 0px;
color: #333;
width: 100%;
}
.human-readable-example td {
padding: 6px 3px 6px 3px;
}
.human-readable-example tr:first-child td:first-child {
width: 25%;
}
.human-readable-example tr:nth-child(even) {
background-color: #F7F7F7;
}
.human-readable-example tr:nth-child(odd) {
background-color: #FFFFFF;
}
div.example {
padding: 0.5em;
border-left: 0.5em solid #E0CB52;
border-color: #E0CB52;
background: none repeat scroll 0% 0% #FCFAEE;
}
a {
color: #00C;
text-decoration: none;
}
a[href]:hover {
background: none repeat scroll 0% 0% #FFA;
}
form#duv-feedback {
width: 48%;
display: block;
}
form#duv-feedback fieldset label {
margin-top: 16px;
width: 100%;
display: block;
}
form#duv-feedback fieldset label.radio-motivation {
display: inline;
margin-right: 10px;
}
form#duv-feedback fieldset textarea {
width: 100%;
}
pre#rdf-duv-feedback-turtle {
white-space: pre-wrap;
}
section:target, div:target, tbody:target, tr:target {
background: #F7F1D0;
border: 1px dashed red;
padding: 10px;
border-top-right-radius: 15px;
}
#td-version {
width: 16px;
}
</style>
</head>
<body>
<div class="container">
<h1>Bus stops of MyCity</h1>
<div id="abstract">
<p>This is the human-readable version of <a href="http://w3.org/TR/dwbp/#basicExample">examples</a> used in the <a href="http://w3.org/TR/dwbp/"><abbr title="Data on the Web Best Practices">DWBP</abbr> document</a>. Please note that, as this is a fictional example, hyperlinks to the data.mycity.example.com domain simply link to example.com which defreferences to an explanation that the domain is designed for use in examples and serves no other function. </p>
</div>
<section resource="#timetable-001" typeof="dcat:Dataset" id="dataset-section">
<div id="dataset-description">
<h2>Dataset description</h2>
<table class="human-readable-example" summary="This table has the dataset description. The first column has the keywords and the seconde has the values.">
<tbody>
<tr>
<td>Title</td>
<td property="dct:title">Bus timetable of MyCity</td>
</tr>
<tr>
<td>URI</td>
<td>http://data.mycity.example.com/transport/dataset/bus/stops-2015-05-05</td>
</tr>
<tr>
<td>Keywords</td>
<td><span property="dcat:keyword">transport</span>, <span property="dcat:keyword">mobility</span>, <span property="dcat:keyword">bus</span></td>
</tr>
</tbody>
<tbody id="provenance-info">
<tr>
<td>Publication date</td>
<td><span property="dct:issued" content="2015-05-05" datatype="xsd:date">2015-05-05</span></td>
</tr>
<tr>
<td id="publisher">Publisher</td>
<td property="dct:publisher" resource="#publisher" typeof="foaf:Organization prov:Agent"><span property="foaf:name">Transport Agency MyCity</span></td>
</tr>
<tr>
<td>Creator</td>
<td property="dct:creator" typeof="foaf:Person"><span property="foaf:name">John</span> <<a href="mailto:[email protected]" property="foaf:mail">[email protected]</a>><span property="prov:onBehalfOf" resource="#publisher"></span></td>
</tr>
</tbody>
<tbody>
<tr>
<td>Contact point</td>
<td><a property="dcat:contactPoint" href="http://example.com/transport/contact">http://data.mycity.example.com/transport/contact</a></td>
</tr>
<tr>
<td>Period that the dataset covers</td>
<td><a property="dct:temporal" href="http://reference.data.gov.uk/id/year/2014">The
British calendar year of 2014</a></td>
</tr>
<tr>
<td>Spatial coverage</td>
<td><a property="dct:spatial" href="http://www.geonames.org/3399415">Fortaleza,
Brazil</a></td>
</tr>
<tr>
<td>Update frequency</td>
<td><a property="dct:accrualPeriodicity" href="http://purl.org/linked-data/sdmx/2009/code#freq-A">Annual</a></td>
</tr>
<tr>
<td>Theme</td>
<td>Mobility</td>
</tr>
<tr id="locale-parameters">
<td>Language</td>
<td>English, Portuguese</td>
</tr>
<tr>
<td>Date and time formats</td>
<td>ISO 8601</td>
</tr>
<tr>
<td>Current version</td>
<td>1.2</td>
</tr>
<!--<tr>
<td>Previous version</td>
<td>1.1 stops-2015-05-05</td>
</tr>-->
</tbody>
</table>
</div>
<div id="dataset-distributions">
<h2>Dataset distributions</h2>
<h3 property="dcat:distribution" resource="#timetable-001-RDF">RDF Distribution</h3>
<table resource="#timetable-001-RDF" typeof="dcat:Distribution" class="human-readable-example" summary="This table describes the RDF distribution of the dataset. The first column has the keywords and the seconde has the values." >
<tbody>
<tr>
<td>Title</td>
<td property="dct:title">RDF distribution of stops-2015-05-05 dataset</td>
</tr>
<tr>
<td>Description</td>
<td property="dct:description">RDF distribution of the stops dataset of MyCity.</td>
</tr>
<tr>
<td>Media type</td>
<td property="dcat:mediaType">text/turtle</td>
</tr>
<tr>
<td>License</td>
<td> <a href="http://creativecommons.org/licenses/by-sa/3.0/"> CC
BY-SA 3.0 </a>
</td>
</tr>
<tr>
<td>Publication date</td>
<td><span property="dct:issued" content="2015-05-05" datatype="xsd:date">2015-05-05</span></td>
</tr>
<tr>
<td>Last modification</td>
<td><span property="dct:modified" content="2015-05-05" datatype="xsd:date">2015-05-05</span></td>
</tr>
<tr>
<td>Download URL</td>
<td><a property="dcat:downloadURL" href="http://example.com/transport/dataset/bus/stops-2015-05-05.ttl">http://data.mycity.example.com/transport/dataset/bus/stops-2015-05-05.ttl</a>
</td>
</tr>
</tbody>
</table>
<h3 id="timetable-001-CSV" property="dcat:distribution" resource="#timetable-001-CSV"> CSV Distribution </h3>
<table about="#timetable-001-CSV" typeof="dcat:Distribution" class="human-readable-example" summary="This table describes the CSV distribution of the dataset. The first column has the keywords and the seconde has the values.">
<tbody>
<tr>
<td>Title</td>
<td property="dct:title">CSV distribution of stops-2015-05-05 dataset</td>
</tr>
<tr>
<td>Description</td>
<td property="dct:description">CSV distribution of the bus stops dataset of MyCity.</td>
</tr>
<tr>
<td>Media type</td>
<td property="dcat:mediaType">text/csv</td>
</tr>
<tr id="license-info">
<td>License</td>
<td><a href="http://creativecommons.org/licenses/by-sa/3.0/">CC
BY-SA 3.0</a></td>
</tr>
<tr>
<td>Publication date</td>
<td><span property="dct:issued" content="2015-05-05" datatype="xsd:date">2015-05-05</span></td>
</tr>
<tr>
<td>Last modification</td>
<td><span property="dct:modified" content="2015-05-05" datatype="xsd:date">2015-05-05</span></td>
</tr>
<tr>
<td>Download URL</td>
<td> <a property="dcat:downloadURL" href="http://example.com/transport/dataset/bus/stops-2015-05-05.csv">http://data.mycity.example.com/transport/dataset/bus/stops-2015-05-05.csv</a>
</td>
</tr>
</tbody>
</table>
<!--<table>
<tr>
<th>Dimension</strong></th>
<th>Value</th>
<th>Metric</th>
</tr> -->
<div id="dqv-info">
<h4>Data Quality - CSV Distribution</h4>
<table class="human-readable-example" summary="This table describes the Data Quality fields of the CSV distribution.">
<tbody>
<tr about="#completeness" typeof="dqv:Dimension" property="dqv:inCategory" resource="#intrinsicDimensions">
<td><strong><span property="skos:prefLabel">Completeness</span></strong></td>
<td property="skos:definition">Refers to the degree to which all required information is present in a particular dataset.</td>
</tr>
<tr about="#csvCompletenessMetric" typeof="dqv:Metric" property="dqv:inDimension" resource="#completeness">
<td >Metric</td>
<td property="skos:definition">Ratio between the number of objects represented in the cvs and the number of objects expected to be represented according to the declared dataset scope.</td>
</tr>
<tr about="#measure2" typeof="dqv:QualityMeasurement" property="dqv:isMeasurementOf" resource="#csvCompletenessMetric">
<td>Value</td>
<td>
<span about="#measure2" property="dqv:computedOn" resource="#timetable-001-CSV"></span>
<span property="dqv:value" datatype="xsd:double">0.5</span> (Double)
</td>
</tr>
<tr about="#availability" typeof="dqv:Dimension" property="dqv:inCategory" resource="#accessibility">
<td><strong><span property="skos:prefLabel">Availability</span></strong></td>
<td property="skos:definition">Refers to the extent to which data (or some portion of it) is present, obtainable and ready for use.</td>
</tr>
<tr about="#downloadURLAvailabilityMetric" typeof="dqv:Metric" property="dqv:inDimension" resource="#availability">
<td>Metric</td>
<td property="skos:definition">dcat:downloadURL is available and its value is dereferenceable.</td>
</tr>
<tr about="#measure1" typeof="dqv:QualityMeasurement" property="dqv:isMeasurementOf" resource="#downloadURLAvailabilityMetric">
<td>Value</td>
<td>
<span about="#measure1" property="dqv:computedOn" resource="#timetable-001-CSV"></span>
<span property="dqv:value" datatype="xsd:boolean">true</span>(Boolean)
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="dataset-structural-metadata">
<h4>Structural metadata - CSV Distribution</h4>
<!--<p>Schema of the dataset "Bus stops of MyCity".</p> -->
<table class="human-readable-example" summary="This table describes the structure of the CSV distribution.">
<tbody>
<tr>
<th>Field</th>
<th>Titles</th>
<th>Description</th>
<th>Datatype</th>
<th>Primary key</th>
<th>Required</th>
</tr>
<tr>
<td>stop_id</td>
<td>Identifier</td>
<td>An identifier for the bus stop.</td>
<td>string</td>
<td>true</td>
<td>true</td>
</tr>
<tr>
<td>stop_name</td>
<td>Name</td>
<td>The name of the bus stop.</td>
<td>string</td>
<td></td>
<td></td>
</tr>
<tr>
<td>stop_desc</td>
<td>Description</td>
<td>A description for the bus stop.</td>
<td>string</td>
<td></td>
<td></td>
</tr>
<tr>
<td>stop_lat</td>
<td>Latitude</td>
<td>The latitude of the bus stop.</td>
<td>numeric</td>
<td></td>
<td></td>
</tr>
<tr>
<td>stop_long</td>
<td>Longitude</td>
<td>The longitude of the bus stop.</td>
<td>numeric</td>
<td></td>
<td></td>
</tr>
<tr>
<td>zone_id</td>
<td>Zone</td>
<td>An identifier for the zone where the bus stop is located.</td>
<td>string</td>
<td></td>
<td></td>
</tr>
<tr>
<td>stop_url</td>
<td>URL</td>
<td>URL that identifies the bus stop.</td>
<td>string</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
<div id="dataset-versioning-information">
<h2>Dataset version history </h2>
<!-- <table class="human-readable-example">
<tbody>
<tr>
<td>Current version</td>
<td>stops-2016-05-05</td>
</tr>
<tr>
<td>Previous version</td>
<td>stops-2015-05-05</td>
</tr>
</tbody>
</table> -->
<!--<h3>Change history</h3>-->
<table class="human-readable-example" summary="This table shows the version history of the dataset with the version number, issue date, URI and change history.">
<thead>
<tr>
<th>Version</th>
<th>Issue date</th>
<th>URI</th>
<th>Change history</th>
</tr>
</thead>
<tbody>
<tr>
<td id="td-version">1.1</td>
<td>2015-05-05</td>
<td>http://data.mycity.example.com/transport/dataset/bus/stops-2015-05-05</td>
<td>The bus stops dataset was updated to reflect the creation of a new bus stop at 1115 Pearl Street.</td>
</tr>
<tr>
<td>1.2</td>
<td>2016-05-05</td>
<td>http://data.mycity.example.com/transport/dataset/bus/stops-2016-05-05</td>
<td>The bus stops dataset was updated to reflect the creation of new bus stops since the last update and to follow the update frequency</td>
</tr>
</tbody>
</table>
</div>
<!--<div id="dataset-structural-metadata">
<h2>Dataset structural metadata</h2> -->
<!-- <p>Schema of the dataset "Bus stops of MyCity".</p>
<table class="human-readable-example">
<tbody>
<tr>
<th>Field</th>
<th>Titles</th>
<th>Description</th>
<th>Datatype</th>
<th>Primary key</th>
<th>Required</th>
</tr>
<tr>
<td>stop_id</td>
<td>Identifier</td>
<td>An identifier for the bus stop.</td>
<td>string</td>
<td>true</td>
<td>true</td>
</tr>
<tr>
<td>stop_name</td>
<td>Name</td>
<td>The name of the bus stop.</td>
<td>string</td>
<td></td>
<td></td>
</tr>
<tr>
<td>stop_desc</td>
<td>Description</td>
<td>A description for the bus stop.</td>
<td>string</td>
<td></td>
<td></td>
</tr>
<tr>
<td>stop_lat</td>
<td>Latitude</td>
<td>The latitude of the bus stop.</td>
<td>numeric</td>
<td></td>
<td></td>
</tr>
<tr>
<td>stop_long</td>
<td>Longitude</td>
<td>The longitude of the bus stop.</td>
<td>numeric</td>
<td></td>
<td></td>
</tr>
<tr>
<td>zone_id</td>
<td>Zone</td>
<td>An identifier for the zone where the bus stop is located.</td>
<td>string</td>
<td></td>
<td></td>
</tr>
<tr>
<td>stop_url</td>
<td>URL</td>
<td>URL that identifies the bus stop.</td>
<td>string</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>-->
</section>
<!--<section id="dqv-section">
<h2>Quality Dimensions and Metrics</h2>
<table class="human-readable-example">
<tr>
<th>Dimension</th>
<th>Definition</th>
<th>Metric</th>
</tr>
<tr>
<td>Completeness</td>
<td>Refers to the degree to which all required information is present in a particular dataset.</td>
<td>Ratio between the number of objects represented in the cvs and the number of objects expected to be represented according to the declared dataset scope.</td>
</tr>
<tr>
<td>Availability</td>
<td>Availability of a dataset is the extent to which data (or some portion of it) is present, obtainable and ready for use.</td>
<td>It checks if dcat:downloadURL is available and if its value is dereferenceable.</td>
</tr>
</table>-->
<!--<h3 about="#timetable-001-CSV" property="dqv:hasQualityMeasurement" resource="#measure1">Quality measure 1</h3>
<table class="human-readable-example" resource="#measure1" typeof="dqv:QualityMeasurement" id="measure1">
<tr>
<td property="dqv:metric" resource="#csvCompletenessMetric">Metric</td>
<td about="#csvCompletenessMetric" typeof="dqv:Metric"> <span property="skos:definition">Ratio between the number of objects represented in the cvs and the number of objects expected to be represented according to the declared dataset scope.</span> </td>
</tr>
<tr>
<td>Value </td>
<td> <span property="dqv:value" datatype="xsd:double">0.5</span> (Double)</td>
</tr>
<tr>
<td>Computed on</td>
<td property="dqv:computedOn" resource="#timetable-001-CSV"><a href="#timetable-001-CSV">bus-stops-2015-05-05.csv</a></td>
</tr>
<tr>
<td about="#csvCompletenessMetric" property="dqv:inDimension" resource="#completeness"> Dimension </td>
<td>
<table class="human-readable-example" about="#completeness" typeof="dqv:Dimension" property="dqv:inCategory" resource="#intrinsicDimensions">
<tr>
<td><span property="skos:prefLabel">Completeness</span></td>
</tr>
<tr>
<td><span property="skos:definition">Completeness refers to the degree to which all required information is present in a particular dataset.</span></td>
</tr>
</table>
</td>
</tr>
</table>
<h3 about="#timetable-001-CSV" property="dqv:hasQualityMeasurement" resource="#measure2">Quality measure 2</h3>
<table class="human-readable-example" resource="#measure2" typeof="dqv:QualityMeasurement" id="measure2">
<tr>
<td property="dqv:metric" resource="#downloadURLAvailabilityMetric">Metric</td>
<td about="#downloadURLAvailabilityMetric" typeof="dqv:Metric"> <span property="skos:definition">It checks if dcat:downloadURL is available and if its value is dereferenceable.</span> </td>
</tr>
<tr>
<td>Value </td>
<td> <span property="dqv:value" datatype="xsd:boolean">true</span> (Boolean)</td>
</tr>
<tr>
<td>Computed on</td>
<td property="dqv:computedOn" resource="#timetable-001-CSV"><a href="#timetable-001-CSV">bus-stops-2015-05-05.csv</a></td>
</tr>
<tr>
<td about="#downloadURLAvailabilityMetric" property="dqv:inDimension" resource="#availability"> Dimension </td>
<td>
<table class="human-readable-example" about="#availability" typeof="dqv:Dimension" property="dqv:inCategory" resource="#accessibility">
<tr>
<td><span property="skos:prefLabel">Availability</span></td>
</tr>
<tr>
<td><span property="skos:definition">Availability of a dataset is the extent to which data (or some portion of it) is present, obtainable and ready for use.</span></td>
</tr>
</table>
</td>
</tr>
</table>
</section> -->
<section id="duv-section">
<h2>Feedback</h2>
<form id="duv-feedback">
<fieldset>
<legend>Feedback form</legend>
<label for="feedback-about">Choose a dataset or distribution:</label>
<select name="feedbackAbout" id="feedback-about">
<option value="timetable-001-RDF">RDF distribution of bus-stops-2015-05-05 dataset</option>
<option selected="selected" value="timetable-001-CSV">CSV distribution of bus-stops-2015-05-05 dataset</option>
</select>
<label for="duv-rating">How do you classify the dataset or distribution?</label>
<select id="duv-rating">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5" selected="selected">5</option>
</select>
<p>Which kind of feedback would you like to give?</p>
<input type="radio" name="oa-motivation" value="correction" id="radio-correction" /><label for="radio-correction" class="radio-motivation" >Correction</label>
<input type="radio" name="oa-motivation" value="question" id="radio-question" checked="checked" /><label for="radio-question" class="radio-motivation">Question</label>
<input type="radio" name="oa-motivation" value="review" id="radio-review" /><label for="radio-review" class="radio-motivation">Review</label>
<label for="duv-userFeedback">Your feedback:</label>
<textarea id="duv-userFeedback">Is there a JSON-LD distribution available for this dataset?</textarea>
</fieldset>
</form>
</section>
</div>
</body>
</html>