@lincs.project/webannotation-schema 1.9.0 → 1.10.1
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 +73 -67
- package/dist/index.d.ts +73 -67
- package/dist/index.js +56 -34
- package/dist/index.mjs +48 -31
- package/dist/v1/jsonld/context.jsonld +7 -14
- package/dist/v1/jsonld/defs.jsonld +2 -2
- package/dist/v1/jsonld/schema.jsonld +21 -8
- package/dist/v1/standalone/linc-wa-validator.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ declare const schemaContext: {
|
|
|
17
17
|
fabio: string;
|
|
18
18
|
frbroo: string;
|
|
19
19
|
wikidata: string;
|
|
20
|
-
crm: string;
|
|
21
20
|
crmdig: string;
|
|
22
21
|
citing: string;
|
|
23
22
|
correcting: string;
|
|
@@ -53,19 +52,13 @@ declare const schemaContext: {
|
|
|
53
52
|
'@type': string;
|
|
54
53
|
'@id': string;
|
|
55
54
|
};
|
|
56
|
-
modeExistence:
|
|
57
|
-
description: string;
|
|
58
|
-
identifiedBy: string;
|
|
59
|
-
title: string;
|
|
60
|
-
usedSpecificObject: string;
|
|
61
|
-
softwareVersion: string;
|
|
62
|
-
status: {
|
|
55
|
+
modeExistence: {
|
|
63
56
|
'@type': string;
|
|
64
57
|
'@id': string;
|
|
65
58
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
description: string;
|
|
60
|
+
title: string;
|
|
61
|
+
softwareVersion: string;
|
|
69
62
|
};
|
|
70
63
|
};
|
|
71
64
|
|
|
@@ -87,20 +80,20 @@ declare const creatorSchema: JSONSchemaType<User>;
|
|
|
87
80
|
declare const Software: z.ZodObject<{
|
|
88
81
|
id: z.ZodString;
|
|
89
82
|
type: z.ZodLiteral<"Software">;
|
|
90
|
-
|
|
83
|
+
P16_used_specific_object: z.ZodOptional<z.ZodString>;
|
|
91
84
|
label: z.ZodString;
|
|
92
85
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
93
86
|
}, "strip", z.ZodTypeAny, {
|
|
94
87
|
id: string;
|
|
95
88
|
type: "Software";
|
|
96
89
|
label: string;
|
|
97
|
-
|
|
90
|
+
P16_used_specific_object?: string | undefined;
|
|
98
91
|
softwareVersion?: string | undefined;
|
|
99
92
|
}, {
|
|
100
93
|
id: string;
|
|
101
94
|
type: "Software";
|
|
102
95
|
label: string;
|
|
103
|
-
|
|
96
|
+
P16_used_specific_object?: string | undefined;
|
|
104
97
|
softwareVersion?: string | undefined;
|
|
105
98
|
}>;
|
|
106
99
|
type Software = z.infer<typeof Software>;
|
|
@@ -195,6 +188,16 @@ type Citation = z.infer<typeof Citation>;
|
|
|
195
188
|
declare const citationEntityTypeSchema: JSONSchemaType<CitationEntityType>;
|
|
196
189
|
declare const citationSchema: JSONSchemaType<Citation>;
|
|
197
190
|
|
|
191
|
+
declare const ModeExistence: z.ZodUnion<[z.ZodLiteral<"edit:modeReal">, z.ZodLiteral<"edit:modeFictional">, z.ZodLiteral<"edit:modeIdentifiable">]>;
|
|
192
|
+
type ModeExistence = z.infer<typeof ModeExistence>;
|
|
193
|
+
declare const modeExistenceSchema: JSONSchemaType<Description>;
|
|
194
|
+
declare const Label: z.ZodString;
|
|
195
|
+
type Label = z.infer<typeof Label>;
|
|
196
|
+
declare const labelSchema: JSONSchemaType<Label>;
|
|
197
|
+
declare const Description: z.ZodString;
|
|
198
|
+
type Description = z.infer<typeof Description>;
|
|
199
|
+
declare const descriptionSchema: JSONSchemaType<Description>;
|
|
200
|
+
|
|
198
201
|
declare const ConceptualObjectEntityType: z.ZodUnion<[z.ZodLiteral<"crm:E28_Conceptual_Object">, z.ZodTuple<[z.ZodLiteral<"crm:E28_Conceptual_Object">, z.ZodLiteral<"wikidata:Q15831596">], null>]>;
|
|
199
202
|
type ConceptualObjectEntityType = z.infer<typeof ConceptualObjectEntityType>;
|
|
200
203
|
declare const ConceptualObject: z.ZodObject<{
|
|
@@ -1165,7 +1168,7 @@ declare const formatSchema: JSONSchemaType<Format>;
|
|
|
1165
1168
|
declare const Language: z.ZodString;
|
|
1166
1169
|
type Language = z.infer<typeof Language>;
|
|
1167
1170
|
declare const languageSchema: JSONSchemaType<Language>;
|
|
1168
|
-
declare const
|
|
1171
|
+
declare const isIdentifiedBy: z.ZodObject<{
|
|
1169
1172
|
id: z.ZodString;
|
|
1170
1173
|
type: z.ZodLiteral<"crm:E33_E41_Linguistic_Appellation">;
|
|
1171
1174
|
title: z.ZodString;
|
|
@@ -1178,12 +1181,12 @@ declare const IdentifiedBy: z.ZodObject<{
|
|
|
1178
1181
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1179
1182
|
title: string;
|
|
1180
1183
|
}>;
|
|
1181
|
-
type
|
|
1184
|
+
type isIdentifiedBy = z.infer<typeof isIdentifiedBy>;
|
|
1182
1185
|
declare const Source: z.ZodObject<{
|
|
1183
1186
|
id: z.ZodString;
|
|
1184
1187
|
type: z.ZodLiteral<"crm:D1_Digital_Object">;
|
|
1185
1188
|
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1186
|
-
|
|
1189
|
+
P1_is_identified_by: z.ZodOptional<z.ZodObject<{
|
|
1187
1190
|
id: z.ZodString;
|
|
1188
1191
|
type: z.ZodLiteral<"crm:E33_E41_Linguistic_Appellation">;
|
|
1189
1192
|
title: z.ZodString;
|
|
@@ -1201,7 +1204,7 @@ declare const Source: z.ZodObject<{
|
|
|
1201
1204
|
id: string;
|
|
1202
1205
|
type: "crm:D1_Digital_Object";
|
|
1203
1206
|
format?: string | string[] | undefined;
|
|
1204
|
-
|
|
1207
|
+
P1_is_identified_by?: {
|
|
1205
1208
|
id: string;
|
|
1206
1209
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1207
1210
|
title: string;
|
|
@@ -1211,7 +1214,7 @@ declare const Source: z.ZodObject<{
|
|
|
1211
1214
|
id: string;
|
|
1212
1215
|
type: "crm:D1_Digital_Object";
|
|
1213
1216
|
format?: string | string[] | undefined;
|
|
1214
|
-
|
|
1217
|
+
P1_is_identified_by?: {
|
|
1215
1218
|
id: string;
|
|
1216
1219
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1217
1220
|
title: string;
|
|
@@ -1219,7 +1222,7 @@ declare const Source: z.ZodObject<{
|
|
|
1219
1222
|
language?: string | string[] | undefined;
|
|
1220
1223
|
}>;
|
|
1221
1224
|
type Source = z.infer<typeof Source>;
|
|
1222
|
-
declare const
|
|
1225
|
+
declare const isIndentifyBySchema: JSONSchemaType<isIdentifiedBy>;
|
|
1223
1226
|
declare const sourceSchema: JSONSchemaType<Source>;
|
|
1224
1227
|
|
|
1225
1228
|
declare const Target: z.ZodObject<{
|
|
@@ -1229,7 +1232,7 @@ declare const Target: z.ZodObject<{
|
|
|
1229
1232
|
id: z.ZodString;
|
|
1230
1233
|
type: z.ZodLiteral<"crm:D1_Digital_Object">;
|
|
1231
1234
|
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1232
|
-
|
|
1235
|
+
P1_is_identified_by: z.ZodOptional<z.ZodObject<{
|
|
1233
1236
|
id: z.ZodString;
|
|
1234
1237
|
type: z.ZodLiteral<"crm:E33_E41_Linguistic_Appellation">;
|
|
1235
1238
|
title: z.ZodString;
|
|
@@ -1247,7 +1250,7 @@ declare const Target: z.ZodObject<{
|
|
|
1247
1250
|
id: string;
|
|
1248
1251
|
type: "crm:D1_Digital_Object";
|
|
1249
1252
|
format?: string | string[] | undefined;
|
|
1250
|
-
|
|
1253
|
+
P1_is_identified_by?: {
|
|
1251
1254
|
id: string;
|
|
1252
1255
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1253
1256
|
title: string;
|
|
@@ -1257,7 +1260,7 @@ declare const Target: z.ZodObject<{
|
|
|
1257
1260
|
id: string;
|
|
1258
1261
|
type: "crm:D1_Digital_Object";
|
|
1259
1262
|
format?: string | string[] | undefined;
|
|
1260
|
-
|
|
1263
|
+
P1_is_identified_by?: {
|
|
1261
1264
|
id: string;
|
|
1262
1265
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1263
1266
|
title: string;
|
|
@@ -1267,20 +1270,20 @@ declare const Target: z.ZodObject<{
|
|
|
1267
1270
|
renderedVia: z.ZodOptional<z.ZodObject<{
|
|
1268
1271
|
id: z.ZodString;
|
|
1269
1272
|
type: z.ZodLiteral<"Software">;
|
|
1270
|
-
|
|
1273
|
+
P16_used_specific_object: z.ZodOptional<z.ZodString>;
|
|
1271
1274
|
label: z.ZodString;
|
|
1272
1275
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
1273
1276
|
}, "strip", z.ZodTypeAny, {
|
|
1274
1277
|
id: string;
|
|
1275
1278
|
type: "Software";
|
|
1276
1279
|
label: string;
|
|
1277
|
-
|
|
1280
|
+
P16_used_specific_object?: string | undefined;
|
|
1278
1281
|
softwareVersion?: string | undefined;
|
|
1279
1282
|
}, {
|
|
1280
1283
|
id: string;
|
|
1281
1284
|
type: "Software";
|
|
1282
1285
|
label: string;
|
|
1283
|
-
|
|
1286
|
+
P16_used_specific_object?: string | undefined;
|
|
1284
1287
|
softwareVersion?: string | undefined;
|
|
1285
1288
|
}>>;
|
|
1286
1289
|
selector: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
@@ -1839,7 +1842,7 @@ declare const Target: z.ZodObject<{
|
|
|
1839
1842
|
id: string;
|
|
1840
1843
|
type: "crm:D1_Digital_Object";
|
|
1841
1844
|
format?: string | string[] | undefined;
|
|
1842
|
-
|
|
1845
|
+
P1_is_identified_by?: {
|
|
1843
1846
|
id: string;
|
|
1844
1847
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1845
1848
|
title: string;
|
|
@@ -1850,7 +1853,7 @@ declare const Target: z.ZodObject<{
|
|
|
1850
1853
|
id: string;
|
|
1851
1854
|
type: "Software";
|
|
1852
1855
|
label: string;
|
|
1853
|
-
|
|
1856
|
+
P16_used_specific_object?: string | undefined;
|
|
1854
1857
|
softwareVersion?: string | undefined;
|
|
1855
1858
|
} | undefined;
|
|
1856
1859
|
selector?: {
|
|
@@ -1989,7 +1992,7 @@ declare const Target: z.ZodObject<{
|
|
|
1989
1992
|
id: string;
|
|
1990
1993
|
type: "crm:D1_Digital_Object";
|
|
1991
1994
|
format?: string | string[] | undefined;
|
|
1992
|
-
|
|
1995
|
+
P1_is_identified_by?: {
|
|
1993
1996
|
id: string;
|
|
1994
1997
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
1995
1998
|
title: string;
|
|
@@ -2000,7 +2003,7 @@ declare const Target: z.ZodObject<{
|
|
|
2000
2003
|
id: string;
|
|
2001
2004
|
type: "Software";
|
|
2002
2005
|
label: string;
|
|
2003
|
-
|
|
2006
|
+
P16_used_specific_object?: string | undefined;
|
|
2004
2007
|
softwareVersion?: string | undefined;
|
|
2005
2008
|
} | undefined;
|
|
2006
2009
|
selector?: {
|
|
@@ -2160,12 +2163,10 @@ interface Definition {
|
|
|
2160
2163
|
}
|
|
2161
2164
|
declare const definitionSchema: JSONSchemaType<Definition>;
|
|
2162
2165
|
|
|
2163
|
-
declare const Status: readonly ["edit:statusDraft", "edit:statusApproved", "edit:statusPublished"];
|
|
2164
|
-
type Status = (typeof Status)[number];
|
|
2165
2166
|
declare const Motivation: readonly ["oa:identifying", "oa:describing", "correcting", "oa:tagging", "oa:classifying", "oa:linking", "citing"];
|
|
2166
2167
|
type Motivation = (typeof Motivation)[number];
|
|
2167
2168
|
declare const WebAnnotation: z.ZodObject<{
|
|
2168
|
-
'@context': z.ZodTuple<[z.ZodLiteral<"http://www.w3.org/ns/anno.jsonld">, z.ZodLiteral<"https://wa.lincsproject.ca/v1/ns/anno.jsonld">], null>;
|
|
2169
|
+
'@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>;
|
|
2169
2170
|
id: z.ZodString;
|
|
2170
2171
|
type: z.ZodTuple<[z.ZodLiteral<"Annotation">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>;
|
|
2171
2172
|
motivation: z.ZodEnum<["oa:identifying", "oa:describing", "correcting", "oa:tagging", "oa:classifying", "oa:linking", "citing"]>;
|
|
@@ -2200,20 +2201,20 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2200
2201
|
generator: z.ZodObject<{
|
|
2201
2202
|
id: z.ZodString;
|
|
2202
2203
|
type: z.ZodLiteral<"Software">;
|
|
2203
|
-
|
|
2204
|
+
P16_used_specific_object: z.ZodOptional<z.ZodString>;
|
|
2204
2205
|
label: z.ZodString;
|
|
2205
2206
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
2206
2207
|
}, "strip", z.ZodTypeAny, {
|
|
2207
2208
|
id: string;
|
|
2208
2209
|
type: "Software";
|
|
2209
2210
|
label: string;
|
|
2210
|
-
|
|
2211
|
+
P16_used_specific_object?: string | undefined;
|
|
2211
2212
|
softwareVersion?: string | undefined;
|
|
2212
2213
|
}, {
|
|
2213
2214
|
id: string;
|
|
2214
2215
|
type: "Software";
|
|
2215
2216
|
label: string;
|
|
2216
|
-
|
|
2217
|
+
P16_used_specific_object?: string | undefined;
|
|
2217
2218
|
softwareVersion?: string | undefined;
|
|
2218
2219
|
}>;
|
|
2219
2220
|
target: z.ZodObject<{
|
|
@@ -2223,7 +2224,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2223
2224
|
id: z.ZodString;
|
|
2224
2225
|
type: z.ZodLiteral<"crm:D1_Digital_Object">;
|
|
2225
2226
|
format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2226
|
-
|
|
2227
|
+
P1_is_identified_by: z.ZodOptional<z.ZodObject<{
|
|
2227
2228
|
id: z.ZodString;
|
|
2228
2229
|
type: z.ZodLiteral<"crm:E33_E41_Linguistic_Appellation">;
|
|
2229
2230
|
title: z.ZodString;
|
|
@@ -2241,7 +2242,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2241
2242
|
id: string;
|
|
2242
2243
|
type: "crm:D1_Digital_Object";
|
|
2243
2244
|
format?: string | string[] | undefined;
|
|
2244
|
-
|
|
2245
|
+
P1_is_identified_by?: {
|
|
2245
2246
|
id: string;
|
|
2246
2247
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
2247
2248
|
title: string;
|
|
@@ -2251,7 +2252,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2251
2252
|
id: string;
|
|
2252
2253
|
type: "crm:D1_Digital_Object";
|
|
2253
2254
|
format?: string | string[] | undefined;
|
|
2254
|
-
|
|
2255
|
+
P1_is_identified_by?: {
|
|
2255
2256
|
id: string;
|
|
2256
2257
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
2257
2258
|
title: string;
|
|
@@ -2261,20 +2262,20 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2261
2262
|
renderedVia: z.ZodOptional<z.ZodObject<{
|
|
2262
2263
|
id: z.ZodString;
|
|
2263
2264
|
type: z.ZodLiteral<"Software">;
|
|
2264
|
-
|
|
2265
|
+
P16_used_specific_object: z.ZodOptional<z.ZodString>;
|
|
2265
2266
|
label: z.ZodString;
|
|
2266
2267
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
2267
2268
|
}, "strip", z.ZodTypeAny, {
|
|
2268
2269
|
id: string;
|
|
2269
2270
|
type: "Software";
|
|
2270
2271
|
label: string;
|
|
2271
|
-
|
|
2272
|
+
P16_used_specific_object?: string | undefined;
|
|
2272
2273
|
softwareVersion?: string | undefined;
|
|
2273
2274
|
}, {
|
|
2274
2275
|
id: string;
|
|
2275
2276
|
type: "Software";
|
|
2276
2277
|
label: string;
|
|
2277
|
-
|
|
2278
|
+
P16_used_specific_object?: string | undefined;
|
|
2278
2279
|
softwareVersion?: string | undefined;
|
|
2279
2280
|
}>>;
|
|
2280
2281
|
selector: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
@@ -2833,7 +2834,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2833
2834
|
id: string;
|
|
2834
2835
|
type: "crm:D1_Digital_Object";
|
|
2835
2836
|
format?: string | string[] | undefined;
|
|
2836
|
-
|
|
2837
|
+
P1_is_identified_by?: {
|
|
2837
2838
|
id: string;
|
|
2838
2839
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
2839
2840
|
title: string;
|
|
@@ -2844,7 +2845,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2844
2845
|
id: string;
|
|
2845
2846
|
type: "Software";
|
|
2846
2847
|
label: string;
|
|
2847
|
-
|
|
2848
|
+
P16_used_specific_object?: string | undefined;
|
|
2848
2849
|
softwareVersion?: string | undefined;
|
|
2849
2850
|
} | undefined;
|
|
2850
2851
|
selector?: {
|
|
@@ -2983,7 +2984,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2983
2984
|
id: string;
|
|
2984
2985
|
type: "crm:D1_Digital_Object";
|
|
2985
2986
|
format?: string | string[] | undefined;
|
|
2986
|
-
|
|
2987
|
+
P1_is_identified_by?: {
|
|
2987
2988
|
id: string;
|
|
2988
2989
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
2989
2990
|
title: string;
|
|
@@ -2994,7 +2995,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2994
2995
|
id: string;
|
|
2995
2996
|
type: "Software";
|
|
2996
2997
|
label: string;
|
|
2997
|
-
|
|
2998
|
+
P16_used_specific_object?: string | undefined;
|
|
2998
2999
|
softwareVersion?: string | undefined;
|
|
2999
3000
|
} | undefined;
|
|
3000
3001
|
selector?: {
|
|
@@ -3248,7 +3249,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3248
3249
|
certainty: z.ZodOptional<z.ZodEnum<["edit:qualityLow", "edit:qualityMedium", "edit:qualityHigh", "edit:qualityUnknown"]>>;
|
|
3249
3250
|
precision: z.ZodOptional<z.ZodEnum<["edit:qualityLow", "edit:qualityMedium", "edit:qualityHigh", "edit:qualityUnknown"]>>;
|
|
3250
3251
|
label: z.ZodOptional<z.ZodString>;
|
|
3251
|
-
|
|
3252
|
+
P2_has_type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
3252
3253
|
}, "strip", z.ZodTypeAny, {
|
|
3253
3254
|
id: string;
|
|
3254
3255
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
@@ -3259,7 +3260,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3259
3260
|
id: string;
|
|
3260
3261
|
type: "crm:D1_Digital_Object";
|
|
3261
3262
|
format?: string | string[] | undefined;
|
|
3262
|
-
|
|
3263
|
+
P1_is_identified_by?: {
|
|
3263
3264
|
id: string;
|
|
3264
3265
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
3265
3266
|
title: string;
|
|
@@ -3270,7 +3271,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3270
3271
|
id: string;
|
|
3271
3272
|
type: "Software";
|
|
3272
3273
|
label: string;
|
|
3273
|
-
|
|
3274
|
+
P16_used_specific_object?: string | undefined;
|
|
3274
3275
|
softwareVersion?: string | undefined;
|
|
3275
3276
|
} | undefined;
|
|
3276
3277
|
selector?: {
|
|
@@ -3521,14 +3522,14 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3521
3522
|
modeExistence?: "edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable" | undefined;
|
|
3522
3523
|
description?: string | undefined;
|
|
3523
3524
|
}[]);
|
|
3524
|
-
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
3525
|
+
'@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"];
|
|
3525
3526
|
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:tagging" | "oa:classifying" | "oa:linking" | "citing";
|
|
3526
3527
|
created: string;
|
|
3527
3528
|
generator: {
|
|
3528
3529
|
id: string;
|
|
3529
3530
|
type: "Software";
|
|
3530
3531
|
label: string;
|
|
3531
|
-
|
|
3532
|
+
P16_used_specific_object?: string | undefined;
|
|
3532
3533
|
softwareVersion?: string | undefined;
|
|
3533
3534
|
};
|
|
3534
3535
|
modified?: string | undefined;
|
|
@@ -3549,7 +3550,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3549
3550
|
certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
|
|
3550
3551
|
precision?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
|
|
3551
3552
|
label?: string | undefined;
|
|
3552
|
-
|
|
3553
|
+
P2_has_type?: string | string[] | undefined;
|
|
3553
3554
|
}, {
|
|
3554
3555
|
id: string;
|
|
3555
3556
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
@@ -3560,7 +3561,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3560
3561
|
id: string;
|
|
3561
3562
|
type: "crm:D1_Digital_Object";
|
|
3562
3563
|
format?: string | string[] | undefined;
|
|
3563
|
-
|
|
3564
|
+
P1_is_identified_by?: {
|
|
3564
3565
|
id: string;
|
|
3565
3566
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
3566
3567
|
title: string;
|
|
@@ -3571,7 +3572,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3571
3572
|
id: string;
|
|
3572
3573
|
type: "Software";
|
|
3573
3574
|
label: string;
|
|
3574
|
-
|
|
3575
|
+
P16_used_specific_object?: string | undefined;
|
|
3575
3576
|
softwareVersion?: string | undefined;
|
|
3576
3577
|
} | undefined;
|
|
3577
3578
|
selector?: {
|
|
@@ -3822,14 +3823,14 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3822
3823
|
modeExistence?: "edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable" | undefined;
|
|
3823
3824
|
description?: string | undefined;
|
|
3824
3825
|
}[]);
|
|
3825
|
-
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
3826
|
+
'@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"];
|
|
3826
3827
|
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:tagging" | "oa:classifying" | "oa:linking" | "citing";
|
|
3827
3828
|
created: string;
|
|
3828
3829
|
generator: {
|
|
3829
3830
|
id: string;
|
|
3830
3831
|
type: "Software";
|
|
3831
3832
|
label: string;
|
|
3832
|
-
|
|
3833
|
+
P16_used_specific_object?: string | undefined;
|
|
3833
3834
|
softwareVersion?: string | undefined;
|
|
3834
3835
|
};
|
|
3835
3836
|
modified?: string | undefined;
|
|
@@ -3850,7 +3851,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
3850
3851
|
certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
|
|
3851
3852
|
precision?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
|
|
3852
3853
|
label?: string | undefined;
|
|
3853
|
-
|
|
3854
|
+
P2_has_type?: string | string[] | undefined;
|
|
3854
3855
|
}>;
|
|
3855
3856
|
type WebAnnotation = z.infer<typeof WebAnnotation>;
|
|
3856
3857
|
declare const webAnnotationSchema: JSONSchemaType<Required<WebAnnotation>>;
|
|
@@ -3944,7 +3945,7 @@ declare const validator: _ajv.ValidateFunction<Required<{
|
|
|
3944
3945
|
id: string;
|
|
3945
3946
|
type: "crm:D1_Digital_Object";
|
|
3946
3947
|
format?: string | string[] | undefined;
|
|
3947
|
-
|
|
3948
|
+
P1_is_identified_by?: {
|
|
3948
3949
|
id: string;
|
|
3949
3950
|
type: "crm:E33_E41_Linguistic_Appellation";
|
|
3950
3951
|
title: string;
|
|
@@ -3955,7 +3956,7 @@ declare const validator: _ajv.ValidateFunction<Required<{
|
|
|
3955
3956
|
id: string;
|
|
3956
3957
|
type: "Software";
|
|
3957
3958
|
label: string;
|
|
3958
|
-
|
|
3959
|
+
P16_used_specific_object?: string | undefined;
|
|
3959
3960
|
softwareVersion?: string | undefined;
|
|
3960
3961
|
} | undefined;
|
|
3961
3962
|
selector?: {
|
|
@@ -4206,14 +4207,14 @@ declare const validator: _ajv.ValidateFunction<Required<{
|
|
|
4206
4207
|
modeExistence?: "edit:modeReal" | "edit:modeFictional" | "edit:modeIdentifiable" | undefined;
|
|
4207
4208
|
description?: string | undefined;
|
|
4208
4209
|
}[]);
|
|
4209
|
-
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
4210
|
+
'@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"];
|
|
4210
4211
|
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:tagging" | "oa:classifying" | "oa:linking" | "citing";
|
|
4211
4212
|
created: string;
|
|
4212
4213
|
generator: {
|
|
4213
4214
|
id: string;
|
|
4214
4215
|
type: "Software";
|
|
4215
4216
|
label: string;
|
|
4216
|
-
|
|
4217
|
+
P16_used_specific_object?: string | undefined;
|
|
4217
4218
|
softwareVersion?: string | undefined;
|
|
4218
4219
|
};
|
|
4219
4220
|
modified?: string | undefined;
|
|
@@ -4234,7 +4235,7 @@ declare const validator: _ajv.ValidateFunction<Required<{
|
|
|
4234
4235
|
certainty?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
|
|
4235
4236
|
precision?: "edit:qualityLow" | "edit:qualityMedium" | "edit:qualityHigh" | "edit:qualityUnknown" | undefined;
|
|
4236
4237
|
label?: string | undefined;
|
|
4237
|
-
|
|
4238
|
+
P2_has_type?: string | string[] | undefined;
|
|
4238
4239
|
}>>;
|
|
4239
4240
|
/**
|
|
4240
4241
|
* The function `validate` takes an annotation object as input and returns a validation result object
|
|
@@ -4273,17 +4274,19 @@ declare const index_DATE_RANGE_PATTERN: typeof DATE_RANGE_PATTERN;
|
|
|
4273
4274
|
type index_Date = Date;
|
|
4274
4275
|
type index_DateEntityType = DateEntityType;
|
|
4275
4276
|
type index_Definition = Definition;
|
|
4277
|
+
type index_Description = Description;
|
|
4276
4278
|
type index_Event = Event;
|
|
4277
4279
|
type index_EventEntityType = EventEntityType;
|
|
4278
4280
|
type index_Format = Format;
|
|
4279
|
-
type index_IdentifiedBy = IdentifiedBy;
|
|
4280
4281
|
type index_Keyword = Keyword;
|
|
4281
4282
|
type index_KeywordEntityType = KeywordEntityType;
|
|
4282
4283
|
type index_KeywordFolksnomy = KeywordFolksnomy;
|
|
4283
4284
|
type index_KeywordFolksnomyEntityType = KeywordFolksnomyEntityType;
|
|
4285
|
+
type index_Label = Label;
|
|
4284
4286
|
type index_Language = Language;
|
|
4285
4287
|
type index_Link = Link;
|
|
4286
4288
|
type index_LinkEntityType = LinkEntityType;
|
|
4289
|
+
type index_ModeExistence = ModeExistence;
|
|
4287
4290
|
type index_Motivation = Motivation;
|
|
4288
4291
|
type index_Note = Note;
|
|
4289
4292
|
type index_NoteEntityType = NoteEntityType;
|
|
@@ -4301,7 +4304,6 @@ type index_RangeSelector = RangeSelector;
|
|
|
4301
4304
|
type index_Selector = Selector;
|
|
4302
4305
|
type index_Software = Software;
|
|
4303
4306
|
type index_Source = Source;
|
|
4304
|
-
type index_Status = Status;
|
|
4305
4307
|
type index_Target = Target;
|
|
4306
4308
|
type index_TextPositionSelector = TextPositionSelector;
|
|
4307
4309
|
type index_TextPositionSelectorExtended = TextPositionSelectorExtended;
|
|
@@ -4334,17 +4336,21 @@ declare const index_dateEntityTypeSchema: typeof dateEntityTypeSchema;
|
|
|
4334
4336
|
declare const index_dateSchema: typeof dateSchema;
|
|
4335
4337
|
declare const index_definitionSchema: typeof definitionSchema;
|
|
4336
4338
|
declare const index_defsId: typeof defsId;
|
|
4339
|
+
declare const index_descriptionSchema: typeof descriptionSchema;
|
|
4337
4340
|
declare const index_eventEntityTypeSchema: typeof eventEntityTypeSchema;
|
|
4338
4341
|
declare const index_eventSchema: typeof eventSchema;
|
|
4339
4342
|
declare const index_formatSchema: typeof formatSchema;
|
|
4340
|
-
|
|
4343
|
+
type index_isIdentifiedBy = isIdentifiedBy;
|
|
4344
|
+
declare const index_isIndentifyBySchema: typeof isIndentifyBySchema;
|
|
4341
4345
|
declare const index_keywordEntityTypeSchema: typeof keywordEntityTypeSchema;
|
|
4342
4346
|
declare const index_keywordFolksnomyEntityTypeSchema: typeof keywordFolksnomyEntityTypeSchema;
|
|
4343
4347
|
declare const index_keywordFolksnomySchema: typeof keywordFolksnomySchema;
|
|
4344
4348
|
declare const index_keywordSchema: typeof keywordSchema;
|
|
4349
|
+
declare const index_labelSchema: typeof labelSchema;
|
|
4345
4350
|
declare const index_languageSchema: typeof languageSchema;
|
|
4346
4351
|
declare const index_linkEntityTypeSchema: typeof linkEntityTypeSchema;
|
|
4347
4352
|
declare const index_linkSchema: typeof linkSchema;
|
|
4353
|
+
declare const index_modeExistenceSchema: typeof modeExistenceSchema;
|
|
4348
4354
|
declare const index_noteEntityTypeSchema: typeof noteEntityTypeSchema;
|
|
4349
4355
|
declare const index_noteSchema: typeof noteSchema;
|
|
4350
4356
|
declare const index_organizationEntityTypeSchema: typeof organizationEntityTypeSchema;
|
|
@@ -4377,7 +4383,7 @@ declare const index_workSchema: typeof workSchema;
|
|
|
4377
4383
|
declare const index_xpathSelectorExtendedSchema: typeof xpathSelectorExtendedSchema;
|
|
4378
4384
|
declare const index_xpathSelectorSchema: typeof xpathSelectorSchema;
|
|
4379
4385
|
declare namespace index {
|
|
4380
|
-
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
|
|
4386
|
+
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 };
|
|
4381
4387
|
}
|
|
4382
4388
|
|
|
4383
|
-
export { Body, BodyChoice, BodyEntityType, Certainty, Citation, CitationEntityType, ConceptualObject, ConceptualObjectEntityType, Correction, CorrectionEntityType, DATE_RANGE_PATTERN, Date, DateEntityType, type Definition, Event, EventEntityType, Format,
|
|
4389
|
+
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 };
|