@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
package/dist/index.d.mts
CHANGED
|
@@ -19,38 +19,44 @@ declare const schemaContext: {
|
|
|
19
19
|
wikidata: string;
|
|
20
20
|
crm: string;
|
|
21
21
|
crmdig: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
citing: string;
|
|
23
|
+
correcting: string;
|
|
24
|
+
'oa:identifying': {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
'oa:describing': {
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
'oa:tagging': {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
'oa:classifying': {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
'oa:linking': {
|
|
37
|
+
type: string;
|
|
25
38
|
};
|
|
26
39
|
certainty: {
|
|
27
40
|
'@type': string;
|
|
28
41
|
'@id': string;
|
|
29
42
|
};
|
|
30
|
-
|
|
31
|
-
description: string;
|
|
32
|
-
entityType: {
|
|
43
|
+
precision: {
|
|
33
44
|
'@type': string;
|
|
34
45
|
'@id': string;
|
|
35
46
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
precision: {
|
|
47
|
+
contributor: string;
|
|
48
|
+
entityType: {
|
|
39
49
|
'@type': string;
|
|
40
50
|
'@id': string;
|
|
41
51
|
};
|
|
42
|
-
|
|
43
|
-
status: {
|
|
52
|
+
additionalType: {
|
|
44
53
|
'@type': string;
|
|
45
54
|
'@id': string;
|
|
46
55
|
};
|
|
56
|
+
modeExistence: string;
|
|
57
|
+
description: string;
|
|
47
58
|
title: string;
|
|
48
|
-
|
|
49
|
-
approved: string;
|
|
50
|
-
citing: string;
|
|
51
|
-
correcting: string;
|
|
52
|
-
draft: string;
|
|
53
|
-
published: string;
|
|
59
|
+
softwareVersion: string;
|
|
54
60
|
};
|
|
55
61
|
};
|
|
56
62
|
|
|
@@ -72,20 +78,20 @@ declare const creatorSchema: JSONSchemaType<User>;
|
|
|
72
78
|
declare const Software: z.ZodObject<{
|
|
73
79
|
id: z.ZodString;
|
|
74
80
|
type: z.ZodLiteral<"Software">;
|
|
75
|
-
|
|
81
|
+
P16_used_specific_object: z.ZodOptional<z.ZodString>;
|
|
76
82
|
label: z.ZodString;
|
|
77
83
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
78
84
|
}, "strip", z.ZodTypeAny, {
|
|
79
85
|
id: string;
|
|
80
86
|
type: "Software";
|
|
81
87
|
label: string;
|
|
82
|
-
|
|
88
|
+
P16_used_specific_object?: string | undefined;
|
|
83
89
|
softwareVersion?: string | undefined;
|
|
84
90
|
}, {
|
|
85
91
|
id: string;
|
|
86
92
|
type: "Software";
|
|
87
93
|
label: string;
|
|
88
|
-
|
|
94
|
+
P16_used_specific_object?: string | undefined;
|
|
89
95
|
softwareVersion?: string | undefined;
|
|
90
96
|
}>;
|
|
91
97
|
type Software = z.infer<typeof Software>;
|
|
@@ -180,6 +186,16 @@ type Citation = z.infer<typeof Citation>;
|
|
|
180
186
|
declare const citationEntityTypeSchema: JSONSchemaType<CitationEntityType>;
|
|
181
187
|
declare const citationSchema: JSONSchemaType<Citation>;
|
|
182
188
|
|
|
189
|
+
declare const ModeExistence: z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>;
|
|
190
|
+
type ModeExistence = z.infer<typeof ModeExistence>;
|
|
191
|
+
declare const modeExistenceSchema: JSONSchemaType<Description>;
|
|
192
|
+
declare const Label: z.ZodString;
|
|
193
|
+
type Label = z.infer<typeof Label>;
|
|
194
|
+
declare const labelSchema: JSONSchemaType<Label>;
|
|
195
|
+
declare const Description: z.ZodString;
|
|
196
|
+
type Description = z.infer<typeof Description>;
|
|
197
|
+
declare const descriptionSchema: JSONSchemaType<Description>;
|
|
198
|
+
|
|
183
199
|
declare const ConceptualObjectEntityType: z.ZodUnion<[z.ZodLiteral<"crm:E28_Conceptual_Object">, z.ZodTuple<[z.ZodLiteral<"crm:E28_Conceptual_Object">, z.ZodLiteral<"wikidata:Q15831596">], null>]>;
|
|
184
200
|
type ConceptualObjectEntityType = z.infer<typeof ConceptualObjectEntityType>;
|
|
185
201
|
declare const ConceptualObject: z.ZodObject<{
|
|
@@ -1150,7 +1166,7 @@ declare const formatSchema: JSONSchemaType<Format>;
|
|
|
1150
1166
|
declare const Language: z.ZodString;
|
|
1151
1167
|
type Language = z.infer<typeof Language>;
|
|
1152
1168
|
declare const languageSchema: JSONSchemaType<Language>;
|
|
1153
|
-
declare const
|
|
1169
|
+
declare const isIdentifiedBy: z.ZodObject<{
|
|
1154
1170
|
id: z.ZodString;
|
|
1155
1171
|
type: z.ZodLiteral<"crm:E33_E41_Linguistic_Appellation">;
|
|
1156
1172
|
title: z.ZodString;
|
|
@@ -1163,12 +1179,12 @@ declare const IdentifiedBy: z.ZodObject<{
|
|
|
1163
1179
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1164
1180
|
title: string;
|
|
1165
1181
|
}>;
|
|
1166
|
-
type
|
|
1182
|
+
type isIdentifiedBy = z.infer<typeof isIdentifiedBy>;
|
|
1167
1183
|
declare const Source: z.ZodObject<{
|
|
1168
1184
|
id: z.ZodString;
|
|
1169
1185
|
type: z.ZodLiteral<"crm:D1_Digital_Object">;
|
|
1170
1186
|
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1171
|
-
|
|
1187
|
+
P1_is_identified_by: z.ZodOptional<z.ZodObject<{
|
|
1172
1188
|
id: z.ZodString;
|
|
1173
1189
|
type: z.ZodLiteral<"crm:E33_E41_Linguistic_Appellation">;
|
|
1174
1190
|
title: z.ZodString;
|
|
@@ -1186,7 +1202,7 @@ declare const Source: z.ZodObject<{
|
|
|
1186
1202
|
id: string;
|
|
1187
1203
|
type: "crm:D1_Digital_Object";
|
|
1188
1204
|
format?: string | string[] | undefined;
|
|
1189
|
-
|
|
1205
|
+
P1_is_identified_by?: {
|
|
1190
1206
|
id: string;
|
|
1191
1207
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1192
1208
|
title: string;
|
|
@@ -1196,7 +1212,7 @@ declare const Source: z.ZodObject<{
|
|
|
1196
1212
|
id: string;
|
|
1197
1213
|
type: "crm:D1_Digital_Object";
|
|
1198
1214
|
format?: string | string[] | undefined;
|
|
1199
|
-
|
|
1215
|
+
P1_is_identified_by?: {
|
|
1200
1216
|
id: string;
|
|
1201
1217
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1202
1218
|
title: string;
|
|
@@ -1204,7 +1220,7 @@ declare const Source: z.ZodObject<{
|
|
|
1204
1220
|
language?: string | string[] | undefined;
|
|
1205
1221
|
}>;
|
|
1206
1222
|
type Source = z.infer<typeof Source>;
|
|
1207
|
-
declare const
|
|
1223
|
+
declare const isIndentifyBySchema: JSONSchemaType<isIdentifiedBy>;
|
|
1208
1224
|
declare const sourceSchema: JSONSchemaType<Source>;
|
|
1209
1225
|
|
|
1210
1226
|
declare const Target: z.ZodObject<{
|
|
@@ -1214,7 +1230,7 @@ declare const Target: z.ZodObject<{
|
|
|
1214
1230
|
id: z.ZodString;
|
|
1215
1231
|
type: z.ZodLiteral<"crm:D1_Digital_Object">;
|
|
1216
1232
|
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1217
|
-
|
|
1233
|
+
P1_is_identified_by: z.ZodOptional<z.ZodObject<{
|
|
1218
1234
|
id: z.ZodString;
|
|
1219
1235
|
type: z.ZodLiteral<"crm:E33_E41_Linguistic_Appellation">;
|
|
1220
1236
|
title: z.ZodString;
|
|
@@ -1232,7 +1248,7 @@ declare const Target: z.ZodObject<{
|
|
|
1232
1248
|
id: string;
|
|
1233
1249
|
type: "crm:D1_Digital_Object";
|
|
1234
1250
|
format?: string | string[] | undefined;
|
|
1235
|
-
|
|
1251
|
+
P1_is_identified_by?: {
|
|
1236
1252
|
id: string;
|
|
1237
1253
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1238
1254
|
title: string;
|
|
@@ -1242,7 +1258,7 @@ declare const Target: z.ZodObject<{
|
|
|
1242
1258
|
id: string;
|
|
1243
1259
|
type: "crm:D1_Digital_Object";
|
|
1244
1260
|
format?: string | string[] | undefined;
|
|
1245
|
-
|
|
1261
|
+
P1_is_identified_by?: {
|
|
1246
1262
|
id: string;
|
|
1247
1263
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1248
1264
|
title: string;
|
|
@@ -1252,20 +1268,20 @@ declare const Target: z.ZodObject<{
|
|
|
1252
1268
|
renderedVia: z.ZodOptional<z.ZodObject<{
|
|
1253
1269
|
id: z.ZodString;
|
|
1254
1270
|
type: z.ZodLiteral<"Software">;
|
|
1255
|
-
|
|
1271
|
+
P16_used_specific_object: z.ZodOptional<z.ZodString>;
|
|
1256
1272
|
label: z.ZodString;
|
|
1257
1273
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
1258
1274
|
}, "strip", z.ZodTypeAny, {
|
|
1259
1275
|
id: string;
|
|
1260
1276
|
type: "Software";
|
|
1261
1277
|
label: string;
|
|
1262
|
-
|
|
1278
|
+
P16_used_specific_object?: string | undefined;
|
|
1263
1279
|
softwareVersion?: string | undefined;
|
|
1264
1280
|
}, {
|
|
1265
1281
|
id: string;
|
|
1266
1282
|
type: "Software";
|
|
1267
1283
|
label: string;
|
|
1268
|
-
|
|
1284
|
+
P16_used_specific_object?: string | undefined;
|
|
1269
1285
|
softwareVersion?: string | undefined;
|
|
1270
1286
|
}>>;
|
|
1271
1287
|
selector: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
@@ -1824,7 +1840,7 @@ declare const Target: z.ZodObject<{
|
|
|
1824
1840
|
id: string;
|
|
1825
1841
|
type: "crm:D1_Digital_Object";
|
|
1826
1842
|
format?: string | string[] | undefined;
|
|
1827
|
-
|
|
1843
|
+
P1_is_identified_by?: {
|
|
1828
1844
|
id: string;
|
|
1829
1845
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1830
1846
|
title: string;
|
|
@@ -1835,7 +1851,7 @@ declare const Target: z.ZodObject<{
|
|
|
1835
1851
|
id: string;
|
|
1836
1852
|
type: "Software";
|
|
1837
1853
|
label: string;
|
|
1838
|
-
|
|
1854
|
+
P16_used_specific_object?: string | undefined;
|
|
1839
1855
|
softwareVersion?: string | undefined;
|
|
1840
1856
|
} | undefined;
|
|
1841
1857
|
selector?: {
|
|
@@ -1974,7 +1990,7 @@ declare const Target: z.ZodObject<{
|
|
|
1974
1990
|
id: string;
|
|
1975
1991
|
type: "crm:D1_Digital_Object";
|
|
1976
1992
|
format?: string | string[] | undefined;
|
|
1977
|
-
|
|
1993
|
+
P1_is_identified_by?: {
|
|
1978
1994
|
id: string;
|
|
1979
1995
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1980
1996
|
title: string;
|
|
@@ -1985,7 +2001,7 @@ declare const Target: z.ZodObject<{
|
|
|
1985
2001
|
id: string;
|
|
1986
2002
|
type: "Software";
|
|
1987
2003
|
label: string;
|
|
1988
|
-
|
|
2004
|
+
P16_used_specific_object?: string | undefined;
|
|
1989
2005
|
softwareVersion?: string | undefined;
|
|
1990
2006
|
} | undefined;
|
|
1991
2007
|
selector?: {
|
|
@@ -2145,19 +2161,13 @@ interface Definition {
|
|
|
2145
2161
|
}
|
|
2146
2162
|
declare const definitionSchema: JSONSchemaType<Definition>;
|
|
2147
2163
|
|
|
2148
|
-
declare const
|
|
2149
|
-
type
|
|
2164
|
+
declare const Motivation: readonly ["oa:identifying", "oa:describing", "correcting", "oa:tagging", "oa:classifying", "oa:linking", "citing"];
|
|
2165
|
+
type Motivation = (typeof Motivation)[number];
|
|
2150
2166
|
declare const WebAnnotation: z.ZodObject<{
|
|
2151
|
-
'@context': z.ZodTuple<[z.ZodLiteral<"http://www.w3.org/ns/anno.jsonld">, z.ZodLiteral<"https://wa.lincsproject.ca/v1/ns/anno.jsonld">], null>;
|
|
2167
|
+
'@context': z.ZodTuple<[z.ZodLiteral<"http://www.w3.org/ns/anno.jsonld">, z.ZodLiteral<"https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld">, z.ZodLiteral<"https://wa.lincsproject.ca/v1/ns/anno.jsonld">], null>;
|
|
2152
2168
|
id: z.ZodString;
|
|
2153
2169
|
type: z.ZodTuple<[z.ZodLiteral<"Annotation">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>;
|
|
2154
|
-
motivation: z.
|
|
2155
|
-
type: z.ZodLiteral<"crm:E55_Type">;
|
|
2156
|
-
}, "strip", z.ZodTypeAny, {
|
|
2157
|
-
type: "crm:E55_Type";
|
|
2158
|
-
}, {
|
|
2159
|
-
type: "crm:E55_Type";
|
|
2160
|
-
}>>;
|
|
2170
|
+
motivation: z.ZodEnum<["oa:identifying", "oa:describing", "correcting", "oa:tagging", "oa:classifying", "oa:linking", "citing"]>;
|
|
2161
2171
|
created: z.ZodString;
|
|
2162
2172
|
modified: z.ZodOptional<z.ZodString>;
|
|
2163
2173
|
creator: z.ZodOptional<z.ZodObject<{
|
|
@@ -2189,20 +2199,20 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2189
2199
|
generator: z.ZodObject<{
|
|
2190
2200
|
id: z.ZodString;
|
|
2191
2201
|
type: z.ZodLiteral<"Software">;
|
|
2192
|
-
|
|
2202
|
+
P16_used_specific_object: z.ZodOptional<z.ZodString>;
|
|
2193
2203
|
label: z.ZodString;
|
|
2194
2204
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
2195
2205
|
}, "strip", z.ZodTypeAny, {
|
|
2196
2206
|
id: string;
|
|
2197
2207
|
type: "Software";
|
|
2198
2208
|
label: string;
|
|
2199
|
-
|
|
2209
|
+
P16_used_specific_object?: string | undefined;
|
|
2200
2210
|
softwareVersion?: string | undefined;
|
|
2201
2211
|
}, {
|
|
2202
2212
|
id: string;
|
|
2203
2213
|
type: "Software";
|
|
2204
2214
|
label: string;
|
|
2205
|
-
|
|
2215
|
+
P16_used_specific_object?: string | undefined;
|
|
2206
2216
|
softwareVersion?: string | undefined;
|
|
2207
2217
|
}>;
|
|
2208
2218
|
target: z.ZodObject<{
|
|
@@ -2212,7 +2222,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2212
2222
|
id: z.ZodString;
|
|
2213
2223
|
type: z.ZodLiteral<"crm:D1_Digital_Object">;
|
|
2214
2224
|
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2215
|
-
|
|
2225
|
+
P1_is_identified_by: z.ZodOptional<z.ZodObject<{
|
|
2216
2226
|
id: z.ZodString;
|
|
2217
2227
|
type: z.ZodLiteral<"crm:E33_E41_Linguistic_Appellation">;
|
|
2218
2228
|
title: z.ZodString;
|
|
@@ -2230,7 +2240,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2230
2240
|
id: string;
|
|
2231
2241
|
type: "crm:D1_Digital_Object";
|
|
2232
2242
|
format?: string | string[] | undefined;
|
|
2233
|
-
|
|
2243
|
+
P1_is_identified_by?: {
|
|
2234
2244
|
id: string;
|
|
2235
2245
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
2236
2246
|
title: string;
|
|
@@ -2240,7 +2250,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2240
2250
|
id: string;
|
|
2241
2251
|
type: "crm:D1_Digital_Object";
|
|
2242
2252
|
format?: string | string[] | undefined;
|
|
2243
|
-
|
|
2253
|
+
P1_is_identified_by?: {
|
|
2244
2254
|
id: string;
|
|
2245
2255
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
2246
2256
|
title: string;
|
|
@@ -2250,20 +2260,20 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2250
2260
|
renderedVia: z.ZodOptional<z.ZodObject<{
|
|
2251
2261
|
id: z.ZodString;
|
|
2252
2262
|
type: z.ZodLiteral<"Software">;
|
|
2253
|
-
|
|
2263
|
+
P16_used_specific_object: z.ZodOptional<z.ZodString>;
|
|
2254
2264
|
label: z.ZodString;
|
|
2255
2265
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
2256
2266
|
}, "strip", z.ZodTypeAny, {
|
|
2257
2267
|
id: string;
|
|
2258
2268
|
type: "Software";
|
|
2259
2269
|
label: string;
|
|
2260
|
-
|
|
2270
|
+
P16_used_specific_object?: string | undefined;
|
|
2261
2271
|
softwareVersion?: string | undefined;
|
|
2262
2272
|
}, {
|
|
2263
2273
|
id: string;
|
|
2264
2274
|
type: "Software";
|
|
2265
2275
|
label: string;
|
|
2266
|
-
|
|
2276
|
+
P16_used_specific_object?: string | undefined;
|
|
2267
2277
|
softwareVersion?: string | undefined;
|
|
2268
2278
|
}>>;
|
|
2269
2279
|
selector: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
@@ -2822,7 +2832,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2822
2832
|
id: string;
|
|
2823
2833
|
type: "crm:D1_Digital_Object";
|
|
2824
2834
|
format?: string | string[] | undefined;
|
|
2825
|
-
|
|
2835
|
+
P1_is_identified_by?: {
|
|
2826
2836
|
id: string;
|
|
2827
2837
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
2828
2838
|
title: string;
|
|
@@ -2833,7 +2843,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2833
2843
|
id: string;
|
|
2834
2844
|
type: "Software";
|
|
2835
2845
|
label: string;
|
|
2836
|
-
|
|
2846
|
+
P16_used_specific_object?: string | undefined;
|
|
2837
2847
|
softwareVersion?: string | undefined;
|
|
2838
2848
|
} | undefined;
|
|
2839
2849
|
selector?: {
|
|
@@ -2972,7 +2982,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2972
2982
|
id: string;
|
|
2973
2983
|
type: "crm:D1_Digital_Object";
|
|
2974
2984
|
format?: string | string[] | undefined;
|
|
2975
|
-
|
|
2985
|
+
P1_is_identified_by?: {
|
|
2976
2986
|
id: string;
|
|
2977
2987
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
2978
2988
|
title: string;
|
|
@@ -2983,7 +2993,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2983
2993
|
id: string;
|
|
2984
2994
|
type: "Software";
|
|
2985
2995
|
label: string;
|
|
2986
|
-
|
|
2996
|
+
P16_used_specific_object?: string | undefined;
|
|
2987
2997
|
softwareVersion?: string | undefined;
|
|
2988
2998
|
} | undefined;
|
|
2989
2999
|
selector?: {
|
|
@@ -3237,11 +3247,10 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3237
3247
|
certainty: z.ZodOptional<z.ZodEnum<["edit:qualityLow", "edit:qualityMedium", "edit:qualityHigh", "edit:qualityUnknown"]>>;
|
|
3238
3248
|
precision: z.ZodOptional<z.ZodEnum<["edit:qualityLow", "edit:qualityMedium", "edit:qualityHigh", "edit:qualityUnknown"]>>;
|
|
3239
3249
|
label: z.ZodOptional<z.ZodString>;
|
|
3240
|
-
|
|
3250
|
+
P2_has_type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
3241
3251
|
}, "strip", z.ZodTypeAny, {
|
|
3242
3252
|
id: string;
|
|
3243
3253
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
3244
|
-
status: "edit:statusApproved" | "edit:statusDraft" | "edit:statusPublished";
|
|
3245
3254
|
target: {
|
|
3246
3255
|
id: string;
|
|
3247
3256
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
|
@@ -3249,7 +3258,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3249
3258
|
id: string;
|
|
3250
3259
|
type: "crm:D1_Digital_Object";
|
|
3251
3260
|
format?: string | string[] | undefined;
|
|
3252
|
-
|
|
3261
|
+
P1_is_identified_by?: {
|
|
3253
3262
|
id: string;
|
|
3254
3263
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
3255
3264
|
title: string;
|
|
@@ -3260,7 +3269,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3260
3269
|
id: string;
|
|
3261
3270
|
type: "Software";
|
|
3262
3271
|
label: string;
|
|
3263
|
-
|
|
3272
|
+
P16_used_specific_object?: string | undefined;
|
|
3264
3273
|
softwareVersion?: string | undefined;
|
|
3265
3274
|
} | undefined;
|
|
3266
3275
|
selector?: {
|
|
@@ -3511,16 +3520,14 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3511
3520
|
modeExistence?: "edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable" | undefined;
|
|
3512
3521
|
description?: string | undefined;
|
|
3513
3522
|
}[]);
|
|
3514
|
-
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
3515
|
-
motivation:
|
|
3516
|
-
type: "crm:E55_Type";
|
|
3517
|
-
}>>;
|
|
3523
|
+
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
3524
|
+
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:tagging" | "oa:classifying" | "oa:linking" | "citing";
|
|
3518
3525
|
created: string;
|
|
3519
3526
|
generator: {
|
|
3520
3527
|
id: string;
|
|
3521
3528
|
type: "Software";
|
|
3522
3529
|
label: string;
|
|
3523
|
-
|
|
3530
|
+
P16_used_specific_object?: string | undefined;
|
|
3524
3531
|
softwareVersion?: string | undefined;
|
|
3525
3532
|
};
|
|
3526
3533
|
modified?: string | undefined;
|
|
@@ -3541,10 +3548,10 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3541
3548
|
certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
|
|
3542
3549
|
precision?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
|
|
3543
3550
|
label?: string | undefined;
|
|
3551
|
+
P2_has_type?: string | string[] | undefined;
|
|
3544
3552
|
}, {
|
|
3545
3553
|
id: string;
|
|
3546
3554
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
3547
|
-
status: "edit:statusApproved" | "edit:statusDraft" | "edit:statusPublished";
|
|
3548
3555
|
target: {
|
|
3549
3556
|
id: string;
|
|
3550
3557
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
|
@@ -3552,7 +3559,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3552
3559
|
id: string;
|
|
3553
3560
|
type: "crm:D1_Digital_Object";
|
|
3554
3561
|
format?: string | string[] | undefined;
|
|
3555
|
-
|
|
3562
|
+
P1_is_identified_by?: {
|
|
3556
3563
|
id: string;
|
|
3557
3564
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
3558
3565
|
title: string;
|
|
@@ -3563,7 +3570,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3563
3570
|
id: string;
|
|
3564
3571
|
type: "Software";
|
|
3565
3572
|
label: string;
|
|
3566
|
-
|
|
3573
|
+
P16_used_specific_object?: string | undefined;
|
|
3567
3574
|
softwareVersion?: string | undefined;
|
|
3568
3575
|
} | undefined;
|
|
3569
3576
|
selector?: {
|
|
@@ -3814,16 +3821,14 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3814
3821
|
modeExistence?: "edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable" | undefined;
|
|
3815
3822
|
description?: string | undefined;
|
|
3816
3823
|
}[]);
|
|
3817
|
-
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
3818
|
-
motivation:
|
|
3819
|
-
type: "crm:E55_Type";
|
|
3820
|
-
}>>;
|
|
3824
|
+
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
3825
|
+
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:tagging" | "oa:classifying" | "oa:linking" | "citing";
|
|
3821
3826
|
created: string;
|
|
3822
3827
|
generator: {
|
|
3823
3828
|
id: string;
|
|
3824
3829
|
type: "Software";
|
|
3825
3830
|
label: string;
|
|
3826
|
-
|
|
3831
|
+
P16_used_specific_object?: string | undefined;
|
|
3827
3832
|
softwareVersion?: string | undefined;
|
|
3828
3833
|
};
|
|
3829
3834
|
modified?: string | undefined;
|
|
@@ -3844,6 +3849,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3844
3849
|
certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
|
|
3845
3850
|
precision?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
|
|
3846
3851
|
label?: string | undefined;
|
|
3852
|
+
P2_has_type?: string | string[] | undefined;
|
|
3847
3853
|
}>;
|
|
3848
3854
|
type WebAnnotation = z.infer<typeof WebAnnotation>;
|
|
3849
3855
|
declare const webAnnotationSchema: JSONSchemaType<Required<WebAnnotation>>;
|
|
@@ -3930,7 +3936,6 @@ declare const ajv: ajv_dist_core.default;
|
|
|
3930
3936
|
declare const validator: _ajv.ValidateFunction<Required<{
|
|
3931
3937
|
id: string;
|
|
3932
3938
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
3933
|
-
status: "edit:statusApproved" | "edit:statusDraft" | "edit:statusPublished";
|
|
3934
3939
|
target: {
|
|
3935
3940
|
id: string;
|
|
3936
3941
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
|
@@ -3938,7 +3943,7 @@ declare const validator: _ajv.ValidateFunction<Required<{
|
|
|
3938
3943
|
id: string;
|
|
3939
3944
|
type: "crm:D1_Digital_Object";
|
|
3940
3945
|
format?: string | string[] | undefined;
|
|
3941
|
-
|
|
3946
|
+
P1_is_identified_by?: {
|
|
3942
3947
|
id: string;
|
|
3943
3948
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
3944
3949
|
title: string;
|
|
@@ -3949,7 +3954,7 @@ declare const validator: _ajv.ValidateFunction<Required<{
|
|
|
3949
3954
|
id: string;
|
|
3950
3955
|
type: "Software";
|
|
3951
3956
|
label: string;
|
|
3952
|
-
|
|
3957
|
+
P16_used_specific_object?: string | undefined;
|
|
3953
3958
|
softwareVersion?: string | undefined;
|
|
3954
3959
|
} | undefined;
|
|
3955
3960
|
selector?: {
|
|
@@ -4200,16 +4205,14 @@ declare const validator: _ajv.ValidateFunction<Required<{
|
|
|
4200
4205
|
modeExistence?: "edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable" | undefined;
|
|
4201
4206
|
description?: string | undefined;
|
|
4202
4207
|
}[]);
|
|
4203
|
-
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
4204
|
-
motivation:
|
|
4205
|
-
type: "crm:E55_Type";
|
|
4206
|
-
}>>;
|
|
4208
|
+
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
4209
|
+
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:tagging" | "oa:classifying" | "oa:linking" | "citing";
|
|
4207
4210
|
created: string;
|
|
4208
4211
|
generator: {
|
|
4209
4212
|
id: string;
|
|
4210
4213
|
type: "Software";
|
|
4211
4214
|
label: string;
|
|
4212
|
-
|
|
4215
|
+
P16_used_specific_object?: string | undefined;
|
|
4213
4216
|
softwareVersion?: string | undefined;
|
|
4214
4217
|
};
|
|
4215
4218
|
modified?: string | undefined;
|
|
@@ -4230,6 +4233,7 @@ declare const validator: _ajv.ValidateFunction<Required<{
|
|
|
4230
4233
|
certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
|
|
4231
4234
|
precision?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
|
|
4232
4235
|
label?: string | undefined;
|
|
4236
|
+
P2_has_type?: string | string[] | undefined;
|
|
4233
4237
|
}>>;
|
|
4234
4238
|
/**
|
|
4235
4239
|
* The function `validate` takes an annotation object as input and returns a validation result object
|
|
@@ -4268,17 +4272,20 @@ declare const index_DATE_RANGE_PATTERN: typeof DATE_RANGE_PATTERN;
|
|
|
4268
4272
|
type index_Date = Date;
|
|
4269
4273
|
type index_DateEntityType = DateEntityType;
|
|
4270
4274
|
type index_Definition = Definition;
|
|
4275
|
+
type index_Description = Description;
|
|
4271
4276
|
type index_Event = Event;
|
|
4272
4277
|
type index_EventEntityType = EventEntityType;
|
|
4273
4278
|
type index_Format = Format;
|
|
4274
|
-
type index_IdentifiedBy = IdentifiedBy;
|
|
4275
4279
|
type index_Keyword = Keyword;
|
|
4276
4280
|
type index_KeywordEntityType = KeywordEntityType;
|
|
4277
4281
|
type index_KeywordFolksnomy = KeywordFolksnomy;
|
|
4278
4282
|
type index_KeywordFolksnomyEntityType = KeywordFolksnomyEntityType;
|
|
4283
|
+
type index_Label = Label;
|
|
4279
4284
|
type index_Language = Language;
|
|
4280
4285
|
type index_Link = Link;
|
|
4281
4286
|
type index_LinkEntityType = LinkEntityType;
|
|
4287
|
+
type index_ModeExistence = ModeExistence;
|
|
4288
|
+
type index_Motivation = Motivation;
|
|
4282
4289
|
type index_Note = Note;
|
|
4283
4290
|
type index_NoteEntityType = NoteEntityType;
|
|
4284
4291
|
type index_Organization = Organization;
|
|
@@ -4295,7 +4302,6 @@ type index_RangeSelector = RangeSelector;
|
|
|
4295
4302
|
type index_Selector = Selector;
|
|
4296
4303
|
type index_Software = Software;
|
|
4297
4304
|
type index_Source = Source;
|
|
4298
|
-
type index_Status = Status;
|
|
4299
4305
|
type index_Target = Target;
|
|
4300
4306
|
type index_TextPositionSelector = TextPositionSelector;
|
|
4301
4307
|
type index_TextPositionSelectorExtended = TextPositionSelectorExtended;
|
|
@@ -4328,17 +4334,21 @@ declare const index_dateEntityTypeSchema: typeof dateEntityTypeSchema;
|
|
|
4328
4334
|
declare const index_dateSchema: typeof dateSchema;
|
|
4329
4335
|
declare const index_definitionSchema: typeof definitionSchema;
|
|
4330
4336
|
declare const index_defsId: typeof defsId;
|
|
4337
|
+
declare const index_descriptionSchema: typeof descriptionSchema;
|
|
4331
4338
|
declare const index_eventEntityTypeSchema: typeof eventEntityTypeSchema;
|
|
4332
4339
|
declare const index_eventSchema: typeof eventSchema;
|
|
4333
4340
|
declare const index_formatSchema: typeof formatSchema;
|
|
4334
|
-
|
|
4341
|
+
type index_isIdentifiedBy = isIdentifiedBy;
|
|
4342
|
+
declare const index_isIndentifyBySchema: typeof isIndentifyBySchema;
|
|
4335
4343
|
declare const index_keywordEntityTypeSchema: typeof keywordEntityTypeSchema;
|
|
4336
4344
|
declare const index_keywordFolksnomyEntityTypeSchema: typeof keywordFolksnomyEntityTypeSchema;
|
|
4337
4345
|
declare const index_keywordFolksnomySchema: typeof keywordFolksnomySchema;
|
|
4338
4346
|
declare const index_keywordSchema: typeof keywordSchema;
|
|
4347
|
+
declare const index_labelSchema: typeof labelSchema;
|
|
4339
4348
|
declare const index_languageSchema: typeof languageSchema;
|
|
4340
4349
|
declare const index_linkEntityTypeSchema: typeof linkEntityTypeSchema;
|
|
4341
4350
|
declare const index_linkSchema: typeof linkSchema;
|
|
4351
|
+
declare const index_modeExistenceSchema: typeof modeExistenceSchema;
|
|
4342
4352
|
declare const index_noteEntityTypeSchema: typeof noteEntityTypeSchema;
|
|
4343
4353
|
declare const index_noteSchema: typeof noteSchema;
|
|
4344
4354
|
declare const index_organizationEntityTypeSchema: typeof organizationEntityTypeSchema;
|
|
@@ -4371,7 +4381,7 @@ declare const index_workSchema: typeof workSchema;
|
|
|
4371
4381
|
declare const index_xpathSelectorExtendedSchema: typeof xpathSelectorExtendedSchema;
|
|
4372
4382
|
declare const index_xpathSelectorSchema: typeof xpathSelectorSchema;
|
|
4373
4383
|
declare namespace index {
|
|
4374
|
-
export { type index_Body as Body, type index_BodyChoice as BodyChoice, type index_BodyEntityType as BodyEntityType, type index_Certainty as Certainty, type index_Citation as Citation, type index_CitationEntityType as CitationEntityType, type index_ConceptualObject as ConceptualObject, type index_ConceptualObjectEntityType as ConceptualObjectEntityType, type index_Correction as Correction, type index_CorrectionEntityType as CorrectionEntityType, index_DATE_RANGE_PATTERN as DATE_RANGE_PATTERN, type index_Date as Date, type index_DateEntityType as DateEntityType, type index_Definition as Definition, type
|
|
4384
|
+
export { type index_Body as Body, type index_BodyChoice as BodyChoice, type index_BodyEntityType as BodyEntityType, type index_Certainty as Certainty, type index_Citation as Citation, type index_CitationEntityType as CitationEntityType, type index_ConceptualObject as ConceptualObject, type index_ConceptualObjectEntityType as ConceptualObjectEntityType, type index_Correction as Correction, type index_CorrectionEntityType as CorrectionEntityType, index_DATE_RANGE_PATTERN as DATE_RANGE_PATTERN, type index_Date as Date, type index_DateEntityType as DateEntityType, type index_Definition as Definition, type index_Description as Description, type index_Event as Event, type index_EventEntityType as EventEntityType, type index_Format as Format, type index_Keyword as Keyword, type index_KeywordEntityType as KeywordEntityType, type index_KeywordFolksnomy as KeywordFolksnomy, type index_KeywordFolksnomyEntityType as KeywordFolksnomyEntityType, type index_Label as Label, type index_Language as Language, type index_Link as Link, type index_LinkEntityType as LinkEntityType, type index_ModeExistence as ModeExistence, type index_Motivation as Motivation, type index_Note as Note, type index_NoteEntityType as NoteEntityType, type index_Organization as Organization, type index_OrganizationEntityType as OrganizationEntityType, type index_Person as Person, type index_PersonEntityType as PersonEntityType, type index_PhysicalThing as PhysicalThing, type index_PhysicalThingEntityType as PhysicalThingEntityType, type index_Place as Place, type index_PlaceEntityType as PlaceEntityType, type index_Precision as Precision, type index_Quality as Quality, type index_RangeSelector as RangeSelector, type index_Selector as Selector, type index_Software as Software, type index_Source as Source, type index_Target as Target, type index_TextPositionSelector as TextPositionSelector, type index_TextPositionSelectorExtended as TextPositionSelectorExtended, type index_TextQuoteSelector as TextQuoteSelector, type index_TextQuoteSelectorExtended as TextQuoteSelectorExtended, type index_User as User, index_VERSION as VERSION, type index_ValidateResult as ValidateResult, type index_ValidationError as ValidationError, type index_WebAnnotation as WebAnnotation, type index_Work as Work, type index_WorkEntityType as WorkEntityType, type index_XpathSelector as XpathSelector, type index_XpathSelectorExtended as XpathSelectorExtended, index_ajv as ajv, index_bodyChoiceSchema as bodyChoiceSchema, index_bodyEntityTypeSchema as bodyEntityTypeSchema, index_bodyIdDescription as bodyIdDescription, index_bodySchema as bodySchema, index_certaintySchema as certaintySchema, index_citationEntityTypeSchema as citationEntityTypeSchema, index_citationSchema as citationSchema, index_conceptualObjectEntityTypeSchema as conceptualObjectEntityTypeSchema, index_conceptualObjectSchema as conceptualObjectSchema, index_contextUri as contextUri, index_correctionEntityTypeSchema as correctionEntityTypeSchema, index_correctionSchema as correctionSchema, index_creatorSchema as creatorSchema, index_dateEntityTypeSchema as dateEntityTypeSchema, index_dateSchema as dateSchema, index_definitionSchema as definitionSchema, index_defsId as defsId, index_descriptionSchema as descriptionSchema, index_eventEntityTypeSchema as eventEntityTypeSchema, index_eventSchema as eventSchema, index_formatSchema as formatSchema, type index_isIdentifiedBy as isIdentifiedBy, index_isIndentifyBySchema as isIndentifyBySchema, index_keywordEntityTypeSchema as keywordEntityTypeSchema, index_keywordFolksnomyEntityTypeSchema as keywordFolksnomyEntityTypeSchema, index_keywordFolksnomySchema as keywordFolksnomySchema, index_keywordSchema as keywordSchema, index_labelSchema as labelSchema, index_languageSchema as languageSchema, index_linkEntityTypeSchema as linkEntityTypeSchema, index_linkSchema as linkSchema, index_modeExistenceSchema as modeExistenceSchema, index_noteEntityTypeSchema as noteEntityTypeSchema, index_noteSchema as noteSchema, index_organizationEntityTypeSchema as organizationEntityTypeSchema, index_organizationSchema as organizationSchema, index_personEntityTypeSchema as personEntityTypeSchema, index_personSchema as personSchema, index_physicalThingEntityTypeSchema as physicalThingEntityTypeSchema, index_physicalThingSchema as physicalThingSchema, index_placeEntityTypeSchema as placeEntityTypeSchema, index_placeSchema as placeSchema, index_precisionSchema as precisionSchema, index_rangeSelectorSchema as rangeSelectorSchema, index_schemaContext as schemaContext, index_schemaId as schemaId, index_selectorIdDescription as selectorIdDescription, index_selectorRefinedByDescription as selectorRefinedByDescription, index_selectorSchema as selectorSchema, index_softwareSchema as softwareSchema, index_sourceSchema as sourceSchema, index_targetSchema as targetSchema, index_textPositionSelectorExtendedSchema as textPositionSelectorExtendedSchema, index_textPositionSelectorSchema as textPositionSelectorSchema, index_textQuoteSelectorExtendedSchema as textQuoteSelectorExtendedSchema, index_textQuoteSelectorSchema as textQuoteSelectorSchema, index_validate as validate, index_validator as validator, index_webAnnotationSchema as webAnnotationSchema, index_workEntityTypeSchema as workEntityTypeSchema, index_workSchema as workSchema, index_xpathSelectorExtendedSchema as xpathSelectorExtendedSchema, index_xpathSelectorSchema as xpathSelectorSchema };
|
|
4375
4385
|
}
|
|
4376
4386
|
|
|
4377
|
-
export { Body, BodyChoice, BodyEntityType, Certainty, Citation, CitationEntityType, ConceptualObject, ConceptualObjectEntityType, Correction, CorrectionEntityType, DATE_RANGE_PATTERN, Date, DateEntityType, type Definition, Event, EventEntityType, Format,
|
|
4387
|
+
export { Body, BodyChoice, BodyEntityType, Certainty, Citation, CitationEntityType, ConceptualObject, ConceptualObjectEntityType, Correction, CorrectionEntityType, DATE_RANGE_PATTERN, Date, DateEntityType, type Definition, Description, Event, EventEntityType, Format, Keyword, KeywordEntityType, KeywordFolksnomy, KeywordFolksnomyEntityType, Label, Language, Link, LinkEntityType, ModeExistence, Motivation, Note, NoteEntityType, Organization, OrganizationEntityType, Person, PersonEntityType, PhysicalThing, PhysicalThingEntityType, Place, PlaceEntityType, Precision, Quality, RangeSelector, Selector, Software, Source, Target, TextPositionSelector, TextPositionSelectorExtended, TextQuoteSelector, TextQuoteSelectorExtended, User, VERSION, ValidateResult, ValidationError, WebAnnotation, Work, WorkEntityType, XpathSelector, XpathSelectorExtended, ajv, bodyChoiceSchema, bodyEntityTypeSchema, bodyIdDescription, bodySchema, certaintySchema, citationEntityTypeSchema, citationSchema, conceptualObjectEntityTypeSchema, conceptualObjectSchema, contextUri, correctionEntityTypeSchema, correctionSchema, creatorSchema, dateEntityTypeSchema, dateSchema, definitionSchema, defsId, descriptionSchema, eventEntityTypeSchema, eventSchema, formatSchema, isIdentifiedBy, isIndentifyBySchema, keywordEntityTypeSchema, keywordFolksnomyEntityTypeSchema, keywordFolksnomySchema, keywordSchema, labelSchema, languageSchema, linkEntityTypeSchema, linkSchema, modeExistenceSchema, noteEntityTypeSchema, noteSchema, organizationEntityTypeSchema, organizationSchema, personEntityTypeSchema, personSchema, physicalThingEntityTypeSchema, physicalThingSchema, placeEntityTypeSchema, placeSchema, precisionSchema, rangeSelectorSchema, schemaContext, schemaId, selectorIdDescription, selectorRefinedByDescription, selectorSchema, softwareSchema, sourceSchema, targetSchema, textPositionSelectorExtendedSchema, textPositionSelectorSchema, textQuoteSelectorExtendedSchema, textQuoteSelectorSchema, index as v1, validate, validator, webAnnotationSchema, workEntityTypeSchema, workSchema, xpathSelectorExtendedSchema, xpathSelectorSchema };
|