@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.js CHANGED
@@ -43,15 +43,17 @@ __export(src_exports, {
43
43
  DATE_RANGE_PATTERN: () => DATE_RANGE_PATTERN,
44
44
  Date: () => Date,
45
45
  DateEntityType: () => DateEntityType,
46
+ Description: () => Description,
46
47
  Event: () => Event,
47
48
  EventEntityType: () => EventEntityType,
48
- IdentifiedBy: () => IdentifiedBy,
49
49
  Keyword: () => Keyword,
50
50
  KeywordEntityType: () => KeywordEntityType,
51
51
  KeywordFolksnomy: () => KeywordFolksnomy,
52
52
  KeywordFolksnomyEntityType: () => KeywordFolksnomyEntityType,
53
+ Label: () => Label,
53
54
  Link: () => Link,
54
55
  LinkEntityType: () => LinkEntityType,
56
+ ModeExistence: () => ModeExistence,
55
57
  Motivation: () => Motivation,
56
58
  Note: () => Note,
57
59
  NoteEntityType: () => NoteEntityType,
@@ -69,7 +71,6 @@ __export(src_exports, {
69
71
  Selector: () => Selector,
70
72
  Software: () => Software,
71
73
  Source: () => Source,
72
- Status: () => Status,
73
74
  Target: () => Target,
74
75
  TextPositionSelector: () => TextPositionSelector,
75
76
  TextPositionSelectorExtended: () => TextPositionSelectorExtended,
@@ -102,17 +103,21 @@ __export(src_exports, {
102
103
  dateSchema: () => dateSchema,
103
104
  definitionSchema: () => definitionSchema,
104
105
  defsId: () => defsId,
106
+ descriptionSchema: () => descriptionSchema,
105
107
  eventEntityTypeSchema: () => eventEntityTypeSchema,
106
108
  eventSchema: () => eventSchema,
107
109
  formatSchema: () => formatSchema,
108
- indentifyBySchema: () => indentifyBySchema,
110
+ isIdentifiedBy: () => isIdentifiedBy,
111
+ isIndentifyBySchema: () => isIndentifyBySchema,
109
112
  keywordEntityTypeSchema: () => keywordEntityTypeSchema,
110
113
  keywordFolksnomyEntityTypeSchema: () => keywordFolksnomyEntityTypeSchema,
111
114
  keywordFolksnomySchema: () => keywordFolksnomySchema,
112
115
  keywordSchema: () => keywordSchema,
116
+ labelSchema: () => labelSchema,
113
117
  languageSchema: () => languageSchema,
114
118
  linkEntityTypeSchema: () => linkEntityTypeSchema,
115
119
  linkSchema: () => linkSchema,
120
+ modeExistenceSchema: () => modeExistenceSchema,
116
121
  noteEntityTypeSchema: () => noteEntityTypeSchema,
117
122
  noteSchema: () => noteSchema,
118
123
  organizationEntityTypeSchema: () => organizationEntityTypeSchema,
@@ -185,11 +190,11 @@ var schemaContext = {
185
190
  },
186
191
  certainty: {
187
192
  "@type": "@id",
188
- "@id": "crm:P2_has_type"
193
+ "@id": "http://temp.lincsproject.ca/certainty"
189
194
  },
190
195
  precision: {
191
196
  "@type": "@id",
192
- "@id": "crm:P2_has_type"
197
+ "@id": "http://temp.lincsproject.ca/precision"
193
198
  },
194
199
  contributor: "dcterms:contributor",
195
200
  entityType: {
@@ -202,17 +207,8 @@ var schemaContext = {
202
207
  },
203
208
  modeExistence: "edit:ModeExistence",
204
209
  description: "rdfs:comment",
205
- identifiedBy: "crm:P1_is_identified_by",
206
210
  title: "crm:P190_has_symbolic_content",
207
- usedSpecificObject: "crm:P16_used_specific_object",
208
- softwareVersion: "schema:softwareVersion",
209
- status: {
210
- "@type": "@id",
211
- "@id": "crm:P2_has_type"
212
- },
213
- approved: "edit:statusApproved",
214
- draft: "edit:statusDraft",
215
- published: "edit:statusPublished"
211
+ softwareVersion: "schema:softwareVersion"
216
212
  }
217
213
  };
218
214
 
@@ -238,7 +234,7 @@ var softwareIdDescription = "The IRI that identifies the agent (software).";
238
234
  var Software = import_zod.z.object({
239
235
  id: import_zod.z.string().url().describe(softwareIdDescription),
240
236
  type: import_zod.z.literal("Software").describe("The type of the Agent."),
241
- usedSpecificObject: import_zod.z.string().url().optional(),
237
+ P16_used_specific_object: import_zod.z.string().url().optional(),
242
238
  label: import_zod.z.string().min(1).describe("The name of the software."),
243
239
  softwareVersion: import_zod.z.string().optional().describe("The software version.")
244
240
  }).describe("Software Agent");
@@ -248,7 +244,7 @@ var softwareSchema = {
248
244
  properties: {
249
245
  id: { type: "string", format: "uri", description: softwareIdDescription },
250
246
  type: { type: "string", const: "Software" },
251
- usedSpecificObject: { type: "string", format: "uri" },
247
+ P16_used_specific_object: { type: "string", format: "uri" },
252
248
  label: { type: "string", minLength: 1, description: "The name of the software." },
253
249
  softwareVersion: { type: "string", description: "The software version." }
254
250
  },
@@ -1401,7 +1397,7 @@ var languageSchema = {
1401
1397
  maxLength: 3
1402
1398
  };
1403
1399
  var sourceIdDescription = "The IRI that identifies the Target source.";
1404
- var IdentifiedBy = import_zod23.z.object({
1400
+ var isIdentifiedBy = import_zod23.z.object({
1405
1401
  id: import_zod23.z.string().url(),
1406
1402
  type: import_zod23.z.literal("crm:E33_E41_Linguistic_Appellation"),
1407
1403
  title: import_zod23.z.string().min(1, { message: "The title cannot be empty" }).describe("The title of the document being annotated.")
@@ -1412,12 +1408,12 @@ var Source = import_zod23.z.object({
1412
1408
  format: import_zod23.z.union([Format, import_zod23.z.array(Format).min(1)]).optional().describe(
1413
1409
  "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."
1414
1410
  ),
1415
- identifiedBy: IdentifiedBy.optional(),
1411
+ P1_is_identified_by: isIdentifiedBy.optional(),
1416
1412
  language: import_zod23.z.union([Language, import_zod23.z.array(Language).min(1)]).optional().describe(
1417
1413
  "The languages of the Web Resource's content. The value of the property should be an array of language code following the [bcp47] specification."
1418
1414
  )
1419
1415
  }).describe("Web Annotation Target");
1420
- var indentifyBySchema = {
1416
+ var isIndentifyBySchema = {
1421
1417
  type: "object",
1422
1418
  description: "indentifyBy",
1423
1419
  properties: {
@@ -1450,7 +1446,7 @@ var sourceSchema = {
1450
1446
  }
1451
1447
  ]
1452
1448
  },
1453
- identifiedBy: { ...indentifyBySchema, nullable: true },
1449
+ P1_is_identified_by: { ...isIndentifyBySchema, nullable: true },
1454
1450
  language: {
1455
1451
  type: ["string", "array"],
1456
1452
  nullable: true,
@@ -1672,7 +1668,6 @@ var definitionSchema = {
1672
1668
 
1673
1669
  // src/v1/schema/root.ts
1674
1670
  var import_zod26 = require("zod");
1675
- var Status = ["edit:statusDraft", "edit:statusApproved", "edit:statusPublished"];
1676
1671
  var Motivation = [
1677
1672
  "oa:identifying",
1678
1673
  "oa:describing",
@@ -1685,6 +1680,7 @@ var Motivation = [
1685
1680
  var WebAnnotation = import_zod26.z.object({
1686
1681
  "@context": import_zod26.z.tuple([
1687
1682
  import_zod26.z.literal("http://www.w3.org/ns/anno.jsonld").describe("W3C Web Annotation Context."),
1683
+ import_zod26.z.literal("https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld").describe("CIDOC Web Annotation Context."),
1688
1684
  import_zod26.z.literal(contextUri).describe("LINCS Web Annotation Context.")
1689
1685
  ]).describe(
1690
1686
  "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."
@@ -1704,7 +1700,7 @@ var WebAnnotation = import_zod26.z.object({
1704
1700
  certainty: Certainty.optional(),
1705
1701
  precision: Precision.optional(),
1706
1702
  label: import_zod26.z.string().min(1, { message: "The label cannot be empty" }).optional().describe("The descriptive label for the annotation"),
1707
- status: import_zod26.z.enum(Status).describe("The status of this annotation in a workflow.").optional()
1703
+ P2_has_type: import_zod26.z.union([import_zod26.z.string().min(3), import_zod26.z.array(import_zod26.z.string().min(3)).min(1)]).optional()
1708
1704
  }).describe("Web Annotation Root");
1709
1705
  var webAnnotationSchema = {
1710
1706
  $id: schemaId,
@@ -1713,10 +1709,11 @@ var webAnnotationSchema = {
1713
1709
  properties: {
1714
1710
  "@context": {
1715
1711
  type: "array",
1716
- minItems: 2,
1717
- maxItems: 2,
1712
+ minItems: 3,
1713
+ maxItems: 3,
1718
1714
  items: [
1719
1715
  { type: "string", const: "http://www.w3.org/ns/anno.jsonld" },
1716
+ { type: "string", const: "https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld" },
1720
1717
  { type: "string", const: contextUri }
1721
1718
  ],
1722
1719
  description: "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."
@@ -1776,7 +1773,20 @@ var webAnnotationSchema = {
1776
1773
  certainty: certaintySchema,
1777
1774
  precision: precisionSchema,
1778
1775
  label: { type: "string" },
1779
- status: { type: "string", enum: Status }
1776
+ P2_has_type: {
1777
+ oneOf: [
1778
+ { type: "string", minLength: 3 },
1779
+ {
1780
+ type: "array",
1781
+ minItems: 1,
1782
+ items: {
1783
+ type: "string",
1784
+ minLength: 3
1785
+ },
1786
+ uniqueItems: true
1787
+ }
1788
+ ]
1789
+ }
1780
1790
  },
1781
1791
  required: ["@context", "id", "type", "motivation", "created", "generator", "target", "body"],
1782
1792
  additionalProperties: false,
@@ -1991,15 +2001,17 @@ __export(v1_exports, {
1991
2001
  DATE_RANGE_PATTERN: () => DATE_RANGE_PATTERN,
1992
2002
  Date: () => Date,
1993
2003
  DateEntityType: () => DateEntityType,
2004
+ Description: () => Description,
1994
2005
  Event: () => Event,
1995
2006
  EventEntityType: () => EventEntityType,
1996
- IdentifiedBy: () => IdentifiedBy,
1997
2007
  Keyword: () => Keyword,
1998
2008
  KeywordEntityType: () => KeywordEntityType,
1999
2009
  KeywordFolksnomy: () => KeywordFolksnomy,
2000
2010
  KeywordFolksnomyEntityType: () => KeywordFolksnomyEntityType,
2011
+ Label: () => Label,
2001
2012
  Link: () => Link,
2002
2013
  LinkEntityType: () => LinkEntityType,
2014
+ ModeExistence: () => ModeExistence,
2003
2015
  Motivation: () => Motivation,
2004
2016
  Note: () => Note,
2005
2017
  NoteEntityType: () => NoteEntityType,
@@ -2017,7 +2029,6 @@ __export(v1_exports, {
2017
2029
  Selector: () => Selector,
2018
2030
  Software: () => Software,
2019
2031
  Source: () => Source,
2020
- Status: () => Status,
2021
2032
  Target: () => Target,
2022
2033
  TextPositionSelector: () => TextPositionSelector,
2023
2034
  TextPositionSelectorExtended: () => TextPositionSelectorExtended,
@@ -2050,17 +2061,21 @@ __export(v1_exports, {
2050
2061
  dateSchema: () => dateSchema,
2051
2062
  definitionSchema: () => definitionSchema,
2052
2063
  defsId: () => defsId,
2064
+ descriptionSchema: () => descriptionSchema,
2053
2065
  eventEntityTypeSchema: () => eventEntityTypeSchema,
2054
2066
  eventSchema: () => eventSchema,
2055
2067
  formatSchema: () => formatSchema,
2056
- indentifyBySchema: () => indentifyBySchema,
2068
+ isIdentifiedBy: () => isIdentifiedBy,
2069
+ isIndentifyBySchema: () => isIndentifyBySchema,
2057
2070
  keywordEntityTypeSchema: () => keywordEntityTypeSchema,
2058
2071
  keywordFolksnomyEntityTypeSchema: () => keywordFolksnomyEntityTypeSchema,
2059
2072
  keywordFolksnomySchema: () => keywordFolksnomySchema,
2060
2073
  keywordSchema: () => keywordSchema,
2074
+ labelSchema: () => labelSchema,
2061
2075
  languageSchema: () => languageSchema,
2062
2076
  linkEntityTypeSchema: () => linkEntityTypeSchema,
2063
2077
  linkSchema: () => linkSchema,
2078
+ modeExistenceSchema: () => modeExistenceSchema,
2064
2079
  noteEntityTypeSchema: () => noteEntityTypeSchema,
2065
2080
  noteSchema: () => noteSchema,
2066
2081
  organizationEntityTypeSchema: () => organizationEntityTypeSchema,
@@ -2108,15 +2123,17 @@ __export(v1_exports, {
2108
2123
  DATE_RANGE_PATTERN,
2109
2124
  Date,
2110
2125
  DateEntityType,
2126
+ Description,
2111
2127
  Event,
2112
2128
  EventEntityType,
2113
- IdentifiedBy,
2114
2129
  Keyword,
2115
2130
  KeywordEntityType,
2116
2131
  KeywordFolksnomy,
2117
2132
  KeywordFolksnomyEntityType,
2133
+ Label,
2118
2134
  Link,
2119
2135
  LinkEntityType,
2136
+ ModeExistence,
2120
2137
  Motivation,
2121
2138
  Note,
2122
2139
  NoteEntityType,
@@ -2134,7 +2151,6 @@ __export(v1_exports, {
2134
2151
  Selector,
2135
2152
  Software,
2136
2153
  Source,
2137
- Status,
2138
2154
  Target,
2139
2155
  TextPositionSelector,
2140
2156
  TextPositionSelectorExtended,
@@ -2167,17 +2183,21 @@ __export(v1_exports, {
2167
2183
  dateSchema,
2168
2184
  definitionSchema,
2169
2185
  defsId,
2186
+ descriptionSchema,
2170
2187
  eventEntityTypeSchema,
2171
2188
  eventSchema,
2172
2189
  formatSchema,
2173
- indentifyBySchema,
2190
+ isIdentifiedBy,
2191
+ isIndentifyBySchema,
2174
2192
  keywordEntityTypeSchema,
2175
2193
  keywordFolksnomyEntityTypeSchema,
2176
2194
  keywordFolksnomySchema,
2177
2195
  keywordSchema,
2196
+ labelSchema,
2178
2197
  languageSchema,
2179
2198
  linkEntityTypeSchema,
2180
2199
  linkSchema,
2200
+ modeExistenceSchema,
2181
2201
  noteEntityTypeSchema,
2182
2202
  noteSchema,
2183
2203
  organizationEntityTypeSchema,
package/dist/index.mjs CHANGED
@@ -41,11 +41,11 @@ var schemaContext = {
41
41
  },
42
42
  certainty: {
43
43
  "@type": "@id",
44
- "@id": "crm:P2_has_type"
44
+ "@id": "http://temp.lincsproject.ca/certainty"
45
45
  },
46
46
  precision: {
47
47
  "@type": "@id",
48
- "@id": "crm:P2_has_type"
48
+ "@id": "http://temp.lincsproject.ca/precision"
49
49
  },
50
50
  contributor: "dcterms:contributor",
51
51
  entityType: {
@@ -58,17 +58,8 @@ var schemaContext = {
58
58
  },
59
59
  modeExistence: "edit:ModeExistence",
60
60
  description: "rdfs:comment",
61
- identifiedBy: "crm:P1_is_identified_by",
62
61
  title: "crm:P190_has_symbolic_content",
63
- usedSpecificObject: "crm:P16_used_specific_object",
64
- softwareVersion: "schema:softwareVersion",
65
- status: {
66
- "@type": "@id",
67
- "@id": "crm:P2_has_type"
68
- },
69
- approved: "edit:statusApproved",
70
- draft: "edit:statusDraft",
71
- published: "edit:statusPublished"
62
+ softwareVersion: "schema:softwareVersion"
72
63
  }
73
64
  };
74
65
 
@@ -94,7 +85,7 @@ var softwareIdDescription = "The IRI that identifies the agent (software).";
94
85
  var Software = z.object({
95
86
  id: z.string().url().describe(softwareIdDescription),
96
87
  type: z.literal("Software").describe("The type of the Agent."),
97
- usedSpecificObject: z.string().url().optional(),
88
+ P16_used_specific_object: z.string().url().optional(),
98
89
  label: z.string().min(1).describe("The name of the software."),
99
90
  softwareVersion: z.string().optional().describe("The software version.")
100
91
  }).describe("Software Agent");
@@ -104,7 +95,7 @@ var softwareSchema = {
104
95
  properties: {
105
96
  id: { type: "string", format: "uri", description: softwareIdDescription },
106
97
  type: { type: "string", const: "Software" },
107
- usedSpecificObject: { type: "string", format: "uri" },
98
+ P16_used_specific_object: { type: "string", format: "uri" },
108
99
  label: { type: "string", minLength: 1, description: "The name of the software." },
109
100
  softwareVersion: { type: "string", description: "The software version." }
110
101
  },
@@ -1257,7 +1248,7 @@ var languageSchema = {
1257
1248
  maxLength: 3
1258
1249
  };
1259
1250
  var sourceIdDescription = "The IRI that identifies the Target source.";
1260
- var IdentifiedBy = z23.object({
1251
+ var isIdentifiedBy = z23.object({
1261
1252
  id: z23.string().url(),
1262
1253
  type: z23.literal("crm:E33_E41_Linguistic_Appellation"),
1263
1254
  title: z23.string().min(1, { message: "The title cannot be empty" }).describe("The title of the document being annotated.")
@@ -1268,12 +1259,12 @@ var Source = z23.object({
1268
1259
  format: z23.union([Format, z23.array(Format).min(1)]).optional().describe(
1269
1260
  "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."
1270
1261
  ),
1271
- identifiedBy: IdentifiedBy.optional(),
1262
+ P1_is_identified_by: isIdentifiedBy.optional(),
1272
1263
  language: z23.union([Language, z23.array(Language).min(1)]).optional().describe(
1273
1264
  "The languages of the Web Resource's content. The value of the property should be an array of language code following the [bcp47] specification."
1274
1265
  )
1275
1266
  }).describe("Web Annotation Target");
1276
- var indentifyBySchema = {
1267
+ var isIndentifyBySchema = {
1277
1268
  type: "object",
1278
1269
  description: "indentifyBy",
1279
1270
  properties: {
@@ -1306,7 +1297,7 @@ var sourceSchema = {
1306
1297
  }
1307
1298
  ]
1308
1299
  },
1309
- identifiedBy: { ...indentifyBySchema, nullable: true },
1300
+ P1_is_identified_by: { ...isIndentifyBySchema, nullable: true },
1310
1301
  language: {
1311
1302
  type: ["string", "array"],
1312
1303
  nullable: true,
@@ -1528,7 +1519,6 @@ var definitionSchema = {
1528
1519
 
1529
1520
  // src/v1/schema/root.ts
1530
1521
  import { z as z26 } from "zod";
1531
- var Status = ["edit:statusDraft", "edit:statusApproved", "edit:statusPublished"];
1532
1522
  var Motivation = [
1533
1523
  "oa:identifying",
1534
1524
  "oa:describing",
@@ -1541,6 +1531,7 @@ var Motivation = [
1541
1531
  var WebAnnotation = z26.object({
1542
1532
  "@context": z26.tuple([
1543
1533
  z26.literal("http://www.w3.org/ns/anno.jsonld").describe("W3C Web Annotation Context."),
1534
+ z26.literal("https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld").describe("CIDOC Web Annotation Context."),
1544
1535
  z26.literal(contextUri).describe("LINCS Web Annotation Context.")
1545
1536
  ]).describe(
1546
1537
  "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."
@@ -1560,7 +1551,7 @@ var WebAnnotation = z26.object({
1560
1551
  certainty: Certainty.optional(),
1561
1552
  precision: Precision.optional(),
1562
1553
  label: z26.string().min(1, { message: "The label cannot be empty" }).optional().describe("The descriptive label for the annotation"),
1563
- status: z26.enum(Status).describe("The status of this annotation in a workflow.").optional()
1554
+ P2_has_type: z26.union([z26.string().min(3), z26.array(z26.string().min(3)).min(1)]).optional()
1564
1555
  }).describe("Web Annotation Root");
1565
1556
  var webAnnotationSchema = {
1566
1557
  $id: schemaId,
@@ -1569,10 +1560,11 @@ var webAnnotationSchema = {
1569
1560
  properties: {
1570
1561
  "@context": {
1571
1562
  type: "array",
1572
- minItems: 2,
1573
- maxItems: 2,
1563
+ minItems: 3,
1564
+ maxItems: 3,
1574
1565
  items: [
1575
1566
  { type: "string", const: "http://www.w3.org/ns/anno.jsonld" },
1567
+ { type: "string", const: "https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld" },
1576
1568
  { type: "string", const: contextUri }
1577
1569
  ],
1578
1570
  description: "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."
@@ -1632,7 +1624,20 @@ var webAnnotationSchema = {
1632
1624
  certainty: certaintySchema,
1633
1625
  precision: precisionSchema,
1634
1626
  label: { type: "string" },
1635
- status: { type: "string", enum: Status }
1627
+ P2_has_type: {
1628
+ oneOf: [
1629
+ { type: "string", minLength: 3 },
1630
+ {
1631
+ type: "array",
1632
+ minItems: 1,
1633
+ items: {
1634
+ type: "string",
1635
+ minLength: 3
1636
+ },
1637
+ uniqueItems: true
1638
+ }
1639
+ ]
1640
+ }
1636
1641
  },
1637
1642
  required: ["@context", "id", "type", "motivation", "created", "generator", "target", "body"],
1638
1643
  additionalProperties: false,
@@ -1847,15 +1852,17 @@ __export(v1_exports, {
1847
1852
  DATE_RANGE_PATTERN: () => DATE_RANGE_PATTERN,
1848
1853
  Date: () => Date,
1849
1854
  DateEntityType: () => DateEntityType,
1855
+ Description: () => Description,
1850
1856
  Event: () => Event,
1851
1857
  EventEntityType: () => EventEntityType,
1852
- IdentifiedBy: () => IdentifiedBy,
1853
1858
  Keyword: () => Keyword,
1854
1859
  KeywordEntityType: () => KeywordEntityType,
1855
1860
  KeywordFolksnomy: () => KeywordFolksnomy,
1856
1861
  KeywordFolksnomyEntityType: () => KeywordFolksnomyEntityType,
1862
+ Label: () => Label,
1857
1863
  Link: () => Link,
1858
1864
  LinkEntityType: () => LinkEntityType,
1865
+ ModeExistence: () => ModeExistence,
1859
1866
  Motivation: () => Motivation,
1860
1867
  Note: () => Note,
1861
1868
  NoteEntityType: () => NoteEntityType,
@@ -1873,7 +1880,6 @@ __export(v1_exports, {
1873
1880
  Selector: () => Selector,
1874
1881
  Software: () => Software,
1875
1882
  Source: () => Source,
1876
- Status: () => Status,
1877
1883
  Target: () => Target,
1878
1884
  TextPositionSelector: () => TextPositionSelector,
1879
1885
  TextPositionSelectorExtended: () => TextPositionSelectorExtended,
@@ -1906,17 +1912,21 @@ __export(v1_exports, {
1906
1912
  dateSchema: () => dateSchema,
1907
1913
  definitionSchema: () => definitionSchema,
1908
1914
  defsId: () => defsId,
1915
+ descriptionSchema: () => descriptionSchema,
1909
1916
  eventEntityTypeSchema: () => eventEntityTypeSchema,
1910
1917
  eventSchema: () => eventSchema,
1911
1918
  formatSchema: () => formatSchema,
1912
- indentifyBySchema: () => indentifyBySchema,
1919
+ isIdentifiedBy: () => isIdentifiedBy,
1920
+ isIndentifyBySchema: () => isIndentifyBySchema,
1913
1921
  keywordEntityTypeSchema: () => keywordEntityTypeSchema,
1914
1922
  keywordFolksnomyEntityTypeSchema: () => keywordFolksnomyEntityTypeSchema,
1915
1923
  keywordFolksnomySchema: () => keywordFolksnomySchema,
1916
1924
  keywordSchema: () => keywordSchema,
1925
+ labelSchema: () => labelSchema,
1917
1926
  languageSchema: () => languageSchema,
1918
1927
  linkEntityTypeSchema: () => linkEntityTypeSchema,
1919
1928
  linkSchema: () => linkSchema,
1929
+ modeExistenceSchema: () => modeExistenceSchema,
1920
1930
  noteEntityTypeSchema: () => noteEntityTypeSchema,
1921
1931
  noteSchema: () => noteSchema,
1922
1932
  organizationEntityTypeSchema: () => organizationEntityTypeSchema,
@@ -1963,15 +1973,17 @@ export {
1963
1973
  DATE_RANGE_PATTERN,
1964
1974
  Date,
1965
1975
  DateEntityType,
1976
+ Description,
1966
1977
  Event,
1967
1978
  EventEntityType,
1968
- IdentifiedBy,
1969
1979
  Keyword,
1970
1980
  KeywordEntityType,
1971
1981
  KeywordFolksnomy,
1972
1982
  KeywordFolksnomyEntityType,
1983
+ Label,
1973
1984
  Link,
1974
1985
  LinkEntityType,
1986
+ ModeExistence,
1975
1987
  Motivation,
1976
1988
  Note,
1977
1989
  NoteEntityType,
@@ -1989,7 +2001,6 @@ export {
1989
2001
  Selector,
1990
2002
  Software,
1991
2003
  Source,
1992
- Status,
1993
2004
  Target,
1994
2005
  TextPositionSelector,
1995
2006
  TextPositionSelectorExtended,
@@ -2022,17 +2033,21 @@ export {
2022
2033
  dateSchema,
2023
2034
  definitionSchema,
2024
2035
  defsId,
2036
+ descriptionSchema,
2025
2037
  eventEntityTypeSchema,
2026
2038
  eventSchema,
2027
2039
  formatSchema,
2028
- indentifyBySchema,
2040
+ isIdentifiedBy,
2041
+ isIndentifyBySchema,
2029
2042
  keywordEntityTypeSchema,
2030
2043
  keywordFolksnomyEntityTypeSchema,
2031
2044
  keywordFolksnomySchema,
2032
2045
  keywordSchema,
2046
+ labelSchema,
2033
2047
  languageSchema,
2034
2048
  linkEntityTypeSchema,
2035
2049
  linkSchema,
2050
+ modeExistenceSchema,
2036
2051
  noteEntityTypeSchema,
2037
2052
  noteSchema,
2038
2053
  organizationEntityTypeSchema,
@@ -28,11 +28,11 @@
28
28
  },
29
29
  "certainty": {
30
30
  "@type": "@id",
31
- "@id": "crm:P2_has_type"
31
+ "@id": "http://temp.lincsproject.ca/certainty"
32
32
  },
33
33
  "precision": {
34
34
  "@type": "@id",
35
- "@id": "crm:P2_has_type"
35
+ "@id": "http://temp.lincsproject.ca/precision"
36
36
  },
37
37
  "contributor": "dcterms:contributor",
38
38
  "entityType": {
@@ -45,16 +45,7 @@
45
45
  },
46
46
  "modeExistence": "edit:ModeExistence",
47
47
  "description": "rdfs:comment",
48
- "identifiedBy": "crm:P1_is_identified_by",
49
48
  "title": "crm:P190_has_symbolic_content",
50
- "usedSpecificObject": "crm:P16_used_specific_object",
51
- "softwareVersion": "schema:softwareVersion",
52
- "status": {
53
- "@type": "@id",
54
- "@id": "crm:P2_has_type"
55
- },
56
- "approved": "edit:statusApproved",
57
- "draft": "edit:statusDraft",
58
- "published": "edit:statusPublished"
49
+ "softwareVersion": "schema:softwareVersion"
59
50
  }
60
51
  }
@@ -40,7 +40,7 @@
40
40
  "type": "string",
41
41
  "const": "Software"
42
42
  },
43
- "usedSpecificObject": {
43
+ "P16_used_specific_object": {
44
44
  "type": "string",
45
45
  "format": "uri"
46
46
  },
@@ -123,7 +123,7 @@
123
123
  }
124
124
  ]
125
125
  },
126
- "identifiedBy": {
126
+ "P1_is_identified_by": {
127
127
  "type": "object",
128
128
  "description": "indentifyBy",
129
129
  "properties": {
@@ -5,13 +5,17 @@
5
5
  "properties": {
6
6
  "@context": {
7
7
  "type": "array",
8
- "minItems": 2,
9
- "maxItems": 2,
8
+ "minItems": 3,
9
+ "maxItems": 3,
10
10
  "items": [
11
11
  {
12
12
  "type": "string",
13
13
  "const": "http://www.w3.org/ns/anno.jsonld"
14
14
  },
15
+ {
16
+ "type": "string",
17
+ "const": "https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld"
18
+ },
15
19
  {
16
20
  "type": "string",
17
21
  "const": "https://wa.lincsproject.ca/v1/ns/anno.jsonld"
@@ -119,12 +123,21 @@
119
123
  "label": {
120
124
  "type": "string"
121
125
  },
122
- "status": {
123
- "type": "string",
124
- "enum": [
125
- "edit:statusDraft",
126
- "edit:statusApproved",
127
- "edit:statusPublished"
126
+ "P2_has_type": {
127
+ "oneOf": [
128
+ {
129
+ "type": "string",
130
+ "minLength": 3
131
+ },
132
+ {
133
+ "type": "array",
134
+ "minItems": 1,
135
+ "items": {
136
+ "type": "string",
137
+ "minLength": 3
138
+ },
139
+ "uniqueItems": true
140
+ }
128
141
  ]
129
142
  }
130
143
  },