@lincs.project/webannotation-schema 1.2.0 → 1.2.2
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 +1550 -183
- package/dist/index.d.ts +1550 -183
- package/dist/index.js +803 -286
- package/dist/index.mjs +673 -243
- package/dist/v1/jsonld/defs.jsonld +309 -6
- package/dist/v1/jsonld/schema.jsonld +20 -6
- package/dist/v1/standalone/linc-wa-validator.js +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2865,7 +2865,7 @@ var softwareSchema = {
|
|
|
2865
2865
|
};
|
|
2866
2866
|
|
|
2867
2867
|
// src/v1/schema/definitions/body/index.ts
|
|
2868
|
-
import { z as
|
|
2868
|
+
import { z as z17 } from "zod";
|
|
2869
2869
|
|
|
2870
2870
|
// src/v1/schema/definitions/body/citation.ts
|
|
2871
2871
|
import { z as z3 } from "zod";
|
|
@@ -2927,6 +2927,18 @@ var citationEntityTypeSchema = {
|
|
|
2927
2927
|
{ type: "string", const: "crm:E73_Information_Object" }
|
|
2928
2928
|
]
|
|
2929
2929
|
};
|
|
2930
|
+
var citationSchema = {
|
|
2931
|
+
type: "object",
|
|
2932
|
+
description: "A citation entity",
|
|
2933
|
+
properties: {
|
|
2934
|
+
id: { type: "string", format: "uri", description: bodyIdDescription },
|
|
2935
|
+
entityType: citationEntityTypeSchema,
|
|
2936
|
+
certainty: { $ref: "defs.jsonld#/definitions/certainty" },
|
|
2937
|
+
label: { $ref: "defs.jsonld#/definitions/label" },
|
|
2938
|
+
description: { $ref: "defs.jsonld#/definitions/description" }
|
|
2939
|
+
},
|
|
2940
|
+
required: ["id", "entityType"]
|
|
2941
|
+
};
|
|
2930
2942
|
|
|
2931
2943
|
// src/v1/schema/definitions/body/conceptualObject.ts
|
|
2932
2944
|
import { z as z4 } from "zod";
|
|
@@ -2958,6 +2970,18 @@ var conceptualObjectEntityTypeSchema = {
|
|
|
2958
2970
|
}
|
|
2959
2971
|
]
|
|
2960
2972
|
};
|
|
2973
|
+
var conceptualObjectSchema = {
|
|
2974
|
+
type: "object",
|
|
2975
|
+
description: "A conceptual object entity",
|
|
2976
|
+
properties: {
|
|
2977
|
+
id: { type: "string", format: "uri", description: bodyIdDescription },
|
|
2978
|
+
entityType: conceptualObjectEntityTypeSchema,
|
|
2979
|
+
certainty: { $ref: "defs.jsonld#/definitions/certainty" },
|
|
2980
|
+
label: { $ref: "defs.jsonld#/definitions/label" },
|
|
2981
|
+
description: { $ref: "defs.jsonld#/definitions/description" }
|
|
2982
|
+
},
|
|
2983
|
+
required: ["id", "entityType"]
|
|
2984
|
+
};
|
|
2961
2985
|
|
|
2962
2986
|
// src/v1/schema/definitions/body/correction.ts
|
|
2963
2987
|
import { z as z5 } from "zod";
|
|
@@ -2980,9 +3004,26 @@ var correctionEntityTypeSchema = {
|
|
|
2980
3004
|
{ type: "string", const: "crm:E33_Linguistic_Object" }
|
|
2981
3005
|
]
|
|
2982
3006
|
};
|
|
3007
|
+
var correctionSchema = {
|
|
3008
|
+
type: "object",
|
|
3009
|
+
description: "A correction entity",
|
|
3010
|
+
properties: {
|
|
3011
|
+
id: { type: "string", format: "uri", description: bodyIdDescription },
|
|
3012
|
+
type: { type: "string", const: "TextualBody" },
|
|
3013
|
+
entityType: correctionEntityTypeSchema,
|
|
3014
|
+
value: { type: "string" }
|
|
3015
|
+
},
|
|
3016
|
+
required: ["id", "type", "entityType", "value"]
|
|
3017
|
+
// errorMessage: {
|
|
3018
|
+
// properties: {
|
|
3019
|
+
// type: 'must be exacty "TextualBody"',
|
|
3020
|
+
// },
|
|
3021
|
+
// },
|
|
3022
|
+
};
|
|
2983
3023
|
|
|
2984
3024
|
// src/v1/schema/definitions/body/date.ts
|
|
2985
3025
|
import { z as z6 } from "zod";
|
|
3026
|
+
var DATE_RANGE_PATTERN = "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$";
|
|
2986
3027
|
var DateEntityType = z6.tuple([z6.literal("xsd:date"), z6.literal("crm:E52_Time-Span")]);
|
|
2987
3028
|
var Date2 = z6.object({
|
|
2988
3029
|
id: z6.string().url().describe(bodyIdDescription),
|
|
@@ -3001,12 +3042,33 @@ var dateEntityTypeSchema = {
|
|
|
3001
3042
|
{ type: "string", const: "crm:E52_Time-Span" }
|
|
3002
3043
|
]
|
|
3003
3044
|
};
|
|
3045
|
+
var dateSchema = {
|
|
3046
|
+
type: "object",
|
|
3047
|
+
description: "A date entity",
|
|
3048
|
+
properties: {
|
|
3049
|
+
id: { type: "string", format: "uri", description: bodyIdDescription },
|
|
3050
|
+
type: { type: "string", const: "TextualBody" },
|
|
3051
|
+
entityType: dateEntityTypeSchema,
|
|
3052
|
+
value: { type: "string", pattern: DATE_RANGE_PATTERN },
|
|
3053
|
+
certainty: { type: "string", $ref: "defs.jsonld#/definitions/certainty" },
|
|
3054
|
+
precision: { type: "string", $ref: "defs.jsonld#/definitions/precision" }
|
|
3055
|
+
},
|
|
3056
|
+
required: ["id", "type", "entityType", "value"]
|
|
3057
|
+
// errorMessage: {
|
|
3058
|
+
// properties: {
|
|
3059
|
+
// type: 'must be exacty "TextualBody"',
|
|
3060
|
+
// },
|
|
3061
|
+
// },
|
|
3062
|
+
};
|
|
3004
3063
|
|
|
3005
3064
|
// src/v1/schema/definitions/body/event.ts
|
|
3006
3065
|
import { z as z7 } from "zod";
|
|
3007
|
-
var EventEntityType = z7.
|
|
3008
|
-
z7.literal("
|
|
3009
|
-
z7.
|
|
3066
|
+
var EventEntityType = z7.tuple([
|
|
3067
|
+
z7.literal("YET TO BE DEFINED EVENT CLASS"),
|
|
3068
|
+
z7.union([
|
|
3069
|
+
z7.literal("crm:E5_Event").describe("Real Event"),
|
|
3070
|
+
z7.literal("crm:E89_Propositional_Object").describe("Fictional Event")
|
|
3071
|
+
])
|
|
3010
3072
|
]);
|
|
3011
3073
|
var Event = z7.object({
|
|
3012
3074
|
id: z7.string().url().describe(bodyIdDescription),
|
|
@@ -3014,17 +3076,33 @@ var Event = z7.object({
|
|
|
3014
3076
|
certainty: Certainty.optional(),
|
|
3015
3077
|
label: Label.optional(),
|
|
3016
3078
|
description: Description.optional()
|
|
3017
|
-
}).describe("
|
|
3079
|
+
}).describe("Event");
|
|
3018
3080
|
var eventEntityTypeSchema = {
|
|
3019
|
-
|
|
3020
|
-
|
|
3081
|
+
type: "array",
|
|
3082
|
+
minItems: 2,
|
|
3083
|
+
maxItems: 2,
|
|
3084
|
+
items: [
|
|
3085
|
+
{ type: "string", const: "YET TO BE DEFINED EVENT CLASS" },
|
|
3021
3086
|
{
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3087
|
+
oneOf: [
|
|
3088
|
+
{ type: "string", const: "crm:E5_Event", description: "Real Event" },
|
|
3089
|
+
{ type: "string", const: "crm:E89_Propositional_Object", description: "Fictional Event" }
|
|
3090
|
+
]
|
|
3025
3091
|
}
|
|
3026
3092
|
]
|
|
3027
3093
|
};
|
|
3094
|
+
var eventSchema = {
|
|
3095
|
+
type: "object",
|
|
3096
|
+
description: "An event entity",
|
|
3097
|
+
properties: {
|
|
3098
|
+
id: { type: "string", format: "uri", description: bodyIdDescription },
|
|
3099
|
+
entityType: eventEntityTypeSchema,
|
|
3100
|
+
certainty: { $ref: "defs.jsonld#/definitions/certainty" },
|
|
3101
|
+
label: { $ref: "defs.jsonld#/definitions/label" },
|
|
3102
|
+
description: { $ref: "defs.jsonld#/definitions/description" }
|
|
3103
|
+
},
|
|
3104
|
+
required: ["id", "entityType"]
|
|
3105
|
+
};
|
|
3028
3106
|
|
|
3029
3107
|
// src/v1/schema/definitions/body/keyword.ts
|
|
3030
3108
|
import { z as z8 } from "zod";
|
|
@@ -3048,6 +3126,18 @@ var keywordEntityTypeSchema = {
|
|
|
3048
3126
|
{ type: "string", const: "crmdig:D1_Digital_Object" }
|
|
3049
3127
|
]
|
|
3050
3128
|
};
|
|
3129
|
+
var keywordSchema = {
|
|
3130
|
+
type: "object",
|
|
3131
|
+
description: "A keyword entity",
|
|
3132
|
+
properties: {
|
|
3133
|
+
id: { type: "string", format: "uri", description: bodyIdDescription },
|
|
3134
|
+
entityType: keywordEntityTypeSchema,
|
|
3135
|
+
certainty: { $ref: "defs.jsonld#/definitions/certainty" },
|
|
3136
|
+
label: { $ref: "defs.jsonld#/definitions/label" },
|
|
3137
|
+
description: { $ref: "defs.jsonld#/definitions/description" }
|
|
3138
|
+
},
|
|
3139
|
+
required: ["id", "entityType"]
|
|
3140
|
+
};
|
|
3051
3141
|
var KeywordFolksnomyEntityType = z8.tuple([
|
|
3052
3142
|
z8.literal("crm:E55_Type"),
|
|
3053
3143
|
z8.literal("crm:E33_Linguistic_Object")
|
|
@@ -3067,6 +3157,22 @@ var keywordFolksnomyEntityTypeSchema = {
|
|
|
3067
3157
|
{ type: "string", const: "crm:E33_Linguistic_Object" }
|
|
3068
3158
|
]
|
|
3069
3159
|
};
|
|
3160
|
+
var keywordFolksnomySchema = {
|
|
3161
|
+
type: "object",
|
|
3162
|
+
description: "A keyword entity",
|
|
3163
|
+
properties: {
|
|
3164
|
+
id: { type: "string", format: "uri", description: bodyIdDescription },
|
|
3165
|
+
type: { type: "string", const: "TextualBody" },
|
|
3166
|
+
entityType: keywordFolksnomyEntityTypeSchema,
|
|
3167
|
+
value: { type: "string" }
|
|
3168
|
+
},
|
|
3169
|
+
required: ["id", "type", "entityType", "value"]
|
|
3170
|
+
// errorMessage: {
|
|
3171
|
+
// properties: {
|
|
3172
|
+
// type: 'must be exacty "TextualBody"',
|
|
3173
|
+
// },
|
|
3174
|
+
// },
|
|
3175
|
+
};
|
|
3070
3176
|
|
|
3071
3177
|
// src/v1/schema/definitions/body/link.ts
|
|
3072
3178
|
import { z as z9 } from "zod";
|
|
@@ -3081,6 +3187,16 @@ var linkEntityTypeSchema = {
|
|
|
3081
3187
|
type: "string",
|
|
3082
3188
|
const: "crmdig:D1_Digital_Object"
|
|
3083
3189
|
};
|
|
3190
|
+
var linkSchema = {
|
|
3191
|
+
type: "object",
|
|
3192
|
+
description: "A link entity",
|
|
3193
|
+
properties: {
|
|
3194
|
+
id: { type: "string", format: "uri", description: idDescription },
|
|
3195
|
+
entityType: linkEntityTypeSchema,
|
|
3196
|
+
certainty: { $ref: "defs.jsonld#/definitions/certainty" }
|
|
3197
|
+
},
|
|
3198
|
+
required: ["id", "entityType"]
|
|
3199
|
+
};
|
|
3084
3200
|
|
|
3085
3201
|
// src/v1/schema/definitions/body/note.ts
|
|
3086
3202
|
import { z as z10 } from "zod";
|
|
@@ -3096,6 +3212,25 @@ var noteEntityTypeSchema = {
|
|
|
3096
3212
|
type: "string",
|
|
3097
3213
|
const: "crm:E33_Linguistic_Object"
|
|
3098
3214
|
};
|
|
3215
|
+
var noteSchema = {
|
|
3216
|
+
type: "object",
|
|
3217
|
+
description: "A note entity",
|
|
3218
|
+
properties: {
|
|
3219
|
+
id: { type: "string", format: "uri", description: bodyIdDescription },
|
|
3220
|
+
type: { type: "string", const: "TextualBody" },
|
|
3221
|
+
entityType: noteEntityTypeSchema,
|
|
3222
|
+
additionalType: {
|
|
3223
|
+
oneOf: [{ type: "string" }, { type: "array", items: { type: "string" } }]
|
|
3224
|
+
},
|
|
3225
|
+
value: { type: "string" }
|
|
3226
|
+
},
|
|
3227
|
+
required: ["id", "type", "entityType", "value"]
|
|
3228
|
+
// errorMessage: {
|
|
3229
|
+
// properties: {
|
|
3230
|
+
// type: 'must be exacty "TextualBody"',
|
|
3231
|
+
// },
|
|
3232
|
+
// },
|
|
3233
|
+
};
|
|
3099
3234
|
|
|
3100
3235
|
// src/v1/schema/definitions/body/organization.ts
|
|
3101
3236
|
import { z as z11 } from "zod";
|
|
@@ -3131,6 +3266,18 @@ var organizationEntityTypeSchema = {
|
|
|
3131
3266
|
}
|
|
3132
3267
|
]
|
|
3133
3268
|
};
|
|
3269
|
+
var organizationSchema = {
|
|
3270
|
+
type: "object",
|
|
3271
|
+
description: "A organization entity",
|
|
3272
|
+
properties: {
|
|
3273
|
+
id: { type: "string", format: "uri", description: bodyIdDescription },
|
|
3274
|
+
entityType: organizationEntityTypeSchema,
|
|
3275
|
+
certainty: { $ref: "defs.jsonld#/definitions/certainty" },
|
|
3276
|
+
label: { $ref: "defs.jsonld#/definitions/label" },
|
|
3277
|
+
description: { $ref: "defs.jsonld#/definitions/description" }
|
|
3278
|
+
},
|
|
3279
|
+
required: ["id", "entityType"]
|
|
3280
|
+
};
|
|
3134
3281
|
|
|
3135
3282
|
// src/v1/schema/definitions/body/person.ts
|
|
3136
3283
|
import { z as z12 } from "zod";
|
|
@@ -3205,6 +3352,18 @@ var physicalThingEntityTypeSchema = {
|
|
|
3205
3352
|
}
|
|
3206
3353
|
]
|
|
3207
3354
|
};
|
|
3355
|
+
var physicalThingSchema = {
|
|
3356
|
+
type: "object",
|
|
3357
|
+
description: "A physical thing entity",
|
|
3358
|
+
properties: {
|
|
3359
|
+
id: { type: "string", format: "uri", description: bodyIdDescription },
|
|
3360
|
+
entityType: physicalThingEntityTypeSchema,
|
|
3361
|
+
certainty: { $ref: "defs.jsonld#/definitions/certainty" },
|
|
3362
|
+
label: { $ref: "defs.jsonld#/definitions/label" },
|
|
3363
|
+
description: { $ref: "defs.jsonld#/definitions/description" }
|
|
3364
|
+
},
|
|
3365
|
+
required: ["id", "entityType"]
|
|
3366
|
+
};
|
|
3208
3367
|
|
|
3209
3368
|
// src/v1/schema/definitions/body/place.ts
|
|
3210
3369
|
import { z as z14 } from "zod";
|
|
@@ -3237,6 +3396,19 @@ var placeEntityTypeSchema = {
|
|
|
3237
3396
|
}
|
|
3238
3397
|
]
|
|
3239
3398
|
};
|
|
3399
|
+
var placeSchema = {
|
|
3400
|
+
type: "object",
|
|
3401
|
+
description: "A place entity",
|
|
3402
|
+
properties: {
|
|
3403
|
+
id: { type: "string", format: "uri", description: bodyIdDescription },
|
|
3404
|
+
entityType: placeEntityTypeSchema,
|
|
3405
|
+
certainty: { $ref: "defs.jsonld#/definitions/certainty" },
|
|
3406
|
+
precision: { $ref: "defs.jsonld#/definitions/precision" },
|
|
3407
|
+
label: { $ref: "defs.jsonld#/definitions/label" },
|
|
3408
|
+
description: { $ref: "defs.jsonld#/definitions/description" }
|
|
3409
|
+
},
|
|
3410
|
+
required: ["id", "entityType"]
|
|
3411
|
+
};
|
|
3240
3412
|
|
|
3241
3413
|
// src/v1/schema/definitions/body/work.ts
|
|
3242
3414
|
import { z as z15 } from "zod";
|
|
@@ -3268,42 +3440,35 @@ var workEntityTypeSchema = {
|
|
|
3268
3440
|
}
|
|
3269
3441
|
]
|
|
3270
3442
|
};
|
|
3443
|
+
var workSchema = {
|
|
3444
|
+
type: "object",
|
|
3445
|
+
description: "A work entity",
|
|
3446
|
+
properties: {
|
|
3447
|
+
id: { type: "string", format: "uri", description: bodyIdDescription },
|
|
3448
|
+
entityType: workEntityTypeSchema,
|
|
3449
|
+
certainty: { $ref: "defs.jsonld#/definitions/certainty" },
|
|
3450
|
+
label: { $ref: "defs.jsonld#/definitions/label" },
|
|
3451
|
+
description: { $ref: "defs.jsonld#/definitions/description" }
|
|
3452
|
+
},
|
|
3453
|
+
required: ["id", "entityType"]
|
|
3454
|
+
};
|
|
3271
3455
|
|
|
3272
|
-
// src/v1/schema/definitions/body/
|
|
3273
|
-
|
|
3274
|
-
var
|
|
3275
|
-
var
|
|
3276
|
-
id: z16.string().url().describe(
|
|
3277
|
-
type: z16.literal("
|
|
3278
|
-
entityType:
|
|
3279
|
-
PersonEntityType,
|
|
3280
|
-
PlaceEntityType,
|
|
3281
|
-
OrganizationEntityType,
|
|
3282
|
-
WorkEntityType,
|
|
3283
|
-
PhysicalThingEntityType,
|
|
3284
|
-
ConceptualObjectEntityType,
|
|
3285
|
-
CitationEntityType,
|
|
3286
|
-
DateEntityType,
|
|
3287
|
-
NoteEntityType,
|
|
3288
|
-
CorrectionEntityType,
|
|
3289
|
-
KeywordEntityType,
|
|
3290
|
-
KeywordFolksnomyEntityType,
|
|
3291
|
-
LinkEntityType,
|
|
3292
|
-
EventEntityType
|
|
3293
|
-
]),
|
|
3294
|
-
additionalType: z16.union([z16.string(), z16.string().array()]).optional().describe("Extra types that refines the body"),
|
|
3295
|
-
value: z16.string().describe("The value of the body").optional(),
|
|
3296
|
-
certainty: Certainty.optional(),
|
|
3297
|
-
precision: Precision.optional(),
|
|
3456
|
+
// src/v1/schema/definitions/body/choice.ts
|
|
3457
|
+
import { z as z16 } from "zod";
|
|
3458
|
+
var bodyIdDescription2 = "The IRI that identifies the Body resource.";
|
|
3459
|
+
var BodyChoice = z16.object({
|
|
3460
|
+
id: z16.string().url().describe(bodyIdDescription2),
|
|
3461
|
+
type: z16.literal("Choice"),
|
|
3462
|
+
entityType: BodyEntityType,
|
|
3298
3463
|
label: Label.optional(),
|
|
3299
|
-
|
|
3300
|
-
})
|
|
3301
|
-
var
|
|
3464
|
+
items: z16.array(Body)
|
|
3465
|
+
});
|
|
3466
|
+
var bodyChoiceSchema = {
|
|
3302
3467
|
type: "object",
|
|
3303
3468
|
description: "Web Annotation Body",
|
|
3304
3469
|
properties: {
|
|
3305
|
-
id: { type: "string", format: "uri", description:
|
|
3306
|
-
type: { type: "string", const: "
|
|
3470
|
+
id: { type: "string", format: "uri", description: bodyIdDescription2 },
|
|
3471
|
+
type: { type: "string", const: "Choice" },
|
|
3307
3472
|
entityType: {
|
|
3308
3473
|
oneOf: [
|
|
3309
3474
|
personEntityTypeSchema,
|
|
@@ -3322,6 +3487,72 @@ var bodySchema = {
|
|
|
3322
3487
|
eventEntityTypeSchema
|
|
3323
3488
|
]
|
|
3324
3489
|
},
|
|
3490
|
+
label: labelSchema,
|
|
3491
|
+
items: {
|
|
3492
|
+
type: "array",
|
|
3493
|
+
// items: bodySchema,
|
|
3494
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment
|
|
3495
|
+
items: { $ref: "defs.jsonld#/definitions/body" }
|
|
3496
|
+
}
|
|
3497
|
+
},
|
|
3498
|
+
required: ["id", "type", "entityType", "items"],
|
|
3499
|
+
additionalProperties: false
|
|
3500
|
+
};
|
|
3501
|
+
|
|
3502
|
+
// src/v1/schema/definitions/body/index.ts
|
|
3503
|
+
var bodyIdDescription = "The IRI that identifies the Body resource.";
|
|
3504
|
+
var BodyEntityType = z17.union([
|
|
3505
|
+
PersonEntityType,
|
|
3506
|
+
PlaceEntityType,
|
|
3507
|
+
OrganizationEntityType,
|
|
3508
|
+
WorkEntityType,
|
|
3509
|
+
PhysicalThingEntityType,
|
|
3510
|
+
ConceptualObjectEntityType,
|
|
3511
|
+
CitationEntityType,
|
|
3512
|
+
DateEntityType,
|
|
3513
|
+
NoteEntityType,
|
|
3514
|
+
CorrectionEntityType,
|
|
3515
|
+
KeywordEntityType,
|
|
3516
|
+
KeywordFolksnomyEntityType,
|
|
3517
|
+
LinkEntityType,
|
|
3518
|
+
EventEntityType
|
|
3519
|
+
]);
|
|
3520
|
+
var bodyEntityTypeSchema = {
|
|
3521
|
+
oneOf: [
|
|
3522
|
+
personEntityTypeSchema,
|
|
3523
|
+
placeEntityTypeSchema,
|
|
3524
|
+
organizationEntityTypeSchema,
|
|
3525
|
+
workEntityTypeSchema,
|
|
3526
|
+
physicalThingEntityTypeSchema,
|
|
3527
|
+
conceptualObjectEntityTypeSchema,
|
|
3528
|
+
citationEntityTypeSchema,
|
|
3529
|
+
dateEntityTypeSchema,
|
|
3530
|
+
noteEntityTypeSchema,
|
|
3531
|
+
correctionEntityTypeSchema,
|
|
3532
|
+
keywordEntityTypeSchema,
|
|
3533
|
+
keywordFolksnomyEntityTypeSchema,
|
|
3534
|
+
linkEntityTypeSchema,
|
|
3535
|
+
eventEntityTypeSchema
|
|
3536
|
+
]
|
|
3537
|
+
};
|
|
3538
|
+
var Body = z17.object({
|
|
3539
|
+
id: z17.string().url().describe(bodyIdDescription),
|
|
3540
|
+
type: z17.literal("TextualBody").optional(),
|
|
3541
|
+
entityType: BodyEntityType,
|
|
3542
|
+
additionalType: z17.union([z17.string(), z17.string().array()]).nullable().describe("Extra types that refines the body"),
|
|
3543
|
+
value: z17.string().describe("The value of the body").optional(),
|
|
3544
|
+
certainty: Certainty.optional(),
|
|
3545
|
+
precision: Precision.optional(),
|
|
3546
|
+
label: Label.optional(),
|
|
3547
|
+
description: Description.optional()
|
|
3548
|
+
}).describe("Web Annotation Body");
|
|
3549
|
+
var bodySchema = {
|
|
3550
|
+
type: "object",
|
|
3551
|
+
description: "Web Annotation Body",
|
|
3552
|
+
properties: {
|
|
3553
|
+
id: { type: "string", format: "uri", description: bodyIdDescription },
|
|
3554
|
+
type: { type: "string", const: "TextualBody" },
|
|
3555
|
+
entityType: bodyEntityTypeSchema,
|
|
3325
3556
|
additionalType: {
|
|
3326
3557
|
anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }]
|
|
3327
3558
|
},
|
|
@@ -3405,29 +3636,29 @@ var bodySchema = {
|
|
|
3405
3636
|
};
|
|
3406
3637
|
|
|
3407
3638
|
// src/v1/schema/definitions/target/index.ts
|
|
3408
|
-
import { z as
|
|
3639
|
+
import { z as z24 } from "zod";
|
|
3409
3640
|
|
|
3410
3641
|
// src/v1/schema/definitions/target/selector/index.ts
|
|
3411
|
-
import { z as
|
|
3642
|
+
import { z as z22 } from "zod";
|
|
3412
3643
|
|
|
3413
3644
|
// src/v1/schema/definitions/target/selector/range.ts
|
|
3414
|
-
import { z as
|
|
3645
|
+
import { z as z21 } from "zod";
|
|
3415
3646
|
|
|
3416
3647
|
// src/v1/schema/definitions/target/selector/xpath.ts
|
|
3417
|
-
import { z as
|
|
3648
|
+
import { z as z20 } from "zod";
|
|
3418
3649
|
|
|
3419
3650
|
// src/v1/schema/definitions/target/selector/textPosition.ts
|
|
3420
|
-
import { z as
|
|
3421
|
-
var TextPositionSelector =
|
|
3422
|
-
id:
|
|
3423
|
-
type:
|
|
3424
|
-
start:
|
|
3425
|
-
end:
|
|
3651
|
+
import { z as z18 } from "zod";
|
|
3652
|
+
var TextPositionSelector = z18.object({
|
|
3653
|
+
id: z18.string().url().describe(selectorIdDescription),
|
|
3654
|
+
type: z18.tuple([z18.literal("TextPositionSelector"), z18.literal("crm:E73_Information_Object")]),
|
|
3655
|
+
start: z18.number().min(0).describe("The starting position of the segment. The first byte is character position 0."),
|
|
3656
|
+
end: z18.number().describe(
|
|
3426
3657
|
"The end position of the segment. The last character is not included within the segment."
|
|
3427
3658
|
)
|
|
3428
3659
|
}).describe("TextPosition Selector");
|
|
3429
3660
|
var TextPositionSelectorExtended = TextPositionSelector.extend({
|
|
3430
|
-
refinedBy:
|
|
3661
|
+
refinedBy: z18.union([z18.lazy(() => TextPositionSelector), z18.lazy(() => TextQuoteSelector)]).optional().describe(selectorRefinedByDescription)
|
|
3431
3662
|
});
|
|
3432
3663
|
var textPositionSelectorSchema = {
|
|
3433
3664
|
type: "object",
|
|
@@ -3477,20 +3708,20 @@ var textPositionSelectorExtendedSchema = {
|
|
|
3477
3708
|
};
|
|
3478
3709
|
|
|
3479
3710
|
// src/v1/schema/definitions/target/selector/textQuote.ts
|
|
3480
|
-
import { z as
|
|
3481
|
-
var TextQuoteSelector =
|
|
3482
|
-
id:
|
|
3483
|
-
type:
|
|
3484
|
-
exact:
|
|
3485
|
-
prefix:
|
|
3711
|
+
import { z as z19 } from "zod";
|
|
3712
|
+
var TextQuoteSelector = z19.object({
|
|
3713
|
+
id: z19.string().url().describe(selectorIdDescription),
|
|
3714
|
+
type: z19.tuple([z19.literal("TextQuoteSelector"), z19.literal("crm:E33_Linguistic_Object")]),
|
|
3715
|
+
exact: z19.string().describe("A copy of the text which is being selected, after normalization."),
|
|
3716
|
+
prefix: z19.string().describe(
|
|
3486
3717
|
"The snippet of text that occurs immediately before the text which is being selected."
|
|
3487
3718
|
),
|
|
3488
|
-
suffix:
|
|
3719
|
+
suffix: z19.string().describe(
|
|
3489
3720
|
"The snippet of text that occurs immediately after the text which is being selected."
|
|
3490
3721
|
)
|
|
3491
3722
|
}).describe("Quote Selector");
|
|
3492
3723
|
var TextQuoteSelectorExtended = TextQuoteSelector.extend({
|
|
3493
|
-
refinedBy:
|
|
3724
|
+
refinedBy: z19.union([z19.lazy(() => TextPositionSelector), z19.lazy(() => TextQuoteSelector)]).optional().describe(selectorRefinedByDescription)
|
|
3494
3725
|
});
|
|
3495
3726
|
var textQuoteSelectorSchema = {
|
|
3496
3727
|
type: "object",
|
|
@@ -3542,13 +3773,13 @@ var textQuoteSelectorExtendedSchema = {
|
|
|
3542
3773
|
};
|
|
3543
3774
|
|
|
3544
3775
|
// src/v1/schema/definitions/target/selector/xpath.ts
|
|
3545
|
-
var XpathSelector =
|
|
3546
|
-
id:
|
|
3547
|
-
type:
|
|
3548
|
-
value:
|
|
3776
|
+
var XpathSelector = z20.object({
|
|
3777
|
+
id: z20.string().describe(selectorIdDescription),
|
|
3778
|
+
type: z20.tuple([z20.literal("XPathSelector"), z20.literal("crm:E73_Information_Object")]),
|
|
3779
|
+
value: z20.string().min(1).describe("The xpath to the selected segment.")
|
|
3549
3780
|
}).describe("Xpath Selector");
|
|
3550
3781
|
var XpathSelectorExtended = XpathSelector.extend({
|
|
3551
|
-
refinedBy:
|
|
3782
|
+
refinedBy: z20.union([TextPositionSelector, TextQuoteSelector]).optional().describe(selectorRefinedByDescription)
|
|
3552
3783
|
});
|
|
3553
3784
|
var xpathSelectorSchema = {
|
|
3554
3785
|
type: "object",
|
|
@@ -3592,9 +3823,9 @@ var xpathSelectorExtendedSchema = {
|
|
|
3592
3823
|
};
|
|
3593
3824
|
|
|
3594
3825
|
// src/v1/schema/definitions/target/selector/range.ts
|
|
3595
|
-
var RangeSelector =
|
|
3596
|
-
id:
|
|
3597
|
-
type:
|
|
3826
|
+
var RangeSelector = z21.object({
|
|
3827
|
+
id: z21.string().url().describe(selectorIdDescription),
|
|
3828
|
+
type: z21.tuple([z21.literal("RangeSelector"), z21.literal("crm:E73_Information_Object")]),
|
|
3598
3829
|
startSelector: XpathSelector,
|
|
3599
3830
|
endSelector: XpathSelector
|
|
3600
3831
|
}).describe("Range Selector");
|
|
@@ -3622,7 +3853,7 @@ var rangeSelectorSchema = {
|
|
|
3622
3853
|
// src/v1/schema/definitions/target/selector/index.ts
|
|
3623
3854
|
var selectorIdDescription = "UUID that identifies the selector.";
|
|
3624
3855
|
var selectorRefinedByDescription = "The relationship between a broader selector and the more specific selector that should be applied to the results of the first.";
|
|
3625
|
-
var Selector =
|
|
3856
|
+
var Selector = z22.union([
|
|
3626
3857
|
TextQuoteSelectorExtended,
|
|
3627
3858
|
TextPositionSelectorExtended,
|
|
3628
3859
|
XpathSelectorExtended,
|
|
@@ -3640,16 +3871,16 @@ var selectorSchema = {
|
|
|
3640
3871
|
};
|
|
3641
3872
|
|
|
3642
3873
|
// src/v1/schema/definitions/target/source.ts
|
|
3643
|
-
import { z as
|
|
3874
|
+
import { z as z23 } from "zod";
|
|
3644
3875
|
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.";
|
|
3645
|
-
var Format =
|
|
3876
|
+
var Format = z23.string().min(1).describe(formatDescription);
|
|
3646
3877
|
var formatSchema = {
|
|
3647
3878
|
type: "string",
|
|
3648
3879
|
description: formatDescription,
|
|
3649
3880
|
minLength: 1
|
|
3650
3881
|
};
|
|
3651
3882
|
var languageDescription = "The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.";
|
|
3652
|
-
var Language =
|
|
3883
|
+
var Language = z23.string().min(2).max(3).describe(languageDescription);
|
|
3653
3884
|
var languageSchema = {
|
|
3654
3885
|
type: "string",
|
|
3655
3886
|
description: languageDescription,
|
|
@@ -3657,15 +3888,15 @@ var languageSchema = {
|
|
|
3657
3888
|
maxLength: 3
|
|
3658
3889
|
};
|
|
3659
3890
|
var sourceIdDescription = "The IRI that identifies the Target source.";
|
|
3660
|
-
var Source =
|
|
3661
|
-
id:
|
|
3662
|
-
format:
|
|
3891
|
+
var Source = z23.object({
|
|
3892
|
+
id: z23.string().url().describe(sourceIdDescription),
|
|
3893
|
+
format: z23.union([Format, z23.array(Format).min(1)]).optional().describe(
|
|
3663
3894
|
"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."
|
|
3664
3895
|
),
|
|
3665
|
-
language:
|
|
3896
|
+
language: z23.union([Language, z23.array(Language).min(1)]).optional().describe(
|
|
3666
3897
|
"The languages of the Web Resource's content. The value of the property should be an array of language code following the [bcp47] specification."
|
|
3667
3898
|
),
|
|
3668
|
-
title:
|
|
3899
|
+
title: z23.string().min(1, { message: "The title cannot be empty" }).optional().describe("The title of the document being annotated.")
|
|
3669
3900
|
}).describe("Web Annotation Target");
|
|
3670
3901
|
var sourceSchema = {
|
|
3671
3902
|
type: "object",
|
|
@@ -3710,14 +3941,14 @@ var sourceSchema = {
|
|
|
3710
3941
|
|
|
3711
3942
|
// src/v1/schema/definitions/target/index.ts
|
|
3712
3943
|
var targetIdDescription = "The IRI that identifies the Target resource.";
|
|
3713
|
-
var Target =
|
|
3714
|
-
id:
|
|
3715
|
-
type:
|
|
3944
|
+
var Target = z24.object({
|
|
3945
|
+
id: z24.string().url().describe(targetIdDescription),
|
|
3946
|
+
type: z24.tuple([z24.literal("SpecificResource"), z24.literal("crm:E73_Information_Object")]).describe("The class of the Specific Resource."),
|
|
3716
3947
|
source: Source,
|
|
3717
3948
|
renderedVia: Software.optional().describe(
|
|
3718
3949
|
"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."
|
|
3719
3950
|
),
|
|
3720
|
-
selector:
|
|
3951
|
+
selector: z24.union([Selector, z24.array(Selector)]).describe("The relationship between a Specific Resource and a Selector. ")
|
|
3721
3952
|
}).describe("Web Annotation Target");
|
|
3722
3953
|
var targetSchema = {
|
|
3723
3954
|
type: "object",
|
|
@@ -3875,13 +4106,14 @@ var definitionSchema = {
|
|
|
3875
4106
|
textQuoteSelector: textQuoteSelectorSchema,
|
|
3876
4107
|
xpathSelector: xpathSelectorSchema,
|
|
3877
4108
|
rangeSelector: rangeSelectorSchema,
|
|
3878
|
-
body: bodySchema
|
|
4109
|
+
body: bodySchema,
|
|
4110
|
+
bodyChoice: bodyChoiceSchema
|
|
3879
4111
|
},
|
|
3880
4112
|
required: []
|
|
3881
4113
|
};
|
|
3882
4114
|
|
|
3883
4115
|
// src/v1/schema/root.ts
|
|
3884
|
-
import { z as
|
|
4116
|
+
import { z as z25 } from "zod";
|
|
3885
4117
|
var Status = ["draft", "approved", "published"];
|
|
3886
4118
|
var Motivation = [
|
|
3887
4119
|
"identifying",
|
|
@@ -3892,26 +4124,26 @@ var Motivation = [
|
|
|
3892
4124
|
"linking",
|
|
3893
4125
|
"citing"
|
|
3894
4126
|
];
|
|
3895
|
-
var WebAnnotation =
|
|
3896
|
-
"@context":
|
|
3897
|
-
|
|
3898
|
-
|
|
4127
|
+
var WebAnnotation = z25.object({
|
|
4128
|
+
"@context": z25.tuple([
|
|
4129
|
+
z25.literal("http://www.w3.org/ns/anno.jsonld").describe("W3C Web Annotation Context."),
|
|
4130
|
+
z25.literal(contextUri).describe("LINCS Web Annotation Context.")
|
|
3899
4131
|
]).describe(
|
|
3900
4132
|
"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."
|
|
3901
4133
|
),
|
|
3902
|
-
id:
|
|
3903
|
-
type:
|
|
3904
|
-
motivation:
|
|
3905
|
-
created:
|
|
3906
|
-
modified:
|
|
3907
|
-
status:
|
|
4134
|
+
id: z25.string().url().describe("The identity of the Annotation."),
|
|
4135
|
+
type: z25.tuple([z25.literal("Annotation"), z25.literal("crm:E33_Linguistic_Object")]).describe("The type of the Annotation."),
|
|
4136
|
+
motivation: z25.tuple([z25.enum(Motivation), z25.literal("crm:E55_Type")]).describe("The relationship between an Annotation and a Motivation."),
|
|
4137
|
+
created: z25.string().datetime().describe("The time at which the resource was created."),
|
|
4138
|
+
modified: z25.string().datetime().optional().describe("The time at which the resource was modified, after creation."),
|
|
4139
|
+
status: z25.enum(Status).describe("The status of this annotation in a workflow."),
|
|
3908
4140
|
creator: User.describe("The agent responsible for creating the resource.").optional(),
|
|
3909
|
-
contributor:
|
|
4141
|
+
contributor: z25.array(User.describe("The agents responsible for modifying the resource.")).nonempty().optional().describe("The agents responsible for modifying the resource."),
|
|
3910
4142
|
generator: Software.describe(
|
|
3911
4143
|
"The agent responsible for generating the serialization of the Annotation. "
|
|
3912
4144
|
),
|
|
3913
4145
|
target: Target.describe("The relationship between an Annotation and its Target."),
|
|
3914
|
-
body:
|
|
4146
|
+
body: z25.union([BodyChoice, Body, z25.array(Body)]).describe("The relationship between an Annotation and its Body.")
|
|
3915
4147
|
}).describe("Web Annotation Root");
|
|
3916
4148
|
var webAnnotationSchema = {
|
|
3917
4149
|
$id: schemaId,
|
|
@@ -3975,6 +4207,7 @@ var webAnnotationSchema = {
|
|
|
3975
4207
|
target: { $ref: "defs.jsonld#/definitions/target" },
|
|
3976
4208
|
body: {
|
|
3977
4209
|
oneOf: [
|
|
4210
|
+
{ $ref: "defs.jsonld#/definitions/bodyChoice" },
|
|
3978
4211
|
{ $ref: "defs.jsonld#/definitions/body" },
|
|
3979
4212
|
{
|
|
3980
4213
|
type: "array",
|
|
@@ -4208,18 +4441,18 @@ import Ajv from "ajv";
|
|
|
4208
4441
|
import addFormats from "ajv-formats";
|
|
4209
4442
|
|
|
4210
4443
|
// src/v1/validator/types.ts
|
|
4211
|
-
import { z as
|
|
4212
|
-
var ValidationError =
|
|
4213
|
-
message:
|
|
4214
|
-
path:
|
|
4215
|
-
suggestion:
|
|
4216
|
-
context:
|
|
4217
|
-
errorType:
|
|
4218
|
-
}).and(
|
|
4444
|
+
import { z as z26 } from "zod";
|
|
4445
|
+
var ValidationError = z26.object({
|
|
4446
|
+
message: z26.string(),
|
|
4447
|
+
path: z26.string(),
|
|
4448
|
+
suggestion: z26.string().optional(),
|
|
4449
|
+
context: z26.object({
|
|
4450
|
+
errorType: z26.string()
|
|
4451
|
+
}).and(z26.unknown())
|
|
4219
4452
|
});
|
|
4220
|
-
var ValidateResult =
|
|
4221
|
-
valid:
|
|
4222
|
-
errors:
|
|
4453
|
+
var ValidateResult = z26.object({
|
|
4454
|
+
valid: z26.boolean(),
|
|
4455
|
+
errors: z26.array(ValidationError).optional()
|
|
4223
4456
|
});
|
|
4224
4457
|
|
|
4225
4458
|
// src/v1/validator/index.ts
|
|
@@ -4253,35 +4486,122 @@ var getErrors = (annotation) => {
|
|
|
4253
4486
|
var v1_exports = {};
|
|
4254
4487
|
__export(v1_exports, {
|
|
4255
4488
|
Body: () => Body,
|
|
4489
|
+
BodyChoice: () => BodyChoice,
|
|
4490
|
+
BodyEntityType: () => BodyEntityType,
|
|
4491
|
+
Certainty: () => Certainty,
|
|
4492
|
+
Citation: () => Citation,
|
|
4493
|
+
CitationEntityType: () => CitationEntityType,
|
|
4494
|
+
ConceptualObject: () => ConceptualObject,
|
|
4495
|
+
ConceptualObjectEntityType: () => ConceptualObjectEntityType,
|
|
4496
|
+
Correction: () => Correction,
|
|
4497
|
+
CorrectionEntityType: () => CorrectionEntityType,
|
|
4256
4498
|
DATE_RANGE_PATTERN: () => DATE_RANGE_PATTERN,
|
|
4499
|
+
Date: () => Date2,
|
|
4500
|
+
DateEntityType: () => DateEntityType,
|
|
4501
|
+
Description: () => Description,
|
|
4502
|
+
Event: () => Event,
|
|
4503
|
+
EventEntityType: () => EventEntityType,
|
|
4504
|
+
Keyword: () => Keyword,
|
|
4505
|
+
KeywordEntityType: () => KeywordEntityType,
|
|
4506
|
+
KeywordFolksnomy: () => KeywordFolksnomy,
|
|
4507
|
+
KeywordFolksnomyEntityType: () => KeywordFolksnomyEntityType,
|
|
4508
|
+
Label: () => Label,
|
|
4509
|
+
Link: () => Link,
|
|
4510
|
+
LinkEntityType: () => LinkEntityType,
|
|
4257
4511
|
Motivation: () => Motivation,
|
|
4512
|
+
Note: () => Note,
|
|
4513
|
+
NoteEntityType: () => NoteEntityType,
|
|
4514
|
+
Organization: () => Organization,
|
|
4515
|
+
OrganizationEntityType: () => OrganizationEntityType,
|
|
4258
4516
|
Person: () => Person,
|
|
4259
4517
|
PersonEntityType: () => PersonEntityType,
|
|
4518
|
+
PhysicalThing: () => PhysicalThing,
|
|
4519
|
+
PhysicalThingEntityType: () => PhysicalThingEntityType,
|
|
4520
|
+
Place: () => Place,
|
|
4521
|
+
PlaceEntityType: () => PlaceEntityType,
|
|
4522
|
+
Precision: () => Precision,
|
|
4523
|
+
Quality: () => Quality,
|
|
4524
|
+
RangeSelector: () => RangeSelector,
|
|
4525
|
+
Selector: () => Selector,
|
|
4260
4526
|
Software: () => Software,
|
|
4527
|
+
Source: () => Source,
|
|
4261
4528
|
Status: () => Status,
|
|
4262
4529
|
Target: () => Target,
|
|
4530
|
+
TextPositionSelector: () => TextPositionSelector,
|
|
4531
|
+
TextPositionSelectorExtended: () => TextPositionSelectorExtended,
|
|
4532
|
+
TextQuoteSelector: () => TextQuoteSelector,
|
|
4533
|
+
TextQuoteSelectorExtended: () => TextQuoteSelectorExtended,
|
|
4263
4534
|
User: () => User,
|
|
4264
4535
|
VERSION: () => VERSION,
|
|
4265
4536
|
ValidateResult: () => ValidateResult,
|
|
4266
4537
|
ValidationError: () => ValidationError,
|
|
4267
4538
|
WebAnnotation: () => WebAnnotation,
|
|
4539
|
+
Work: () => Work,
|
|
4540
|
+
WorkEntityType: () => WorkEntityType,
|
|
4541
|
+
XpathSelector: () => XpathSelector,
|
|
4542
|
+
XpathSelectorExtended: () => XpathSelectorExtended,
|
|
4268
4543
|
ajv: () => ajv,
|
|
4544
|
+
bodyChoiceSchema: () => bodyChoiceSchema,
|
|
4545
|
+
bodyEntityTypeSchema: () => bodyEntityTypeSchema,
|
|
4269
4546
|
bodyIdDescription: () => bodyIdDescription,
|
|
4270
4547
|
bodySchema: () => bodySchema,
|
|
4548
|
+
certaintySchema: () => certaintySchema,
|
|
4549
|
+
citationEntityTypeSchema: () => citationEntityTypeSchema,
|
|
4550
|
+
citationSchema: () => citationSchema,
|
|
4551
|
+
conceptualObjectEntityTypeSchema: () => conceptualObjectEntityTypeSchema,
|
|
4552
|
+
conceptualObjectSchema: () => conceptualObjectSchema,
|
|
4271
4553
|
contextUri: () => contextUri,
|
|
4554
|
+
correctionEntityTypeSchema: () => correctionEntityTypeSchema,
|
|
4555
|
+
correctionSchema: () => correctionSchema,
|
|
4272
4556
|
creatorSchema: () => creatorSchema,
|
|
4557
|
+
dateEntityTypeSchema: () => dateEntityTypeSchema,
|
|
4558
|
+
dateSchema: () => dateSchema,
|
|
4273
4559
|
definitionSchema: () => definitionSchema,
|
|
4274
4560
|
defsId: () => defsId,
|
|
4561
|
+
descriptionSchema: () => descriptionSchema,
|
|
4562
|
+
eventEntityTypeSchema: () => eventEntityTypeSchema,
|
|
4563
|
+
eventSchema: () => eventSchema,
|
|
4564
|
+
formatSchema: () => formatSchema,
|
|
4275
4565
|
generateAssets: () => generateAssets,
|
|
4566
|
+
keywordEntityTypeSchema: () => keywordEntityTypeSchema,
|
|
4567
|
+
keywordFolksnomyEntityTypeSchema: () => keywordFolksnomyEntityTypeSchema,
|
|
4568
|
+
keywordFolksnomySchema: () => keywordFolksnomySchema,
|
|
4569
|
+
keywordSchema: () => keywordSchema,
|
|
4570
|
+
labelSchema: () => labelSchema,
|
|
4571
|
+
languageSchema: () => languageSchema,
|
|
4572
|
+
linkEntityTypeSchema: () => linkEntityTypeSchema,
|
|
4573
|
+
linkSchema: () => linkSchema,
|
|
4574
|
+
noteEntityTypeSchema: () => noteEntityTypeSchema,
|
|
4575
|
+
noteSchema: () => noteSchema,
|
|
4576
|
+
organizationEntityTypeSchema: () => organizationEntityTypeSchema,
|
|
4577
|
+
organizationSchema: () => organizationSchema,
|
|
4276
4578
|
personEntityTypeSchema: () => personEntityTypeSchema,
|
|
4277
4579
|
personSchema: () => personSchema,
|
|
4580
|
+
physicalThingEntityTypeSchema: () => physicalThingEntityTypeSchema,
|
|
4581
|
+
physicalThingSchema: () => physicalThingSchema,
|
|
4582
|
+
placeEntityTypeSchema: () => placeEntityTypeSchema,
|
|
4583
|
+
placeSchema: () => placeSchema,
|
|
4584
|
+
precisionSchema: () => precisionSchema,
|
|
4585
|
+
rangeSelectorSchema: () => rangeSelectorSchema,
|
|
4278
4586
|
schemaContext: () => schemaContext,
|
|
4279
4587
|
schemaId: () => schemaId,
|
|
4588
|
+
selectorIdDescription: () => selectorIdDescription,
|
|
4589
|
+
selectorRefinedByDescription: () => selectorRefinedByDescription,
|
|
4590
|
+
selectorSchema: () => selectorSchema,
|
|
4280
4591
|
softwareSchema: () => softwareSchema,
|
|
4592
|
+
sourceSchema: () => sourceSchema,
|
|
4281
4593
|
targetSchema: () => targetSchema,
|
|
4594
|
+
textPositionSelectorExtendedSchema: () => textPositionSelectorExtendedSchema,
|
|
4595
|
+
textPositionSelectorSchema: () => textPositionSelectorSchema,
|
|
4596
|
+
textQuoteSelectorExtendedSchema: () => textQuoteSelectorExtendedSchema,
|
|
4597
|
+
textQuoteSelectorSchema: () => textQuoteSelectorSchema,
|
|
4282
4598
|
validate: () => validate,
|
|
4283
4599
|
validator: () => validator,
|
|
4284
|
-
webAnnotationSchema: () => webAnnotationSchema
|
|
4600
|
+
webAnnotationSchema: () => webAnnotationSchema,
|
|
4601
|
+
workEntityTypeSchema: () => workEntityTypeSchema,
|
|
4602
|
+
workSchema: () => workSchema,
|
|
4603
|
+
xpathSelectorExtendedSchema: () => xpathSelectorExtendedSchema,
|
|
4604
|
+
xpathSelectorSchema: () => xpathSelectorSchema
|
|
4285
4605
|
});
|
|
4286
4606
|
|
|
4287
4607
|
// src/v1/generate/examples.ts
|
|
@@ -4519,58 +4839,26 @@ var person = {
|
|
|
4519
4839
|
}
|
|
4520
4840
|
};
|
|
4521
4841
|
|
|
4522
|
-
// src/v1/mocks/body/
|
|
4523
|
-
var
|
|
4524
|
-
id: "https://www.uo.com/place",
|
|
4525
|
-
entityType: "cwrc:place"
|
|
4526
|
-
};
|
|
4527
|
-
var real2 = {
|
|
4528
|
-
...common.annotation,
|
|
4529
|
-
body: {
|
|
4530
|
-
id: "https://www.uo.com/place",
|
|
4531
|
-
entityType: "cwrc:place"
|
|
4532
|
-
}
|
|
4533
|
-
};
|
|
4534
|
-
var fictional2 = {
|
|
4535
|
-
...common.annotation,
|
|
4536
|
-
body: {
|
|
4537
|
-
id: "https://www.uo.com/place",
|
|
4538
|
-
entityType: ["cwrc:place", "crm:E89_Propositional_Object"]
|
|
4539
|
-
}
|
|
4540
|
-
};
|
|
4541
|
-
var withCertainty2 = {
|
|
4842
|
+
// src/v1/mocks/body/choice.ts
|
|
4843
|
+
var annotationBodyChoice = {
|
|
4542
4844
|
...common.annotation,
|
|
4543
4845
|
body: {
|
|
4544
|
-
id: "https://
|
|
4545
|
-
|
|
4546
|
-
|
|
4846
|
+
id: "https://wa.lincsproject/selector/55369c00-5c43-4d1a-8462-31c74fbec545",
|
|
4847
|
+
type: "Choice",
|
|
4848
|
+
entityType: ["Person", "crm:E21_Person"],
|
|
4849
|
+
label: "John",
|
|
4850
|
+
items: [
|
|
4851
|
+
commonPersonBody,
|
|
4852
|
+
commonPersonBody,
|
|
4853
|
+
commonPersonBody,
|
|
4854
|
+
commonPersonBody,
|
|
4855
|
+
commonPersonBody,
|
|
4856
|
+
commonPersonBody
|
|
4857
|
+
]
|
|
4547
4858
|
}
|
|
4548
4859
|
};
|
|
4549
|
-
var
|
|
4550
|
-
|
|
4551
|
-
body: {
|
|
4552
|
-
id: "https://www.uo.com/place",
|
|
4553
|
-
entityType: "cwrc:place",
|
|
4554
|
-
precision: "edit:qualityHigh"
|
|
4555
|
-
}
|
|
4556
|
-
};
|
|
4557
|
-
var withLabelAndDescription2 = {
|
|
4558
|
-
...common.annotation,
|
|
4559
|
-
body: {
|
|
4560
|
-
id: "https://www.uo.com/place",
|
|
4561
|
-
entityType: "cwrc:place",
|
|
4562
|
-
label: "Paris",
|
|
4563
|
-
description: "A place"
|
|
4564
|
-
}
|
|
4565
|
-
};
|
|
4566
|
-
var place = {
|
|
4567
|
-
valid: {
|
|
4568
|
-
real: real2,
|
|
4569
|
-
fictional: fictional2,
|
|
4570
|
-
withCertainty: withCertainty2,
|
|
4571
|
-
withPrecision,
|
|
4572
|
-
withLabelAndDescription: withLabelAndDescription2
|
|
4573
|
-
}
|
|
4860
|
+
var bodyChoice = {
|
|
4861
|
+
valid: annotationBodyChoice
|
|
4574
4862
|
};
|
|
4575
4863
|
|
|
4576
4864
|
// src/v1/mocks/body/citation.ts
|
|
@@ -4582,7 +4870,7 @@ var simple = {
|
|
|
4582
4870
|
entityType: ["cito:Citation", "crm:E73_Information_Object"]
|
|
4583
4871
|
}
|
|
4584
4872
|
};
|
|
4585
|
-
var
|
|
4873
|
+
var withCertainty2 = {
|
|
4586
4874
|
...common.annotation,
|
|
4587
4875
|
motivation: ["citing", "crm:E55_Type"],
|
|
4588
4876
|
body: {
|
|
@@ -4591,7 +4879,7 @@ var withCertainty3 = {
|
|
|
4591
4879
|
certainty: "edit:qualityHigh"
|
|
4592
4880
|
}
|
|
4593
4881
|
};
|
|
4594
|
-
var
|
|
4882
|
+
var withLabelAndDescription2 = {
|
|
4595
4883
|
...common.annotation,
|
|
4596
4884
|
motivation: ["citing", "crm:E55_Type"],
|
|
4597
4885
|
body: {
|
|
@@ -4604,27 +4892,27 @@ var withLabelAndDescription3 = {
|
|
|
4604
4892
|
var citation = {
|
|
4605
4893
|
valid: {
|
|
4606
4894
|
simple,
|
|
4607
|
-
withCertainty:
|
|
4608
|
-
withLabelAndDescription:
|
|
4895
|
+
withCertainty: withCertainty2,
|
|
4896
|
+
withLabelAndDescription: withLabelAndDescription2
|
|
4609
4897
|
}
|
|
4610
4898
|
};
|
|
4611
4899
|
|
|
4612
4900
|
// src/v1/mocks/body/conceptualObject.ts
|
|
4613
|
-
var
|
|
4901
|
+
var real2 = {
|
|
4614
4902
|
...common.annotation,
|
|
4615
4903
|
body: {
|
|
4616
4904
|
id: "https://www.uo.com/conceptualObject",
|
|
4617
4905
|
entityType: "crm:E28_Conceptual_Object"
|
|
4618
4906
|
}
|
|
4619
4907
|
};
|
|
4620
|
-
var
|
|
4908
|
+
var fictional2 = {
|
|
4621
4909
|
...common.annotation,
|
|
4622
4910
|
body: {
|
|
4623
4911
|
id: "https://www.uo.com/conceptualObject",
|
|
4624
4912
|
entityType: ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]
|
|
4625
4913
|
}
|
|
4626
4914
|
};
|
|
4627
|
-
var
|
|
4915
|
+
var withCertainty3 = {
|
|
4628
4916
|
...common.annotation,
|
|
4629
4917
|
body: {
|
|
4630
4918
|
id: "https://www.uo.com/conceptualObject",
|
|
@@ -4632,7 +4920,7 @@ var withCertainty4 = {
|
|
|
4632
4920
|
certainty: "edit:qualityMedium"
|
|
4633
4921
|
}
|
|
4634
4922
|
};
|
|
4635
|
-
var
|
|
4923
|
+
var withLabelAndDescription3 = {
|
|
4636
4924
|
...common.annotation,
|
|
4637
4925
|
body: {
|
|
4638
4926
|
id: "https://www.uo.com/conceptualObject",
|
|
@@ -4643,10 +4931,10 @@ var withLabelAndDescription4 = {
|
|
|
4643
4931
|
};
|
|
4644
4932
|
var conceptualObject = {
|
|
4645
4933
|
valid: {
|
|
4646
|
-
real:
|
|
4647
|
-
fictional:
|
|
4648
|
-
withCertainty:
|
|
4649
|
-
withLabelAndDescription:
|
|
4934
|
+
real: real2,
|
|
4935
|
+
fictional: fictional2,
|
|
4936
|
+
withCertainty: withCertainty3,
|
|
4937
|
+
withLabelAndDescription: withLabelAndDescription3
|
|
4650
4938
|
}
|
|
4651
4939
|
};
|
|
4652
4940
|
|
|
@@ -4675,7 +4963,7 @@ var simple2 = {
|
|
|
4675
4963
|
value: "2012-03-01T00:00:00/2012-02-01T18:21:07"
|
|
4676
4964
|
}
|
|
4677
4965
|
};
|
|
4678
|
-
var
|
|
4966
|
+
var withCertainty4 = {
|
|
4679
4967
|
...common.annotation,
|
|
4680
4968
|
body: {
|
|
4681
4969
|
id: "https://wa.lincsproject/55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
@@ -4685,7 +4973,7 @@ var withCertainty5 = {
|
|
|
4685
4973
|
certainty: "edit:qualityMedium"
|
|
4686
4974
|
}
|
|
4687
4975
|
};
|
|
4688
|
-
var
|
|
4976
|
+
var withPrecision = {
|
|
4689
4977
|
...common.annotation,
|
|
4690
4978
|
body: {
|
|
4691
4979
|
id: "https://wa.lincsproject/55369c00-5c43-4d1a-8462-31c74fbec584",
|
|
@@ -4698,8 +4986,49 @@ var withPrecision2 = {
|
|
|
4698
4986
|
var date = {
|
|
4699
4987
|
valid: {
|
|
4700
4988
|
simple: simple2,
|
|
4989
|
+
withCertainty: withCertainty4,
|
|
4990
|
+
withPrecision
|
|
4991
|
+
}
|
|
4992
|
+
};
|
|
4993
|
+
|
|
4994
|
+
// src/v1/mocks/body/event.ts
|
|
4995
|
+
var real3 = {
|
|
4996
|
+
...common.annotation,
|
|
4997
|
+
body: {
|
|
4998
|
+
id: "https://www.uo.com/event",
|
|
4999
|
+
entityType: ["YET TO BE DEFINED EVENT CLASS", "crm:E5_Event"]
|
|
5000
|
+
}
|
|
5001
|
+
};
|
|
5002
|
+
var fictional3 = {
|
|
5003
|
+
...common.annotation,
|
|
5004
|
+
body: {
|
|
5005
|
+
id: "https://www.uo.com/event",
|
|
5006
|
+
entityType: ["YET TO BE DEFINED EVENT CLASS", "crm:E89_Propositional_Object"]
|
|
5007
|
+
}
|
|
5008
|
+
};
|
|
5009
|
+
var withCertainty5 = {
|
|
5010
|
+
...common.annotation,
|
|
5011
|
+
body: {
|
|
5012
|
+
id: "https://www.uo.com/event",
|
|
5013
|
+
entityType: ["YET TO BE DEFINED EVENT CLASS", "crm:E5_Event"],
|
|
5014
|
+
certainty: "edit:qualityLow"
|
|
5015
|
+
}
|
|
5016
|
+
};
|
|
5017
|
+
var withLabelAndDescription4 = {
|
|
5018
|
+
...common.annotation,
|
|
5019
|
+
body: {
|
|
5020
|
+
id: "https://www.uo.com/event",
|
|
5021
|
+
entityType: ["YET TO BE DEFINED EVENT CLASS", "crm:E5_Event"],
|
|
5022
|
+
label: "revolution",
|
|
5023
|
+
description: "An event"
|
|
5024
|
+
}
|
|
5025
|
+
};
|
|
5026
|
+
var event = {
|
|
5027
|
+
valid: {
|
|
5028
|
+
real: real3,
|
|
5029
|
+
fictional: fictional3,
|
|
4701
5030
|
withCertainty: withCertainty5,
|
|
4702
|
-
|
|
5031
|
+
withLabelAndDescription: withLabelAndDescription4
|
|
4703
5032
|
}
|
|
4704
5033
|
};
|
|
4705
5034
|
|
|
@@ -4777,6 +5106,71 @@ var link = {
|
|
|
4777
5106
|
}
|
|
4778
5107
|
};
|
|
4779
5108
|
|
|
5109
|
+
// src/v1/mocks/body/place.ts
|
|
5110
|
+
var commonPlaceBody = {
|
|
5111
|
+
id: "https://www.uo.com/place",
|
|
5112
|
+
entityType: "cwrc:place"
|
|
5113
|
+
};
|
|
5114
|
+
var real4 = {
|
|
5115
|
+
...common.annotation,
|
|
5116
|
+
body: {
|
|
5117
|
+
id: "https://www.uo.com/place",
|
|
5118
|
+
entityType: "cwrc:place"
|
|
5119
|
+
}
|
|
5120
|
+
};
|
|
5121
|
+
var fictional4 = {
|
|
5122
|
+
...common.annotation,
|
|
5123
|
+
body: {
|
|
5124
|
+
id: "https://www.uo.com/place",
|
|
5125
|
+
entityType: ["cwrc:place", "crm:E89_Propositional_Object"]
|
|
5126
|
+
}
|
|
5127
|
+
};
|
|
5128
|
+
var withCertainty7 = {
|
|
5129
|
+
...common.annotation,
|
|
5130
|
+
body: {
|
|
5131
|
+
id: "https://www.uo.com/place",
|
|
5132
|
+
entityType: "cwrc:place",
|
|
5133
|
+
certainty: "edit:qualityMedium"
|
|
5134
|
+
}
|
|
5135
|
+
};
|
|
5136
|
+
var withPrecision2 = {
|
|
5137
|
+
...common.annotation,
|
|
5138
|
+
body: {
|
|
5139
|
+
id: "https://www.uo.com/place",
|
|
5140
|
+
entityType: "cwrc:place",
|
|
5141
|
+
precision: "edit:qualityHigh"
|
|
5142
|
+
}
|
|
5143
|
+
};
|
|
5144
|
+
var withLabelAndDescription5 = {
|
|
5145
|
+
...common.annotation,
|
|
5146
|
+
body: {
|
|
5147
|
+
id: "https://www.uo.com/place",
|
|
5148
|
+
entityType: "cwrc:place",
|
|
5149
|
+
label: "Paris",
|
|
5150
|
+
description: "A place"
|
|
5151
|
+
}
|
|
5152
|
+
};
|
|
5153
|
+
var place = {
|
|
5154
|
+
valid: {
|
|
5155
|
+
real: real4,
|
|
5156
|
+
fictional: fictional4,
|
|
5157
|
+
withCertainty: withCertainty7,
|
|
5158
|
+
withPrecision: withPrecision2,
|
|
5159
|
+
withLabelAndDescription: withLabelAndDescription5
|
|
5160
|
+
}
|
|
5161
|
+
};
|
|
5162
|
+
|
|
5163
|
+
// src/v1/mocks/body/multipleBodies.ts
|
|
5164
|
+
var personPlace = {
|
|
5165
|
+
...common.annotation,
|
|
5166
|
+
body: [commonPersonBody, commonPlaceBody]
|
|
5167
|
+
};
|
|
5168
|
+
var multipleBodies = {
|
|
5169
|
+
valid: {
|
|
5170
|
+
personPlace
|
|
5171
|
+
}
|
|
5172
|
+
};
|
|
5173
|
+
|
|
4780
5174
|
// src/v1/mocks/body/note.ts
|
|
4781
5175
|
var simple4 = {
|
|
4782
5176
|
...common.annotation,
|
|
@@ -4819,21 +5213,21 @@ var note = {
|
|
|
4819
5213
|
};
|
|
4820
5214
|
|
|
4821
5215
|
// src/v1/mocks/body/organization.ts
|
|
4822
|
-
var
|
|
5216
|
+
var real5 = {
|
|
4823
5217
|
...common.annotation,
|
|
4824
5218
|
body: {
|
|
4825
5219
|
id: "https://www.uo.com/organization",
|
|
4826
5220
|
entityType: ["foaf:Organization", "crm:E74_Group"]
|
|
4827
5221
|
}
|
|
4828
5222
|
};
|
|
4829
|
-
var
|
|
5223
|
+
var fictional5 = {
|
|
4830
5224
|
...common.annotation,
|
|
4831
5225
|
body: {
|
|
4832
5226
|
id: "https://www.uo.com/organization",
|
|
4833
5227
|
entityType: ["foaf:Organization", "crm:E89_Propositional_Object"]
|
|
4834
5228
|
}
|
|
4835
5229
|
};
|
|
4836
|
-
var
|
|
5230
|
+
var withCertainty8 = {
|
|
4837
5231
|
...common.annotation,
|
|
4838
5232
|
body: {
|
|
4839
5233
|
id: "https://www.uo.com/organization",
|
|
@@ -4841,7 +5235,7 @@ var withCertainty7 = {
|
|
|
4841
5235
|
certainty: "edit:qualityHigh"
|
|
4842
5236
|
}
|
|
4843
5237
|
};
|
|
4844
|
-
var
|
|
5238
|
+
var withLabelAndDescription6 = {
|
|
4845
5239
|
...common.annotation,
|
|
4846
5240
|
body: {
|
|
4847
5241
|
id: "https://www.uo.com/organization",
|
|
@@ -4852,29 +5246,29 @@ var withLabelAndDescription5 = {
|
|
|
4852
5246
|
};
|
|
4853
5247
|
var organization = {
|
|
4854
5248
|
valid: {
|
|
4855
|
-
real:
|
|
4856
|
-
fictional:
|
|
4857
|
-
withCertainty:
|
|
4858
|
-
withLabelAndDescription:
|
|
5249
|
+
real: real5,
|
|
5250
|
+
fictional: fictional5,
|
|
5251
|
+
withCertainty: withCertainty8,
|
|
5252
|
+
withLabelAndDescription: withLabelAndDescription6
|
|
4859
5253
|
}
|
|
4860
5254
|
};
|
|
4861
5255
|
|
|
4862
5256
|
// src/v1/mocks/body/physicalThing.ts
|
|
4863
|
-
var
|
|
5257
|
+
var real6 = {
|
|
4864
5258
|
...common.annotation,
|
|
4865
5259
|
body: {
|
|
4866
5260
|
id: "https://www.uo.com/pysicalThing",
|
|
4867
5261
|
entityType: "crm:E18_Physical_Thing"
|
|
4868
5262
|
}
|
|
4869
5263
|
};
|
|
4870
|
-
var
|
|
5264
|
+
var fictional6 = {
|
|
4871
5265
|
...common.annotation,
|
|
4872
5266
|
body: {
|
|
4873
5267
|
id: "https://www.uo.com/pysicalThing",
|
|
4874
5268
|
entityType: ["crm:E18_Physical_Thing", "wikidata:Q15831596"]
|
|
4875
5269
|
}
|
|
4876
5270
|
};
|
|
4877
|
-
var
|
|
5271
|
+
var withCertainty9 = {
|
|
4878
5272
|
...common.annotation,
|
|
4879
5273
|
body: {
|
|
4880
5274
|
id: "https://www.uo.com/pysicalThing",
|
|
@@ -4882,7 +5276,7 @@ var withCertainty8 = {
|
|
|
4882
5276
|
certainty: "edit:qualityLow"
|
|
4883
5277
|
}
|
|
4884
5278
|
};
|
|
4885
|
-
var
|
|
5279
|
+
var withLabelAndDescription7 = {
|
|
4886
5280
|
...common.annotation,
|
|
4887
5281
|
body: {
|
|
4888
5282
|
id: "https://www.uo.com/pysicalThing",
|
|
@@ -4893,29 +5287,29 @@ var withLabelAndDescription6 = {
|
|
|
4893
5287
|
};
|
|
4894
5288
|
var physicalThing = {
|
|
4895
5289
|
valid: {
|
|
4896
|
-
real:
|
|
4897
|
-
fictional:
|
|
4898
|
-
withCertainty:
|
|
4899
|
-
withLabelAndDescription:
|
|
5290
|
+
real: real6,
|
|
5291
|
+
fictional: fictional6,
|
|
5292
|
+
withCertainty: withCertainty9,
|
|
5293
|
+
withLabelAndDescription: withLabelAndDescription7
|
|
4900
5294
|
}
|
|
4901
5295
|
};
|
|
4902
5296
|
|
|
4903
5297
|
// src/v1/mocks/body/work.ts
|
|
4904
|
-
var
|
|
5298
|
+
var real7 = {
|
|
4905
5299
|
...common.annotation,
|
|
4906
5300
|
body: {
|
|
4907
5301
|
id: "https://www.uo.com/work",
|
|
4908
5302
|
entityType: ["crm:E89_Propositional_Object", "frbroo:F1"]
|
|
4909
5303
|
}
|
|
4910
5304
|
};
|
|
4911
|
-
var
|
|
5305
|
+
var fictional7 = {
|
|
4912
5306
|
...common.annotation,
|
|
4913
5307
|
body: {
|
|
4914
5308
|
id: "https://www.uo.com/work",
|
|
4915
5309
|
entityType: ["crm:E89_Propositional_Object", "wikidata:Q15306849"]
|
|
4916
5310
|
}
|
|
4917
5311
|
};
|
|
4918
|
-
var
|
|
5312
|
+
var withCertainty10 = {
|
|
4919
5313
|
...common.annotation,
|
|
4920
5314
|
body: {
|
|
4921
5315
|
id: "https://www.uo.com/work",
|
|
@@ -4923,7 +5317,7 @@ var withCertainty9 = {
|
|
|
4923
5317
|
certainty: "edit:qualityUnknown"
|
|
4924
5318
|
}
|
|
4925
5319
|
};
|
|
4926
|
-
var
|
|
5320
|
+
var withLabelAndDescription8 = {
|
|
4927
5321
|
...common.annotation,
|
|
4928
5322
|
body: {
|
|
4929
5323
|
id: "https://www.uo.com/work",
|
|
@@ -4933,47 +5327,6 @@ var withLabelAndDescription7 = {
|
|
|
4933
5327
|
}
|
|
4934
5328
|
};
|
|
4935
5329
|
var work = {
|
|
4936
|
-
valid: {
|
|
4937
|
-
real: real6,
|
|
4938
|
-
fictional: fictional6,
|
|
4939
|
-
withCertainty: withCertainty9,
|
|
4940
|
-
withLabelAndDescription: withLabelAndDescription7
|
|
4941
|
-
}
|
|
4942
|
-
};
|
|
4943
|
-
|
|
4944
|
-
// src/v1/mocks/body/event.ts
|
|
4945
|
-
var real7 = {
|
|
4946
|
-
...common.annotation,
|
|
4947
|
-
body: {
|
|
4948
|
-
id: "https://www.uo.com/event",
|
|
4949
|
-
entityType: "crm:E5_Event"
|
|
4950
|
-
}
|
|
4951
|
-
};
|
|
4952
|
-
var fictional7 = {
|
|
4953
|
-
...common.annotation,
|
|
4954
|
-
body: {
|
|
4955
|
-
id: "https://www.uo.com/event",
|
|
4956
|
-
entityType: "YET TO BE DEFINED A CLASS FOR FICTIONAL EVENTS"
|
|
4957
|
-
}
|
|
4958
|
-
};
|
|
4959
|
-
var withCertainty10 = {
|
|
4960
|
-
...common.annotation,
|
|
4961
|
-
body: {
|
|
4962
|
-
id: "https://www.uo.com/event",
|
|
4963
|
-
entityType: "crm:E5_Event",
|
|
4964
|
-
certainty: "edit:qualityLow"
|
|
4965
|
-
}
|
|
4966
|
-
};
|
|
4967
|
-
var withLabelAndDescription8 = {
|
|
4968
|
-
...common.annotation,
|
|
4969
|
-
body: {
|
|
4970
|
-
id: "https://www.uo.com/event",
|
|
4971
|
-
entityType: "crm:E5_Event",
|
|
4972
|
-
label: "revolution",
|
|
4973
|
-
description: "An event"
|
|
4974
|
-
}
|
|
4975
|
-
};
|
|
4976
|
-
var event = {
|
|
4977
5330
|
valid: {
|
|
4978
5331
|
real: real7,
|
|
4979
5332
|
fictional: fictional7,
|
|
@@ -4982,17 +5335,6 @@ var event = {
|
|
|
4982
5335
|
}
|
|
4983
5336
|
};
|
|
4984
5337
|
|
|
4985
|
-
// src/v1/mocks/body/index.ts
|
|
4986
|
-
var personPlace = {
|
|
4987
|
-
...common.annotation,
|
|
4988
|
-
body: [commonPersonBody, commonPlaceBody]
|
|
4989
|
-
};
|
|
4990
|
-
var multipleBodies = {
|
|
4991
|
-
valid: {
|
|
4992
|
-
personPlace
|
|
4993
|
-
}
|
|
4994
|
-
};
|
|
4995
|
-
|
|
4996
5338
|
// src/v1/mocks/root/agent.ts
|
|
4997
5339
|
var creatorSimple = {
|
|
4998
5340
|
...common.annotation,
|
|
@@ -5586,6 +5928,7 @@ var generateValidExamples = async () => {
|
|
|
5586
5928
|
multipleBodies.valid.personPlace,
|
|
5587
5929
|
JSON_OPTIONS
|
|
5588
5930
|
);
|
|
5931
|
+
await import_fs_extra.default.writeJSON(path.join(FOLDER, "body_choice.jsonld"), bodyChoice.valid, JSON_OPTIONS);
|
|
5589
5932
|
};
|
|
5590
5933
|
|
|
5591
5934
|
// src/v1/generate/jsonld.ts
|
|
@@ -5629,33 +5972,120 @@ var generateAssets = async () => {
|
|
|
5629
5972
|
};
|
|
5630
5973
|
export {
|
|
5631
5974
|
Body,
|
|
5975
|
+
BodyChoice,
|
|
5976
|
+
BodyEntityType,
|
|
5977
|
+
Certainty,
|
|
5978
|
+
Citation,
|
|
5979
|
+
CitationEntityType,
|
|
5980
|
+
ConceptualObject,
|
|
5981
|
+
ConceptualObjectEntityType,
|
|
5982
|
+
Correction,
|
|
5983
|
+
CorrectionEntityType,
|
|
5632
5984
|
DATE_RANGE_PATTERN,
|
|
5985
|
+
Date2 as Date,
|
|
5986
|
+
DateEntityType,
|
|
5987
|
+
Description,
|
|
5988
|
+
Event,
|
|
5989
|
+
EventEntityType,
|
|
5990
|
+
Keyword,
|
|
5991
|
+
KeywordEntityType,
|
|
5992
|
+
KeywordFolksnomy,
|
|
5993
|
+
KeywordFolksnomyEntityType,
|
|
5994
|
+
Label,
|
|
5995
|
+
Link,
|
|
5996
|
+
LinkEntityType,
|
|
5633
5997
|
Motivation,
|
|
5998
|
+
Note,
|
|
5999
|
+
NoteEntityType,
|
|
6000
|
+
Organization,
|
|
6001
|
+
OrganizationEntityType,
|
|
5634
6002
|
Person,
|
|
5635
6003
|
PersonEntityType,
|
|
6004
|
+
PhysicalThing,
|
|
6005
|
+
PhysicalThingEntityType,
|
|
6006
|
+
Place,
|
|
6007
|
+
PlaceEntityType,
|
|
6008
|
+
Precision,
|
|
6009
|
+
Quality,
|
|
6010
|
+
RangeSelector,
|
|
6011
|
+
Selector,
|
|
5636
6012
|
Software,
|
|
6013
|
+
Source,
|
|
5637
6014
|
Status,
|
|
5638
6015
|
Target,
|
|
6016
|
+
TextPositionSelector,
|
|
6017
|
+
TextPositionSelectorExtended,
|
|
6018
|
+
TextQuoteSelector,
|
|
6019
|
+
TextQuoteSelectorExtended,
|
|
5639
6020
|
User,
|
|
5640
6021
|
VERSION,
|
|
5641
6022
|
ValidateResult,
|
|
5642
6023
|
ValidationError,
|
|
5643
6024
|
WebAnnotation,
|
|
6025
|
+
Work,
|
|
6026
|
+
WorkEntityType,
|
|
6027
|
+
XpathSelector,
|
|
6028
|
+
XpathSelectorExtended,
|
|
5644
6029
|
ajv,
|
|
6030
|
+
bodyChoiceSchema,
|
|
6031
|
+
bodyEntityTypeSchema,
|
|
5645
6032
|
bodyIdDescription,
|
|
5646
6033
|
bodySchema,
|
|
6034
|
+
certaintySchema,
|
|
6035
|
+
citationEntityTypeSchema,
|
|
6036
|
+
citationSchema,
|
|
6037
|
+
conceptualObjectEntityTypeSchema,
|
|
6038
|
+
conceptualObjectSchema,
|
|
5647
6039
|
contextUri,
|
|
6040
|
+
correctionEntityTypeSchema,
|
|
6041
|
+
correctionSchema,
|
|
5648
6042
|
creatorSchema,
|
|
6043
|
+
dateEntityTypeSchema,
|
|
6044
|
+
dateSchema,
|
|
5649
6045
|
definitionSchema,
|
|
5650
6046
|
defsId,
|
|
6047
|
+
descriptionSchema,
|
|
6048
|
+
eventEntityTypeSchema,
|
|
6049
|
+
eventSchema,
|
|
6050
|
+
formatSchema,
|
|
6051
|
+
keywordEntityTypeSchema,
|
|
6052
|
+
keywordFolksnomyEntityTypeSchema,
|
|
6053
|
+
keywordFolksnomySchema,
|
|
6054
|
+
keywordSchema,
|
|
6055
|
+
labelSchema,
|
|
6056
|
+
languageSchema,
|
|
6057
|
+
linkEntityTypeSchema,
|
|
6058
|
+
linkSchema,
|
|
6059
|
+
noteEntityTypeSchema,
|
|
6060
|
+
noteSchema,
|
|
6061
|
+
organizationEntityTypeSchema,
|
|
6062
|
+
organizationSchema,
|
|
5651
6063
|
personEntityTypeSchema,
|
|
5652
6064
|
personSchema,
|
|
6065
|
+
physicalThingEntityTypeSchema,
|
|
6066
|
+
physicalThingSchema,
|
|
6067
|
+
placeEntityTypeSchema,
|
|
6068
|
+
placeSchema,
|
|
6069
|
+
precisionSchema,
|
|
6070
|
+
rangeSelectorSchema,
|
|
5653
6071
|
schemaContext,
|
|
5654
6072
|
schemaId,
|
|
6073
|
+
selectorIdDescription,
|
|
6074
|
+
selectorRefinedByDescription,
|
|
6075
|
+
selectorSchema,
|
|
5655
6076
|
softwareSchema,
|
|
6077
|
+
sourceSchema,
|
|
5656
6078
|
targetSchema,
|
|
6079
|
+
textPositionSelectorExtendedSchema,
|
|
6080
|
+
textPositionSelectorSchema,
|
|
6081
|
+
textQuoteSelectorExtendedSchema,
|
|
6082
|
+
textQuoteSelectorSchema,
|
|
5657
6083
|
v1_exports as v1,
|
|
5658
6084
|
validate,
|
|
5659
6085
|
validator,
|
|
5660
|
-
webAnnotationSchema
|
|
6086
|
+
webAnnotationSchema,
|
|
6087
|
+
workEntityTypeSchema,
|
|
6088
|
+
workSchema,
|
|
6089
|
+
xpathSelectorExtendedSchema,
|
|
6090
|
+
xpathSelectorSchema
|
|
5661
6091
|
};
|