@lincs.project/webannotation-schema 1.16.0 → 1.17.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 +14 -11
- package/dist/index.d.ts +14 -11
- package/dist/index.js +41 -14
- package/dist/index.mjs +41 -14
- package/dist/v1/jsonld/context.jsonld +3 -0
- package/dist/v1/jsonld/schema.jsonld +112 -46
- package/dist/v1/standalone/linc-wa-validator.js +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -31,6 +31,9 @@ declare const schemaContext: {
|
|
|
31
31
|
'oa:linking': {
|
|
32
32
|
type: string;
|
|
33
33
|
};
|
|
34
|
+
'oa:tagging': {
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
34
37
|
contributor: string;
|
|
35
38
|
description: string;
|
|
36
39
|
title: string;
|
|
@@ -2421,10 +2424,10 @@ declare const Target: z.ZodObject<{
|
|
|
2421
2424
|
type Target = z.infer<typeof Target>;
|
|
2422
2425
|
declare const targetSchema: JSONSchemaType<Required<Target>>;
|
|
2423
2426
|
|
|
2424
|
-
declare const motivations: readonly ["oa:identifying", "oa:describing", "correcting", "oa:linking", "citing"];
|
|
2425
|
-
declare const Motivations: z.ZodEnum<["oa:identifying", "oa:describing", "correcting", "oa:linking", "citing"]>;
|
|
2427
|
+
declare const motivations: readonly ["oa:identifying", "oa:describing", "correcting", "oa:linking", "oa:tagging", "citing"];
|
|
2428
|
+
declare const Motivations: z.ZodEnum<["oa:identifying", "oa:describing", "correcting", "oa:linking", "oa:tagging", "citing"]>;
|
|
2426
2429
|
declare const MotivationSchema: JSONSchemaType<Required<Motivation>>;
|
|
2427
|
-
declare const Motivation: z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"citing">]>;
|
|
2430
|
+
declare const Motivation: z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"oa:tagging">, z.ZodLiteral<"citing">]>;
|
|
2428
2431
|
type Motivation = z.infer<typeof Motivation>;
|
|
2429
2432
|
declare const certainties: readonly ["edit:qualityLowCertainty", "edit:qualityMediumCertainty", "edit:qualityHighCertainty", "edit:qualityUnknownCertainty"];
|
|
2430
2433
|
declare const Certainties: z.ZodEnum<["edit:qualityLowCertainty", "edit:qualityMediumCertainty", "edit:qualityHighCertainty", "edit:qualityUnknownCertainty"]>;
|
|
@@ -2457,7 +2460,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2457
2460
|
'@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>;
|
|
2458
2461
|
id: z.ZodString;
|
|
2459
2462
|
type: z.ZodTuple<[z.ZodLiteral<"Annotation">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>;
|
|
2460
|
-
motivation: z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"citing">]>;
|
|
2463
|
+
motivation: z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"oa:tagging">, z.ZodLiteral<"citing">]>;
|
|
2461
2464
|
created: z.ZodString;
|
|
2462
2465
|
modified: z.ZodOptional<z.ZodString>;
|
|
2463
2466
|
creator: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -4849,11 +4852,11 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
4849
4852
|
description?: string | undefined;
|
|
4850
4853
|
}>, "many">]>;
|
|
4851
4854
|
label: z.ZodOptional<z.ZodString>;
|
|
4852
|
-
P2_has_type: z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"citing">]>], z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"edit:qualityLowCertainty">, z.ZodLiteral<"edit:qualityMediumCertainty">, z.ZodLiteral<"edit:qualityHighCertainty">, z.ZodLiteral<"edit:qualityUnknownCertainty">]>, z.ZodUnion<[z.ZodLiteral<"edit:qualityLowPrecision">, z.ZodLiteral<"edit:qualityMediumPrecision">, z.ZodLiteral<"edit:qualityHighPrecision">, z.ZodLiteral<"edit:qualityUnknownPrecision">]>]>>>;
|
|
4855
|
+
P2_has_type: z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"oa:tagging">, z.ZodLiteral<"citing">]>], z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"edit:qualityLowCertainty">, z.ZodLiteral<"edit:qualityMediumCertainty">, z.ZodLiteral<"edit:qualityHighCertainty">, z.ZodLiteral<"edit:qualityUnknownCertainty">]>, z.ZodUnion<[z.ZodLiteral<"edit:qualityLowPrecision">, z.ZodLiteral<"edit:qualityMediumPrecision">, z.ZodLiteral<"edit:qualityHighPrecision">, z.ZodLiteral<"edit:qualityUnknownPrecision">]>]>>>;
|
|
4853
4856
|
}, "strip", z.ZodTypeAny, {
|
|
4854
4857
|
id: string;
|
|
4855
4858
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
4856
|
-
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "citing", ...("edit:qualityLowCertainty" | "edit:qualityMediumCertainty" | "edit:qualityHighCertainty" | "edit:qualityUnknownCertainty" | "edit:qualityLowPrecision" | "edit:qualityMediumPrecision" | "edit:qualityHighPrecision" | "edit:qualityUnknownPrecision" | undefined)[]];
|
|
4859
|
+
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:qualityLowCertainty" | "edit:qualityMediumCertainty" | "edit:qualityHighCertainty" | "edit:qualityUnknownCertainty" | "edit:qualityLowPrecision" | "edit:qualityMediumPrecision" | "edit:qualityHighPrecision" | "edit:qualityUnknownPrecision" | undefined)[]];
|
|
4857
4860
|
target: ({
|
|
4858
4861
|
id: string;
|
|
4859
4862
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
|
@@ -5635,7 +5638,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
5635
5638
|
}[];
|
|
5636
5639
|
} | undefined);
|
|
5637
5640
|
'@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"];
|
|
5638
|
-
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "citing";
|
|
5641
|
+
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing";
|
|
5639
5642
|
created: string;
|
|
5640
5643
|
generator: {
|
|
5641
5644
|
id: string;
|
|
@@ -5675,7 +5678,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
5675
5678
|
}, {
|
|
5676
5679
|
id: string;
|
|
5677
5680
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
5678
|
-
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "citing", ...("edit:qualityLowCertainty" | "edit:qualityMediumCertainty" | "edit:qualityHighCertainty" | "edit:qualityUnknownCertainty" | "edit:qualityLowPrecision" | "edit:qualityMediumPrecision" | "edit:qualityHighPrecision" | "edit:qualityUnknownPrecision" | undefined)[]];
|
|
5681
|
+
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:qualityLowCertainty" | "edit:qualityMediumCertainty" | "edit:qualityHighCertainty" | "edit:qualityUnknownCertainty" | "edit:qualityLowPrecision" | "edit:qualityMediumPrecision" | "edit:qualityHighPrecision" | "edit:qualityUnknownPrecision" | undefined)[]];
|
|
5679
5682
|
target: ({
|
|
5680
5683
|
id: string;
|
|
5681
5684
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
|
@@ -6457,7 +6460,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
6457
6460
|
}[];
|
|
6458
6461
|
} | undefined);
|
|
6459
6462
|
'@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"];
|
|
6460
|
-
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "citing";
|
|
6463
|
+
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing";
|
|
6461
6464
|
created: string;
|
|
6462
6465
|
generator: {
|
|
6463
6466
|
id: string;
|
|
@@ -6581,7 +6584,7 @@ declare const ajv: ajv_dist_core.default;
|
|
|
6581
6584
|
declare const validator: _ajv.ValidateFunction<Required<{
|
|
6582
6585
|
id: string;
|
|
6583
6586
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
6584
|
-
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "citing", ...("edit:qualityLowCertainty" | "edit:qualityMediumCertainty" | "edit:qualityHighCertainty" | "edit:qualityUnknownCertainty" | "edit:qualityLowPrecision" | "edit:qualityMediumPrecision" | "edit:qualityHighPrecision" | "edit:qualityUnknownPrecision" | undefined)[]];
|
|
6587
|
+
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:qualityLowCertainty" | "edit:qualityMediumCertainty" | "edit:qualityHighCertainty" | "edit:qualityUnknownCertainty" | "edit:qualityLowPrecision" | "edit:qualityMediumPrecision" | "edit:qualityHighPrecision" | "edit:qualityUnknownPrecision" | undefined)[]];
|
|
6585
6588
|
target: ({
|
|
6586
6589
|
id: string;
|
|
6587
6590
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
|
@@ -7363,7 +7366,7 @@ declare const validator: _ajv.ValidateFunction<Required<{
|
|
|
7363
7366
|
}[];
|
|
7364
7367
|
} | undefined);
|
|
7365
7368
|
'@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"];
|
|
7366
|
-
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "citing";
|
|
7369
|
+
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing";
|
|
7367
7370
|
created: string;
|
|
7368
7371
|
generator: {
|
|
7369
7372
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,9 @@ declare const schemaContext: {
|
|
|
31
31
|
'oa:linking': {
|
|
32
32
|
type: string;
|
|
33
33
|
};
|
|
34
|
+
'oa:tagging': {
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
34
37
|
contributor: string;
|
|
35
38
|
description: string;
|
|
36
39
|
title: string;
|
|
@@ -2421,10 +2424,10 @@ declare const Target: z.ZodObject<{
|
|
|
2421
2424
|
type Target = z.infer<typeof Target>;
|
|
2422
2425
|
declare const targetSchema: JSONSchemaType<Required<Target>>;
|
|
2423
2426
|
|
|
2424
|
-
declare const motivations: readonly ["oa:identifying", "oa:describing", "correcting", "oa:linking", "citing"];
|
|
2425
|
-
declare const Motivations: z.ZodEnum<["oa:identifying", "oa:describing", "correcting", "oa:linking", "citing"]>;
|
|
2427
|
+
declare const motivations: readonly ["oa:identifying", "oa:describing", "correcting", "oa:linking", "oa:tagging", "citing"];
|
|
2428
|
+
declare const Motivations: z.ZodEnum<["oa:identifying", "oa:describing", "correcting", "oa:linking", "oa:tagging", "citing"]>;
|
|
2426
2429
|
declare const MotivationSchema: JSONSchemaType<Required<Motivation>>;
|
|
2427
|
-
declare const Motivation: z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"citing">]>;
|
|
2430
|
+
declare const Motivation: z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"oa:tagging">, z.ZodLiteral<"citing">]>;
|
|
2428
2431
|
type Motivation = z.infer<typeof Motivation>;
|
|
2429
2432
|
declare const certainties: readonly ["edit:qualityLowCertainty", "edit:qualityMediumCertainty", "edit:qualityHighCertainty", "edit:qualityUnknownCertainty"];
|
|
2430
2433
|
declare const Certainties: z.ZodEnum<["edit:qualityLowCertainty", "edit:qualityMediumCertainty", "edit:qualityHighCertainty", "edit:qualityUnknownCertainty"]>;
|
|
@@ -2457,7 +2460,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2457
2460
|
'@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>;
|
|
2458
2461
|
id: z.ZodString;
|
|
2459
2462
|
type: z.ZodTuple<[z.ZodLiteral<"Annotation">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>;
|
|
2460
|
-
motivation: z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"citing">]>;
|
|
2463
|
+
motivation: z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"oa:tagging">, z.ZodLiteral<"citing">]>;
|
|
2461
2464
|
created: z.ZodString;
|
|
2462
2465
|
modified: z.ZodOptional<z.ZodString>;
|
|
2463
2466
|
creator: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -4849,11 +4852,11 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
4849
4852
|
description?: string | undefined;
|
|
4850
4853
|
}>, "many">]>;
|
|
4851
4854
|
label: z.ZodOptional<z.ZodString>;
|
|
4852
|
-
P2_has_type: z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"citing">]>], z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"edit:qualityLowCertainty">, z.ZodLiteral<"edit:qualityMediumCertainty">, z.ZodLiteral<"edit:qualityHighCertainty">, z.ZodLiteral<"edit:qualityUnknownCertainty">]>, z.ZodUnion<[z.ZodLiteral<"edit:qualityLowPrecision">, z.ZodLiteral<"edit:qualityMediumPrecision">, z.ZodLiteral<"edit:qualityHighPrecision">, z.ZodLiteral<"edit:qualityUnknownPrecision">]>]>>>;
|
|
4855
|
+
P2_has_type: z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"oa:tagging">, z.ZodLiteral<"citing">]>], z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"edit:qualityLowCertainty">, z.ZodLiteral<"edit:qualityMediumCertainty">, z.ZodLiteral<"edit:qualityHighCertainty">, z.ZodLiteral<"edit:qualityUnknownCertainty">]>, z.ZodUnion<[z.ZodLiteral<"edit:qualityLowPrecision">, z.ZodLiteral<"edit:qualityMediumPrecision">, z.ZodLiteral<"edit:qualityHighPrecision">, z.ZodLiteral<"edit:qualityUnknownPrecision">]>]>>>;
|
|
4853
4856
|
}, "strip", z.ZodTypeAny, {
|
|
4854
4857
|
id: string;
|
|
4855
4858
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
4856
|
-
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "citing", ...("edit:qualityLowCertainty" | "edit:qualityMediumCertainty" | "edit:qualityHighCertainty" | "edit:qualityUnknownCertainty" | "edit:qualityLowPrecision" | "edit:qualityMediumPrecision" | "edit:qualityHighPrecision" | "edit:qualityUnknownPrecision" | undefined)[]];
|
|
4859
|
+
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:qualityLowCertainty" | "edit:qualityMediumCertainty" | "edit:qualityHighCertainty" | "edit:qualityUnknownCertainty" | "edit:qualityLowPrecision" | "edit:qualityMediumPrecision" | "edit:qualityHighPrecision" | "edit:qualityUnknownPrecision" | undefined)[]];
|
|
4857
4860
|
target: ({
|
|
4858
4861
|
id: string;
|
|
4859
4862
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
|
@@ -5635,7 +5638,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
5635
5638
|
}[];
|
|
5636
5639
|
} | undefined);
|
|
5637
5640
|
'@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"];
|
|
5638
|
-
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "citing";
|
|
5641
|
+
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing";
|
|
5639
5642
|
created: string;
|
|
5640
5643
|
generator: {
|
|
5641
5644
|
id: string;
|
|
@@ -5675,7 +5678,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
5675
5678
|
}, {
|
|
5676
5679
|
id: string;
|
|
5677
5680
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
5678
|
-
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "citing", ...("edit:qualityLowCertainty" | "edit:qualityMediumCertainty" | "edit:qualityHighCertainty" | "edit:qualityUnknownCertainty" | "edit:qualityLowPrecision" | "edit:qualityMediumPrecision" | "edit:qualityHighPrecision" | "edit:qualityUnknownPrecision" | undefined)[]];
|
|
5681
|
+
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:qualityLowCertainty" | "edit:qualityMediumCertainty" | "edit:qualityHighCertainty" | "edit:qualityUnknownCertainty" | "edit:qualityLowPrecision" | "edit:qualityMediumPrecision" | "edit:qualityHighPrecision" | "edit:qualityUnknownPrecision" | undefined)[]];
|
|
5679
5682
|
target: ({
|
|
5680
5683
|
id: string;
|
|
5681
5684
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
|
@@ -6457,7 +6460,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
6457
6460
|
}[];
|
|
6458
6461
|
} | undefined);
|
|
6459
6462
|
'@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"];
|
|
6460
|
-
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "citing";
|
|
6463
|
+
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing";
|
|
6461
6464
|
created: string;
|
|
6462
6465
|
generator: {
|
|
6463
6466
|
id: string;
|
|
@@ -6581,7 +6584,7 @@ declare const ajv: ajv_dist_core.default;
|
|
|
6581
6584
|
declare const validator: _ajv.ValidateFunction<Required<{
|
|
6582
6585
|
id: string;
|
|
6583
6586
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
6584
|
-
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "citing", ...("edit:qualityLowCertainty" | "edit:qualityMediumCertainty" | "edit:qualityHighCertainty" | "edit:qualityUnknownCertainty" | "edit:qualityLowPrecision" | "edit:qualityMediumPrecision" | "edit:qualityHighPrecision" | "edit:qualityUnknownPrecision" | undefined)[]];
|
|
6587
|
+
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:qualityLowCertainty" | "edit:qualityMediumCertainty" | "edit:qualityHighCertainty" | "edit:qualityUnknownCertainty" | "edit:qualityLowPrecision" | "edit:qualityMediumPrecision" | "edit:qualityHighPrecision" | "edit:qualityUnknownPrecision" | undefined)[]];
|
|
6585
6588
|
target: ({
|
|
6586
6589
|
id: string;
|
|
6587
6590
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
|
@@ -7363,7 +7366,7 @@ declare const validator: _ajv.ValidateFunction<Required<{
|
|
|
7363
7366
|
}[];
|
|
7364
7367
|
} | undefined);
|
|
7365
7368
|
'@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"];
|
|
7366
|
-
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "citing";
|
|
7369
|
+
motivation: "oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing";
|
|
7367
7370
|
created: string;
|
|
7368
7371
|
generator: {
|
|
7369
7372
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -190,6 +190,9 @@ var schemaContext = {
|
|
|
190
190
|
"oa:linking": {
|
|
191
191
|
type: "crm:E55_Type"
|
|
192
192
|
},
|
|
193
|
+
"oa:tagging": {
|
|
194
|
+
type: "crm:E55_Type"
|
|
195
|
+
},
|
|
193
196
|
contributor: "dcterms:contributor",
|
|
194
197
|
description: "rdfs:comment",
|
|
195
198
|
title: "crm:P190_has_symbolic_content",
|
|
@@ -1530,6 +1533,7 @@ var motivations = [
|
|
|
1530
1533
|
"oa:describing",
|
|
1531
1534
|
"correcting",
|
|
1532
1535
|
"oa:linking",
|
|
1536
|
+
"oa:tagging",
|
|
1533
1537
|
"citing"
|
|
1534
1538
|
];
|
|
1535
1539
|
var Motivations = import_zod25.z.enum(motivations).describe(descriptionMotivation);
|
|
@@ -1538,7 +1542,8 @@ var Motivation = import_zod25.z.union([
|
|
|
1538
1542
|
import_zod25.z.literal(motivations[1]),
|
|
1539
1543
|
import_zod25.z.literal(motivations[2]),
|
|
1540
1544
|
import_zod25.z.literal(motivations[3]),
|
|
1541
|
-
import_zod25.z.literal(motivations[4])
|
|
1545
|
+
import_zod25.z.literal(motivations[4]),
|
|
1546
|
+
import_zod25.z.literal(motivations[5])
|
|
1542
1547
|
]).describe(descriptionMotivation);
|
|
1543
1548
|
var MotivationSchema = {
|
|
1544
1549
|
oneOf: [{ type: "string", enum: motivations }],
|
|
@@ -1747,7 +1752,6 @@ var webAnnotationSchema = {
|
|
|
1747
1752
|
typeOrganizationSchema,
|
|
1748
1753
|
typeWorkSchema,
|
|
1749
1754
|
typePhysicalThingSchema,
|
|
1750
|
-
typeConceptualObjectSchema,
|
|
1751
1755
|
typeDateSchema,
|
|
1752
1756
|
typeEventSchema
|
|
1753
1757
|
]
|
|
@@ -1776,7 +1780,7 @@ var webAnnotationSchema = {
|
|
|
1776
1780
|
body: {
|
|
1777
1781
|
type: "object",
|
|
1778
1782
|
properties: {
|
|
1779
|
-
type:
|
|
1783
|
+
type: typeConceptualObjectSchema
|
|
1780
1784
|
}
|
|
1781
1785
|
}
|
|
1782
1786
|
}
|
|
@@ -1784,10 +1788,10 @@ var webAnnotationSchema = {
|
|
|
1784
1788
|
then: {
|
|
1785
1789
|
type: "object",
|
|
1786
1790
|
properties: {
|
|
1787
|
-
motivation: { type: "string", const: "oa:
|
|
1791
|
+
motivation: { type: "string", const: "oa:tagging" },
|
|
1788
1792
|
P2_has_type: {
|
|
1789
1793
|
...p2HasTypeSchema,
|
|
1790
|
-
items: [{ type: "string", const: "oa:
|
|
1794
|
+
items: [{ type: "string", const: "oa:tagging" }]
|
|
1791
1795
|
}
|
|
1792
1796
|
}
|
|
1793
1797
|
},
|
|
@@ -1798,7 +1802,7 @@ var webAnnotationSchema = {
|
|
|
1798
1802
|
body: {
|
|
1799
1803
|
type: "object",
|
|
1800
1804
|
properties: {
|
|
1801
|
-
type:
|
|
1805
|
+
type: typeNoteSchema
|
|
1802
1806
|
}
|
|
1803
1807
|
}
|
|
1804
1808
|
}
|
|
@@ -1806,10 +1810,10 @@ var webAnnotationSchema = {
|
|
|
1806
1810
|
then: {
|
|
1807
1811
|
type: "object",
|
|
1808
1812
|
properties: {
|
|
1809
|
-
motivation: { type: "string", const: "
|
|
1813
|
+
motivation: { type: "string", const: "oa:describing" },
|
|
1810
1814
|
P2_has_type: {
|
|
1811
1815
|
...p2HasTypeSchema,
|
|
1812
|
-
items: [{ type: "string", const: "
|
|
1816
|
+
items: [{ type: "string", const: "oa:describing" }]
|
|
1813
1817
|
}
|
|
1814
1818
|
}
|
|
1815
1819
|
},
|
|
@@ -1820,7 +1824,7 @@ var webAnnotationSchema = {
|
|
|
1820
1824
|
body: {
|
|
1821
1825
|
type: "object",
|
|
1822
1826
|
properties: {
|
|
1823
|
-
type:
|
|
1827
|
+
type: typeCorrectionSchema
|
|
1824
1828
|
}
|
|
1825
1829
|
}
|
|
1826
1830
|
}
|
|
@@ -1828,10 +1832,10 @@ var webAnnotationSchema = {
|
|
|
1828
1832
|
then: {
|
|
1829
1833
|
type: "object",
|
|
1830
1834
|
properties: {
|
|
1831
|
-
motivation: { type: "string", const: "
|
|
1835
|
+
motivation: { type: "string", const: "correcting" },
|
|
1832
1836
|
P2_has_type: {
|
|
1833
1837
|
...p2HasTypeSchema,
|
|
1834
|
-
items: [{ type: "string", const: "
|
|
1838
|
+
items: [{ type: "string", const: "correcting" }]
|
|
1835
1839
|
}
|
|
1836
1840
|
}
|
|
1837
1841
|
},
|
|
@@ -1842,7 +1846,7 @@ var webAnnotationSchema = {
|
|
|
1842
1846
|
body: {
|
|
1843
1847
|
type: "object",
|
|
1844
1848
|
properties: {
|
|
1845
|
-
type:
|
|
1849
|
+
type: typeLinkSchema
|
|
1846
1850
|
}
|
|
1847
1851
|
}
|
|
1848
1852
|
}
|
|
@@ -1850,10 +1854,33 @@ var webAnnotationSchema = {
|
|
|
1850
1854
|
then: {
|
|
1851
1855
|
type: "object",
|
|
1852
1856
|
properties: {
|
|
1853
|
-
motivation: { type: "string", const: "
|
|
1857
|
+
motivation: { type: "string", const: "oa:linking" },
|
|
1854
1858
|
P2_has_type: {
|
|
1855
1859
|
...p2HasTypeSchema,
|
|
1856
|
-
items: [{ type: "string", const: "
|
|
1860
|
+
items: [{ type: "string", const: "oa:linking" }]
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
},
|
|
1864
|
+
else: {
|
|
1865
|
+
if: {
|
|
1866
|
+
type: "object",
|
|
1867
|
+
properties: {
|
|
1868
|
+
body: {
|
|
1869
|
+
type: "object",
|
|
1870
|
+
properties: {
|
|
1871
|
+
type: typeCitationSchema
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
},
|
|
1876
|
+
then: {
|
|
1877
|
+
type: "object",
|
|
1878
|
+
properties: {
|
|
1879
|
+
motivation: { type: "string", const: "citing" },
|
|
1880
|
+
P2_has_type: {
|
|
1881
|
+
...p2HasTypeSchema,
|
|
1882
|
+
items: [{ type: "string", const: "citing" }]
|
|
1883
|
+
}
|
|
1857
1884
|
}
|
|
1858
1885
|
}
|
|
1859
1886
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -34,6 +34,9 @@ var schemaContext = {
|
|
|
34
34
|
"oa:linking": {
|
|
35
35
|
type: "crm:E55_Type"
|
|
36
36
|
},
|
|
37
|
+
"oa:tagging": {
|
|
38
|
+
type: "crm:E55_Type"
|
|
39
|
+
},
|
|
37
40
|
contributor: "dcterms:contributor",
|
|
38
41
|
description: "rdfs:comment",
|
|
39
42
|
title: "crm:P190_has_symbolic_content",
|
|
@@ -1374,6 +1377,7 @@ var motivations = [
|
|
|
1374
1377
|
"oa:describing",
|
|
1375
1378
|
"correcting",
|
|
1376
1379
|
"oa:linking",
|
|
1380
|
+
"oa:tagging",
|
|
1377
1381
|
"citing"
|
|
1378
1382
|
];
|
|
1379
1383
|
var Motivations = z25.enum(motivations).describe(descriptionMotivation);
|
|
@@ -1382,7 +1386,8 @@ var Motivation = z25.union([
|
|
|
1382
1386
|
z25.literal(motivations[1]),
|
|
1383
1387
|
z25.literal(motivations[2]),
|
|
1384
1388
|
z25.literal(motivations[3]),
|
|
1385
|
-
z25.literal(motivations[4])
|
|
1389
|
+
z25.literal(motivations[4]),
|
|
1390
|
+
z25.literal(motivations[5])
|
|
1386
1391
|
]).describe(descriptionMotivation);
|
|
1387
1392
|
var MotivationSchema = {
|
|
1388
1393
|
oneOf: [{ type: "string", enum: motivations }],
|
|
@@ -1591,7 +1596,6 @@ var webAnnotationSchema = {
|
|
|
1591
1596
|
typeOrganizationSchema,
|
|
1592
1597
|
typeWorkSchema,
|
|
1593
1598
|
typePhysicalThingSchema,
|
|
1594
|
-
typeConceptualObjectSchema,
|
|
1595
1599
|
typeDateSchema,
|
|
1596
1600
|
typeEventSchema
|
|
1597
1601
|
]
|
|
@@ -1620,7 +1624,7 @@ var webAnnotationSchema = {
|
|
|
1620
1624
|
body: {
|
|
1621
1625
|
type: "object",
|
|
1622
1626
|
properties: {
|
|
1623
|
-
type:
|
|
1627
|
+
type: typeConceptualObjectSchema
|
|
1624
1628
|
}
|
|
1625
1629
|
}
|
|
1626
1630
|
}
|
|
@@ -1628,10 +1632,10 @@ var webAnnotationSchema = {
|
|
|
1628
1632
|
then: {
|
|
1629
1633
|
type: "object",
|
|
1630
1634
|
properties: {
|
|
1631
|
-
motivation: { type: "string", const: "oa:
|
|
1635
|
+
motivation: { type: "string", const: "oa:tagging" },
|
|
1632
1636
|
P2_has_type: {
|
|
1633
1637
|
...p2HasTypeSchema,
|
|
1634
|
-
items: [{ type: "string", const: "oa:
|
|
1638
|
+
items: [{ type: "string", const: "oa:tagging" }]
|
|
1635
1639
|
}
|
|
1636
1640
|
}
|
|
1637
1641
|
},
|
|
@@ -1642,7 +1646,7 @@ var webAnnotationSchema = {
|
|
|
1642
1646
|
body: {
|
|
1643
1647
|
type: "object",
|
|
1644
1648
|
properties: {
|
|
1645
|
-
type:
|
|
1649
|
+
type: typeNoteSchema
|
|
1646
1650
|
}
|
|
1647
1651
|
}
|
|
1648
1652
|
}
|
|
@@ -1650,10 +1654,10 @@ var webAnnotationSchema = {
|
|
|
1650
1654
|
then: {
|
|
1651
1655
|
type: "object",
|
|
1652
1656
|
properties: {
|
|
1653
|
-
motivation: { type: "string", const: "
|
|
1657
|
+
motivation: { type: "string", const: "oa:describing" },
|
|
1654
1658
|
P2_has_type: {
|
|
1655
1659
|
...p2HasTypeSchema,
|
|
1656
|
-
items: [{ type: "string", const: "
|
|
1660
|
+
items: [{ type: "string", const: "oa:describing" }]
|
|
1657
1661
|
}
|
|
1658
1662
|
}
|
|
1659
1663
|
},
|
|
@@ -1664,7 +1668,7 @@ var webAnnotationSchema = {
|
|
|
1664
1668
|
body: {
|
|
1665
1669
|
type: "object",
|
|
1666
1670
|
properties: {
|
|
1667
|
-
type:
|
|
1671
|
+
type: typeCorrectionSchema
|
|
1668
1672
|
}
|
|
1669
1673
|
}
|
|
1670
1674
|
}
|
|
@@ -1672,10 +1676,10 @@ var webAnnotationSchema = {
|
|
|
1672
1676
|
then: {
|
|
1673
1677
|
type: "object",
|
|
1674
1678
|
properties: {
|
|
1675
|
-
motivation: { type: "string", const: "
|
|
1679
|
+
motivation: { type: "string", const: "correcting" },
|
|
1676
1680
|
P2_has_type: {
|
|
1677
1681
|
...p2HasTypeSchema,
|
|
1678
|
-
items: [{ type: "string", const: "
|
|
1682
|
+
items: [{ type: "string", const: "correcting" }]
|
|
1679
1683
|
}
|
|
1680
1684
|
}
|
|
1681
1685
|
},
|
|
@@ -1686,7 +1690,7 @@ var webAnnotationSchema = {
|
|
|
1686
1690
|
body: {
|
|
1687
1691
|
type: "object",
|
|
1688
1692
|
properties: {
|
|
1689
|
-
type:
|
|
1693
|
+
type: typeLinkSchema
|
|
1690
1694
|
}
|
|
1691
1695
|
}
|
|
1692
1696
|
}
|
|
@@ -1694,10 +1698,33 @@ var webAnnotationSchema = {
|
|
|
1694
1698
|
then: {
|
|
1695
1699
|
type: "object",
|
|
1696
1700
|
properties: {
|
|
1697
|
-
motivation: { type: "string", const: "
|
|
1701
|
+
motivation: { type: "string", const: "oa:linking" },
|
|
1698
1702
|
P2_has_type: {
|
|
1699
1703
|
...p2HasTypeSchema,
|
|
1700
|
-
items: [{ type: "string", const: "
|
|
1704
|
+
items: [{ type: "string", const: "oa:linking" }]
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
},
|
|
1708
|
+
else: {
|
|
1709
|
+
if: {
|
|
1710
|
+
type: "object",
|
|
1711
|
+
properties: {
|
|
1712
|
+
body: {
|
|
1713
|
+
type: "object",
|
|
1714
|
+
properties: {
|
|
1715
|
+
type: typeCitationSchema
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
},
|
|
1720
|
+
then: {
|
|
1721
|
+
type: "object",
|
|
1722
|
+
properties: {
|
|
1723
|
+
motivation: { type: "string", const: "citing" },
|
|
1724
|
+
P2_has_type: {
|
|
1725
|
+
...p2HasTypeSchema,
|
|
1726
|
+
items: [{ type: "string", const: "citing" }]
|
|
1727
|
+
}
|
|
1701
1728
|
}
|
|
1702
1729
|
}
|
|
1703
1730
|
}
|