@lincs.project/webannotation-schema 1.4.0 → 1.5.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.ts CHANGED
@@ -19,29 +19,31 @@ declare const schemaContext: {
19
19
  wikidata: string;
20
20
  crm: string;
21
21
  crmdig: string;
22
- certainty: {
22
+ additionalType: {
23
23
  '@type': string;
24
24
  '@id': string;
25
25
  };
26
- contributor: string;
27
- description: string;
28
- precision: {
26
+ certainty: {
29
27
  '@type': string;
30
28
  '@id': string;
31
29
  };
32
- softwareVersion: string;
33
- status: {
30
+ contributor: string;
31
+ description: string;
32
+ entityType: {
34
33
  '@type': string;
35
34
  '@id': string;
36
35
  };
37
- entityType: {
36
+ identifiedBy: string;
37
+ precision: {
38
38
  '@type': string;
39
39
  '@id': string;
40
40
  };
41
- additionalType: {
41
+ softwareVersion: string;
42
+ status: {
42
43
  '@type': string;
43
44
  '@id': string;
44
45
  };
46
+ title: string;
45
47
  approved: string;
46
48
  citing: string;
47
49
  correcting: string;
@@ -1114,23 +1116,61 @@ declare const formatSchema: JSONSchemaType<Format>;
1114
1116
  declare const Language: z.ZodString;
1115
1117
  type Language = z.infer<typeof Language>;
1116
1118
  declare const languageSchema: JSONSchemaType<Language>;
1119
+ declare const IdentifiedBy: z.ZodObject<{
1120
+ id: z.ZodString;
1121
+ type: z.ZodLiteral<"crm:E33_E41_Linguistic_Appellation">;
1122
+ title: z.ZodString;
1123
+ }, "strip", z.ZodTypeAny, {
1124
+ id: string;
1125
+ type: "crm:E33_E41_Linguistic_Appellation";
1126
+ title: string;
1127
+ }, {
1128
+ id: string;
1129
+ type: "crm:E33_E41_Linguistic_Appellation";
1130
+ title: string;
1131
+ }>;
1132
+ type IdentifiedBy = z.infer<typeof IdentifiedBy>;
1117
1133
  declare const Source: z.ZodObject<{
1118
1134
  id: z.ZodString;
1135
+ type: z.ZodLiteral<"crm:D1_Digital_Object">;
1119
1136
  format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1137
+ identifiedBy: z.ZodOptional<z.ZodObject<{
1138
+ id: z.ZodString;
1139
+ type: z.ZodLiteral<"crm:E33_E41_Linguistic_Appellation">;
1140
+ title: z.ZodString;
1141
+ }, "strip", z.ZodTypeAny, {
1142
+ id: string;
1143
+ type: "crm:E33_E41_Linguistic_Appellation";
1144
+ title: string;
1145
+ }, {
1146
+ id: string;
1147
+ type: "crm:E33_E41_Linguistic_Appellation";
1148
+ title: string;
1149
+ }>>;
1120
1150
  language: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1121
- title: z.ZodOptional<z.ZodString>;
1122
1151
  }, "strip", z.ZodTypeAny, {
1123
1152
  id: string;
1153
+ type: "crm:D1_Digital_Object";
1124
1154
  format?: string | string[] | undefined;
1155
+ identifiedBy?: {
1156
+ id: string;
1157
+ type: "crm:E33_E41_Linguistic_Appellation";
1158
+ title: string;
1159
+ } | undefined;
1125
1160
  language?: string | string[] | undefined;
1126
- title?: string | undefined;
1127
1161
  }, {
1128
1162
  id: string;
1163
+ type: "crm:D1_Digital_Object";
1129
1164
  format?: string | string[] | undefined;
1165
+ identifiedBy?: {
1166
+ id: string;
1167
+ type: "crm:E33_E41_Linguistic_Appellation";
1168
+ title: string;
1169
+ } | undefined;
1130
1170
  language?: string | string[] | undefined;
1131
- title?: string | undefined;
1132
1171
  }>;
1133
1172
  type Source = z.infer<typeof Source>;
1173
+ declare const indentifyBySchema: JSONSchemaType<IdentifiedBy>;
1134
1174
  declare const sourceSchema: JSONSchemaType<Source>;
1135
1175
 
1136
1176
  declare const Target: z.ZodObject<{
@@ -1138,19 +1178,42 @@ declare const Target: z.ZodObject<{
1138
1178
  type: z.ZodTuple<[z.ZodLiteral<"SpecificResource">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
1139
1179
  source: z.ZodObject<{
1140
1180
  id: z.ZodString;
1181
+ type: z.ZodLiteral<"crm:D1_Digital_Object">;
1141
1182
  format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1183
+ identifiedBy: z.ZodOptional<z.ZodObject<{
1184
+ id: z.ZodString;
1185
+ type: z.ZodLiteral<"crm:E33_E41_Linguistic_Appellation">;
1186
+ title: z.ZodString;
1187
+ }, "strip", z.ZodTypeAny, {
1188
+ id: string;
1189
+ type: "crm:E33_E41_Linguistic_Appellation";
1190
+ title: string;
1191
+ }, {
1192
+ id: string;
1193
+ type: "crm:E33_E41_Linguistic_Appellation";
1194
+ title: string;
1195
+ }>>;
1142
1196
  language: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1143
- title: z.ZodOptional<z.ZodString>;
1144
1197
  }, "strip", z.ZodTypeAny, {
1145
1198
  id: string;
1199
+ type: "crm:D1_Digital_Object";
1146
1200
  format?: string | string[] | undefined;
1201
+ identifiedBy?: {
1202
+ id: string;
1203
+ type: "crm:E33_E41_Linguistic_Appellation";
1204
+ title: string;
1205
+ } | undefined;
1147
1206
  language?: string | string[] | undefined;
1148
- title?: string | undefined;
1149
1207
  }, {
1150
1208
  id: string;
1209
+ type: "crm:D1_Digital_Object";
1151
1210
  format?: string | string[] | undefined;
1211
+ identifiedBy?: {
1212
+ id: string;
1213
+ type: "crm:E33_E41_Linguistic_Appellation";
1214
+ title: string;
1215
+ } | undefined;
1152
1216
  language?: string | string[] | undefined;
1153
- title?: string | undefined;
1154
1217
  }>;
1155
1218
  renderedVia: z.ZodOptional<z.ZodObject<{
1156
1219
  id: z.ZodString;
@@ -1722,9 +1785,14 @@ declare const Target: z.ZodObject<{
1722
1785
  type: ["SpecificResource", "crm:E73_Information_Object"];
1723
1786
  source: {
1724
1787
  id: string;
1788
+ type: "crm:D1_Digital_Object";
1725
1789
  format?: string | string[] | undefined;
1790
+ identifiedBy?: {
1791
+ id: string;
1792
+ type: "crm:E33_E41_Linguistic_Appellation";
1793
+ title: string;
1794
+ } | undefined;
1726
1795
  language?: string | string[] | undefined;
1727
- title?: string | undefined;
1728
1796
  };
1729
1797
  renderedVia?: {
1730
1798
  id: string;
@@ -1866,9 +1934,14 @@ declare const Target: z.ZodObject<{
1866
1934
  type: ["SpecificResource", "crm:E73_Information_Object"];
1867
1935
  source: {
1868
1936
  id: string;
1937
+ type: "crm:D1_Digital_Object";
1869
1938
  format?: string | string[] | undefined;
1939
+ identifiedBy?: {
1940
+ id: string;
1941
+ type: "crm:E33_E41_Linguistic_Appellation";
1942
+ title: string;
1943
+ } | undefined;
1870
1944
  language?: string | string[] | undefined;
1871
- title?: string | undefined;
1872
1945
  };
1873
1946
  renderedVia?: {
1874
1947
  id: string;
@@ -2091,19 +2164,42 @@ declare const WebAnnotation: z.ZodObject<{
2091
2164
  type: z.ZodTuple<[z.ZodLiteral<"SpecificResource">, z.ZodLiteral<"crm:E73_Information_Object">], null>;
2092
2165
  source: z.ZodObject<{
2093
2166
  id: z.ZodString;
2167
+ type: z.ZodLiteral<"crm:D1_Digital_Object">;
2094
2168
  format: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2169
+ identifiedBy: z.ZodOptional<z.ZodObject<{
2170
+ id: z.ZodString;
2171
+ type: z.ZodLiteral<"crm:E33_E41_Linguistic_Appellation">;
2172
+ title: z.ZodString;
2173
+ }, "strip", z.ZodTypeAny, {
2174
+ id: string;
2175
+ type: "crm:E33_E41_Linguistic_Appellation";
2176
+ title: string;
2177
+ }, {
2178
+ id: string;
2179
+ type: "crm:E33_E41_Linguistic_Appellation";
2180
+ title: string;
2181
+ }>>;
2095
2182
  language: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2096
- title: z.ZodOptional<z.ZodString>;
2097
2183
  }, "strip", z.ZodTypeAny, {
2098
2184
  id: string;
2185
+ type: "crm:D1_Digital_Object";
2099
2186
  format?: string | string[] | undefined;
2187
+ identifiedBy?: {
2188
+ id: string;
2189
+ type: "crm:E33_E41_Linguistic_Appellation";
2190
+ title: string;
2191
+ } | undefined;
2100
2192
  language?: string | string[] | undefined;
2101
- title?: string | undefined;
2102
2193
  }, {
2103
2194
  id: string;
2195
+ type: "crm:D1_Digital_Object";
2104
2196
  format?: string | string[] | undefined;
2197
+ identifiedBy?: {
2198
+ id: string;
2199
+ type: "crm:E33_E41_Linguistic_Appellation";
2200
+ title: string;
2201
+ } | undefined;
2105
2202
  language?: string | string[] | undefined;
2106
- title?: string | undefined;
2107
2203
  }>;
2108
2204
  renderedVia: z.ZodOptional<z.ZodObject<{
2109
2205
  id: z.ZodString;
@@ -2675,9 +2771,14 @@ declare const WebAnnotation: z.ZodObject<{
2675
2771
  type: ["SpecificResource", "crm:E73_Information_Object"];
2676
2772
  source: {
2677
2773
  id: string;
2774
+ type: "crm:D1_Digital_Object";
2678
2775
  format?: string | string[] | undefined;
2776
+ identifiedBy?: {
2777
+ id: string;
2778
+ type: "crm:E33_E41_Linguistic_Appellation";
2779
+ title: string;
2780
+ } | undefined;
2679
2781
  language?: string | string[] | undefined;
2680
- title?: string | undefined;
2681
2782
  };
2682
2783
  renderedVia?: {
2683
2784
  id: string;
@@ -2819,9 +2920,14 @@ declare const WebAnnotation: z.ZodObject<{
2819
2920
  type: ["SpecificResource", "crm:E73_Information_Object"];
2820
2921
  source: {
2821
2922
  id: string;
2923
+ type: "crm:D1_Digital_Object";
2822
2924
  format?: string | string[] | undefined;
2925
+ identifiedBy?: {
2926
+ id: string;
2927
+ type: "crm:E33_E41_Linguistic_Appellation";
2928
+ title: string;
2929
+ } | undefined;
2823
2930
  language?: string | string[] | undefined;
2824
- title?: string | undefined;
2825
2931
  };
2826
2932
  renderedVia?: {
2827
2933
  id: string;
@@ -3079,9 +3185,14 @@ declare const WebAnnotation: z.ZodObject<{
3079
3185
  type: ["SpecificResource", "crm:E73_Information_Object"];
3080
3186
  source: {
3081
3187
  id: string;
3188
+ type: "crm:D1_Digital_Object";
3082
3189
  format?: string | string[] | undefined;
3190
+ identifiedBy?: {
3191
+ id: string;
3192
+ type: "crm:E33_E41_Linguistic_Appellation";
3193
+ title: string;
3194
+ } | undefined;
3083
3195
  language?: string | string[] | undefined;
3084
- title?: string | undefined;
3085
3196
  };
3086
3197
  renderedVia?: {
3087
3198
  id: string;
@@ -3362,9 +3473,14 @@ declare const WebAnnotation: z.ZodObject<{
3362
3473
  type: ["SpecificResource", "crm:E73_Information_Object"];
3363
3474
  source: {
3364
3475
  id: string;
3476
+ type: "crm:D1_Digital_Object";
3365
3477
  format?: string | string[] | undefined;
3478
+ identifiedBy?: {
3479
+ id: string;
3480
+ type: "crm:E33_E41_Linguistic_Appellation";
3481
+ title: string;
3482
+ } | undefined;
3366
3483
  language?: string | string[] | undefined;
3367
- title?: string | undefined;
3368
3484
  };
3369
3485
  renderedVia?: {
3370
3486
  id: string;
@@ -3728,9 +3844,14 @@ declare const validator: _ajv.ValidateFunction<Required<{
3728
3844
  type: ["SpecificResource", "crm:E73_Information_Object"];
3729
3845
  source: {
3730
3846
  id: string;
3847
+ type: "crm:D1_Digital_Object";
3731
3848
  format?: string | string[] | undefined;
3849
+ identifiedBy?: {
3850
+ id: string;
3851
+ type: "crm:E33_E41_Linguistic_Appellation";
3852
+ title: string;
3853
+ } | undefined;
3732
3854
  language?: string | string[] | undefined;
3733
- title?: string | undefined;
3734
3855
  };
3735
3856
  renderedVia?: {
3736
3857
  id: string;
@@ -4043,6 +4164,7 @@ type index_Definition = Definition;
4043
4164
  type index_Event = Event;
4044
4165
  type index_EventEntityType = EventEntityType;
4045
4166
  type index_Format = Format;
4167
+ type index_IdentifiedBy = IdentifiedBy;
4046
4168
  type index_Keyword = Keyword;
4047
4169
  type index_KeywordEntityType = KeywordEntityType;
4048
4170
  type index_KeywordFolksnomy = KeywordFolksnomy;
@@ -4103,6 +4225,7 @@ declare const index_defsId: typeof defsId;
4103
4225
  declare const index_eventEntityTypeSchema: typeof eventEntityTypeSchema;
4104
4226
  declare const index_eventSchema: typeof eventSchema;
4105
4227
  declare const index_formatSchema: typeof formatSchema;
4228
+ declare const index_indentifyBySchema: typeof indentifyBySchema;
4106
4229
  declare const index_keywordEntityTypeSchema: typeof keywordEntityTypeSchema;
4107
4230
  declare const index_keywordFolksnomyEntityTypeSchema: typeof keywordFolksnomyEntityTypeSchema;
4108
4231
  declare const index_keywordFolksnomySchema: typeof keywordFolksnomySchema;
@@ -4142,7 +4265,7 @@ declare const index_workSchema: typeof workSchema;
4142
4265
  declare const index_xpathSelectorExtendedSchema: typeof xpathSelectorExtendedSchema;
4143
4266
  declare const index_xpathSelectorSchema: typeof xpathSelectorSchema;
4144
4267
  declare namespace index {
4145
- export { type index_Body as Body, type index_BodyChoice as BodyChoice, type index_BodyEntityType as BodyEntityType, type index_Certainty as Certainty, type index_Citation as Citation, type index_CitationEntityType as CitationEntityType, type index_ConceptualObject as ConceptualObject, type index_ConceptualObjectEntityType as ConceptualObjectEntityType, type index_Correction as Correction, type index_CorrectionEntityType as CorrectionEntityType, index_DATE_RANGE_PATTERN as DATE_RANGE_PATTERN, type index_Date as Date, type index_DateEntityType as DateEntityType, type index_Definition as Definition, type index_Event as Event, type index_EventEntityType as EventEntityType, type index_Format as Format, type index_Keyword as Keyword, type index_KeywordEntityType as KeywordEntityType, type index_KeywordFolksnomy as KeywordFolksnomy, type index_KeywordFolksnomyEntityType as KeywordFolksnomyEntityType, type index_Language as Language, type index_Link as Link, type index_LinkEntityType as LinkEntityType, type index_Motivation as Motivation, type index_Note as Note, type index_NoteEntityType as NoteEntityType, type index_Organization as Organization, type index_OrganizationEntityType as OrganizationEntityType, type index_Person as Person, type index_PersonEntityType as PersonEntityType, type index_PhysicalThing as PhysicalThing, type index_PhysicalThingEntityType as PhysicalThingEntityType, type index_Place as Place, type index_PlaceEntityType as PlaceEntityType, type index_Precision as Precision, type index_Quality as Quality, type index_RangeSelector as RangeSelector, type index_Selector as Selector, type index_Software as Software, type index_Source as Source, type index_Status as Status, type index_Target as Target, type index_TextPositionSelector as TextPositionSelector, type index_TextPositionSelectorExtended as TextPositionSelectorExtended, type index_TextQuoteSelector as TextQuoteSelector, type index_TextQuoteSelectorExtended as TextQuoteSelectorExtended, type index_User as User, index_VERSION as VERSION, type index_ValidateResult as ValidateResult, type index_ValidationError as ValidationError, type index_WebAnnotation as WebAnnotation, type index_Work as Work, type index_WorkEntityType as WorkEntityType, type index_XpathSelector as XpathSelector, type index_XpathSelectorExtended as XpathSelectorExtended, index_ajv as ajv, index_bodyChoiceSchema as bodyChoiceSchema, index_bodyEntityTypeSchema as bodyEntityTypeSchema, index_bodyIdDescription as bodyIdDescription, index_bodySchema as bodySchema, index_certaintySchema as certaintySchema, index_citationEntityTypeSchema as citationEntityTypeSchema, index_citationSchema as citationSchema, index_conceptualObjectEntityTypeSchema as conceptualObjectEntityTypeSchema, index_conceptualObjectSchema as conceptualObjectSchema, index_contextUri as contextUri, index_correctionEntityTypeSchema as correctionEntityTypeSchema, index_correctionSchema as correctionSchema, index_creatorSchema as creatorSchema, index_dateEntityTypeSchema as dateEntityTypeSchema, index_dateSchema as dateSchema, index_definitionSchema as definitionSchema, index_defsId as defsId, index_eventEntityTypeSchema as eventEntityTypeSchema, index_eventSchema as eventSchema, index_formatSchema as formatSchema, index_keywordEntityTypeSchema as keywordEntityTypeSchema, index_keywordFolksnomyEntityTypeSchema as keywordFolksnomyEntityTypeSchema, index_keywordFolksnomySchema as keywordFolksnomySchema, index_keywordSchema as keywordSchema, index_languageSchema as languageSchema, index_linkEntityTypeSchema as linkEntityTypeSchema, index_linkSchema as linkSchema, index_noteEntityTypeSchema as noteEntityTypeSchema, index_noteSchema as noteSchema, index_organizationEntityTypeSchema as organizationEntityTypeSchema, index_organizationSchema as organizationSchema, index_personEntityTypeSchema as personEntityTypeSchema, index_personSchema as personSchema, index_physicalThingEntityTypeSchema as physicalThingEntityTypeSchema, index_physicalThingSchema as physicalThingSchema, index_placeEntityTypeSchema as placeEntityTypeSchema, index_placeSchema as placeSchema, index_precisionSchema as precisionSchema, index_rangeSelectorSchema as rangeSelectorSchema, index_schemaContext as schemaContext, index_schemaId as schemaId, index_selectorIdDescription as selectorIdDescription, index_selectorRefinedByDescription as selectorRefinedByDescription, index_selectorSchema as selectorSchema, index_softwareSchema as softwareSchema, index_sourceSchema as sourceSchema, index_targetSchema as targetSchema, index_textPositionSelectorExtendedSchema as textPositionSelectorExtendedSchema, index_textPositionSelectorSchema as textPositionSelectorSchema, index_textQuoteSelectorExtendedSchema as textQuoteSelectorExtendedSchema, index_textQuoteSelectorSchema as textQuoteSelectorSchema, index_validate as validate, index_validator as validator, index_webAnnotationSchema as webAnnotationSchema, index_workEntityTypeSchema as workEntityTypeSchema, index_workSchema as workSchema, index_xpathSelectorExtendedSchema as xpathSelectorExtendedSchema, index_xpathSelectorSchema as xpathSelectorSchema };
4268
+ export { type index_Body as Body, type index_BodyChoice as BodyChoice, type index_BodyEntityType as BodyEntityType, type index_Certainty as Certainty, type index_Citation as Citation, type index_CitationEntityType as CitationEntityType, type index_ConceptualObject as ConceptualObject, type index_ConceptualObjectEntityType as ConceptualObjectEntityType, type index_Correction as Correction, type index_CorrectionEntityType as CorrectionEntityType, index_DATE_RANGE_PATTERN as DATE_RANGE_PATTERN, type index_Date as Date, type index_DateEntityType as DateEntityType, type index_Definition as Definition, type index_Event as Event, type index_EventEntityType as EventEntityType, type index_Format as Format, type index_IdentifiedBy as IdentifiedBy, type index_Keyword as Keyword, type index_KeywordEntityType as KeywordEntityType, type index_KeywordFolksnomy as KeywordFolksnomy, type index_KeywordFolksnomyEntityType as KeywordFolksnomyEntityType, type index_Language as Language, type index_Link as Link, type index_LinkEntityType as LinkEntityType, type index_Motivation as Motivation, type index_Note as Note, type index_NoteEntityType as NoteEntityType, type index_Organization as Organization, type index_OrganizationEntityType as OrganizationEntityType, type index_Person as Person, type index_PersonEntityType as PersonEntityType, type index_PhysicalThing as PhysicalThing, type index_PhysicalThingEntityType as PhysicalThingEntityType, type index_Place as Place, type index_PlaceEntityType as PlaceEntityType, type index_Precision as Precision, type index_Quality as Quality, type index_RangeSelector as RangeSelector, type index_Selector as Selector, type index_Software as Software, type index_Source as Source, type index_Status as Status, type index_Target as Target, type index_TextPositionSelector as TextPositionSelector, type index_TextPositionSelectorExtended as TextPositionSelectorExtended, type index_TextQuoteSelector as TextQuoteSelector, type index_TextQuoteSelectorExtended as TextQuoteSelectorExtended, type index_User as User, index_VERSION as VERSION, type index_ValidateResult as ValidateResult, type index_ValidationError as ValidationError, type index_WebAnnotation as WebAnnotation, type index_Work as Work, type index_WorkEntityType as WorkEntityType, type index_XpathSelector as XpathSelector, type index_XpathSelectorExtended as XpathSelectorExtended, index_ajv as ajv, index_bodyChoiceSchema as bodyChoiceSchema, index_bodyEntityTypeSchema as bodyEntityTypeSchema, index_bodyIdDescription as bodyIdDescription, index_bodySchema as bodySchema, index_certaintySchema as certaintySchema, index_citationEntityTypeSchema as citationEntityTypeSchema, index_citationSchema as citationSchema, index_conceptualObjectEntityTypeSchema as conceptualObjectEntityTypeSchema, index_conceptualObjectSchema as conceptualObjectSchema, index_contextUri as contextUri, index_correctionEntityTypeSchema as correctionEntityTypeSchema, index_correctionSchema as correctionSchema, index_creatorSchema as creatorSchema, index_dateEntityTypeSchema as dateEntityTypeSchema, index_dateSchema as dateSchema, index_definitionSchema as definitionSchema, index_defsId as defsId, index_eventEntityTypeSchema as eventEntityTypeSchema, index_eventSchema as eventSchema, index_formatSchema as formatSchema, index_indentifyBySchema as indentifyBySchema, index_keywordEntityTypeSchema as keywordEntityTypeSchema, index_keywordFolksnomyEntityTypeSchema as keywordFolksnomyEntityTypeSchema, index_keywordFolksnomySchema as keywordFolksnomySchema, index_keywordSchema as keywordSchema, index_languageSchema as languageSchema, index_linkEntityTypeSchema as linkEntityTypeSchema, index_linkSchema as linkSchema, index_noteEntityTypeSchema as noteEntityTypeSchema, index_noteSchema as noteSchema, index_organizationEntityTypeSchema as organizationEntityTypeSchema, index_organizationSchema as organizationSchema, index_personEntityTypeSchema as personEntityTypeSchema, index_personSchema as personSchema, index_physicalThingEntityTypeSchema as physicalThingEntityTypeSchema, index_physicalThingSchema as physicalThingSchema, index_placeEntityTypeSchema as placeEntityTypeSchema, index_placeSchema as placeSchema, index_precisionSchema as precisionSchema, index_rangeSelectorSchema as rangeSelectorSchema, index_schemaContext as schemaContext, index_schemaId as schemaId, index_selectorIdDescription as selectorIdDescription, index_selectorRefinedByDescription as selectorRefinedByDescription, index_selectorSchema as selectorSchema, index_softwareSchema as softwareSchema, index_sourceSchema as sourceSchema, index_targetSchema as targetSchema, index_textPositionSelectorExtendedSchema as textPositionSelectorExtendedSchema, index_textPositionSelectorSchema as textPositionSelectorSchema, index_textQuoteSelectorExtendedSchema as textQuoteSelectorExtendedSchema, index_textQuoteSelectorSchema as textQuoteSelectorSchema, index_validate as validate, index_validator as validator, index_webAnnotationSchema as webAnnotationSchema, index_workEntityTypeSchema as workEntityTypeSchema, index_workSchema as workSchema, index_xpathSelectorExtendedSchema as xpathSelectorExtendedSchema, index_xpathSelectorSchema as xpathSelectorSchema };
4146
4269
  }
4147
4270
 
4148
- export { Body, BodyChoice, BodyEntityType, Certainty, Citation, CitationEntityType, ConceptualObject, ConceptualObjectEntityType, Correction, CorrectionEntityType, DATE_RANGE_PATTERN, Date, DateEntityType, type Definition, Event, EventEntityType, Format, Keyword, KeywordEntityType, KeywordFolksnomy, KeywordFolksnomyEntityType, Language, Link, LinkEntityType, Motivation, Note, NoteEntityType, Organization, OrganizationEntityType, Person, PersonEntityType, PhysicalThing, PhysicalThingEntityType, Place, PlaceEntityType, Precision, Quality, RangeSelector, Selector, Software, Source, Status, Target, TextPositionSelector, TextPositionSelectorExtended, TextQuoteSelector, TextQuoteSelectorExtended, User, VERSION, ValidateResult, ValidationError, WebAnnotation, Work, WorkEntityType, XpathSelector, XpathSelectorExtended, ajv, bodyChoiceSchema, bodyEntityTypeSchema, bodyIdDescription, bodySchema, certaintySchema, citationEntityTypeSchema, citationSchema, conceptualObjectEntityTypeSchema, conceptualObjectSchema, contextUri, correctionEntityTypeSchema, correctionSchema, creatorSchema, dateEntityTypeSchema, dateSchema, definitionSchema, defsId, eventEntityTypeSchema, eventSchema, formatSchema, keywordEntityTypeSchema, keywordFolksnomyEntityTypeSchema, keywordFolksnomySchema, keywordSchema, languageSchema, linkEntityTypeSchema, linkSchema, noteEntityTypeSchema, noteSchema, organizationEntityTypeSchema, organizationSchema, personEntityTypeSchema, personSchema, physicalThingEntityTypeSchema, physicalThingSchema, placeEntityTypeSchema, placeSchema, precisionSchema, rangeSelectorSchema, schemaContext, schemaId, selectorIdDescription, selectorRefinedByDescription, selectorSchema, softwareSchema, sourceSchema, targetSchema, textPositionSelectorExtendedSchema, textPositionSelectorSchema, textQuoteSelectorExtendedSchema, textQuoteSelectorSchema, index as v1, validate, validator, webAnnotationSchema, workEntityTypeSchema, workSchema, xpathSelectorExtendedSchema, xpathSelectorSchema };
4271
+ export { Body, BodyChoice, BodyEntityType, Certainty, Citation, CitationEntityType, ConceptualObject, ConceptualObjectEntityType, Correction, CorrectionEntityType, DATE_RANGE_PATTERN, Date, DateEntityType, type Definition, Event, EventEntityType, Format, IdentifiedBy, Keyword, KeywordEntityType, KeywordFolksnomy, KeywordFolksnomyEntityType, Language, Link, LinkEntityType, Motivation, Note, NoteEntityType, Organization, OrganizationEntityType, Person, PersonEntityType, PhysicalThing, PhysicalThingEntityType, Place, PlaceEntityType, Precision, Quality, RangeSelector, Selector, Software, Source, Status, Target, TextPositionSelector, TextPositionSelectorExtended, TextQuoteSelector, TextQuoteSelectorExtended, User, VERSION, ValidateResult, ValidationError, WebAnnotation, Work, WorkEntityType, XpathSelector, XpathSelectorExtended, ajv, bodyChoiceSchema, bodyEntityTypeSchema, bodyIdDescription, bodySchema, certaintySchema, citationEntityTypeSchema, citationSchema, conceptualObjectEntityTypeSchema, conceptualObjectSchema, contextUri, correctionEntityTypeSchema, correctionSchema, creatorSchema, dateEntityTypeSchema, dateSchema, definitionSchema, defsId, eventEntityTypeSchema, eventSchema, formatSchema, indentifyBySchema, keywordEntityTypeSchema, keywordFolksnomyEntityTypeSchema, keywordFolksnomySchema, keywordSchema, languageSchema, linkEntityTypeSchema, linkSchema, noteEntityTypeSchema, noteSchema, organizationEntityTypeSchema, organizationSchema, personEntityTypeSchema, personSchema, physicalThingEntityTypeSchema, physicalThingSchema, placeEntityTypeSchema, placeSchema, precisionSchema, rangeSelectorSchema, schemaContext, schemaId, selectorIdDescription, selectorRefinedByDescription, selectorSchema, softwareSchema, sourceSchema, targetSchema, textPositionSelectorExtendedSchema, textPositionSelectorSchema, textQuoteSelectorExtendedSchema, textQuoteSelectorSchema, index as v1, validate, validator, webAnnotationSchema, workEntityTypeSchema, workSchema, xpathSelectorExtendedSchema, xpathSelectorSchema };
package/dist/index.js CHANGED
@@ -45,6 +45,7 @@ __export(src_exports, {
45
45
  DateEntityType: () => DateEntityType,
46
46
  Event: () => Event,
47
47
  EventEntityType: () => EventEntityType,
48
+ IdentifiedBy: () => IdentifiedBy,
48
49
  Keyword: () => Keyword,
49
50
  KeywordEntityType: () => KeywordEntityType,
50
51
  KeywordFolksnomy: () => KeywordFolksnomy,
@@ -104,6 +105,7 @@ __export(src_exports, {
104
105
  eventEntityTypeSchema: () => eventEntityTypeSchema,
105
106
  eventSchema: () => eventSchema,
106
107
  formatSchema: () => formatSchema,
108
+ indentifyBySchema: () => indentifyBySchema,
107
109
  keywordEntityTypeSchema: () => keywordEntityTypeSchema,
108
110
  keywordFolksnomyEntityTypeSchema: () => keywordFolksnomyEntityTypeSchema,
109
111
  keywordFolksnomySchema: () => keywordFolksnomySchema,
@@ -164,12 +166,21 @@ var schemaContext = {
164
166
  wikidata: "http://www.wikidata.org/entity/",
165
167
  crm: "http://www.cidoc-crm.org/cidoc-crm/",
166
168
  crmdig: "http://www.ics.forth.gr/isl/CRMdig/",
169
+ additionalType: {
170
+ "@type": "@id",
171
+ "@id": "crm:P2_has_type"
172
+ },
167
173
  certainty: {
168
174
  "@type": "@id",
169
175
  "@id": "crm:P2_has_type"
170
176
  },
171
177
  contributor: "dcterms:contributor",
172
178
  description: "rdfs:comment",
179
+ entityType: {
180
+ "@type": "@id",
181
+ "@id": "rdf:type"
182
+ },
183
+ identifiedBy: "crm:P1_is_identified_by",
173
184
  precision: {
174
185
  "@type": "@id",
175
186
  "@id": "crm:P2_has_type"
@@ -179,14 +190,7 @@ var schemaContext = {
179
190
  "@type": "@id",
180
191
  "@id": "crm:P2_has_type"
181
192
  },
182
- entityType: {
183
- "@type": "@id",
184
- "@id": "rdf:type"
185
- },
186
- additionalType: {
187
- "@type": "@id",
188
- "@id": "crm:P2_has_type"
189
- },
193
+ title: "crm:P190_has_symbolic_content",
190
194
  approved: "edit:statusApproved",
191
195
  citing: "edit:citing",
192
196
  correcting: "edit:correcting",
@@ -1219,21 +1223,42 @@ var languageSchema = {
1219
1223
  maxLength: 3
1220
1224
  };
1221
1225
  var sourceIdDescription = "The IRI that identifies the Target source.";
1226
+ var IdentifiedBy = import_zod23.z.object({
1227
+ id: import_zod23.z.string().url(),
1228
+ type: import_zod23.z.literal("crm:E33_E41_Linguistic_Appellation"),
1229
+ title: import_zod23.z.string().min(1, { message: "The title cannot be empty" }).describe("The title of the document being annotated.")
1230
+ });
1222
1231
  var Source = import_zod23.z.object({
1223
1232
  id: import_zod23.z.string().url().describe(sourceIdDescription),
1233
+ type: import_zod23.z.literal("crm:D1_Digital_Object"),
1224
1234
  format: import_zod23.z.union([Format, import_zod23.z.array(Format).min(1)]).optional().describe(
1225
1235
  "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."
1226
1236
  ),
1237
+ identifiedBy: IdentifiedBy.optional(),
1227
1238
  language: import_zod23.z.union([Language, import_zod23.z.array(Language).min(1)]).optional().describe(
1228
1239
  "The languages of the Web Resource's content. The value of the property should be an array of language code following the [bcp47] specification."
1229
- ),
1230
- title: import_zod23.z.string().min(1, { message: "The title cannot be empty" }).optional().describe("The title of the document being annotated.")
1240
+ )
1231
1241
  }).describe("Web Annotation Target");
1242
+ var indentifyBySchema = {
1243
+ type: "object",
1244
+ description: "indentifyBy",
1245
+ properties: {
1246
+ id: { type: "string", format: "uri" },
1247
+ type: { type: "string", const: "crm:E33_E41_Linguistic_Appellation" },
1248
+ title: {
1249
+ type: "string",
1250
+ minLength: 1,
1251
+ description: "The title of the document being annotated."
1252
+ }
1253
+ },
1254
+ required: ["id", "type", "title"]
1255
+ };
1232
1256
  var sourceSchema = {
1233
1257
  type: "object",
1234
1258
  description: `Web Annotation Target's source`,
1235
1259
  properties: {
1236
1260
  id: { type: "string", format: "uri", description: sourceIdDescription },
1261
+ type: { type: "string", const: "crm:D1_Digital_Object" },
1237
1262
  format: {
1238
1263
  type: ["string", "array"],
1239
1264
  nullable: true,
@@ -1247,6 +1272,7 @@ var sourceSchema = {
1247
1272
  }
1248
1273
  ]
1249
1274
  },
1275
+ identifiedBy: { ...indentifyBySchema, nullable: true },
1250
1276
  language: {
1251
1277
  type: ["string", "array"],
1252
1278
  nullable: true,
@@ -1267,7 +1293,7 @@ var sourceSchema = {
1267
1293
  description: "The title of the document being annotated."
1268
1294
  }
1269
1295
  },
1270
- required: ["id"]
1296
+ required: ["id", "type"]
1271
1297
  };
1272
1298
 
1273
1299
  // src/v1/schema/definitions/target/index.ts
@@ -1860,6 +1886,7 @@ __export(v1_exports, {
1860
1886
  DateEntityType: () => DateEntityType,
1861
1887
  Event: () => Event,
1862
1888
  EventEntityType: () => EventEntityType,
1889
+ IdentifiedBy: () => IdentifiedBy,
1863
1890
  Keyword: () => Keyword,
1864
1891
  KeywordEntityType: () => KeywordEntityType,
1865
1892
  KeywordFolksnomy: () => KeywordFolksnomy,
@@ -1919,6 +1946,7 @@ __export(v1_exports, {
1919
1946
  eventEntityTypeSchema: () => eventEntityTypeSchema,
1920
1947
  eventSchema: () => eventSchema,
1921
1948
  formatSchema: () => formatSchema,
1949
+ indentifyBySchema: () => indentifyBySchema,
1922
1950
  keywordEntityTypeSchema: () => keywordEntityTypeSchema,
1923
1951
  keywordFolksnomyEntityTypeSchema: () => keywordFolksnomyEntityTypeSchema,
1924
1952
  keywordFolksnomySchema: () => keywordFolksnomySchema,
@@ -1975,6 +2003,7 @@ __export(v1_exports, {
1975
2003
  DateEntityType,
1976
2004
  Event,
1977
2005
  EventEntityType,
2006
+ IdentifiedBy,
1978
2007
  Keyword,
1979
2008
  KeywordEntityType,
1980
2009
  KeywordFolksnomy,
@@ -2034,6 +2063,7 @@ __export(v1_exports, {
2034
2063
  eventEntityTypeSchema,
2035
2064
  eventSchema,
2036
2065
  formatSchema,
2066
+ indentifyBySchema,
2037
2067
  keywordEntityTypeSchema,
2038
2068
  keywordFolksnomyEntityTypeSchema,
2039
2069
  keywordFolksnomySchema,
package/dist/index.mjs CHANGED
@@ -22,12 +22,21 @@ var schemaContext = {
22
22
  wikidata: "http://www.wikidata.org/entity/",
23
23
  crm: "http://www.cidoc-crm.org/cidoc-crm/",
24
24
  crmdig: "http://www.ics.forth.gr/isl/CRMdig/",
25
+ additionalType: {
26
+ "@type": "@id",
27
+ "@id": "crm:P2_has_type"
28
+ },
25
29
  certainty: {
26
30
  "@type": "@id",
27
31
  "@id": "crm:P2_has_type"
28
32
  },
29
33
  contributor: "dcterms:contributor",
30
34
  description: "rdfs:comment",
35
+ entityType: {
36
+ "@type": "@id",
37
+ "@id": "rdf:type"
38
+ },
39
+ identifiedBy: "crm:P1_is_identified_by",
31
40
  precision: {
32
41
  "@type": "@id",
33
42
  "@id": "crm:P2_has_type"
@@ -37,14 +46,7 @@ var schemaContext = {
37
46
  "@type": "@id",
38
47
  "@id": "crm:P2_has_type"
39
48
  },
40
- entityType: {
41
- "@type": "@id",
42
- "@id": "rdf:type"
43
- },
44
- additionalType: {
45
- "@type": "@id",
46
- "@id": "crm:P2_has_type"
47
- },
49
+ title: "crm:P190_has_symbolic_content",
48
50
  approved: "edit:statusApproved",
49
51
  citing: "edit:citing",
50
52
  correcting: "edit:correcting",
@@ -1077,21 +1079,42 @@ var languageSchema = {
1077
1079
  maxLength: 3
1078
1080
  };
1079
1081
  var sourceIdDescription = "The IRI that identifies the Target source.";
1082
+ var IdentifiedBy = z23.object({
1083
+ id: z23.string().url(),
1084
+ type: z23.literal("crm:E33_E41_Linguistic_Appellation"),
1085
+ title: z23.string().min(1, { message: "The title cannot be empty" }).describe("The title of the document being annotated.")
1086
+ });
1080
1087
  var Source = z23.object({
1081
1088
  id: z23.string().url().describe(sourceIdDescription),
1089
+ type: z23.literal("crm:D1_Digital_Object"),
1082
1090
  format: z23.union([Format, z23.array(Format).min(1)]).optional().describe(
1083
1091
  "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."
1084
1092
  ),
1093
+ identifiedBy: IdentifiedBy.optional(),
1085
1094
  language: z23.union([Language, z23.array(Language).min(1)]).optional().describe(
1086
1095
  "The languages of the Web Resource's content. The value of the property should be an array of language code following the [bcp47] specification."
1087
- ),
1088
- title: z23.string().min(1, { message: "The title cannot be empty" }).optional().describe("The title of the document being annotated.")
1096
+ )
1089
1097
  }).describe("Web Annotation Target");
1098
+ var indentifyBySchema = {
1099
+ type: "object",
1100
+ description: "indentifyBy",
1101
+ properties: {
1102
+ id: { type: "string", format: "uri" },
1103
+ type: { type: "string", const: "crm:E33_E41_Linguistic_Appellation" },
1104
+ title: {
1105
+ type: "string",
1106
+ minLength: 1,
1107
+ description: "The title of the document being annotated."
1108
+ }
1109
+ },
1110
+ required: ["id", "type", "title"]
1111
+ };
1090
1112
  var sourceSchema = {
1091
1113
  type: "object",
1092
1114
  description: `Web Annotation Target's source`,
1093
1115
  properties: {
1094
1116
  id: { type: "string", format: "uri", description: sourceIdDescription },
1117
+ type: { type: "string", const: "crm:D1_Digital_Object" },
1095
1118
  format: {
1096
1119
  type: ["string", "array"],
1097
1120
  nullable: true,
@@ -1105,6 +1128,7 @@ var sourceSchema = {
1105
1128
  }
1106
1129
  ]
1107
1130
  },
1131
+ identifiedBy: { ...indentifyBySchema, nullable: true },
1108
1132
  language: {
1109
1133
  type: ["string", "array"],
1110
1134
  nullable: true,
@@ -1125,7 +1149,7 @@ var sourceSchema = {
1125
1149
  description: "The title of the document being annotated."
1126
1150
  }
1127
1151
  },
1128
- required: ["id"]
1152
+ required: ["id", "type"]
1129
1153
  };
1130
1154
 
1131
1155
  // src/v1/schema/definitions/target/index.ts
@@ -1718,6 +1742,7 @@ __export(v1_exports, {
1718
1742
  DateEntityType: () => DateEntityType,
1719
1743
  Event: () => Event,
1720
1744
  EventEntityType: () => EventEntityType,
1745
+ IdentifiedBy: () => IdentifiedBy,
1721
1746
  Keyword: () => Keyword,
1722
1747
  KeywordEntityType: () => KeywordEntityType,
1723
1748
  KeywordFolksnomy: () => KeywordFolksnomy,
@@ -1777,6 +1802,7 @@ __export(v1_exports, {
1777
1802
  eventEntityTypeSchema: () => eventEntityTypeSchema,
1778
1803
  eventSchema: () => eventSchema,
1779
1804
  formatSchema: () => formatSchema,
1805
+ indentifyBySchema: () => indentifyBySchema,
1780
1806
  keywordEntityTypeSchema: () => keywordEntityTypeSchema,
1781
1807
  keywordFolksnomyEntityTypeSchema: () => keywordFolksnomyEntityTypeSchema,
1782
1808
  keywordFolksnomySchema: () => keywordFolksnomySchema,
@@ -1832,6 +1858,7 @@ export {
1832
1858
  DateEntityType,
1833
1859
  Event,
1834
1860
  EventEntityType,
1861
+ IdentifiedBy,
1835
1862
  Keyword,
1836
1863
  KeywordEntityType,
1837
1864
  KeywordFolksnomy,
@@ -1891,6 +1918,7 @@ export {
1891
1918
  eventEntityTypeSchema,
1892
1919
  eventSchema,
1893
1920
  formatSchema,
1921
+ indentifyBySchema,
1894
1922
  keywordEntityTypeSchema,
1895
1923
  keywordFolksnomyEntityTypeSchema,
1896
1924
  keywordFolksnomySchema,
@@ -9,12 +9,21 @@
9
9
  "wikidata": "http://www.wikidata.org/entity/",
10
10
  "crm": "http://www.cidoc-crm.org/cidoc-crm/",
11
11
  "crmdig": "http://www.ics.forth.gr/isl/CRMdig/",
12
+ "additionalType": {
13
+ "@type": "@id",
14
+ "@id": "crm:P2_has_type"
15
+ },
12
16
  "certainty": {
13
17
  "@type": "@id",
14
18
  "@id": "crm:P2_has_type"
15
19
  },
16
20
  "contributor": "dcterms:contributor",
17
21
  "description": "rdfs:comment",
22
+ "entityType": {
23
+ "@type": "@id",
24
+ "@id": "rdf:type"
25
+ },
26
+ "identifiedBy": "crm:P1_is_identified_by",
18
27
  "precision": {
19
28
  "@type": "@id",
20
29
  "@id": "crm:P2_has_type"
@@ -24,14 +33,7 @@
24
33
  "@type": "@id",
25
34
  "@id": "crm:P2_has_type"
26
35
  },
27
- "entityType": {
28
- "@type": "@id",
29
- "@id": "rdf:type"
30
- },
31
- "additionalType": {
32
- "@type": "@id",
33
- "@id": "crm:P2_has_type"
34
- },
36
+ "title": "crm:P190_has_symbolic_content",
35
37
  "approved": "edit:statusApproved",
36
38
  "citing": "edit:citing",
37
39
  "correcting": "edit:correcting",