@lincs.project/webannotation-schema 1.1.0 → 1.1.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 +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +30 -30
- package/dist/index.mjs +30 -30
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1366,7 +1366,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
1366
1366
|
'@context': z.ZodTuple<[z.ZodLiteral<"http://www.w3.org/ns/anno.jsonld">, z.ZodLiteral<"https://wa.lincsproject.ca/v1/ns/anno.jsonld">], null>;
|
|
1367
1367
|
id: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
1368
1368
|
type: z.ZodTuple<[z.ZodLiteral<"Annotation">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>;
|
|
1369
|
-
motivation: z.ZodTuple<[z.ZodEnum<["identifying", "describing", "correcting", "tagging", "classifying", "linking", "citing"]>, z.ZodLiteral<"crm:
|
|
1369
|
+
motivation: z.ZodTuple<[z.ZodEnum<["identifying", "describing", "correcting", "tagging", "classifying", "linking", "citing"]>, z.ZodLiteral<"crm:E55_Type">], null>;
|
|
1370
1370
|
created: z.ZodString;
|
|
1371
1371
|
modified: z.ZodOptional<z.ZodString>;
|
|
1372
1372
|
status: z.ZodEnum<["draft", "approved", "published"]>;
|
|
@@ -2325,7 +2325,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2325
2325
|
description?: string | undefined;
|
|
2326
2326
|
}[] | undefined);
|
|
2327
2327
|
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
2328
|
-
motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:
|
|
2328
|
+
motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:E55_Type"];
|
|
2329
2329
|
created: string;
|
|
2330
2330
|
generator: {
|
|
2331
2331
|
type: ["Software", "crm:P16_used_specific_object"];
|
|
@@ -2495,7 +2495,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2495
2495
|
description?: string | undefined;
|
|
2496
2496
|
}[] | undefined);
|
|
2497
2497
|
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
2498
|
-
motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:
|
|
2498
|
+
motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:E55_Type"];
|
|
2499
2499
|
created: string;
|
|
2500
2500
|
generator: {
|
|
2501
2501
|
type: ["Software", "crm:P16_used_specific_object"];
|
|
@@ -2748,7 +2748,7 @@ declare const validator: _ajv.ValidateFunction<Required<{
|
|
|
2748
2748
|
description?: string | undefined;
|
|
2749
2749
|
}[] | undefined);
|
|
2750
2750
|
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
2751
|
-
motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:
|
|
2751
|
+
motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:E55_Type"];
|
|
2752
2752
|
created: string;
|
|
2753
2753
|
generator: {
|
|
2754
2754
|
type: ["Software", "crm:P16_used_specific_object"];
|
package/dist/index.d.ts
CHANGED
|
@@ -1366,7 +1366,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
1366
1366
|
'@context': z.ZodTuple<[z.ZodLiteral<"http://www.w3.org/ns/anno.jsonld">, z.ZodLiteral<"https://wa.lincsproject.ca/v1/ns/anno.jsonld">], null>;
|
|
1367
1367
|
id: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
1368
1368
|
type: z.ZodTuple<[z.ZodLiteral<"Annotation">, z.ZodLiteral<"crm:E33_Linguistic_Object">], null>;
|
|
1369
|
-
motivation: z.ZodTuple<[z.ZodEnum<["identifying", "describing", "correcting", "tagging", "classifying", "linking", "citing"]>, z.ZodLiteral<"crm:
|
|
1369
|
+
motivation: z.ZodTuple<[z.ZodEnum<["identifying", "describing", "correcting", "tagging", "classifying", "linking", "citing"]>, z.ZodLiteral<"crm:E55_Type">], null>;
|
|
1370
1370
|
created: z.ZodString;
|
|
1371
1371
|
modified: z.ZodOptional<z.ZodString>;
|
|
1372
1372
|
status: z.ZodEnum<["draft", "approved", "published"]>;
|
|
@@ -2325,7 +2325,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2325
2325
|
description?: string | undefined;
|
|
2326
2326
|
}[] | undefined);
|
|
2327
2327
|
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
2328
|
-
motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:
|
|
2328
|
+
motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:E55_Type"];
|
|
2329
2329
|
created: string;
|
|
2330
2330
|
generator: {
|
|
2331
2331
|
type: ["Software", "crm:P16_used_specific_object"];
|
|
@@ -2495,7 +2495,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
2495
2495
|
description?: string | undefined;
|
|
2496
2496
|
}[] | undefined);
|
|
2497
2497
|
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
2498
|
-
motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:
|
|
2498
|
+
motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:E55_Type"];
|
|
2499
2499
|
created: string;
|
|
2500
2500
|
generator: {
|
|
2501
2501
|
type: ["Software", "crm:P16_used_specific_object"];
|
|
@@ -2748,7 +2748,7 @@ declare const validator: _ajv.ValidateFunction<Required<{
|
|
|
2748
2748
|
description?: string | undefined;
|
|
2749
2749
|
}[] | undefined);
|
|
2750
2750
|
'@context': ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"];
|
|
2751
|
-
motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:
|
|
2751
|
+
motivation: ["identifying" | "describing" | "correcting" | "tagging" | "classifying" | "linking" | "citing", "crm:E55_Type"];
|
|
2752
2752
|
created: string;
|
|
2753
2753
|
generator: {
|
|
2754
2754
|
type: ["Software", "crm:P16_used_specific_object"];
|
package/dist/index.js
CHANGED
|
@@ -3959,7 +3959,7 @@ var WebAnnotation = import_zod22.z.object({
|
|
|
3959
3959
|
"The identity of the Annotation. It must be a UUID or URI containing a UUID in the search params (URI?annoId=URI)"
|
|
3960
3960
|
),
|
|
3961
3961
|
type: import_zod22.z.tuple([import_zod22.z.literal("Annotation"), import_zod22.z.literal("crm:E33_Linguistic_Object")]).describe("The type of the Annotation."),
|
|
3962
|
-
motivation: import_zod22.z.tuple([import_zod22.z.enum(Motivation), import_zod22.z.literal("crm:
|
|
3962
|
+
motivation: import_zod22.z.tuple([import_zod22.z.enum(Motivation), import_zod22.z.literal("crm:E55_Type")]).describe("The relationship between an Annotation and a Motivation."),
|
|
3963
3963
|
created: import_zod22.z.string().datetime().describe("The time at which the resource was created."),
|
|
3964
3964
|
modified: import_zod22.z.string().datetime().optional().describe("The time at which the resource was modified, after creation."),
|
|
3965
3965
|
status: import_zod22.z.enum(Status).describe("The status of this annotation in a workflow."),
|
|
@@ -4013,7 +4013,7 @@ var webAnnotationSchema = {
|
|
|
4013
4013
|
maxItems: 2,
|
|
4014
4014
|
items: [
|
|
4015
4015
|
{ type: "string", enum: Motivation },
|
|
4016
|
-
{ type: "string", const: "crm:
|
|
4016
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4017
4017
|
],
|
|
4018
4018
|
description: "The relationship between an Annotation and a Motivation."
|
|
4019
4019
|
},
|
|
@@ -4116,7 +4116,7 @@ var webAnnotationSchema = {
|
|
|
4116
4116
|
maxItems: 2,
|
|
4117
4117
|
items: [
|
|
4118
4118
|
{ type: "string", const: "identifying" },
|
|
4119
|
-
{ type: "string", const: "crm:
|
|
4119
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4120
4120
|
]
|
|
4121
4121
|
}
|
|
4122
4122
|
}
|
|
@@ -4142,7 +4142,7 @@ var webAnnotationSchema = {
|
|
|
4142
4142
|
maxItems: 2,
|
|
4143
4143
|
items: [
|
|
4144
4144
|
{ type: "string", const: "describing" },
|
|
4145
|
-
{ type: "string", const: "crm:
|
|
4145
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4146
4146
|
]
|
|
4147
4147
|
}
|
|
4148
4148
|
}
|
|
@@ -4168,7 +4168,7 @@ var webAnnotationSchema = {
|
|
|
4168
4168
|
maxItems: 2,
|
|
4169
4169
|
items: [
|
|
4170
4170
|
{ type: "string", const: "correcting" },
|
|
4171
|
-
{ type: "string", const: "crm:
|
|
4171
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4172
4172
|
]
|
|
4173
4173
|
}
|
|
4174
4174
|
}
|
|
@@ -4194,7 +4194,7 @@ var webAnnotationSchema = {
|
|
|
4194
4194
|
maxItems: 2,
|
|
4195
4195
|
items: [
|
|
4196
4196
|
{ type: "string", const: "tagging" },
|
|
4197
|
-
{ type: "string", const: "crm:
|
|
4197
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4198
4198
|
]
|
|
4199
4199
|
}
|
|
4200
4200
|
}
|
|
@@ -4220,7 +4220,7 @@ var webAnnotationSchema = {
|
|
|
4220
4220
|
maxItems: 2,
|
|
4221
4221
|
items: [
|
|
4222
4222
|
{ type: "string", const: "classifying" },
|
|
4223
|
-
{ type: "string", const: "crm:
|
|
4223
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4224
4224
|
]
|
|
4225
4225
|
}
|
|
4226
4226
|
}
|
|
@@ -4246,7 +4246,7 @@ var webAnnotationSchema = {
|
|
|
4246
4246
|
maxItems: 2,
|
|
4247
4247
|
items: [
|
|
4248
4248
|
{ type: "string", const: "linking" },
|
|
4249
|
-
{ type: "string", const: "crm:
|
|
4249
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4250
4250
|
]
|
|
4251
4251
|
}
|
|
4252
4252
|
}
|
|
@@ -4272,7 +4272,7 @@ var webAnnotationSchema = {
|
|
|
4272
4272
|
maxItems: 2,
|
|
4273
4273
|
items: [
|
|
4274
4274
|
{ type: "string", const: "citing" },
|
|
4275
|
-
{ type: "string", const: "crm:
|
|
4275
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4276
4276
|
]
|
|
4277
4277
|
}
|
|
4278
4278
|
}
|
|
@@ -4528,7 +4528,7 @@ var commonAnnotation = {
|
|
|
4528
4528
|
"@context": ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"],
|
|
4529
4529
|
id: "c7aa1b38-6364-483c-8607-44dc3f510a59",
|
|
4530
4530
|
type: ["Annotation", "crm:E33_Linguistic_Object"],
|
|
4531
|
-
motivation: ["identifying", "crm:
|
|
4531
|
+
motivation: ["identifying", "crm:E55_Type"],
|
|
4532
4532
|
created: "2022-12-21T23:21:02Z",
|
|
4533
4533
|
creator: commonCreator,
|
|
4534
4534
|
generator: commonSoftware,
|
|
@@ -4652,7 +4652,7 @@ var place = {
|
|
|
4652
4652
|
// src/v1/mocks/body/citation.ts
|
|
4653
4653
|
var simple = {
|
|
4654
4654
|
...common.annotation,
|
|
4655
|
-
motivation: ["citing", "crm:
|
|
4655
|
+
motivation: ["citing", "crm:E55_Type"],
|
|
4656
4656
|
body: {
|
|
4657
4657
|
id: "https://www.uo.com/conceptualObject",
|
|
4658
4658
|
entityType: ["cito:Citation", "crm:E73_Information_Object"]
|
|
@@ -4660,7 +4660,7 @@ var simple = {
|
|
|
4660
4660
|
};
|
|
4661
4661
|
var withCertainty3 = {
|
|
4662
4662
|
...common.annotation,
|
|
4663
|
-
motivation: ["citing", "crm:
|
|
4663
|
+
motivation: ["citing", "crm:E55_Type"],
|
|
4664
4664
|
body: {
|
|
4665
4665
|
id: "https://www.uo.com/conceptualObject",
|
|
4666
4666
|
entityType: ["cito:Citation", "crm:E73_Information_Object"],
|
|
@@ -4669,7 +4669,7 @@ var withCertainty3 = {
|
|
|
4669
4669
|
};
|
|
4670
4670
|
var withLabelAndDescription3 = {
|
|
4671
4671
|
...common.annotation,
|
|
4672
|
-
motivation: ["citing", "crm:
|
|
4672
|
+
motivation: ["citing", "crm:E55_Type"],
|
|
4673
4673
|
body: {
|
|
4674
4674
|
id: "https://www.uo.com/conceptualObject",
|
|
4675
4675
|
entityType: ["cito:Citation", "crm:E73_Information_Object"],
|
|
@@ -4729,7 +4729,7 @@ var conceptualObject = {
|
|
|
4729
4729
|
// src/v1/mocks/body/correction.ts
|
|
4730
4730
|
var valid = {
|
|
4731
4731
|
...common.annotation,
|
|
4732
|
-
motivation: ["correcting", "crm:
|
|
4732
|
+
motivation: ["correcting", "crm:E55_Type"],
|
|
4733
4733
|
body: {
|
|
4734
4734
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
4735
4735
|
type: "TextualBody",
|
|
@@ -4782,7 +4782,7 @@ var date = {
|
|
|
4782
4782
|
// src/v1/mocks/body/keyword.ts
|
|
4783
4783
|
var vocabularySimple = {
|
|
4784
4784
|
...common.annotation,
|
|
4785
|
-
motivation: ["classifying", "crm:
|
|
4785
|
+
motivation: ["classifying", "crm:E55_Type"],
|
|
4786
4786
|
body: {
|
|
4787
4787
|
id: "https://www.uo.com/keyword",
|
|
4788
4788
|
entityType: ["crm:E55_Type", "crmdig:D1_Digital_Object"]
|
|
@@ -4790,7 +4790,7 @@ var vocabularySimple = {
|
|
|
4790
4790
|
};
|
|
4791
4791
|
var vocabularyWithCertainty = {
|
|
4792
4792
|
...common.annotation,
|
|
4793
|
-
motivation: ["classifying", "crm:
|
|
4793
|
+
motivation: ["classifying", "crm:E55_Type"],
|
|
4794
4794
|
body: {
|
|
4795
4795
|
id: "https://www.uo.com/keyword",
|
|
4796
4796
|
entityType: ["crm:E55_Type", "crmdig:D1_Digital_Object"],
|
|
@@ -4799,7 +4799,7 @@ var vocabularyWithCertainty = {
|
|
|
4799
4799
|
};
|
|
4800
4800
|
var vocabularyWithLabelAndDescription = {
|
|
4801
4801
|
...common.annotation,
|
|
4802
|
-
motivation: ["classifying", "crm:
|
|
4802
|
+
motivation: ["classifying", "crm:E55_Type"],
|
|
4803
4803
|
body: {
|
|
4804
4804
|
id: "https://www.uo.com/keyword",
|
|
4805
4805
|
entityType: ["crm:E55_Type", "crmdig:D1_Digital_Object"],
|
|
@@ -4809,7 +4809,7 @@ var vocabularyWithLabelAndDescription = {
|
|
|
4809
4809
|
};
|
|
4810
4810
|
var folksonomy = {
|
|
4811
4811
|
...common.annotation,
|
|
4812
|
-
motivation: ["tagging", "crm:
|
|
4812
|
+
motivation: ["tagging", "crm:E55_Type"],
|
|
4813
4813
|
body: {
|
|
4814
4814
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
4815
4815
|
type: "TextualBody",
|
|
@@ -4831,7 +4831,7 @@ var keyword = {
|
|
|
4831
4831
|
// src/v1/mocks/body/link.ts
|
|
4832
4832
|
var simple3 = {
|
|
4833
4833
|
...common.annotation,
|
|
4834
|
-
motivation: ["linking", "crm:
|
|
4834
|
+
motivation: ["linking", "crm:E55_Type"],
|
|
4835
4835
|
body: {
|
|
4836
4836
|
id: "https://www.uo.com/link",
|
|
4837
4837
|
entityType: "crmdig:D1_Digital_Object"
|
|
@@ -4839,7 +4839,7 @@ var simple3 = {
|
|
|
4839
4839
|
};
|
|
4840
4840
|
var withCertainty6 = {
|
|
4841
4841
|
...common.annotation,
|
|
4842
|
-
motivation: ["linking", "crm:
|
|
4842
|
+
motivation: ["linking", "crm:E55_Type"],
|
|
4843
4843
|
body: {
|
|
4844
4844
|
id: "https://www.uo.com/link",
|
|
4845
4845
|
entityType: "crmdig:D1_Digital_Object",
|
|
@@ -4856,7 +4856,7 @@ var link = {
|
|
|
4856
4856
|
// src/v1/mocks/body/note.ts
|
|
4857
4857
|
var simple4 = {
|
|
4858
4858
|
...common.annotation,
|
|
4859
|
-
motivation: ["describing", "crm:
|
|
4859
|
+
motivation: ["describing", "crm:E55_Type"],
|
|
4860
4860
|
body: {
|
|
4861
4861
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
4862
4862
|
type: "TextualBody",
|
|
@@ -4866,7 +4866,7 @@ var simple4 = {
|
|
|
4866
4866
|
};
|
|
4867
4867
|
var additionalType = {
|
|
4868
4868
|
...common.annotation,
|
|
4869
|
-
motivation: ["describing", "crm:
|
|
4869
|
+
motivation: ["describing", "crm:E55_Type"],
|
|
4870
4870
|
body: {
|
|
4871
4871
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
4872
4872
|
type: "TextualBody",
|
|
@@ -4877,7 +4877,7 @@ var additionalType = {
|
|
|
4877
4877
|
};
|
|
4878
4878
|
var additionalMultipleTypes = {
|
|
4879
4879
|
...common.annotation,
|
|
4880
|
-
motivation: ["describing", "crm:
|
|
4880
|
+
motivation: ["describing", "crm:E55_Type"],
|
|
4881
4881
|
body: {
|
|
4882
4882
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
4883
4883
|
type: "TextualBody",
|
|
@@ -5082,12 +5082,12 @@ var idUUID = {
|
|
|
5082
5082
|
};
|
|
5083
5083
|
var motivationIdentify = {
|
|
5084
5084
|
...common.annotation,
|
|
5085
|
-
motivation: ["identifying", "crm:
|
|
5085
|
+
motivation: ["identifying", "crm:E55_Type"],
|
|
5086
5086
|
body: commonPersonBody
|
|
5087
5087
|
};
|
|
5088
5088
|
var motivationDescribing = {
|
|
5089
5089
|
...common.annotation,
|
|
5090
|
-
motivation: ["describing", "crm:
|
|
5090
|
+
motivation: ["describing", "crm:E55_Type"],
|
|
5091
5091
|
body: {
|
|
5092
5092
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
5093
5093
|
type: "TextualBody",
|
|
@@ -5097,7 +5097,7 @@ var motivationDescribing = {
|
|
|
5097
5097
|
};
|
|
5098
5098
|
var motivationCorrecting = {
|
|
5099
5099
|
...common.annotation,
|
|
5100
|
-
motivation: ["correcting", "crm:
|
|
5100
|
+
motivation: ["correcting", "crm:E55_Type"],
|
|
5101
5101
|
body: {
|
|
5102
5102
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
5103
5103
|
type: "TextualBody",
|
|
@@ -5107,7 +5107,7 @@ var motivationCorrecting = {
|
|
|
5107
5107
|
};
|
|
5108
5108
|
var motivationTagging = {
|
|
5109
5109
|
...common.annotation,
|
|
5110
|
-
motivation: ["tagging", "crm:
|
|
5110
|
+
motivation: ["tagging", "crm:E55_Type"],
|
|
5111
5111
|
body: {
|
|
5112
5112
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
5113
5113
|
type: "TextualBody",
|
|
@@ -5117,7 +5117,7 @@ var motivationTagging = {
|
|
|
5117
5117
|
};
|
|
5118
5118
|
var motivationClassifying = {
|
|
5119
5119
|
...common.annotation,
|
|
5120
|
-
motivation: ["classifying", "crm:
|
|
5120
|
+
motivation: ["classifying", "crm:E55_Type"],
|
|
5121
5121
|
body: {
|
|
5122
5122
|
id: "https://www.uo.com/keyword",
|
|
5123
5123
|
entityType: ["crm:E55_Type", "crmdig:D1_Digital_Object"]
|
|
@@ -5125,7 +5125,7 @@ var motivationClassifying = {
|
|
|
5125
5125
|
};
|
|
5126
5126
|
var motivationLinking = {
|
|
5127
5127
|
...common.annotation,
|
|
5128
|
-
motivation: ["linking", "crm:
|
|
5128
|
+
motivation: ["linking", "crm:E55_Type"],
|
|
5129
5129
|
body: {
|
|
5130
5130
|
id: "https://www.uo.com/link",
|
|
5131
5131
|
entityType: "crmdig:D1_Digital_Object"
|
|
@@ -5133,7 +5133,7 @@ var motivationLinking = {
|
|
|
5133
5133
|
};
|
|
5134
5134
|
var motivationCiting = {
|
|
5135
5135
|
...common.annotation,
|
|
5136
|
-
motivation: ["citing", "crm:
|
|
5136
|
+
motivation: ["citing", "crm:E55_Type"],
|
|
5137
5137
|
body: {
|
|
5138
5138
|
id: "https://www.uo.com/conceptualObject",
|
|
5139
5139
|
entityType: ["cito:Citation", "crm:E73_Information_Object"]
|
package/dist/index.mjs
CHANGED
|
@@ -3930,7 +3930,7 @@ var WebAnnotation = z22.object({
|
|
|
3930
3930
|
"The identity of the Annotation. It must be a UUID or URI containing a UUID in the search params (URI?annoId=URI)"
|
|
3931
3931
|
),
|
|
3932
3932
|
type: z22.tuple([z22.literal("Annotation"), z22.literal("crm:E33_Linguistic_Object")]).describe("The type of the Annotation."),
|
|
3933
|
-
motivation: z22.tuple([z22.enum(Motivation), z22.literal("crm:
|
|
3933
|
+
motivation: z22.tuple([z22.enum(Motivation), z22.literal("crm:E55_Type")]).describe("The relationship between an Annotation and a Motivation."),
|
|
3934
3934
|
created: z22.string().datetime().describe("The time at which the resource was created."),
|
|
3935
3935
|
modified: z22.string().datetime().optional().describe("The time at which the resource was modified, after creation."),
|
|
3936
3936
|
status: z22.enum(Status).describe("The status of this annotation in a workflow."),
|
|
@@ -3984,7 +3984,7 @@ var webAnnotationSchema = {
|
|
|
3984
3984
|
maxItems: 2,
|
|
3985
3985
|
items: [
|
|
3986
3986
|
{ type: "string", enum: Motivation },
|
|
3987
|
-
{ type: "string", const: "crm:
|
|
3987
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
3988
3988
|
],
|
|
3989
3989
|
description: "The relationship between an Annotation and a Motivation."
|
|
3990
3990
|
},
|
|
@@ -4087,7 +4087,7 @@ var webAnnotationSchema = {
|
|
|
4087
4087
|
maxItems: 2,
|
|
4088
4088
|
items: [
|
|
4089
4089
|
{ type: "string", const: "identifying" },
|
|
4090
|
-
{ type: "string", const: "crm:
|
|
4090
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4091
4091
|
]
|
|
4092
4092
|
}
|
|
4093
4093
|
}
|
|
@@ -4113,7 +4113,7 @@ var webAnnotationSchema = {
|
|
|
4113
4113
|
maxItems: 2,
|
|
4114
4114
|
items: [
|
|
4115
4115
|
{ type: "string", const: "describing" },
|
|
4116
|
-
{ type: "string", const: "crm:
|
|
4116
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4117
4117
|
]
|
|
4118
4118
|
}
|
|
4119
4119
|
}
|
|
@@ -4139,7 +4139,7 @@ var webAnnotationSchema = {
|
|
|
4139
4139
|
maxItems: 2,
|
|
4140
4140
|
items: [
|
|
4141
4141
|
{ type: "string", const: "correcting" },
|
|
4142
|
-
{ type: "string", const: "crm:
|
|
4142
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4143
4143
|
]
|
|
4144
4144
|
}
|
|
4145
4145
|
}
|
|
@@ -4165,7 +4165,7 @@ var webAnnotationSchema = {
|
|
|
4165
4165
|
maxItems: 2,
|
|
4166
4166
|
items: [
|
|
4167
4167
|
{ type: "string", const: "tagging" },
|
|
4168
|
-
{ type: "string", const: "crm:
|
|
4168
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4169
4169
|
]
|
|
4170
4170
|
}
|
|
4171
4171
|
}
|
|
@@ -4191,7 +4191,7 @@ var webAnnotationSchema = {
|
|
|
4191
4191
|
maxItems: 2,
|
|
4192
4192
|
items: [
|
|
4193
4193
|
{ type: "string", const: "classifying" },
|
|
4194
|
-
{ type: "string", const: "crm:
|
|
4194
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4195
4195
|
]
|
|
4196
4196
|
}
|
|
4197
4197
|
}
|
|
@@ -4217,7 +4217,7 @@ var webAnnotationSchema = {
|
|
|
4217
4217
|
maxItems: 2,
|
|
4218
4218
|
items: [
|
|
4219
4219
|
{ type: "string", const: "linking" },
|
|
4220
|
-
{ type: "string", const: "crm:
|
|
4220
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4221
4221
|
]
|
|
4222
4222
|
}
|
|
4223
4223
|
}
|
|
@@ -4243,7 +4243,7 @@ var webAnnotationSchema = {
|
|
|
4243
4243
|
maxItems: 2,
|
|
4244
4244
|
items: [
|
|
4245
4245
|
{ type: "string", const: "citing" },
|
|
4246
|
-
{ type: "string", const: "crm:
|
|
4246
|
+
{ type: "string", const: "crm:E55_Type" }
|
|
4247
4247
|
]
|
|
4248
4248
|
}
|
|
4249
4249
|
}
|
|
@@ -4499,7 +4499,7 @@ var commonAnnotation = {
|
|
|
4499
4499
|
"@context": ["http://www.w3.org/ns/anno.jsonld", "https://wa.lincsproject.ca/v1/ns/anno.jsonld"],
|
|
4500
4500
|
id: "c7aa1b38-6364-483c-8607-44dc3f510a59",
|
|
4501
4501
|
type: ["Annotation", "crm:E33_Linguistic_Object"],
|
|
4502
|
-
motivation: ["identifying", "crm:
|
|
4502
|
+
motivation: ["identifying", "crm:E55_Type"],
|
|
4503
4503
|
created: "2022-12-21T23:21:02Z",
|
|
4504
4504
|
creator: commonCreator,
|
|
4505
4505
|
generator: commonSoftware,
|
|
@@ -4623,7 +4623,7 @@ var place = {
|
|
|
4623
4623
|
// src/v1/mocks/body/citation.ts
|
|
4624
4624
|
var simple = {
|
|
4625
4625
|
...common.annotation,
|
|
4626
|
-
motivation: ["citing", "crm:
|
|
4626
|
+
motivation: ["citing", "crm:E55_Type"],
|
|
4627
4627
|
body: {
|
|
4628
4628
|
id: "https://www.uo.com/conceptualObject",
|
|
4629
4629
|
entityType: ["cito:Citation", "crm:E73_Information_Object"]
|
|
@@ -4631,7 +4631,7 @@ var simple = {
|
|
|
4631
4631
|
};
|
|
4632
4632
|
var withCertainty3 = {
|
|
4633
4633
|
...common.annotation,
|
|
4634
|
-
motivation: ["citing", "crm:
|
|
4634
|
+
motivation: ["citing", "crm:E55_Type"],
|
|
4635
4635
|
body: {
|
|
4636
4636
|
id: "https://www.uo.com/conceptualObject",
|
|
4637
4637
|
entityType: ["cito:Citation", "crm:E73_Information_Object"],
|
|
@@ -4640,7 +4640,7 @@ var withCertainty3 = {
|
|
|
4640
4640
|
};
|
|
4641
4641
|
var withLabelAndDescription3 = {
|
|
4642
4642
|
...common.annotation,
|
|
4643
|
-
motivation: ["citing", "crm:
|
|
4643
|
+
motivation: ["citing", "crm:E55_Type"],
|
|
4644
4644
|
body: {
|
|
4645
4645
|
id: "https://www.uo.com/conceptualObject",
|
|
4646
4646
|
entityType: ["cito:Citation", "crm:E73_Information_Object"],
|
|
@@ -4700,7 +4700,7 @@ var conceptualObject = {
|
|
|
4700
4700
|
// src/v1/mocks/body/correction.ts
|
|
4701
4701
|
var valid = {
|
|
4702
4702
|
...common.annotation,
|
|
4703
|
-
motivation: ["correcting", "crm:
|
|
4703
|
+
motivation: ["correcting", "crm:E55_Type"],
|
|
4704
4704
|
body: {
|
|
4705
4705
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
4706
4706
|
type: "TextualBody",
|
|
@@ -4753,7 +4753,7 @@ var date = {
|
|
|
4753
4753
|
// src/v1/mocks/body/keyword.ts
|
|
4754
4754
|
var vocabularySimple = {
|
|
4755
4755
|
...common.annotation,
|
|
4756
|
-
motivation: ["classifying", "crm:
|
|
4756
|
+
motivation: ["classifying", "crm:E55_Type"],
|
|
4757
4757
|
body: {
|
|
4758
4758
|
id: "https://www.uo.com/keyword",
|
|
4759
4759
|
entityType: ["crm:E55_Type", "crmdig:D1_Digital_Object"]
|
|
@@ -4761,7 +4761,7 @@ var vocabularySimple = {
|
|
|
4761
4761
|
};
|
|
4762
4762
|
var vocabularyWithCertainty = {
|
|
4763
4763
|
...common.annotation,
|
|
4764
|
-
motivation: ["classifying", "crm:
|
|
4764
|
+
motivation: ["classifying", "crm:E55_Type"],
|
|
4765
4765
|
body: {
|
|
4766
4766
|
id: "https://www.uo.com/keyword",
|
|
4767
4767
|
entityType: ["crm:E55_Type", "crmdig:D1_Digital_Object"],
|
|
@@ -4770,7 +4770,7 @@ var vocabularyWithCertainty = {
|
|
|
4770
4770
|
};
|
|
4771
4771
|
var vocabularyWithLabelAndDescription = {
|
|
4772
4772
|
...common.annotation,
|
|
4773
|
-
motivation: ["classifying", "crm:
|
|
4773
|
+
motivation: ["classifying", "crm:E55_Type"],
|
|
4774
4774
|
body: {
|
|
4775
4775
|
id: "https://www.uo.com/keyword",
|
|
4776
4776
|
entityType: ["crm:E55_Type", "crmdig:D1_Digital_Object"],
|
|
@@ -4780,7 +4780,7 @@ var vocabularyWithLabelAndDescription = {
|
|
|
4780
4780
|
};
|
|
4781
4781
|
var folksonomy = {
|
|
4782
4782
|
...common.annotation,
|
|
4783
|
-
motivation: ["tagging", "crm:
|
|
4783
|
+
motivation: ["tagging", "crm:E55_Type"],
|
|
4784
4784
|
body: {
|
|
4785
4785
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
4786
4786
|
type: "TextualBody",
|
|
@@ -4802,7 +4802,7 @@ var keyword = {
|
|
|
4802
4802
|
// src/v1/mocks/body/link.ts
|
|
4803
4803
|
var simple3 = {
|
|
4804
4804
|
...common.annotation,
|
|
4805
|
-
motivation: ["linking", "crm:
|
|
4805
|
+
motivation: ["linking", "crm:E55_Type"],
|
|
4806
4806
|
body: {
|
|
4807
4807
|
id: "https://www.uo.com/link",
|
|
4808
4808
|
entityType: "crmdig:D1_Digital_Object"
|
|
@@ -4810,7 +4810,7 @@ var simple3 = {
|
|
|
4810
4810
|
};
|
|
4811
4811
|
var withCertainty6 = {
|
|
4812
4812
|
...common.annotation,
|
|
4813
|
-
motivation: ["linking", "crm:
|
|
4813
|
+
motivation: ["linking", "crm:E55_Type"],
|
|
4814
4814
|
body: {
|
|
4815
4815
|
id: "https://www.uo.com/link",
|
|
4816
4816
|
entityType: "crmdig:D1_Digital_Object",
|
|
@@ -4827,7 +4827,7 @@ var link = {
|
|
|
4827
4827
|
// src/v1/mocks/body/note.ts
|
|
4828
4828
|
var simple4 = {
|
|
4829
4829
|
...common.annotation,
|
|
4830
|
-
motivation: ["describing", "crm:
|
|
4830
|
+
motivation: ["describing", "crm:E55_Type"],
|
|
4831
4831
|
body: {
|
|
4832
4832
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
4833
4833
|
type: "TextualBody",
|
|
@@ -4837,7 +4837,7 @@ var simple4 = {
|
|
|
4837
4837
|
};
|
|
4838
4838
|
var additionalType = {
|
|
4839
4839
|
...common.annotation,
|
|
4840
|
-
motivation: ["describing", "crm:
|
|
4840
|
+
motivation: ["describing", "crm:E55_Type"],
|
|
4841
4841
|
body: {
|
|
4842
4842
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
4843
4843
|
type: "TextualBody",
|
|
@@ -4848,7 +4848,7 @@ var additionalType = {
|
|
|
4848
4848
|
};
|
|
4849
4849
|
var additionalMultipleTypes = {
|
|
4850
4850
|
...common.annotation,
|
|
4851
|
-
motivation: ["describing", "crm:
|
|
4851
|
+
motivation: ["describing", "crm:E55_Type"],
|
|
4852
4852
|
body: {
|
|
4853
4853
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
4854
4854
|
type: "TextualBody",
|
|
@@ -5053,12 +5053,12 @@ var idUUID = {
|
|
|
5053
5053
|
};
|
|
5054
5054
|
var motivationIdentify = {
|
|
5055
5055
|
...common.annotation,
|
|
5056
|
-
motivation: ["identifying", "crm:
|
|
5056
|
+
motivation: ["identifying", "crm:E55_Type"],
|
|
5057
5057
|
body: commonPersonBody
|
|
5058
5058
|
};
|
|
5059
5059
|
var motivationDescribing = {
|
|
5060
5060
|
...common.annotation,
|
|
5061
|
-
motivation: ["describing", "crm:
|
|
5061
|
+
motivation: ["describing", "crm:E55_Type"],
|
|
5062
5062
|
body: {
|
|
5063
5063
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
5064
5064
|
type: "TextualBody",
|
|
@@ -5068,7 +5068,7 @@ var motivationDescribing = {
|
|
|
5068
5068
|
};
|
|
5069
5069
|
var motivationCorrecting = {
|
|
5070
5070
|
...common.annotation,
|
|
5071
|
-
motivation: ["correcting", "crm:
|
|
5071
|
+
motivation: ["correcting", "crm:E55_Type"],
|
|
5072
5072
|
body: {
|
|
5073
5073
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
5074
5074
|
type: "TextualBody",
|
|
@@ -5078,7 +5078,7 @@ var motivationCorrecting = {
|
|
|
5078
5078
|
};
|
|
5079
5079
|
var motivationTagging = {
|
|
5080
5080
|
...common.annotation,
|
|
5081
|
-
motivation: ["tagging", "crm:
|
|
5081
|
+
motivation: ["tagging", "crm:E55_Type"],
|
|
5082
5082
|
body: {
|
|
5083
5083
|
id: "55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
5084
5084
|
type: "TextualBody",
|
|
@@ -5088,7 +5088,7 @@ var motivationTagging = {
|
|
|
5088
5088
|
};
|
|
5089
5089
|
var motivationClassifying = {
|
|
5090
5090
|
...common.annotation,
|
|
5091
|
-
motivation: ["classifying", "crm:
|
|
5091
|
+
motivation: ["classifying", "crm:E55_Type"],
|
|
5092
5092
|
body: {
|
|
5093
5093
|
id: "https://www.uo.com/keyword",
|
|
5094
5094
|
entityType: ["crm:E55_Type", "crmdig:D1_Digital_Object"]
|
|
@@ -5096,7 +5096,7 @@ var motivationClassifying = {
|
|
|
5096
5096
|
};
|
|
5097
5097
|
var motivationLinking = {
|
|
5098
5098
|
...common.annotation,
|
|
5099
|
-
motivation: ["linking", "crm:
|
|
5099
|
+
motivation: ["linking", "crm:E55_Type"],
|
|
5100
5100
|
body: {
|
|
5101
5101
|
id: "https://www.uo.com/link",
|
|
5102
5102
|
entityType: "crmdig:D1_Digital_Object"
|
|
@@ -5104,7 +5104,7 @@ var motivationLinking = {
|
|
|
5104
5104
|
};
|
|
5105
5105
|
var motivationCiting = {
|
|
5106
5106
|
...common.annotation,
|
|
5107
|
-
motivation: ["citing", "crm:
|
|
5107
|
+
motivation: ["citing", "crm:E55_Type"],
|
|
5108
5108
|
body: {
|
|
5109
5109
|
id: "https://www.uo.com/conceptualObject",
|
|
5110
5110
|
entityType: ["cito:Citation", "crm:E73_Information_Object"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lincs.project/webannotation-schema",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "lincs project web annotation json-ld schema",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lincs project",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@apideck/better-ajv-errors": "^0.3.6",
|
|
59
59
|
"ajv": "^8.12.0",
|
|
60
60
|
"ajv-formats": "^2.1.1",
|
|
61
|
-
"typescript": "^5.3.
|
|
61
|
+
"typescript": "^5.3.3",
|
|
62
62
|
"zod": "^3.22.4"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|