forked from w3c/publ-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.json
669 lines (668 loc) · 32.7 KB
/
index.json
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
{
"date": "2019-12-04",
"title": "Tests for the publication manifest",
"href": "https://www.w3.org/TR/pub-manifest/",
"tests": [
{
"section": "§4. Publication Manifest",
"href": "https://www.w3.org/TR/pub-manifest/#manifest",
"tests": [
{
"id": "m4.01",
"description": "Basic, correct manifest, usable to test a local setup",
"actions": "Output the manifest",
"errors": "none",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.2.5. URLs",
"href": "https://www.w3.org/TR/pub-manifest/#value-url",
"tests": [
{
"id": "m4.2.5.01",
"description": "In case of an embedded manifest, 'base' is the URL of the embedded document",
"actions": "The absolute value of the chapter url should be relative to the URL of the embedding document",
"errors": "none",
"media-type": "text/html"
},
{
"id": "m4.2.5.02",
"description": "In case of an embedded manifest, 'base' is the value of the base tag of the embedded document",
"actions": "The absolute value of the chapter url should be 'https://www.example.org/chapter1.html' in the the document",
"errors": "The referring document's URL should be in either the reading order or the resource list",
"media-type": "text/html"
},
{
"id": "m4.2.5.03",
"description": "In case of an linked manifest, 'base' is the URL of the linked JSON manifest",
"actions": "The absolute value of the chapter url should be relative to url of the linked manifest",
"errors": "none",
"media-type": "text/html"
}
]
},
{
"section": "§4.3 Manifest contexts",
"href": "https://www.w3.org/TR/pub-manifest/#manifest-context",
"tests": [
{
"id": "m4.3.01",
"description": "The manifest must have a '@context'",
"actions": "Return empty",
"errors": "Fatal error on missing context",
"media-type": "application/ld+json"
},
{
"id": "m4.3.02",
"description": "The manifest '@context' must contain the schema.org and the publication manifest context references.",
"actions": "Return empty",
"errors": "Fatal error on missing context",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.4 Manifest Language and Direction",
"href": "https://www.w3.org/TR/pub-manifest/#manifest-lang-dir",
"tests": [
{
"id": "m4.4.01",
"description": "The global language value can be set as part of the '@context' array",
"actions": "Language 'en' set for all strings",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m4.4.02",
"description": "The global language value must be valid BCP47",
"actions": "No effect on output (value ignored)",
"errors": "Validation error on incorrect BCP47 value",
"media-type": "application/ld+json"
},
{
"id": "m4.4.03",
"description": "The global base direction value can be set as part of the '@context' array",
"actions": "Direction ltr set for all strings",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m4.4.04",
"description": "The global base direction value must 'ltr' or 'rtl'",
"actions": "No effect on output (value ignored)",
"errors": "Validation error on incorrect base direction value",
"media-type": "application/ld+json"
},
{
"id": "m4.4.05",
"description": "If several global language, resp. base direction values are set, the last one wins in both cases",
"actions": "Strings should be set with 'language:en' and 'direction:ltr'",
"errors": "none",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.5 Publication types",
"href": "https://www.w3.org/TR/pub-manifest/#profile-types",
"tests": [
{
"id": "m4.5.01",
"description": "The 'type' of the manifest should be set; if missing, 'CreativeWork' is added by default",
"actions": "The CreativeWork type should be added",
"errors": "Validation error (no type)",
"media-type": "application/ld+json"
},
{
"id": "m4.5.02",
"description": "The 'type' value can be set to other values",
"actions": "no change on the document",
"errors": "None",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.6 Profile Conformance",
"href": "https://www.w3.org/TR/pub-manifest/#profile-conformance",
"tests": [
{
"id": "m4.6.01",
"description": "There should be a 'conformsTo' value in the manifest; a default is set if missing",
"actions": "Set 'profile' to user agents default",
"errors": "Validation error on missing conformance",
"media-type": "application/ld+json"
},
{
"id": "m4.6.02",
"description": "The user agent has a set of profile references it understands, other values are ignored",
"actions": "Set 'profile' to user agents default",
"errors": "Validation error on no known conformance",
"media-type": "application/ld+json"
},
{
"id": "m4.6.03",
"description": "Non-default conformance value can be set that the user agent understands",
"actions": "Set 'profile' to the audiobooks profile value",
"errors": "series of errors due to the extra manifest requirements on audiobook manifests: missing a11y terms, missing TOC file, missing duration values, no cover.",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.1.1 Abridged",
"href": "https://www.w3.org/TR/pub-manifest/#abridged",
"tests": [
{
"id": "m4.7.1.1.01",
"description": "The value of 'abridged' must be a boolean",
"actions": "The value of abridged should be removed from the result",
"errors": "Validation error on abridged",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.1.2. Accessibility",
"href": "https://www.w3.org/TR/pub-manifest/#accessibility",
"tests": [
{
"id": "m4.7.1.2.01",
"description": "Simple a11y terms can also be set as single literals",
"actions": "All values should be turned into arrays of literals",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.2.02",
"description": "The value of 'accessModeSufficient' has a strict structure per schema.org; illegal values should be removed",
"actions": "The illegal value (visual) should be removed",
"errors": "Validation error on the incorrect data",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.2.03",
"description": "The value of 'accessModeSufficient' has a strict structure per schema.org; illegal values should be removed",
"actions": "Both values being invalid, the key should be removed altogether",
"errors": "Validation error on the incorrect data",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.1.3 Address",
"description": "https://www.w3.org/TR/pub-manifest/#address",
"tests": [
{
"id": "m4.7.1.3.01",
"description": "All URL values for 'url' can be relative, expanded via base",
"actions": "Value of URL should be absolute",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.3.02",
"description": "All URL values for an 'url' within an array can be relative, expanded via base",
"actions": "Value of all URLs in the array should be absolute",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.3.03",
"description": "The values of the 'url' term must be a valid URL",
"actions": "The invalid URL should be removed",
"errors": "Validation error on the URL",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.1.4 Canonical Identifier",
"href": "https://www.w3.org/TR/pub-manifest/#canonical-identifier",
"tests": [
{
"id": "m4.7.1.4.01",
"description": "The value of 'id' must be a valid URL",
"actions": "Value of invalid URL should be removed",
"errors": "Validation error on the URL",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.4.02",
"description": "The manifest should contain a value for 'id'",
"actions": "Output unchanged",
"errors": "Validation error on the missing ID",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.1.5 Creators",
"href": "https://www.w3.org/TR/pub-manifest/#creators",
"tests": [
{
"id": "m4.7.1.5.01",
"description": "Persons can be provided as single strings",
"actions": "Array of names turned into an array of Persons",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.5.02",
"description": "A single person is not required to be in an array",
"actions": "The single term is turned into a one-element Array of Persons",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.5.03",
"description": "An entity should have a name",
"actions": "The entry without a name is removed from the array",
"errors": "validation error on missing name",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.5.04",
"description": "All creators defined in the specification, and only those, should have the same behaviors (copy of m47502)",
"actions": "All the defined creator values should be turned into array; this does not apply to extra terms like 'auteur'",
"errors": "none",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.1.6 Duration",
"href": "https://www.w3.org/TR/pub-manifest/#duration",
"tests": [
{
"id": "m4.7.1.6.01",
"description": "Duration should have the right ISO format (incorrect value)",
"actions": "Duration should be removed from output",
"errors": "Validation error on incorrect duration format",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.6.02",
"description": "Duration should have the right ISO format (correct value)",
"actions": "Duration value should be present in the output",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.6.03",
"description": "Duration should have the right ISO format also in a linked resource (incorrect value)",
"actions": "Duration should be removed from output",
"errors": "Validation error on incorrect duration format",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.6.04",
"description": "Duration should have the right ISO format also in a linked resource (correct value)",
"actions": "Duration value should be present in the output",
"errors": "none",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.1.7 Last Modification Date and §4.7.1.8 Publication Date",
"href": "https://www.w3.org/TR/pub-manifest/#last-modification-date",
"tests": [
{
"id": "m4.7.1.7.01",
"description": "Both 'datePublished' and 'dateModified' must be in ISO format (incorrect values)",
"actions": "Both 'datePublished' and 'dateModified' are incorrect, and should be removed from output",
"errors": "incorrect publication dates",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.7.02",
"description": "Both 'datePublished' and 'dateModified' must be in ISO format (correct values)",
"actions": "Both 'datePublished' and 'dateModified' are correct, and should be present in the output",
"errors": "none",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.1.9 Publication Language",
"href": "https://www.w3.org/TR/pub-manifest/#inLanguage",
"tests": [
{
"id": "m4.7.1.9.01",
"description": "The value of 'inLanguage' must be valid BCP47",
"actions": "Value of 'inLanguage' must be checked, and removed (as invalid)",
"errors": "validation error on incorrect BCP47 value",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.9.02",
"description": "The value of 'inLanguage' value may be an array, each element a valid BCP47",
"actions": "Incorrect values must be removed from the array",
"errors": "validation error on incorrect BCP47 value",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.1.10 Reading Progression Direction",
"href": "https://www.w3.org/TR/pub-manifest/#reading-progression-direction",
"tests": [
{
"id": "m4.7.1.10.01",
"description": "The value of 'readingProgression' value must ltr or rtl",
"actions": "Value of readingProgression must be checked, and set to the default 'ltr'",
"errors": "validation error on incorrect direction",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.1.11 Title",
"href": "https://www.w3.org/TR/pub-manifest/#pub-title",
"tests": [
{
"id": "m4.7.1.11.01",
"description": "The title (ie, 'name') can be set as a simple string, as an abbreviation for localizable texts",
"actions": "Convert the simple string into an array of Localizable string",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.11.02",
"description": "The title (ie, 'name') is a natural language text, the global language and direction must be set",
"actions": "Convert the simple string into a text labeled as English, and direction ltr",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m4.7.1.11.03",
"description": "The title (ie, 'name') is an array of natural language texts, each can have its language and direction set individually",
"actions": "Convert the two items into arabic and direction rtl for the first, and english and ltr for the second",
"errors": "none",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.2.1 Default Reading Order",
"href": "https://www.w3.org/TR/pub-manifest/#default-reading-order",
"tests": [
{
"id": "m4.7.2.1.01",
"description": "The 'readingOrder' can be expressed as a single relative URL",
"actions": "The input is converted into an array of a single object, with the 'url' set to the absolute URL",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m4.7.2.1.02",
"description": "All URL-s must be valid; invalid values are removed",
"actions": "The second entry in 'readingOrder' is removed from the final list",
"errors": "Validation error on invalid URL, and a validation error on removing the corresponding Linked Resource",
"media-type": "application/ld+json"
},
{
"id": "m4.7.2.1.03",
"description": "A missing 'readingOrder'",
"actions": "Without a referring document to be added to the list, the 'readingOrder' is empty, which is a fatal error",
"errors": "Fatal error",
"media-type": "application/ld+json"
},
{
"id": "m4.7.2.1.04",
"description": "Duplicate URLs generate warning but stay in the list",
"actions": "The output does not change",
"errors": "Validation error on repeated URLs",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.2.2 Resource List",
"href": "https://www.w3.org/TR/pub-manifest/#resource-list",
"tests": [
{
"id": "m4.7.2.2.01",
"description": "The 'resources' can be expressed as a single relative URL",
"actions": "The input is converted into an array of a single object, with the 'url' set to the absolute URL",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m4.7.2.2.02",
"description": "All URL-s in 'resources' must be valid; invalid values are removed",
"actions": "The second entry in 'resources' is removed from the final list",
"errors": "Validation error on invalid URL",
"media-type": "application/ld+json"
},
{
"id": "m4.7.2.2.03",
"description": "Duplicate URLs generate warning but stay in 'resources''",
"actions": "The third entry in 'resources' is removed from the final list",
"errors": "Validation error on repeated resources",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.2.3 Links",
"href": "https://www.w3.org/TR/pub-manifest/#links",
"tests": [
{
"id": "m4.7.2.3.01",
"description": "The 'links' can be expressed as a single relative URL",
"actions": "The input is converted into an array of a single object, with the 'url' set to the absolute URL",
"errors": "The result is generated, though a warning is issued due to a missing link property.",
"media-type": "application/ld+json"
},
{
"id": "m4.7.2.3.02",
"description": "All URL-s in 'links' must be valid; invalid values are removed",
"actions": "The second entry in 'links' is removed from the final list",
"errors": "Validation error on invalid URL",
"media-type": "application/ld+json"
},
{
"id": "m4.7.2.3.03",
"description": "Entries in 'links' must not appear in 'readingOrder'",
"actions": "The 'chapter1.html' entry is removed from 'links'",
"errors": "Validation error on a link appearing in bounds",
"media-type": "application/ld+json"
},
{
"id": "m4.7.2.3.04",
"description": "All URL-s (ignoring fragment id-s) in 'links' must be disjoint from the ones in 'readingOrder' or 'resources'.",
"actions": "The chapter1.html, link1.html, and link3.html are removed from links",
"errors": "Validation error on a link appearing in bounds",
"media-type": "application/ld+json"
},
{
"id": "m4.7.2.3.05",
"description": "Cover page, toc reference, or pagelist reference should not appear in 'links'",
"actions": "The links2.html, links4.html, and links6.html entries should be removed from the final links; others should be listed.",
"errors": "Validation error on all three faulty links.",
"media-type": "application/ld+json"
},
{
"id": "m4.7.2.3.06",
"description": "Each entry in 'links' should have its 'rel' value set",
"actions": "Output should be unchanged",
"errors": "Validation error on missing rel.",
"media-type": "application/ld+json"
},
{
"id": "m4.7.2.3.07",
"description": "Cover page, toc reference, or pagelist reference should not appear in 'links', even if the rel value are with mixed cases",
"actions": "The links2.html, links4.html, and links6.html entries should be removed from the final links; others should be listed.",
"errors": "Validation error on all three faulty links.",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.7.3.2 Additional Manifest Properties",
"href": "https://www.w3.org/TR/pub-manifest/#extensibility-manifest-properties",
"tests": [
{
"id": "m4.7.3.2.01",
"description": "Extra term values with, possibly, extra namespace declaration must be accepted and added to the output",
"actions": "The manifest should leave the extra values in the output",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m4.7.3.2.02",
"description": "Extra term values in entities and in linked resources must be accepted and added to the output",
"actions": "The manifest should leave the extra values in the output",
"errors": "none",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.8.1.1 Cover",
"href": "https://www.w3.org/TR/pub-manifest/#cover",
"tests": [
{
"id": "m4.8.1.1.01",
"description": "There should not be a repeated definition of cover",
"actions": "The second occurrence of cover generates a validation error",
"errors": "Validation error on cover",
"media-type": "application/ld+json"
},
{
"id": "m4.8.1.1.02",
"description": "A cover referring to an image should have a 'name'",
"actions": "Validation error generation",
"errors": "Validation error on missing name",
"media-type": "application/ld+json"
},
{
"id": "m4.8.1.1.03",
"description": "A cover referring to a non-image without a 'name' is fine",
"actions": "No change on the output",
"errors": "None",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.8.1.2 Page List",
"href": "https://www.w3.org/TR/pub-manifest/#page-list",
"tests": [
{
"id": "m4.8.1.2.01",
"description": "There should be only one page list",
"actions": "The second occurrence of page list generates a validation error",
"errors": "Validation error on page list",
"media-type": "application/ld+json"
}
]
},
{
"section": "§4.8.1.3 Table of contents",
"href": "https://www.w3.org/TR/pub-manifest/#pub-table-of-contents",
"tests": [
{
"id": "m4.8.1.3.01",
"description": "There should be only one TOC reference",
"actions": "The second occurrence of TOC generates a validation error",
"errors": "Validation error on TOC",
"media-type": "application/ld+json"
},
{
"id": "m4.8.1.3.02",
"description": "There should be only one TOC reference; the rel value comparison is case insensitive",
"actions": "The second occurrence of generates a validation error",
"errors": "Validation error on TOC",
"media-type": "application/ld+json"
}
]
},
{
"section": "§5 Publication resources",
"href": "https://www.w3.org/TR/pub-manifest/#publication-resources",
"tests": [
{
"id": "m5.01",
"description": "Calculation of bounds should include only the URL-s without fragment identifiers",
"actions": "The 'uniqueResources' array contains URL-s without fragments",
"errors": "none",
"media-type": "application/ld+json"
},
{
"id": "m5.02",
"description": "Each value on bounds should be different",
"actions": "The 'uniqueResources' array contains unique URL-s only",
"errors": "none",
"media-type": "application/ld+json"
}
]
},
{
"section": "§6 Manifest Discovery",
"href": "https://www.w3.org/TR/pub-manifest/#manifest-discovery",
"tests": [
{
"id": "m6.01",
"description": "The manifest may be linked via a 'link' element in the primary entry page",
"actions": "The separate manifest file (link_6.01.jsonld) should be processed and generated",
"errors": "none",
"media-type": "text/html"
},
{
"id": "m6.02",
"description": "The manifest may embedded, via a 'script' element, into the primary entry page",
"actions": "The embedded manifest should be processed and generated",
"errors": "none",
"media-type": "text/html"
},
{
"id": "m6.03",
"description": "If the 'name' entry is not present, the 'title' element of the primary entry page may be used instead",
"actions": "The embedded manifest should be processed and generated with an additional name",
"errors": "none",
"media-type": "text/html"
},
{
"id": "m6.04",
"description": "When reusing the title for 'name', the language and direction set in HTML is valid",
"actions": "The embedded manifest should be processed and generated with an additional name",
"errors": "none",
"media-type": "text/html"
},
{
"id": "m6.05",
"description": "If the 'readingOrder' is empty, the URL of the Primary Entry Page is used as a default",
"actions": "The embedded manifest should be processed and generated with the reading order set to the HTML's URL. The value should also be present in the 'uniqueResources' array.",
"errors": "none",
"media-type": "text/html"
},
{
"id": "m6.06",
"description": "There should be either a 'name' or a usable 'title' in the Primary Entry Page.",
"actions": "An application-dependent name should be added",
"errors": "Validation error on a missing default title",
"media-type": "text/html"
},
{
"id": "m6.07",
"description": "The URL of the Primary Entry Point MUST be in either the resources' list or the reading order",
"actions": "Display the manifest",
"errors": "Validation error on the PEP URL missing from both the resources and the reading order.",
"media-type": "text/html"
},
{
"id": "m6.08",
"description": "If the 'readingOrder' is empty, the URL of the Primary Entry Page is used as a default",
"actions": "The external manifest should be processed and generated with the reading order set to the entry point's URL. The value should also be present in the 'uniqueResources' array.",
"errors": "none",
"media-type": "text/html"
}
]
}
]
}