@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
|
@@ -1164,16 +1164,27 @@
|
|
|
1164
1164
|
"const": "crmdig:D1_Digital_Object"
|
|
1165
1165
|
},
|
|
1166
1166
|
{
|
|
1167
|
-
"
|
|
1167
|
+
"type": "array",
|
|
1168
|
+
"minItems": 2,
|
|
1169
|
+
"maxItems": 2,
|
|
1170
|
+
"items": [
|
|
1168
1171
|
{
|
|
1169
1172
|
"type": "string",
|
|
1170
|
-
"const": "
|
|
1171
|
-
"description": "Real Event"
|
|
1173
|
+
"const": "YET TO BE DEFINED EVENT CLASS"
|
|
1172
1174
|
},
|
|
1173
1175
|
{
|
|
1174
|
-
"
|
|
1175
|
-
|
|
1176
|
-
|
|
1176
|
+
"oneOf": [
|
|
1177
|
+
{
|
|
1178
|
+
"type": "string",
|
|
1179
|
+
"const": "crm:E5_Event",
|
|
1180
|
+
"description": "Real Event"
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"type": "string",
|
|
1184
|
+
"const": "crm:E89_Propositional_Object",
|
|
1185
|
+
"description": "Fictional Event"
|
|
1186
|
+
}
|
|
1187
|
+
]
|
|
1177
1188
|
}
|
|
1178
1189
|
]
|
|
1179
1190
|
}
|
|
@@ -1333,6 +1344,298 @@
|
|
|
1333
1344
|
}
|
|
1334
1345
|
],
|
|
1335
1346
|
"additionalProperties": false
|
|
1347
|
+
},
|
|
1348
|
+
"bodyChoice": {
|
|
1349
|
+
"type": "object",
|
|
1350
|
+
"description": "Web Annotation Body",
|
|
1351
|
+
"properties": {
|
|
1352
|
+
"id": {
|
|
1353
|
+
"type": "string",
|
|
1354
|
+
"format": "uri",
|
|
1355
|
+
"description": "The IRI that identifies the Body resource."
|
|
1356
|
+
},
|
|
1357
|
+
"type": {
|
|
1358
|
+
"type": "string",
|
|
1359
|
+
"const": "Choice"
|
|
1360
|
+
},
|
|
1361
|
+
"entityType": {
|
|
1362
|
+
"oneOf": [
|
|
1363
|
+
{
|
|
1364
|
+
"type": "array",
|
|
1365
|
+
"minItems": 2,
|
|
1366
|
+
"maxItems": 2,
|
|
1367
|
+
"items": [
|
|
1368
|
+
{
|
|
1369
|
+
"type": "string",
|
|
1370
|
+
"const": "Person"
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
"oneOf": [
|
|
1374
|
+
{
|
|
1375
|
+
"type": "string",
|
|
1376
|
+
"const": "crm:E21_Person",
|
|
1377
|
+
"description": "Real Person"
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"type": "string",
|
|
1381
|
+
"const": "crm:E89_Propositional_Object",
|
|
1382
|
+
"description": "Fictional Person"
|
|
1383
|
+
}
|
|
1384
|
+
]
|
|
1385
|
+
}
|
|
1386
|
+
]
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
"oneOf": [
|
|
1390
|
+
{
|
|
1391
|
+
"type": "string",
|
|
1392
|
+
"const": "cwrc:place"
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"type": "array",
|
|
1396
|
+
"minItems": 2,
|
|
1397
|
+
"maxItems": 2,
|
|
1398
|
+
"items": [
|
|
1399
|
+
{
|
|
1400
|
+
"type": "string",
|
|
1401
|
+
"const": "cwrc:place"
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"type": "string",
|
|
1405
|
+
"const": "crm:E89_Propositional_Object",
|
|
1406
|
+
"description": "Fictional Place"
|
|
1407
|
+
}
|
|
1408
|
+
]
|
|
1409
|
+
}
|
|
1410
|
+
]
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
"type": "array",
|
|
1414
|
+
"minItems": 2,
|
|
1415
|
+
"maxItems": 2,
|
|
1416
|
+
"items": [
|
|
1417
|
+
{
|
|
1418
|
+
"type": "string",
|
|
1419
|
+
"const": "foaf:Organization"
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
"oneOf": [
|
|
1423
|
+
{
|
|
1424
|
+
"type": "string",
|
|
1425
|
+
"const": "crm:E74_Group",
|
|
1426
|
+
"description": "Real Organization"
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"type": "string",
|
|
1430
|
+
"const": "crm:E89_Propositional_Object",
|
|
1431
|
+
"description": "Fictional Organization"
|
|
1432
|
+
}
|
|
1433
|
+
]
|
|
1434
|
+
}
|
|
1435
|
+
]
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"type": "array",
|
|
1439
|
+
"minItems": 2,
|
|
1440
|
+
"maxItems": 2,
|
|
1441
|
+
"items": [
|
|
1442
|
+
{
|
|
1443
|
+
"type": "string",
|
|
1444
|
+
"const": "crm:E89_Propositional_Object"
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"oneOf": [
|
|
1448
|
+
{
|
|
1449
|
+
"type": "string",
|
|
1450
|
+
"const": "frbroo:F1",
|
|
1451
|
+
"description": "Real Work"
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
"type": "string",
|
|
1455
|
+
"const": "wikidata:Q15306849",
|
|
1456
|
+
"description": "Fictional Work"
|
|
1457
|
+
}
|
|
1458
|
+
]
|
|
1459
|
+
}
|
|
1460
|
+
]
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"oneOf": [
|
|
1464
|
+
{
|
|
1465
|
+
"type": "string",
|
|
1466
|
+
"const": "crm:E18_Physical_Thing"
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
"type": "array",
|
|
1470
|
+
"minItems": 2,
|
|
1471
|
+
"maxItems": 2,
|
|
1472
|
+
"items": [
|
|
1473
|
+
{
|
|
1474
|
+
"type": "string",
|
|
1475
|
+
"const": "crm:E18_Physical_Thing"
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
"type": "string",
|
|
1479
|
+
"const": "wikidata:Q15831596",
|
|
1480
|
+
"description": "Fictional Physical Thing"
|
|
1481
|
+
}
|
|
1482
|
+
]
|
|
1483
|
+
}
|
|
1484
|
+
]
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
"oneOf": [
|
|
1488
|
+
{
|
|
1489
|
+
"type": "string",
|
|
1490
|
+
"const": "crm:E28_Conceptual_Object"
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
"type": "array",
|
|
1494
|
+
"minItems": 2,
|
|
1495
|
+
"maxItems": 2,
|
|
1496
|
+
"items": [
|
|
1497
|
+
{
|
|
1498
|
+
"type": "string",
|
|
1499
|
+
"const": "crm:E28_Conceptual_Object"
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
"type": "string",
|
|
1503
|
+
"const": "wikidata:Q15831596",
|
|
1504
|
+
"description": "Fictional Conceptual Object"
|
|
1505
|
+
}
|
|
1506
|
+
]
|
|
1507
|
+
}
|
|
1508
|
+
]
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
"type": "array",
|
|
1512
|
+
"minItems": 2,
|
|
1513
|
+
"maxItems": 2,
|
|
1514
|
+
"items": [
|
|
1515
|
+
{
|
|
1516
|
+
"type": "string",
|
|
1517
|
+
"const": "cito:Citation"
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
"type": "string",
|
|
1521
|
+
"const": "crm:E73_Information_Object"
|
|
1522
|
+
}
|
|
1523
|
+
]
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
"type": "array",
|
|
1527
|
+
"minItems": 2,
|
|
1528
|
+
"maxItems": 2,
|
|
1529
|
+
"items": [
|
|
1530
|
+
{
|
|
1531
|
+
"type": "string",
|
|
1532
|
+
"const": "xsd:date"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"type": "string",
|
|
1536
|
+
"const": "crm:E52_Time-Span"
|
|
1537
|
+
}
|
|
1538
|
+
]
|
|
1539
|
+
},
|
|
1540
|
+
{
|
|
1541
|
+
"type": "string",
|
|
1542
|
+
"const": "crm:E33_Linguistic_Object"
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
"type": "array",
|
|
1546
|
+
"minItems": 2,
|
|
1547
|
+
"maxItems": 2,
|
|
1548
|
+
"items": [
|
|
1549
|
+
{
|
|
1550
|
+
"type": "string",
|
|
1551
|
+
"const": "fabio:Correction"
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"type": "string",
|
|
1555
|
+
"const": "crm:E33_Linguistic_Object"
|
|
1556
|
+
}
|
|
1557
|
+
]
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"type": "array",
|
|
1561
|
+
"minItems": 2,
|
|
1562
|
+
"maxItems": 2,
|
|
1563
|
+
"items": [
|
|
1564
|
+
{
|
|
1565
|
+
"type": "string",
|
|
1566
|
+
"const": "crm:E55_Type"
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"type": "string",
|
|
1570
|
+
"const": "crmdig:D1_Digital_Object"
|
|
1571
|
+
}
|
|
1572
|
+
]
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
"type": "array",
|
|
1576
|
+
"minItems": 2,
|
|
1577
|
+
"maxItems": 2,
|
|
1578
|
+
"items": [
|
|
1579
|
+
{
|
|
1580
|
+
"type": "string",
|
|
1581
|
+
"const": "crm:E55_Type"
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
"type": "string",
|
|
1585
|
+
"const": "crm:E33_Linguistic_Object"
|
|
1586
|
+
}
|
|
1587
|
+
]
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
"type": "string",
|
|
1591
|
+
"const": "crmdig:D1_Digital_Object"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"type": "array",
|
|
1595
|
+
"minItems": 2,
|
|
1596
|
+
"maxItems": 2,
|
|
1597
|
+
"items": [
|
|
1598
|
+
{
|
|
1599
|
+
"type": "string",
|
|
1600
|
+
"const": "YET TO BE DEFINED EVENT CLASS"
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
"oneOf": [
|
|
1604
|
+
{
|
|
1605
|
+
"type": "string",
|
|
1606
|
+
"const": "crm:E5_Event",
|
|
1607
|
+
"description": "Real Event"
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
"type": "string",
|
|
1611
|
+
"const": "crm:E89_Propositional_Object",
|
|
1612
|
+
"description": "Fictional Event"
|
|
1613
|
+
}
|
|
1614
|
+
]
|
|
1615
|
+
}
|
|
1616
|
+
]
|
|
1617
|
+
}
|
|
1618
|
+
]
|
|
1619
|
+
},
|
|
1620
|
+
"label": {
|
|
1621
|
+
"type": "string",
|
|
1622
|
+
"minLength": 1,
|
|
1623
|
+
"description": "The title or name of a linked resource or named entity."
|
|
1624
|
+
},
|
|
1625
|
+
"items": {
|
|
1626
|
+
"type": "array",
|
|
1627
|
+
"items": {
|
|
1628
|
+
"$ref": "defs.jsonld#/definitions/body"
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1632
|
+
"required": [
|
|
1633
|
+
"id",
|
|
1634
|
+
"type",
|
|
1635
|
+
"entityType",
|
|
1636
|
+
"items"
|
|
1637
|
+
],
|
|
1638
|
+
"additionalProperties": false
|
|
1336
1639
|
}
|
|
1337
1640
|
},
|
|
1338
1641
|
"required": []
|
|
@@ -92,6 +92,9 @@
|
|
|
92
92
|
},
|
|
93
93
|
"body": {
|
|
94
94
|
"oneOf": [
|
|
95
|
+
{
|
|
96
|
+
"$ref": "defs.jsonld#/definitions/bodyChoice"
|
|
97
|
+
},
|
|
95
98
|
{
|
|
96
99
|
"$ref": "defs.jsonld#/definitions/body"
|
|
97
100
|
},
|
|
@@ -297,16 +300,27 @@
|
|
|
297
300
|
]
|
|
298
301
|
},
|
|
299
302
|
{
|
|
300
|
-
"
|
|
303
|
+
"type": "array",
|
|
304
|
+
"minItems": 2,
|
|
305
|
+
"maxItems": 2,
|
|
306
|
+
"items": [
|
|
301
307
|
{
|
|
302
308
|
"type": "string",
|
|
303
|
-
"const": "
|
|
304
|
-
"description": "Real Event"
|
|
309
|
+
"const": "YET TO BE DEFINED EVENT CLASS"
|
|
305
310
|
},
|
|
306
311
|
{
|
|
307
|
-
"
|
|
308
|
-
|
|
309
|
-
|
|
312
|
+
"oneOf": [
|
|
313
|
+
{
|
|
314
|
+
"type": "string",
|
|
315
|
+
"const": "crm:E5_Event",
|
|
316
|
+
"description": "Real Event"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"type": "string",
|
|
320
|
+
"const": "crm:E89_Propositional_Object",
|
|
321
|
+
"description": "Fictional Event"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
310
324
|
}
|
|
311
325
|
]
|
|
312
326
|
}
|