@lincs.project/webannotation-schema 1.11.0 → 1.12.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.mjs CHANGED
@@ -13,14 +13,15 @@ var defsId = `https://wa.lincsproject.ca/${VERSION}/defs.jsonld`;
13
13
  // src/v1/schema/context.ts
14
14
  var schemaContext = {
15
15
  "@context": {
16
+ biography: "http://id.lincsproject.ca/biography/",
16
17
  bf: "http://www.openlinksw.com/schemas/bif#",
17
18
  cito: "http://purl.org/spar/cito/",
19
+ crmdig: "http://www.ics.forth.gr/isl/CRMdig/",
18
20
  cwrc: "http://id.lincsproject.ca/cwrc/",
19
21
  edit: "http://id.lincsproject.ca/edit/",
20
22
  fabio: "https://purl.org/spar/fabio/",
21
23
  frbroo: "http://iflastandards.info/ns/fr/frbr/frbroo/",
22
24
  wikidata: "http://www.wikidata.org/entity/",
23
- crmdig: "http://www.ics.forth.gr/isl/CRMdig/",
24
25
  citing: "edit:citing",
25
26
  correcting: "edit:correcting",
26
27
  "oa:identifying": {
@@ -65,43 +66,64 @@ var schemaContext = {
65
66
  }
66
67
  };
67
68
 
68
- // src/v1/schema/definitions/agent.ts
69
+ // src/v1/schema/definitions/agents.ts
69
70
  import { z } from "zod";
70
- var userIdDescription = "The IRI that identifies the agent (Creator or Contributor).";
71
71
  var User = z.object({
72
- id: z.string().url().describe(userIdDescription),
73
- type: z.literal("crm:E21_Person").describe("The type of the Agent."),
74
- name: z.string().min(1, { message: "Cannot be empty" }).describe("The name of the agent.")
72
+ id: z.string().url(),
73
+ type: z.literal("crm:E21_Person"),
74
+ name: z.string().min(1, { message: "Cannot be empty" }).describe(`The person's name.`)
75
75
  }).describe("Human Agent");
76
- var creatorSchema = {
76
+ var userSchema = {
77
77
  type: "object",
78
- description: "Software Agent",
78
+ description: "User Agent",
79
79
  properties: {
80
- id: { type: "string", format: "uri", description: userIdDescription },
80
+ id: { type: "string", format: "uri" },
81
81
  type: { type: "string", const: "crm:E21_Person" },
82
- name: { type: "string", minLength: 1, description: "The name of the agent." }
82
+ name: { type: "string", minLength: 1, description: `The person's name.` }
83
+ },
84
+ required: ["id", "type", "name"]
85
+ };
86
+ var Group = z.object({
87
+ id: z.string().url(),
88
+ type: z.literal("crm:E74_Group"),
89
+ name: z.string().min(1).describe(`The group's name.`)
90
+ }).describe("Group Agent");
91
+ var groupSchema = {
92
+ type: "object",
93
+ description: "Group Agent",
94
+ properties: {
95
+ id: { type: "string", format: "uri" },
96
+ type: { type: "string", const: "crm:E74_Group" },
97
+ name: { type: "string", minLength: 1, description: `The group's name.` }
83
98
  },
84
99
  required: ["id", "type", "name"]
85
100
  };
86
- var softwareIdDescription = "The IRI that identifies the agent (software).";
87
101
  var Software = z.object({
88
- id: z.string().url().describe(softwareIdDescription),
89
- type: z.literal("Software").describe("The type of the Agent."),
102
+ id: z.string().url(),
103
+ type: z.tuple([z.literal("Software"), z.literal("crm:E73_Information_Object")]),
90
104
  P16_used_specific_object: z.string().url().optional().describe("The URI that identifies the agent (software)"),
91
- label: z.string().min(1).describe("The name of the software."),
105
+ name: z.string().min(1).describe(`The software's name.`),
92
106
  softwareVersion: z.string().optional().describe("The software version.")
93
107
  }).describe("Software Agent");
94
108
  var softwareSchema = {
95
109
  type: "object",
96
110
  description: "Software Agent",
97
111
  properties: {
98
- id: { type: "string", format: "uri", description: softwareIdDescription },
99
- type: { type: "string", const: "Software" },
100
- P16_used_specific_object: { type: "string", format: "uri" },
101
- label: { type: "string", minLength: 1, description: "The name of the software." },
102
- softwareVersion: { type: "string", description: "The software version." }
112
+ id: { type: "string", format: "uri" },
113
+ type: {
114
+ type: "array",
115
+ minItems: 2,
116
+ maxItems: 2,
117
+ items: [
118
+ { type: "string", const: "Software" },
119
+ { type: "string", const: "crm:E73_Information_Object" }
120
+ ]
121
+ },
122
+ P16_used_specific_object: { type: "string", format: "uri", nullable: true },
123
+ name: { type: "string", minLength: 1, description: `The software's name.` },
124
+ softwareVersion: { type: "string", nullable: true, description: "The software version." }
103
125
  },
104
- required: ["id", "type", "label"]
126
+ required: ["id", "type", "name"]
105
127
  };
106
128
 
107
129
  // src/v1/schema/definitions/body/index.ts
@@ -700,8 +722,8 @@ var physicalThingSchema = {
700
722
  // src/v1/schema/definitions/body/place.ts
701
723
  import { z as z14 } from "zod";
702
724
  var PlaceEntityType = z14.union([
703
- z14.literal("cwrc:place"),
704
- z14.tuple([z14.literal("cwrc:place"), z14.literal("crm:E89_Propositional_Object")])
725
+ z14.literal("crm:E53_Place"),
726
+ z14.tuple([z14.literal("biography:fictionalPlace"), z14.literal("crm:E89_Propositional_Object")])
705
727
  ]);
706
728
  var Place = z14.object({
707
729
  id: z14.string().url().describe(bodyIdDescription),
@@ -712,13 +734,13 @@ var Place = z14.object({
712
734
  }).describe("Place");
713
735
  var placeEntityTypeSchema = {
714
736
  oneOf: [
715
- { type: "string", const: "cwrc:place" },
737
+ { type: "string", const: "crm:E53_Place" },
716
738
  {
717
739
  type: "array",
718
740
  minItems: 2,
719
741
  maxItems: 2,
720
742
  items: [
721
- { type: "string", const: "cwrc:place" },
743
+ { type: "string", const: "biography:fictionalPlace" },
722
744
  { type: "string", const: "crm:E89_Propositional_Object" }
723
745
  ]
724
746
  }
@@ -746,13 +768,13 @@ var placeSchema = {
746
768
  then: {
747
769
  type: "object",
748
770
  properties: {
749
- entityType: "cwrc:place"
771
+ entityType: "crm:E53_Place"
750
772
  }
751
773
  },
752
774
  else: {
753
775
  type: "object",
754
776
  properties: {
755
- entityType: ["cwrc:place", "crm:E89_Propositional_Object"]
777
+ entityType: ["biography:fictionalPlace", "crm:E89_Propositional_Object"]
756
778
  }
757
779
  }
758
780
  }
@@ -1001,10 +1023,10 @@ var bodySchema = {
1001
1023
  };
1002
1024
 
1003
1025
  // src/v1/schema/definitions/target/index.ts
1004
- import { z as z24 } from "zod";
1026
+ import { z as z25 } from "zod";
1005
1027
 
1006
1028
  // src/v1/schema/definitions/target/selector/index.ts
1007
- import { z as z22 } from "zod";
1029
+ import { z as z23 } from "zod";
1008
1030
 
1009
1031
  // src/v1/schema/definitions/target/selector/range.ts
1010
1032
  import { z as z21 } from "zod";
@@ -1212,13 +1234,64 @@ var rangeSelectorSchema = {
1212
1234
  required: ["id", "type", "startSelector", "endSelector"]
1213
1235
  };
1214
1236
 
1237
+ // src/v1/schema/definitions/target/selector/css.ts
1238
+ import { z as z22 } from "zod";
1239
+ var CssSelector = z22.object({
1240
+ id: z22.string().describe(selectorIdDescription),
1241
+ type: z22.tuple([z22.literal("CssSelector"), z22.literal("crm:E73_Information_Object")]),
1242
+ value: z22.string().min(1).describe("The CSS to the selected a segment.")
1243
+ }).describe("CSS Selector");
1244
+ var CssSelectorExtended = CssSelector.extend({
1245
+ refinedBy: z22.union([TextPositionSelector, TextQuoteSelector]).optional().describe(selectorRefinedByDescription)
1246
+ });
1247
+ var cssSelectorSchema = {
1248
+ type: "object",
1249
+ description: "Css Selector",
1250
+ properties: {
1251
+ id: { type: "string", format: "uri", description: selectorIdDescription },
1252
+ type: {
1253
+ type: "array",
1254
+ minItems: 2,
1255
+ maxItems: 2,
1256
+ items: [
1257
+ { type: "string", const: "CssSelector" },
1258
+ { type: "string", const: "crm:E73_Information_Object" }
1259
+ ],
1260
+ description: "The class of the Selector,"
1261
+ },
1262
+ value: {
1263
+ type: "string",
1264
+ description: "Web Annotation Target Select CSS"
1265
+ }
1266
+ },
1267
+ required: ["id", "type", "value"]
1268
+ };
1269
+ var cssSelectorExtendedSchema = {
1270
+ type: "object",
1271
+ description: "CSS Selector",
1272
+ properties: {
1273
+ ...cssSelectorSchema.properties,
1274
+ refinedBy: {
1275
+ type: "object",
1276
+ description: selectorRefinedByDescription,
1277
+ anyOf: [
1278
+ { $ref: "defs.jsonld#/definitions/textPositionSelector" },
1279
+ { $ref: "defs.jsonld#/definitions/textQuoteSelector" }
1280
+ ],
1281
+ required: []
1282
+ }
1283
+ },
1284
+ required: ["id", "type", "value"]
1285
+ };
1286
+
1215
1287
  // src/v1/schema/definitions/target/selector/index.ts
1216
1288
  var selectorIdDescription = "UUID that identifies the selector.";
1217
1289
  var selectorRefinedByDescription = "The relationship between a broader selector and the more specific selector that should be applied to the results of the first.";
1218
- var Selector = z22.union([
1290
+ var Selector = z23.union([
1219
1291
  TextQuoteSelectorExtended,
1220
1292
  TextPositionSelectorExtended,
1221
1293
  XpathSelectorExtended,
1294
+ CssSelectorExtended,
1222
1295
  RangeSelector
1223
1296
  ]);
1224
1297
  var selectorSchema = {
@@ -1227,22 +1300,23 @@ var selectorSchema = {
1227
1300
  textQuoteSelectorExtendedSchema,
1228
1301
  textPositionSelectorExtendedSchema,
1229
1302
  xpathSelectorExtendedSchema,
1303
+ cssSelectorExtendedSchema,
1230
1304
  rangeSelectorSchema
1231
1305
  ],
1232
1306
  required: []
1233
1307
  };
1234
1308
 
1235
1309
  // src/v1/schema/definitions/target/source.ts
1236
- import { z as z23 } from "zod";
1310
+ import { z as z24 } from "zod";
1237
1311
  var formatDescription = "The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.";
1238
- var Format = z23.string().min(1).describe(formatDescription);
1312
+ var Format = z24.string().min(1).describe(formatDescription);
1239
1313
  var formatSchema = {
1240
1314
  type: "string",
1241
1315
  description: formatDescription,
1242
1316
  minLength: 1
1243
1317
  };
1244
1318
  var languageDescription = "The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.";
1245
- var Language = z23.string().min(2).max(3).describe(languageDescription);
1319
+ var Language = z24.string().min(2).max(3).describe(languageDescription);
1246
1320
  var languageSchema = {
1247
1321
  type: "string",
1248
1322
  description: languageDescription,
@@ -1250,19 +1324,19 @@ var languageSchema = {
1250
1324
  maxLength: 3
1251
1325
  };
1252
1326
  var sourceIdDescription = "The IRI that identifies the Target source.";
1253
- var isIdentifiedBy = z23.object({
1254
- id: z23.string().url(),
1255
- type: z23.literal("crm:E33_E41_Linguistic_Appellation"),
1256
- title: z23.string().min(1, { message: "The title cannot be empty" }).describe("The title of the document being annotated.")
1327
+ var isIdentifiedBy = z24.object({
1328
+ id: z24.string().url(),
1329
+ type: z24.literal("crm:E33_E41_Linguistic_Appellation"),
1330
+ title: z24.string().min(1, { message: "The title cannot be empty" }).describe("The title of the document being annotated.")
1257
1331
  });
1258
- var Source = z23.object({
1259
- id: z23.string().url().describe(sourceIdDescription),
1260
- type: z23.literal("crm:D1_Digital_Object"),
1261
- format: z23.union([Format, z23.array(Format).min(1)]).optional().describe(
1332
+ var Source = z24.object({
1333
+ id: z24.string().url().describe(sourceIdDescription),
1334
+ type: z24.literal("crm:D1_Digital_Object"),
1335
+ format: z24.union([Format, z24.array(Format).min(1)]).optional().describe(
1262
1336
  "The formats of the Web Resource's content. The value of the property should and array of media-types of the format, following the [rfc6838] specification."
1263
1337
  ),
1264
1338
  P1_is_identified_by: isIdentifiedBy.optional(),
1265
- language: z23.union([Language, z23.array(Language).min(1)]).optional().describe(
1339
+ language: z24.union([Language, z24.array(Language).min(1)]).optional().describe(
1266
1340
  "The languages of the Web Resource's content. The value of the property should be an array of language code following the [bcp47] specification."
1267
1341
  )
1268
1342
  }).describe("Web Annotation Target");
@@ -1325,14 +1399,14 @@ var sourceSchema = {
1325
1399
 
1326
1400
  // src/v1/schema/definitions/target/index.ts
1327
1401
  var targetIdDescription = "The IRI that identifies the Target resource.";
1328
- var Target = z24.object({
1329
- id: z24.string().url().describe(targetIdDescription),
1330
- type: z24.tuple([z24.literal("SpecificResource"), z24.literal("crm:E73_Information_Object")]).describe("The class of the Specific Resource."),
1402
+ var Target = z25.object({
1403
+ id: z25.string().url().describe(targetIdDescription),
1404
+ type: z25.tuple([z25.literal("SpecificResource"), z25.literal("crm:E73_Information_Object")]).describe("The class of the Specific Resource."),
1331
1405
  source: Source,
1332
1406
  renderedVia: Software.optional().describe(
1333
1407
  "The relationship between the Specific Resource that represents the Target in the annotation, and the piece of software or other system that was used to render the Target when the annotation was created."
1334
1408
  ),
1335
- selector: z24.union([Selector, z24.array(Selector)]).describe("The relationship between a Specific Resource and a Selector.").optional()
1409
+ selector: z25.union([Selector, z25.array(Selector)]).describe("The relationship between a Specific Resource and a Selector.").optional()
1336
1410
  }).describe("Web Annotation Target");
1337
1411
  var targetSchema = {
1338
1412
  type: "object",
@@ -1448,6 +1522,33 @@ var targetSchema = {
1448
1522
  }
1449
1523
  }
1450
1524
  },
1525
+ {
1526
+ if: {
1527
+ type: "object",
1528
+ properties: {
1529
+ selector: {
1530
+ type: "object",
1531
+ properties: {
1532
+ type: {
1533
+ type: "array",
1534
+ minItems: 2,
1535
+ maxItems: 2,
1536
+ items: [
1537
+ { type: "string", const: "CssSelector" },
1538
+ { type: "string", const: "crm:E73_Information_Object" }
1539
+ ]
1540
+ }
1541
+ }
1542
+ }
1543
+ }
1544
+ },
1545
+ then: {
1546
+ type: "object",
1547
+ properties: {
1548
+ selector: { type: "object", required: ["type", "value"] }
1549
+ }
1550
+ }
1551
+ },
1451
1552
  {
1452
1553
  if: {
1453
1554
  type: "object",
@@ -1479,7 +1580,7 @@ var targetSchema = {
1479
1580
  };
1480
1581
 
1481
1582
  // src/v1/schema/definitions/common.ts
1482
- import { z as z25 } from "zod";
1583
+ import { z as z26 } from "zod";
1483
1584
  var Quality = [
1484
1585
  "edit:qualityLow",
1485
1586
  "edit:qualityMedium",
@@ -1487,14 +1588,14 @@ var Quality = [
1487
1588
  "edit:qualityUnknown"
1488
1589
  ];
1489
1590
  var certaintyDescription = "Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body.";
1490
- var Certainty = z25.enum(Quality).describe(certaintyDescription);
1591
+ var Certainty = z26.enum(Quality).describe(certaintyDescription);
1491
1592
  var certaintySchema = {
1492
1593
  type: "string",
1493
1594
  enum: Quality,
1494
1595
  description: certaintyDescription
1495
1596
  };
1496
1597
  var precisionDescription = "Indicates the degree of precision associated with the location of the entity linked to the annotation body.";
1497
- var Precision = z25.enum(Quality).describe(precisionDescription);
1598
+ var Precision = z26.enum(Quality).describe(precisionDescription);
1498
1599
  var precisionSchema = {
1499
1600
  type: "string",
1500
1601
  enum: Quality,
@@ -1506,7 +1607,8 @@ var definitionSchema = {
1506
1607
  $id: defsId,
1507
1608
  type: "object",
1508
1609
  definitions: {
1509
- creator: creatorSchema,
1610
+ user: userSchema,
1611
+ group: groupSchema,
1510
1612
  software: softwareSchema,
1511
1613
  target: targetSchema,
1512
1614
  textPositionSelector: textPositionSelectorSchema,
@@ -1520,7 +1622,7 @@ var definitionSchema = {
1520
1622
  };
1521
1623
 
1522
1624
  // src/v1/schema/root.ts
1523
- import { z as z26 } from "zod";
1625
+ import { z as z27 } from "zod";
1524
1626
  var Motivation = [
1525
1627
  "oa:identifying",
1526
1628
  "oa:describing",
@@ -1530,30 +1632,30 @@ var Motivation = [
1530
1632
  "oa:linking",
1531
1633
  "citing"
1532
1634
  ];
1533
- var WebAnnotation = z26.object({
1534
- "@context": z26.tuple([
1535
- z26.literal("http://www.w3.org/ns/anno.jsonld").describe("W3C Web Annotation Context."),
1536
- z26.literal("https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld").describe("CIDOC Web Annotation Context."),
1537
- z26.literal(contextUri).describe("LINCS Web Annotation Context.")
1635
+ var WebAnnotation = z27.object({
1636
+ "@context": z27.tuple([
1637
+ z27.literal("http://www.w3.org/ns/anno.jsonld").describe("W3C Web Annotation Context."),
1638
+ z27.literal("https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld").describe("CIDOC Web Annotation Context."),
1639
+ z27.literal(contextUri).describe("LINCS Web Annotation Context.")
1538
1640
  ]).describe(
1539
1641
  "The context that determines the meaning of the JSON as an Annotation. The itens should point to a URI containing the defiintion used in this schema."
1540
1642
  ),
1541
- id: z26.string().url().describe("The identity of the Annotation."),
1542
- type: z26.tuple([z26.literal("Annotation"), z26.literal("crm:E33_Linguistic_Object")]).describe("The type of the Annotation."),
1543
- motivation: z26.enum(Motivation).describe("The relationship between an Annotation and a Motivation."),
1544
- created: z26.string().datetime().describe("The time at which the resource was created."),
1545
- modified: z26.string().datetime().optional().describe("The time at which the resource was modified, after creation."),
1546
- creator: User.describe("The agent responsible for creating the resource.").optional(),
1547
- contributor: z26.array(User.describe("The agents responsible for modifying the resource.")).nonempty().optional().describe("The agents responsible for modifying the resource."),
1643
+ id: z27.string().url().describe("The identity of the Annotation."),
1644
+ type: z27.tuple([z27.literal("Annotation"), z27.literal("crm:E33_Linguistic_Object")]).describe("The type of the Annotation."),
1645
+ motivation: z27.enum(Motivation).describe("The relationship between an Annotation and a Motivation."),
1646
+ created: z27.string().datetime().describe("The time at which the resource was created."),
1647
+ modified: z27.string().datetime().optional().describe("The time at which the resource was modified, after creation."),
1648
+ creator: z27.union([User, Group, Software]).describe("The agent responsible for creating the resource.").optional(),
1649
+ contributor: z27.array(z27.union([User, Group, Software])).nonempty().optional().describe("The agents responsible for modifying the resource."),
1548
1650
  generator: Software.describe(
1549
1651
  "The agent responsible for generating the serialization of the Annotation. "
1550
1652
  ),
1551
- target: Target.describe("The relationship between an Annotation and its Target."),
1552
- body: z26.union([BodyChoice, Body, z26.array(Body)]).describe("The relationship between an Annotation and its Body."),
1653
+ target: z27.union([Target, z27.array(Target)]).describe("The relationship between an Annotation and its Target."),
1654
+ body: z27.union([BodyChoice, Body, z27.array(Body)]).describe("The relationship between an Annotation and its Body."),
1553
1655
  certainty: Certainty.optional(),
1554
1656
  precision: Precision.optional(),
1555
- label: z26.string().min(1, { message: "The label cannot be empty" }).optional().describe("The descriptive label for the annotation"),
1556
- P2_has_type: z26.union([z26.string().min(3), z26.array(z26.string().min(3)).min(1)]).optional()
1657
+ label: z27.string().min(1, { message: "The label cannot be empty" }).optional().describe("The descriptive label for the annotation"),
1658
+ P2_has_type: z27.union([z27.string().min(3), z27.array(z27.string().min(3)).min(1)]).optional()
1557
1659
  }).describe("Web Annotation Root");
1558
1660
  var webAnnotationSchema = {
1559
1661
  $id: schemaId,
@@ -1601,16 +1703,38 @@ var webAnnotationSchema = {
1601
1703
  format: "date-time",
1602
1704
  description: "The time at which the resource was modified, after creation."
1603
1705
  },
1604
- creator: { $ref: "defs.jsonld#/definitions/creator" },
1605
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
1706
+ creator: {
1707
+ oneOf: [
1708
+ { $ref: "defs.jsonld#/definitions/user" },
1709
+ { $ref: "defs.jsonld#/definitions/group" },
1710
+ { $ref: "defs.jsonld#/definitions/software" }
1711
+ ]
1712
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1713
+ },
1606
1714
  contributor: {
1607
1715
  type: "array",
1608
- items: { $ref: "defs.jsonld#/definitions/creator" },
1716
+ items: {
1717
+ oneOf: [
1718
+ { $ref: "defs.jsonld#/definitions/user" },
1719
+ { $ref: "defs.jsonld#/definitions/group" },
1720
+ { $ref: "defs.jsonld#/definitions/software" }
1721
+ ]
1722
+ },
1609
1723
  minItems: 1
1610
1724
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1611
1725
  },
1612
1726
  generator: { $ref: "defs.jsonld#/definitions/software" },
1613
- target: { $ref: "defs.jsonld#/definitions/target" },
1727
+ target: {
1728
+ oneOf: [
1729
+ { $ref: "defs.jsonld#/definitions/target" },
1730
+ {
1731
+ type: "array",
1732
+ items: { $ref: "defs.jsonld#/definitions/target" },
1733
+ minItems: 1
1734
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1735
+ }
1736
+ ]
1737
+ },
1614
1738
  body: {
1615
1739
  oneOf: [
1616
1740
  { $ref: "defs.jsonld#/definitions/bodyChoice" },
@@ -1797,18 +1921,18 @@ import Ajv from "ajv";
1797
1921
  import addFormats from "ajv-formats";
1798
1922
 
1799
1923
  // src/v1/validator/types.ts
1800
- import { z as z27 } from "zod";
1801
- var ValidationError = z27.object({
1802
- message: z27.string(),
1803
- path: z27.string(),
1804
- suggestion: z27.string().optional(),
1805
- context: z27.object({
1806
- errorType: z27.string()
1807
- }).and(z27.unknown())
1924
+ import { z as z28 } from "zod";
1925
+ var ValidationError = z28.object({
1926
+ message: z28.string(),
1927
+ path: z28.string(),
1928
+ suggestion: z28.string().optional(),
1929
+ context: z28.object({
1930
+ errorType: z28.string()
1931
+ }).and(z28.unknown())
1808
1932
  });
1809
- var ValidateResult = z27.object({
1810
- valid: z27.boolean(),
1811
- errors: z27.array(ValidationError).optional()
1933
+ var ValidateResult = z28.object({
1934
+ valid: z28.boolean(),
1935
+ errors: z28.array(ValidationError).optional()
1812
1936
  });
1813
1937
 
1814
1938
  // src/v1/validator/index.ts
@@ -1857,6 +1981,7 @@ __export(v1_exports, {
1857
1981
  Description: () => Description,
1858
1982
  Event: () => Event,
1859
1983
  EventEntityType: () => EventEntityType,
1984
+ Group: () => Group,
1860
1985
  Keyword: () => Keyword,
1861
1986
  KeywordEntityType: () => KeywordEntityType,
1862
1987
  KeywordFolksnomy: () => KeywordFolksnomy,
@@ -1909,7 +2034,6 @@ __export(v1_exports, {
1909
2034
  contextUri: () => contextUri,
1910
2035
  correctionEntityTypeSchema: () => correctionEntityTypeSchema,
1911
2036
  correctionSchema: () => correctionSchema,
1912
- creatorSchema: () => creatorSchema,
1913
2037
  dateEntityTypeSchema: () => dateEntityTypeSchema,
1914
2038
  dateSchema: () => dateSchema,
1915
2039
  definitionSchema: () => definitionSchema,
@@ -1918,6 +2042,7 @@ __export(v1_exports, {
1918
2042
  eventEntityTypeSchema: () => eventEntityTypeSchema,
1919
2043
  eventSchema: () => eventSchema,
1920
2044
  formatSchema: () => formatSchema,
2045
+ groupSchema: () => groupSchema,
1921
2046
  isIdentifiedBy: () => isIdentifiedBy,
1922
2047
  isIndentifyBySchema: () => isIndentifyBySchema,
1923
2048
  keywordEntityTypeSchema: () => keywordEntityTypeSchema,
@@ -1953,6 +2078,7 @@ __export(v1_exports, {
1953
2078
  textPositionSelectorSchema: () => textPositionSelectorSchema,
1954
2079
  textQuoteSelectorExtendedSchema: () => textQuoteSelectorExtendedSchema,
1955
2080
  textQuoteSelectorSchema: () => textQuoteSelectorSchema,
2081
+ userSchema: () => userSchema,
1956
2082
  validate: () => validate,
1957
2083
  validator: () => validator,
1958
2084
  webAnnotationSchema: () => webAnnotationSchema,
@@ -1978,6 +2104,7 @@ export {
1978
2104
  Description,
1979
2105
  Event,
1980
2106
  EventEntityType,
2107
+ Group,
1981
2108
  Keyword,
1982
2109
  KeywordEntityType,
1983
2110
  KeywordFolksnomy,
@@ -2030,7 +2157,6 @@ export {
2030
2157
  contextUri,
2031
2158
  correctionEntityTypeSchema,
2032
2159
  correctionSchema,
2033
- creatorSchema,
2034
2160
  dateEntityTypeSchema,
2035
2161
  dateSchema,
2036
2162
  definitionSchema,
@@ -2039,6 +2165,7 @@ export {
2039
2165
  eventEntityTypeSchema,
2040
2166
  eventSchema,
2041
2167
  formatSchema,
2168
+ groupSchema,
2042
2169
  isIdentifiedBy,
2043
2170
  isIndentifyBySchema,
2044
2171
  keywordEntityTypeSchema,
@@ -2074,6 +2201,7 @@ export {
2074
2201
  textPositionSelectorSchema,
2075
2202
  textQuoteSelectorExtendedSchema,
2076
2203
  textQuoteSelectorSchema,
2204
+ userSchema,
2077
2205
  v1_exports as v1,
2078
2206
  validate,
2079
2207
  validator,
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "@context": {
3
+ "biography": "http://id.lincsproject.ca/biography/",
3
4
  "bf": "http://www.openlinksw.com/schemas/bif#",
4
5
  "cito": "http://purl.org/spar/cito/",
6
+ "crmdig": "http://www.ics.forth.gr/isl/CRMdig/",
5
7
  "cwrc": "http://id.lincsproject.ca/cwrc/",
6
8
  "edit": "http://id.lincsproject.ca/edit/",
7
9
  "fabio": "https://purl.org/spar/fabio/",
8
10
  "frbroo": "http://iflastandards.info/ns/fr/frbr/frbroo/",
9
11
  "wikidata": "http://www.wikidata.org/entity/",
10
- "crmdig": "http://www.ics.forth.gr/isl/CRMdig/",
11
12
  "citing": "edit:citing",
12
13
  "correcting": "edit:correcting",
13
14
  "oa:identifying": {