@lincs.project/webannotation-schema 1.17.1 → 1.17.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 +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +33 -17
- package/dist/index.mjs +33 -17
- package/dist/v1/jsonld/schema.jsonld +57 -57
- package/dist/v1/standalone/linc-wa-validator.js +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -2445,14 +2445,14 @@ declare const Motivations: z.ZodEnum<["oa:identifying", "oa:describing", "correc
|
|
|
2445
2445
|
declare const MotivationSchema: JSONSchemaType<Required<Motivation>>;
|
|
2446
2446
|
declare const Motivation: z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"oa:tagging">, z.ZodLiteral<"citing">]>;
|
|
2447
2447
|
type Motivation = z.infer<typeof Motivation>;
|
|
2448
|
-
declare const certainties: readonly ["edit:
|
|
2449
|
-
declare const Certainties: z.ZodEnum<["edit:
|
|
2450
|
-
declare const Certainty: z.ZodUnion<[z.ZodLiteral<"edit:
|
|
2448
|
+
declare const certainties: readonly ["edit:certaintyUnknown", "edit:certaintyLow", "edit:certaintyMedium", "edit:certaintyHigh"];
|
|
2449
|
+
declare const Certainties: z.ZodEnum<["edit:certaintyUnknown", "edit:certaintyLow", "edit:certaintyMedium", "edit:certaintyHigh"]>;
|
|
2450
|
+
declare const Certainty: z.ZodUnion<[z.ZodLiteral<"edit:certaintyUnknown">, z.ZodLiteral<"edit:certaintyLow">, z.ZodLiteral<"edit:certaintyMedium">, z.ZodLiteral<"edit:certaintyHigh">]>;
|
|
2451
2451
|
type Certainty = z.infer<typeof Certainty>;
|
|
2452
2452
|
declare const CertaintySchema: JSONSchemaType<Required<Certainty>>;
|
|
2453
|
-
declare const precisions: readonly ["edit:
|
|
2454
|
-
declare const Precisions: z.ZodEnum<["edit:
|
|
2455
|
-
declare const Precision: z.ZodUnion<[z.ZodLiteral<"edit:
|
|
2453
|
+
declare const precisions: readonly ["edit:precisionUnknown", "edit:precisionLow", "edit:precisionMedium", "edit:precisionHigh"];
|
|
2454
|
+
declare const Precisions: z.ZodEnum<["edit:precisionUnknown", "edit:precisionLow", "edit:precisionMedium", "edit:precisionHigh"]>;
|
|
2455
|
+
declare const Precision: z.ZodUnion<[z.ZodLiteral<"edit:precisionUnknown">, z.ZodLiteral<"edit:precisionLow">, z.ZodLiteral<"edit:precisionMedium">, z.ZodLiteral<"edit:precisionHigh">]>;
|
|
2456
2456
|
type Precision = z.infer<typeof Precision>;
|
|
2457
2457
|
declare const PrecisionSchema: JSONSchemaType<Required<Precision>>;
|
|
2458
2458
|
|
|
@@ -4884,11 +4884,11 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
4884
4884
|
P2_has_type?: string[] | undefined;
|
|
4885
4885
|
}>, "many">]>;
|
|
4886
4886
|
label: z.ZodOptional<z.ZodString>;
|
|
4887
|
-
P2_has_type: z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"oa:tagging">, z.ZodLiteral<"citing">]>], z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"edit:
|
|
4887
|
+
P2_has_type: z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"oa:tagging">, z.ZodLiteral<"citing">]>], z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"edit:certaintyUnknown">, z.ZodLiteral<"edit:certaintyLow">, z.ZodLiteral<"edit:certaintyMedium">, z.ZodLiteral<"edit:certaintyHigh">]>, z.ZodUnion<[z.ZodLiteral<"edit:precisionUnknown">, z.ZodLiteral<"edit:precisionLow">, z.ZodLiteral<"edit:precisionMedium">, z.ZodLiteral<"edit:precisionHigh">]>]>>>;
|
|
4888
4888
|
}, "strip", z.ZodTypeAny, {
|
|
4889
4889
|
id: string;
|
|
4890
4890
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
4891
|
-
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:
|
|
4891
|
+
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:certaintyUnknown" | "edit:certaintyLow" | "edit:certaintyMedium" | "edit:certaintyHigh" | "edit:precisionUnknown" | "edit:precisionLow" | "edit:precisionMedium" | "edit:precisionHigh" | undefined)[]];
|
|
4892
4892
|
target: {
|
|
4893
4893
|
id: string;
|
|
4894
4894
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
|
@@ -5321,7 +5321,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
5321
5321
|
}, {
|
|
5322
5322
|
id: string;
|
|
5323
5323
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
5324
|
-
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:
|
|
5324
|
+
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:certaintyUnknown" | "edit:certaintyLow" | "edit:certaintyMedium" | "edit:certaintyHigh" | "edit:precisionUnknown" | "edit:precisionLow" | "edit:precisionMedium" | "edit:precisionHigh" | undefined)[]];
|
|
5325
5325
|
target: {
|
|
5326
5326
|
id: string;
|
|
5327
5327
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
|
@@ -5838,7 +5838,7 @@ declare const ajv: ajv_dist_core.default;
|
|
|
5838
5838
|
declare const validator: _ajv.ValidateFunction<Required<{
|
|
5839
5839
|
id: string;
|
|
5840
5840
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
5841
|
-
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:
|
|
5841
|
+
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:certaintyUnknown" | "edit:certaintyLow" | "edit:certaintyMedium" | "edit:certaintyHigh" | "edit:precisionUnknown" | "edit:precisionLow" | "edit:precisionMedium" | "edit:precisionHigh" | undefined)[]];
|
|
5842
5842
|
target: {
|
|
5843
5843
|
id: string;
|
|
5844
5844
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
package/dist/index.d.ts
CHANGED
|
@@ -2445,14 +2445,14 @@ declare const Motivations: z.ZodEnum<["oa:identifying", "oa:describing", "correc
|
|
|
2445
2445
|
declare const MotivationSchema: JSONSchemaType<Required<Motivation>>;
|
|
2446
2446
|
declare const Motivation: z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"oa:tagging">, z.ZodLiteral<"citing">]>;
|
|
2447
2447
|
type Motivation = z.infer<typeof Motivation>;
|
|
2448
|
-
declare const certainties: readonly ["edit:
|
|
2449
|
-
declare const Certainties: z.ZodEnum<["edit:
|
|
2450
|
-
declare const Certainty: z.ZodUnion<[z.ZodLiteral<"edit:
|
|
2448
|
+
declare const certainties: readonly ["edit:certaintyUnknown", "edit:certaintyLow", "edit:certaintyMedium", "edit:certaintyHigh"];
|
|
2449
|
+
declare const Certainties: z.ZodEnum<["edit:certaintyUnknown", "edit:certaintyLow", "edit:certaintyMedium", "edit:certaintyHigh"]>;
|
|
2450
|
+
declare const Certainty: z.ZodUnion<[z.ZodLiteral<"edit:certaintyUnknown">, z.ZodLiteral<"edit:certaintyLow">, z.ZodLiteral<"edit:certaintyMedium">, z.ZodLiteral<"edit:certaintyHigh">]>;
|
|
2451
2451
|
type Certainty = z.infer<typeof Certainty>;
|
|
2452
2452
|
declare const CertaintySchema: JSONSchemaType<Required<Certainty>>;
|
|
2453
|
-
declare const precisions: readonly ["edit:
|
|
2454
|
-
declare const Precisions: z.ZodEnum<["edit:
|
|
2455
|
-
declare const Precision: z.ZodUnion<[z.ZodLiteral<"edit:
|
|
2453
|
+
declare const precisions: readonly ["edit:precisionUnknown", "edit:precisionLow", "edit:precisionMedium", "edit:precisionHigh"];
|
|
2454
|
+
declare const Precisions: z.ZodEnum<["edit:precisionUnknown", "edit:precisionLow", "edit:precisionMedium", "edit:precisionHigh"]>;
|
|
2455
|
+
declare const Precision: z.ZodUnion<[z.ZodLiteral<"edit:precisionUnknown">, z.ZodLiteral<"edit:precisionLow">, z.ZodLiteral<"edit:precisionMedium">, z.ZodLiteral<"edit:precisionHigh">]>;
|
|
2456
2456
|
type Precision = z.infer<typeof Precision>;
|
|
2457
2457
|
declare const PrecisionSchema: JSONSchemaType<Required<Precision>>;
|
|
2458
2458
|
|
|
@@ -4884,11 +4884,11 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
4884
4884
|
P2_has_type?: string[] | undefined;
|
|
4885
4885
|
}>, "many">]>;
|
|
4886
4886
|
label: z.ZodOptional<z.ZodString>;
|
|
4887
|
-
P2_has_type: z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"oa:tagging">, z.ZodLiteral<"citing">]>], z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"edit:
|
|
4887
|
+
P2_has_type: z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"oa:identifying">, z.ZodLiteral<"oa:describing">, z.ZodLiteral<"correcting">, z.ZodLiteral<"oa:linking">, z.ZodLiteral<"oa:tagging">, z.ZodLiteral<"citing">]>], z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"edit:certaintyUnknown">, z.ZodLiteral<"edit:certaintyLow">, z.ZodLiteral<"edit:certaintyMedium">, z.ZodLiteral<"edit:certaintyHigh">]>, z.ZodUnion<[z.ZodLiteral<"edit:precisionUnknown">, z.ZodLiteral<"edit:precisionLow">, z.ZodLiteral<"edit:precisionMedium">, z.ZodLiteral<"edit:precisionHigh">]>]>>>;
|
|
4888
4888
|
}, "strip", z.ZodTypeAny, {
|
|
4889
4889
|
id: string;
|
|
4890
4890
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
4891
|
-
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:
|
|
4891
|
+
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:certaintyUnknown" | "edit:certaintyLow" | "edit:certaintyMedium" | "edit:certaintyHigh" | "edit:precisionUnknown" | "edit:precisionLow" | "edit:precisionMedium" | "edit:precisionHigh" | undefined)[]];
|
|
4892
4892
|
target: {
|
|
4893
4893
|
id: string;
|
|
4894
4894
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
|
@@ -5321,7 +5321,7 @@ declare const WebAnnotation: z.ZodObject<{
|
|
|
5321
5321
|
}, {
|
|
5322
5322
|
id: string;
|
|
5323
5323
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
5324
|
-
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:
|
|
5324
|
+
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:certaintyUnknown" | "edit:certaintyLow" | "edit:certaintyMedium" | "edit:certaintyHigh" | "edit:precisionUnknown" | "edit:precisionLow" | "edit:precisionMedium" | "edit:precisionHigh" | undefined)[]];
|
|
5325
5325
|
target: {
|
|
5326
5326
|
id: string;
|
|
5327
5327
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
|
@@ -5838,7 +5838,7 @@ declare const ajv: ajv_dist_core.default;
|
|
|
5838
5838
|
declare const validator: _ajv.ValidateFunction<Required<{
|
|
5839
5839
|
id: string;
|
|
5840
5840
|
type: ["Annotation", "crm:E33_Linguistic_Object"];
|
|
5841
|
-
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:
|
|
5841
|
+
P2_has_type: ["oa:identifying" | "oa:describing" | "correcting" | "oa:linking" | "oa:tagging" | "citing", ...("edit:certaintyUnknown" | "edit:certaintyLow" | "edit:certaintyMedium" | "edit:certaintyHigh" | "edit:precisionUnknown" | "edit:precisionLow" | "edit:precisionMedium" | "edit:precisionHigh" | undefined)[]];
|
|
5842
5842
|
target: {
|
|
5843
5843
|
id: string;
|
|
5844
5844
|
type: ["SpecificResource", "crm:E73_Information_Object"];
|
package/dist/index.js
CHANGED
|
@@ -1551,17 +1551,25 @@ var MotivationSchema = {
|
|
|
1551
1551
|
};
|
|
1552
1552
|
var descriptionCertainty = "Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body.";
|
|
1553
1553
|
var certainties = [
|
|
1554
|
-
"edit:
|
|
1555
|
-
"edit:
|
|
1556
|
-
"edit:
|
|
1557
|
-
"edit:
|
|
1554
|
+
"edit:certaintyUnknown",
|
|
1555
|
+
"edit:certaintyLow",
|
|
1556
|
+
"edit:certaintyMedium",
|
|
1557
|
+
"edit:certaintyHigh"
|
|
1558
1558
|
];
|
|
1559
1559
|
var Certainties = import_zod25.z.enum(certainties).describe(descriptionCertainty);
|
|
1560
1560
|
var Certainty = import_zod25.z.union([
|
|
1561
|
-
import_zod25.z.literal(certainties[0]
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
import_zod25.z.literal(certainties[
|
|
1561
|
+
import_zod25.z.literal(certainties[0], {
|
|
1562
|
+
description: 'Indicates that the certainty of or confidence in an assertion, description, identification, value, or measurement is unknown. Equivalent to the "unknown" value for certainty of the Text Encoding Initiative.'
|
|
1563
|
+
}),
|
|
1564
|
+
import_zod25.z.literal(certainties[1], {
|
|
1565
|
+
description: 'Indicates that the certainty of or confidence in an assertion, description, identification, value, or measurement is considered low. Equivalent to the "low" value for certainty of the Text Encoding Initiative.'
|
|
1566
|
+
}),
|
|
1567
|
+
import_zod25.z.literal(certainties[2], {
|
|
1568
|
+
description: 'Indicates that the certainty of or confidence in an assertion, description, identification, value, or measurement is considered of medium quality. Equivalent to the "medium" value for certainty of the Text Encoding Initiative.'
|
|
1569
|
+
}),
|
|
1570
|
+
import_zod25.z.literal(certainties[3], {
|
|
1571
|
+
description: 'Indicates that the certainty of or confidence in an assertion, description, identification, value, or measurement is considered of high quality. Equivalent to the "high" value for certainty of the Text Encoding Initiative.'
|
|
1572
|
+
})
|
|
1565
1573
|
]).describe(descriptionCertainty);
|
|
1566
1574
|
var CertaintySchema = {
|
|
1567
1575
|
oneOf: [{ type: "string", enum: certainties }],
|
|
@@ -1569,17 +1577,25 @@ var CertaintySchema = {
|
|
|
1569
1577
|
};
|
|
1570
1578
|
var precisionDescription = "Indicates the degree of precision associated with the location of the entity linked to the annotation body.";
|
|
1571
1579
|
var precisions = [
|
|
1572
|
-
"edit:
|
|
1573
|
-
"edit:
|
|
1574
|
-
"edit:
|
|
1575
|
-
"edit:
|
|
1580
|
+
"edit:precisionUnknown",
|
|
1581
|
+
"edit:precisionLow",
|
|
1582
|
+
"edit:precisionMedium",
|
|
1583
|
+
"edit:precisionHigh"
|
|
1576
1584
|
];
|
|
1577
1585
|
var Precisions = import_zod25.z.enum(precisions).describe(precisionDescription);
|
|
1578
1586
|
var Precision = import_zod25.z.union([
|
|
1579
|
-
import_zod25.z.literal(precisions[0]
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
import_zod25.z.literal(precisions[
|
|
1587
|
+
import_zod25.z.literal(precisions[0], {
|
|
1588
|
+
description: 'Indicates that the precision of or confidence in an assertion, description, identification, value, or measurement is unknown. Equivalent to the "unknown" value for precision of the Text Encoding Initiative.'
|
|
1589
|
+
}),
|
|
1590
|
+
import_zod25.z.literal(precisions[1], {
|
|
1591
|
+
description: 'Indicates that the precision of or confidence in an assertion, description, identification, value, or measurement is considered low. Equivalent to the "low" value for precision of the Text Encoding Initiative.'
|
|
1592
|
+
}),
|
|
1593
|
+
import_zod25.z.literal(precisions[2], {
|
|
1594
|
+
description: 'Indicates that the precision of or confidence in an assertion, description, identification, value, or measurement is considered of medium quality. Equivalent to the "medium" value for precision of the Text Encoding Initiative.'
|
|
1595
|
+
}),
|
|
1596
|
+
import_zod25.z.literal(precisions[3], {
|
|
1597
|
+
description: 'Indicates that the precision of or confidence in an assertion, description, identification, value, or measurement is considered of high quality. Equivalent to the "high" value for precision of the Text Encoding Initiative.'
|
|
1598
|
+
})
|
|
1583
1599
|
]).describe(precisionDescription);
|
|
1584
1600
|
var PrecisionSchema = {
|
|
1585
1601
|
oneOf: [{ type: "string", enum: precisions }],
|
|
@@ -1640,7 +1656,7 @@ var p2HasTypeSchema = {
|
|
|
1640
1656
|
var webAnnotationSchema = {
|
|
1641
1657
|
$id: schemaId,
|
|
1642
1658
|
type: "object",
|
|
1643
|
-
description: "Web Annotation",
|
|
1659
|
+
description: "LINCS Web Annotation Model",
|
|
1644
1660
|
properties: {
|
|
1645
1661
|
"@context": {
|
|
1646
1662
|
type: "array",
|
package/dist/index.mjs
CHANGED
|
@@ -1395,17 +1395,25 @@ var MotivationSchema = {
|
|
|
1395
1395
|
};
|
|
1396
1396
|
var descriptionCertainty = "Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body.";
|
|
1397
1397
|
var certainties = [
|
|
1398
|
-
"edit:
|
|
1399
|
-
"edit:
|
|
1400
|
-
"edit:
|
|
1401
|
-
"edit:
|
|
1398
|
+
"edit:certaintyUnknown",
|
|
1399
|
+
"edit:certaintyLow",
|
|
1400
|
+
"edit:certaintyMedium",
|
|
1401
|
+
"edit:certaintyHigh"
|
|
1402
1402
|
];
|
|
1403
1403
|
var Certainties = z25.enum(certainties).describe(descriptionCertainty);
|
|
1404
1404
|
var Certainty = z25.union([
|
|
1405
|
-
z25.literal(certainties[0]
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
z25.literal(certainties[
|
|
1405
|
+
z25.literal(certainties[0], {
|
|
1406
|
+
description: 'Indicates that the certainty of or confidence in an assertion, description, identification, value, or measurement is unknown. Equivalent to the "unknown" value for certainty of the Text Encoding Initiative.'
|
|
1407
|
+
}),
|
|
1408
|
+
z25.literal(certainties[1], {
|
|
1409
|
+
description: 'Indicates that the certainty of or confidence in an assertion, description, identification, value, or measurement is considered low. Equivalent to the "low" value for certainty of the Text Encoding Initiative.'
|
|
1410
|
+
}),
|
|
1411
|
+
z25.literal(certainties[2], {
|
|
1412
|
+
description: 'Indicates that the certainty of or confidence in an assertion, description, identification, value, or measurement is considered of medium quality. Equivalent to the "medium" value for certainty of the Text Encoding Initiative.'
|
|
1413
|
+
}),
|
|
1414
|
+
z25.literal(certainties[3], {
|
|
1415
|
+
description: 'Indicates that the certainty of or confidence in an assertion, description, identification, value, or measurement is considered of high quality. Equivalent to the "high" value for certainty of the Text Encoding Initiative.'
|
|
1416
|
+
})
|
|
1409
1417
|
]).describe(descriptionCertainty);
|
|
1410
1418
|
var CertaintySchema = {
|
|
1411
1419
|
oneOf: [{ type: "string", enum: certainties }],
|
|
@@ -1413,17 +1421,25 @@ var CertaintySchema = {
|
|
|
1413
1421
|
};
|
|
1414
1422
|
var precisionDescription = "Indicates the degree of precision associated with the location of the entity linked to the annotation body.";
|
|
1415
1423
|
var precisions = [
|
|
1416
|
-
"edit:
|
|
1417
|
-
"edit:
|
|
1418
|
-
"edit:
|
|
1419
|
-
"edit:
|
|
1424
|
+
"edit:precisionUnknown",
|
|
1425
|
+
"edit:precisionLow",
|
|
1426
|
+
"edit:precisionMedium",
|
|
1427
|
+
"edit:precisionHigh"
|
|
1420
1428
|
];
|
|
1421
1429
|
var Precisions = z25.enum(precisions).describe(precisionDescription);
|
|
1422
1430
|
var Precision = z25.union([
|
|
1423
|
-
z25.literal(precisions[0]
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
z25.literal(precisions[
|
|
1431
|
+
z25.literal(precisions[0], {
|
|
1432
|
+
description: 'Indicates that the precision of or confidence in an assertion, description, identification, value, or measurement is unknown. Equivalent to the "unknown" value for precision of the Text Encoding Initiative.'
|
|
1433
|
+
}),
|
|
1434
|
+
z25.literal(precisions[1], {
|
|
1435
|
+
description: 'Indicates that the precision of or confidence in an assertion, description, identification, value, or measurement is considered low. Equivalent to the "low" value for precision of the Text Encoding Initiative.'
|
|
1436
|
+
}),
|
|
1437
|
+
z25.literal(precisions[2], {
|
|
1438
|
+
description: 'Indicates that the precision of or confidence in an assertion, description, identification, value, or measurement is considered of medium quality. Equivalent to the "medium" value for precision of the Text Encoding Initiative.'
|
|
1439
|
+
}),
|
|
1440
|
+
z25.literal(precisions[3], {
|
|
1441
|
+
description: 'Indicates that the precision of or confidence in an assertion, description, identification, value, or measurement is considered of high quality. Equivalent to the "high" value for precision of the Text Encoding Initiative.'
|
|
1442
|
+
})
|
|
1427
1443
|
]).describe(precisionDescription);
|
|
1428
1444
|
var PrecisionSchema = {
|
|
1429
1445
|
oneOf: [{ type: "string", enum: precisions }],
|
|
@@ -1484,7 +1500,7 @@ var p2HasTypeSchema = {
|
|
|
1484
1500
|
var webAnnotationSchema = {
|
|
1485
1501
|
$id: schemaId,
|
|
1486
1502
|
type: "object",
|
|
1487
|
-
description: "Web Annotation",
|
|
1503
|
+
description: "LINCS Web Annotation Model",
|
|
1488
1504
|
properties: {
|
|
1489
1505
|
"@context": {
|
|
1490
1506
|
type: "array",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$id": "https://wa.lincsproject.ca/v1/schema.jsonld",
|
|
3
3
|
"type": "object",
|
|
4
|
-
"description": "Web Annotation",
|
|
4
|
+
"description": "LINCS Web Annotation Model",
|
|
5
5
|
"properties": {
|
|
6
6
|
"@context": {
|
|
7
7
|
"type": "array",
|
|
@@ -163,10 +163,10 @@
|
|
|
163
163
|
{
|
|
164
164
|
"type": "string",
|
|
165
165
|
"enum": [
|
|
166
|
-
"edit:
|
|
167
|
-
"edit:
|
|
168
|
-
"edit:
|
|
169
|
-
"edit:
|
|
166
|
+
"edit:certaintyUnknown",
|
|
167
|
+
"edit:certaintyLow",
|
|
168
|
+
"edit:certaintyMedium",
|
|
169
|
+
"edit:certaintyHigh"
|
|
170
170
|
]
|
|
171
171
|
}
|
|
172
172
|
],
|
|
@@ -177,10 +177,10 @@
|
|
|
177
177
|
{
|
|
178
178
|
"type": "string",
|
|
179
179
|
"enum": [
|
|
180
|
-
"edit:
|
|
181
|
-
"edit:
|
|
182
|
-
"edit:
|
|
183
|
-
"edit:
|
|
180
|
+
"edit:precisionUnknown",
|
|
181
|
+
"edit:precisionLow",
|
|
182
|
+
"edit:precisionMedium",
|
|
183
|
+
"edit:precisionHigh"
|
|
184
184
|
]
|
|
185
185
|
}
|
|
186
186
|
],
|
|
@@ -399,10 +399,10 @@
|
|
|
399
399
|
{
|
|
400
400
|
"type": "string",
|
|
401
401
|
"enum": [
|
|
402
|
-
"edit:
|
|
403
|
-
"edit:
|
|
404
|
-
"edit:
|
|
405
|
-
"edit:
|
|
402
|
+
"edit:certaintyUnknown",
|
|
403
|
+
"edit:certaintyLow",
|
|
404
|
+
"edit:certaintyMedium",
|
|
405
|
+
"edit:certaintyHigh"
|
|
406
406
|
]
|
|
407
407
|
}
|
|
408
408
|
],
|
|
@@ -413,10 +413,10 @@
|
|
|
413
413
|
{
|
|
414
414
|
"type": "string",
|
|
415
415
|
"enum": [
|
|
416
|
-
"edit:
|
|
417
|
-
"edit:
|
|
418
|
-
"edit:
|
|
419
|
-
"edit:
|
|
416
|
+
"edit:precisionUnknown",
|
|
417
|
+
"edit:precisionLow",
|
|
418
|
+
"edit:precisionMedium",
|
|
419
|
+
"edit:precisionHigh"
|
|
420
420
|
]
|
|
421
421
|
}
|
|
422
422
|
],
|
|
@@ -466,10 +466,10 @@
|
|
|
466
466
|
{
|
|
467
467
|
"type": "string",
|
|
468
468
|
"enum": [
|
|
469
|
-
"edit:
|
|
470
|
-
"edit:
|
|
471
|
-
"edit:
|
|
472
|
-
"edit:
|
|
469
|
+
"edit:certaintyUnknown",
|
|
470
|
+
"edit:certaintyLow",
|
|
471
|
+
"edit:certaintyMedium",
|
|
472
|
+
"edit:certaintyHigh"
|
|
473
473
|
]
|
|
474
474
|
}
|
|
475
475
|
],
|
|
@@ -480,10 +480,10 @@
|
|
|
480
480
|
{
|
|
481
481
|
"type": "string",
|
|
482
482
|
"enum": [
|
|
483
|
-
"edit:
|
|
484
|
-
"edit:
|
|
485
|
-
"edit:
|
|
486
|
-
"edit:
|
|
483
|
+
"edit:precisionUnknown",
|
|
484
|
+
"edit:precisionLow",
|
|
485
|
+
"edit:precisionMedium",
|
|
486
|
+
"edit:precisionHigh"
|
|
487
487
|
]
|
|
488
488
|
}
|
|
489
489
|
],
|
|
@@ -544,10 +544,10 @@
|
|
|
544
544
|
{
|
|
545
545
|
"type": "string",
|
|
546
546
|
"enum": [
|
|
547
|
-
"edit:
|
|
548
|
-
"edit:
|
|
549
|
-
"edit:
|
|
550
|
-
"edit:
|
|
547
|
+
"edit:certaintyUnknown",
|
|
548
|
+
"edit:certaintyLow",
|
|
549
|
+
"edit:certaintyMedium",
|
|
550
|
+
"edit:certaintyHigh"
|
|
551
551
|
]
|
|
552
552
|
}
|
|
553
553
|
],
|
|
@@ -558,10 +558,10 @@
|
|
|
558
558
|
{
|
|
559
559
|
"type": "string",
|
|
560
560
|
"enum": [
|
|
561
|
-
"edit:
|
|
562
|
-
"edit:
|
|
563
|
-
"edit:
|
|
564
|
-
"edit:
|
|
561
|
+
"edit:precisionUnknown",
|
|
562
|
+
"edit:precisionLow",
|
|
563
|
+
"edit:precisionMedium",
|
|
564
|
+
"edit:precisionHigh"
|
|
565
565
|
]
|
|
566
566
|
}
|
|
567
567
|
],
|
|
@@ -626,10 +626,10 @@
|
|
|
626
626
|
{
|
|
627
627
|
"type": "string",
|
|
628
628
|
"enum": [
|
|
629
|
-
"edit:
|
|
630
|
-
"edit:
|
|
631
|
-
"edit:
|
|
632
|
-
"edit:
|
|
629
|
+
"edit:certaintyUnknown",
|
|
630
|
+
"edit:certaintyLow",
|
|
631
|
+
"edit:certaintyMedium",
|
|
632
|
+
"edit:certaintyHigh"
|
|
633
633
|
]
|
|
634
634
|
}
|
|
635
635
|
],
|
|
@@ -640,10 +640,10 @@
|
|
|
640
640
|
{
|
|
641
641
|
"type": "string",
|
|
642
642
|
"enum": [
|
|
643
|
-
"edit:
|
|
644
|
-
"edit:
|
|
645
|
-
"edit:
|
|
646
|
-
"edit:
|
|
643
|
+
"edit:precisionUnknown",
|
|
644
|
+
"edit:precisionLow",
|
|
645
|
+
"edit:precisionMedium",
|
|
646
|
+
"edit:precisionHigh"
|
|
647
647
|
]
|
|
648
648
|
}
|
|
649
649
|
],
|
|
@@ -693,10 +693,10 @@
|
|
|
693
693
|
{
|
|
694
694
|
"type": "string",
|
|
695
695
|
"enum": [
|
|
696
|
-
"edit:
|
|
697
|
-
"edit:
|
|
698
|
-
"edit:
|
|
699
|
-
"edit:
|
|
696
|
+
"edit:certaintyUnknown",
|
|
697
|
+
"edit:certaintyLow",
|
|
698
|
+
"edit:certaintyMedium",
|
|
699
|
+
"edit:certaintyHigh"
|
|
700
700
|
]
|
|
701
701
|
}
|
|
702
702
|
],
|
|
@@ -707,10 +707,10 @@
|
|
|
707
707
|
{
|
|
708
708
|
"type": "string",
|
|
709
709
|
"enum": [
|
|
710
|
-
"edit:
|
|
711
|
-
"edit:
|
|
712
|
-
"edit:
|
|
713
|
-
"edit:
|
|
710
|
+
"edit:precisionUnknown",
|
|
711
|
+
"edit:precisionLow",
|
|
712
|
+
"edit:precisionMedium",
|
|
713
|
+
"edit:precisionHigh"
|
|
714
714
|
]
|
|
715
715
|
}
|
|
716
716
|
],
|
|
@@ -771,10 +771,10 @@
|
|
|
771
771
|
{
|
|
772
772
|
"type": "string",
|
|
773
773
|
"enum": [
|
|
774
|
-
"edit:
|
|
775
|
-
"edit:
|
|
776
|
-
"edit:
|
|
777
|
-
"edit:
|
|
774
|
+
"edit:certaintyUnknown",
|
|
775
|
+
"edit:certaintyLow",
|
|
776
|
+
"edit:certaintyMedium",
|
|
777
|
+
"edit:certaintyHigh"
|
|
778
778
|
]
|
|
779
779
|
}
|
|
780
780
|
],
|
|
@@ -785,10 +785,10 @@
|
|
|
785
785
|
{
|
|
786
786
|
"type": "string",
|
|
787
787
|
"enum": [
|
|
788
|
-
"edit:
|
|
789
|
-
"edit:
|
|
790
|
-
"edit:
|
|
791
|
-
"edit:
|
|
788
|
+
"edit:precisionUnknown",
|
|
789
|
+
"edit:precisionLow",
|
|
790
|
+
"edit:precisionMedium",
|
|
791
|
+
"edit:precisionHigh"
|
|
792
792
|
]
|
|
793
793
|
}
|
|
794
794
|
],
|