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