@lincs.project/webannotation-schema 1.8.0 → 1.10.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.
- package/dist/index.d.mts +99 -89
- package/dist/index.d.ts +99 -89
- package/dist/index.js +122 -189
- package/dist/index.mjs +113 -186
- package/dist/v1/jsonld/context.jsonld +25 -19
- package/dist/v1/jsonld/defs.jsonld +2 -2
- package/dist/v1/jsonld/schema.jsonld +47 -189
- package/dist/v1/standalone/linc-wa-validator.js +1 -1
- package/package.json +1 -1
|
@@ -5,13 +5,17 @@
|
|
|
5
5
|
"properties": {
|
|
6
6
|
"@context": {
|
|
7
7
|
"type": "array",
|
|
8
|
-
"minItems":
|
|
9
|
-
"maxItems":
|
|
8
|
+
"minItems": 3,
|
|
9
|
+
"maxItems": 3,
|
|
10
10
|
"items": [
|
|
11
11
|
{
|
|
12
12
|
"type": "string",
|
|
13
13
|
"const": "http://www.w3.org/ns/anno.jsonld"
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
"type": "string",
|
|
17
|
+
"const": "https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld"
|
|
18
|
+
},
|
|
15
19
|
{
|
|
16
20
|
"type": "string",
|
|
17
21
|
"const": "https://wa.lincsproject.ca/v1/ns/anno.jsonld"
|
|
@@ -41,101 +45,17 @@
|
|
|
41
45
|
"description": "The type of the Annotation."
|
|
42
46
|
},
|
|
43
47
|
"motivation": {
|
|
44
|
-
"type": "
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"required": [
|
|
56
|
-
"type"
|
|
57
|
-
],
|
|
58
|
-
"nullable": true
|
|
59
|
-
},
|
|
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
|
|
137
|
-
}
|
|
138
|
-
}
|
|
48
|
+
"type": "string",
|
|
49
|
+
"enum": [
|
|
50
|
+
"oa:identifying",
|
|
51
|
+
"oa:describing",
|
|
52
|
+
"correcting",
|
|
53
|
+
"oa:tagging",
|
|
54
|
+
"oa:classifying",
|
|
55
|
+
"oa:linking",
|
|
56
|
+
"citing"
|
|
57
|
+
],
|
|
58
|
+
"description": "The relationship between an Annotation and a Motivation."
|
|
139
59
|
},
|
|
140
60
|
"created": {
|
|
141
61
|
"type": "string",
|
|
@@ -203,12 +123,21 @@
|
|
|
203
123
|
"label": {
|
|
204
124
|
"type": "string"
|
|
205
125
|
},
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
126
|
+
"P2_has_type": {
|
|
127
|
+
"oneOf": [
|
|
128
|
+
{
|
|
129
|
+
"type": "string",
|
|
130
|
+
"minLength": 3
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "array",
|
|
134
|
+
"minItems": 1,
|
|
135
|
+
"items": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"minLength": 3
|
|
138
|
+
},
|
|
139
|
+
"uniqueItems": true
|
|
140
|
+
}
|
|
212
141
|
]
|
|
213
142
|
}
|
|
214
143
|
},
|
|
@@ -220,8 +149,7 @@
|
|
|
220
149
|
"created",
|
|
221
150
|
"generator",
|
|
222
151
|
"target",
|
|
223
|
-
"body"
|
|
224
|
-
"status"
|
|
152
|
+
"body"
|
|
225
153
|
],
|
|
226
154
|
"additionalProperties": false,
|
|
227
155
|
"allOf": [
|
|
@@ -420,18 +348,8 @@
|
|
|
420
348
|
"type": "object",
|
|
421
349
|
"properties": {
|
|
422
350
|
"motivation": {
|
|
423
|
-
"type": "
|
|
424
|
-
"
|
|
425
|
-
"identifying": {
|
|
426
|
-
"type": "object",
|
|
427
|
-
"properties": {
|
|
428
|
-
"type": {
|
|
429
|
-
"type": "string",
|
|
430
|
-
"const": "crm:E55_Type"
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
}
|
|
351
|
+
"type": "string",
|
|
352
|
+
"const": "oa:identifying"
|
|
435
353
|
}
|
|
436
354
|
}
|
|
437
355
|
},
|
|
@@ -454,18 +372,8 @@
|
|
|
454
372
|
"type": "object",
|
|
455
373
|
"properties": {
|
|
456
374
|
"motivation": {
|
|
457
|
-
"type": "
|
|
458
|
-
"
|
|
459
|
-
"describing": {
|
|
460
|
-
"type": "object",
|
|
461
|
-
"properties": {
|
|
462
|
-
"type": {
|
|
463
|
-
"type": "string",
|
|
464
|
-
"const": "crm:E55_Type"
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
}
|
|
375
|
+
"type": "string",
|
|
376
|
+
"const": "oa:describing"
|
|
469
377
|
}
|
|
470
378
|
}
|
|
471
379
|
},
|
|
@@ -499,18 +407,8 @@
|
|
|
499
407
|
"type": "object",
|
|
500
408
|
"properties": {
|
|
501
409
|
"motivation": {
|
|
502
|
-
"type": "
|
|
503
|
-
"
|
|
504
|
-
"correcting": {
|
|
505
|
-
"type": "object",
|
|
506
|
-
"properties": {
|
|
507
|
-
"type": {
|
|
508
|
-
"type": "string",
|
|
509
|
-
"const": "crm:E55_Type"
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
}
|
|
410
|
+
"type": "string",
|
|
411
|
+
"const": "correcting"
|
|
514
412
|
}
|
|
515
413
|
}
|
|
516
414
|
},
|
|
@@ -544,18 +442,8 @@
|
|
|
544
442
|
"type": "object",
|
|
545
443
|
"properties": {
|
|
546
444
|
"motivation": {
|
|
547
|
-
"type": "
|
|
548
|
-
"
|
|
549
|
-
"tagging": {
|
|
550
|
-
"type": "object",
|
|
551
|
-
"properties": {
|
|
552
|
-
"type": {
|
|
553
|
-
"type": "string",
|
|
554
|
-
"const": "crm:E55_Type"
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
445
|
+
"type": "string",
|
|
446
|
+
"const": "oa:tagging"
|
|
559
447
|
}
|
|
560
448
|
}
|
|
561
449
|
},
|
|
@@ -589,18 +477,8 @@
|
|
|
589
477
|
"type": "object",
|
|
590
478
|
"properties": {
|
|
591
479
|
"motivation": {
|
|
592
|
-
"type": "
|
|
593
|
-
"
|
|
594
|
-
"classifying": {
|
|
595
|
-
"type": "object",
|
|
596
|
-
"properties": {
|
|
597
|
-
"type": {
|
|
598
|
-
"type": "string",
|
|
599
|
-
"const": "crm:E55_Type"
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
}
|
|
480
|
+
"type": "string",
|
|
481
|
+
"const": "oa:classifying"
|
|
604
482
|
}
|
|
605
483
|
}
|
|
606
484
|
},
|
|
@@ -623,18 +501,8 @@
|
|
|
623
501
|
"type": "object",
|
|
624
502
|
"properties": {
|
|
625
503
|
"motivation": {
|
|
626
|
-
"type": "
|
|
627
|
-
"
|
|
628
|
-
"linking": {
|
|
629
|
-
"type": "object",
|
|
630
|
-
"properties": {
|
|
631
|
-
"type": {
|
|
632
|
-
"type": "string",
|
|
633
|
-
"const": "crm:E55_Type"
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
}
|
|
504
|
+
"type": "string",
|
|
505
|
+
"const": "oa:linking"
|
|
638
506
|
}
|
|
639
507
|
}
|
|
640
508
|
},
|
|
@@ -668,18 +536,8 @@
|
|
|
668
536
|
"type": "object",
|
|
669
537
|
"properties": {
|
|
670
538
|
"motivation": {
|
|
671
|
-
"type": "
|
|
672
|
-
"
|
|
673
|
-
"citing": {
|
|
674
|
-
"type": "object",
|
|
675
|
-
"properties": {
|
|
676
|
-
"type": {
|
|
677
|
-
"type": "string",
|
|
678
|
-
"const": "crm:E55_Type"
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
}
|
|
539
|
+
"type": "string",
|
|
540
|
+
"const": "citing"
|
|
683
541
|
}
|
|
684
542
|
}
|
|
685
543
|
}
|