@lincs.project/webannotation-schema 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,28 +41,101 @@
41
41
  "description": "The type of the Annotation."
42
42
  },
43
43
  "motivation": {
44
- "type": "array",
45
- "minItems": 2,
46
- "maxItems": 2,
47
- "items": [
48
- {
49
- "type": "string",
50
- "enum": [
51
- "identifying",
52
- "describing",
53
- "correcting",
54
- "tagging",
55
- "classifying",
56
- "linking",
57
- "citing"
58
- ]
44
+ "type": "object",
45
+ "description": "The relationship between an Annotation and a Motivation.",
46
+ "properties": {
47
+ "identifying": {
48
+ "type": "object",
49
+ "properties": {
50
+ "type": {
51
+ "type": "string",
52
+ "const": "crm:E55_Type"
53
+ }
54
+ },
55
+ "required": [
56
+ "type"
57
+ ],
58
+ "nullable": true
59
59
  },
60
- {
61
- "type": "string",
62
- "const": "crm:E55_Type"
60
+ "describing": {
61
+ "type": "object",
62
+ "properties": {
63
+ "type": {
64
+ "type": "string",
65
+ "const": "crm:E55_Type"
66
+ }
67
+ },
68
+ "required": [
69
+ "type"
70
+ ],
71
+ "nullable": true
72
+ },
73
+ "correcting": {
74
+ "type": "object",
75
+ "properties": {
76
+ "type": {
77
+ "type": "string",
78
+ "const": "crm:E55_Type"
79
+ }
80
+ },
81
+ "required": [
82
+ "type"
83
+ ],
84
+ "nullable": true
85
+ },
86
+ "tagging": {
87
+ "type": "object",
88
+ "properties": {
89
+ "type": {
90
+ "type": "string",
91
+ "const": "crm:E55_Type"
92
+ }
93
+ },
94
+ "required": [
95
+ "type"
96
+ ],
97
+ "nullable": true
98
+ },
99
+ "classifying": {
100
+ "type": "object",
101
+ "properties": {
102
+ "type": {
103
+ "type": "string",
104
+ "const": "crm:E55_Type"
105
+ }
106
+ },
107
+ "required": [
108
+ "type"
109
+ ],
110
+ "nullable": true
111
+ },
112
+ "linking": {
113
+ "type": "object",
114
+ "properties": {
115
+ "type": {
116
+ "type": "string",
117
+ "const": "crm:E55_Type"
118
+ }
119
+ },
120
+ "required": [
121
+ "type"
122
+ ],
123
+ "nullable": true
124
+ },
125
+ "citing": {
126
+ "type": "object",
127
+ "properties": {
128
+ "type": {
129
+ "type": "string",
130
+ "const": "crm:E55_Type"
131
+ }
132
+ },
133
+ "required": [
134
+ "type"
135
+ ],
136
+ "nullable": true
63
137
  }
64
- ],
65
- "description": "The relationship between an Annotation and a Motivation."
138
+ }
66
139
  },
67
140
  "created": {
68
141
  "type": "string",
@@ -150,6 +223,7 @@
150
223
  "body",
151
224
  "status"
152
225
  ],
226
+ "additionalProperties": false,
153
227
  "allOf": [
154
228
  {
155
229
  "if": {
@@ -161,25 +235,23 @@
161
235
  "entityType": {
162
236
  "oneOf": [
163
237
  {
164
- "type": "array",
165
- "minItems": 2,
166
- "maxItems": 2,
167
- "items": [
238
+ "oneOf": [
168
239
  {
169
240
  "type": "string",
170
- "const": "foaf:Person"
241
+ "const": "crm:E21_Person"
171
242
  },
172
243
  {
173
- "oneOf": [
244
+ "type": "array",
245
+ "minItems": 2,
246
+ "maxItems": 2,
247
+ "items": [
174
248
  {
175
249
  "type": "string",
176
- "const": "crm:E21_Person",
177
- "description": "Real Person"
250
+ "const": "foaf:Person"
178
251
  },
179
252
  {
180
253
  "type": "string",
181
- "const": "crm:E89_Propositional_Object",
182
- "description": "Fictional Person"
254
+ "const": "crm:E89_Propositional_Object"
183
255
  }
184
256
  ]
185
257
  }
@@ -202,58 +274,53 @@
202
274
  },
203
275
  {
204
276
  "type": "string",
205
- "const": "crm:E89_Propositional_Object",
206
- "description": "Fictional Place"
277
+ "const": "crm:E89_Propositional_Object"
207
278
  }
208
279
  ]
209
280
  }
210
281
  ]
211
282
  },
212
283
  {
213
- "type": "array",
214
- "minItems": 2,
215
- "maxItems": 2,
216
- "items": [
284
+ "oneOf": [
217
285
  {
218
286
  "type": "string",
219
- "const": "foaf:Organization"
287
+ "const": "crm:E74_Group"
220
288
  },
221
289
  {
222
- "oneOf": [
290
+ "type": "array",
291
+ "minItems": 2,
292
+ "maxItems": 2,
293
+ "items": [
223
294
  {
224
295
  "type": "string",
225
- "const": "crm:E74_Group",
226
- "description": "Real Organization"
296
+ "const": "foaf:Organization"
227
297
  },
228
298
  {
229
299
  "type": "string",
230
- "const": "crm:E89_Propositional_Object",
231
- "description": "Fictional Organization"
300
+ "const": "crm:E89_Propositional_Object"
232
301
  }
233
302
  ]
234
303
  }
235
304
  ]
236
305
  },
237
306
  {
238
- "type": "array",
239
- "minItems": 2,
240
- "maxItems": 2,
241
- "items": [
307
+ "oneOf": [
242
308
  {
243
309
  "type": "string",
244
310
  "const": "crm:E89_Propositional_Object"
245
311
  },
246
312
  {
247
- "oneOf": [
313
+ "type": "array",
314
+ "minItems": 2,
315
+ "maxItems": 2,
316
+ "items": [
248
317
  {
249
318
  "type": "string",
250
- "const": "frbroo:F1",
251
- "description": "Real Work"
319
+ "const": "frbroo:F1"
252
320
  },
253
321
  {
254
322
  "type": "string",
255
- "const": "wikidata:Q15306849",
256
- "description": "Fictional Work"
323
+ "const": "wikidata:Q15306849"
257
324
  }
258
325
  ]
259
326
  }
@@ -276,8 +343,7 @@
276
343
  },
277
344
  {
278
345
  "type": "string",
279
- "const": "wikidata:Q15831596",
280
- "description": "Fictional Physical Thing"
346
+ "const": "wikidata:Q15831596"
281
347
  }
282
348
  ]
283
349
  }
@@ -300,8 +366,7 @@
300
366
  },
301
367
  {
302
368
  "type": "string",
303
- "const": "wikidata:Q15831596",
304
- "description": "Fictional Conceptual Object"
369
+ "const": "wikidata:Q15831596"
305
370
  }
306
371
  ]
307
372
  }
@@ -323,25 +388,23 @@
323
388
  ]
324
389
  },
325
390
  {
326
- "type": "array",
327
- "minItems": 2,
328
- "maxItems": 2,
329
- "items": [
391
+ "oneOf": [
330
392
  {
331
393
  "type": "string",
332
- "const": "YET TO BE DEFINED EVENT CLASS"
394
+ "const": "crm:E5_Event"
333
395
  },
334
396
  {
335
- "oneOf": [
397
+ "type": "array",
398
+ "minItems": 2,
399
+ "maxItems": 2,
400
+ "items": [
336
401
  {
337
402
  "type": "string",
338
- "const": "crm:E5_Event",
339
- "description": "Real Event"
403
+ "const": "crm:E5_Event"
340
404
  },
341
405
  {
342
406
  "type": "string",
343
- "const": "crm:E89_Propositional_Object",
344
- "description": "Fictional Event"
407
+ "const": "crm:E89_Propositional_Object"
345
408
  }
346
409
  ]
347
410
  }
@@ -357,19 +420,18 @@
357
420
  "type": "object",
358
421
  "properties": {
359
422
  "motivation": {
360
- "type": "array",
361
- "minItems": 2,
362
- "maxItems": 2,
363
- "items": [
364
- {
365
- "type": "string",
366
- "const": "identifying"
367
- },
368
- {
369
- "type": "string",
370
- "const": "crm:E55_Type"
423
+ "type": "object",
424
+ "properties": {
425
+ "identifying": {
426
+ "type": "object",
427
+ "properties": {
428
+ "type": {
429
+ "type": "string",
430
+ "const": "crm:E55_Type"
431
+ }
432
+ }
371
433
  }
372
- ]
434
+ }
373
435
  }
374
436
  }
375
437
  },
@@ -392,19 +454,18 @@
392
454
  "type": "object",
393
455
  "properties": {
394
456
  "motivation": {
395
- "type": "array",
396
- "minItems": 2,
397
- "maxItems": 2,
398
- "items": [
399
- {
400
- "type": "string",
401
- "const": "describing"
402
- },
403
- {
404
- "type": "string",
405
- "const": "crm:E55_Type"
457
+ "type": "object",
458
+ "properties": {
459
+ "describing": {
460
+ "type": "object",
461
+ "properties": {
462
+ "type": {
463
+ "type": "string",
464
+ "const": "crm:E55_Type"
465
+ }
466
+ }
406
467
  }
407
- ]
468
+ }
408
469
  }
409
470
  }
410
471
  },
@@ -438,19 +499,18 @@
438
499
  "type": "object",
439
500
  "properties": {
440
501
  "motivation": {
441
- "type": "array",
442
- "minItems": 2,
443
- "maxItems": 2,
444
- "items": [
445
- {
446
- "type": "string",
447
- "const": "correcting"
448
- },
449
- {
450
- "type": "string",
451
- "const": "crm:E55_Type"
502
+ "type": "object",
503
+ "properties": {
504
+ "correcting": {
505
+ "type": "object",
506
+ "properties": {
507
+ "type": {
508
+ "type": "string",
509
+ "const": "crm:E55_Type"
510
+ }
511
+ }
452
512
  }
453
- ]
513
+ }
454
514
  }
455
515
  }
456
516
  },
@@ -484,19 +544,18 @@
484
544
  "type": "object",
485
545
  "properties": {
486
546
  "motivation": {
487
- "type": "array",
488
- "minItems": 2,
489
- "maxItems": 2,
490
- "items": [
491
- {
492
- "type": "string",
493
- "const": "tagging"
494
- },
495
- {
496
- "type": "string",
497
- "const": "crm:E55_Type"
547
+ "type": "object",
548
+ "properties": {
549
+ "tagging": {
550
+ "type": "object",
551
+ "properties": {
552
+ "type": {
553
+ "type": "string",
554
+ "const": "crm:E55_Type"
555
+ }
556
+ }
498
557
  }
499
- ]
558
+ }
500
559
  }
501
560
  }
502
561
  },
@@ -530,19 +589,18 @@
530
589
  "type": "object",
531
590
  "properties": {
532
591
  "motivation": {
533
- "type": "array",
534
- "minItems": 2,
535
- "maxItems": 2,
536
- "items": [
537
- {
538
- "type": "string",
539
- "const": "classifying"
540
- },
541
- {
542
- "type": "string",
543
- "const": "crm:E55_Type"
592
+ "type": "object",
593
+ "properties": {
594
+ "classifying": {
595
+ "type": "object",
596
+ "properties": {
597
+ "type": {
598
+ "type": "string",
599
+ "const": "crm:E55_Type"
600
+ }
601
+ }
544
602
  }
545
- ]
603
+ }
546
604
  }
547
605
  }
548
606
  },
@@ -565,19 +623,18 @@
565
623
  "type": "object",
566
624
  "properties": {
567
625
  "motivation": {
568
- "type": "array",
569
- "minItems": 2,
570
- "maxItems": 2,
571
- "items": [
572
- {
573
- "type": "string",
574
- "const": "linking"
575
- },
576
- {
577
- "type": "string",
578
- "const": "crm:E55_Type"
626
+ "type": "object",
627
+ "properties": {
628
+ "linking": {
629
+ "type": "object",
630
+ "properties": {
631
+ "type": {
632
+ "type": "string",
633
+ "const": "crm:E55_Type"
634
+ }
635
+ }
579
636
  }
580
- ]
637
+ }
581
638
  }
582
639
  }
583
640
  },
@@ -611,19 +668,18 @@
611
668
  "type": "object",
612
669
  "properties": {
613
670
  "motivation": {
614
- "type": "array",
615
- "minItems": 2,
616
- "maxItems": 2,
617
- "items": [
618
- {
619
- "type": "string",
620
- "const": "citing"
621
- },
622
- {
623
- "type": "string",
624
- "const": "crm:E55_Type"
671
+ "type": "object",
672
+ "properties": {
673
+ "citing": {
674
+ "type": "object",
675
+ "properties": {
676
+ "type": {
677
+ "type": "string",
678
+ "const": "crm:E55_Type"
679
+ }
680
+ }
625
681
  }
626
- ]
682
+ }
627
683
  }
628
684
  }
629
685
  }
@@ -634,6 +690,5 @@
634
690
  }
635
691
  }
636
692
  }
637
- ],
638
- "additionalProperties": false
693
+ ]
639
694
  }