@lincs.project/webannotation-schema 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,7 @@
6
6
  "crmdig": "http://www.ics.forth.gr/isl/CRMdig/",
7
7
  "cwrc": "http://id.lincsproject.ca/cwrc/",
8
8
  "edit": "http://id.lincsproject.ca/edit/",
9
+ "event": "http://id.lincsproject.ca/event",
9
10
  "fabio": "https://purl.org/spar/fabio/",
10
11
  "frbroo": "http://iflastandards.info/ns/fr/frbr/frbroo/",
11
12
  "wikidata": "http://www.wikidata.org/entity/",
@@ -26,27 +27,7 @@
26
27
  "oa:linking": {
27
28
  "type": "crm:E55_Type"
28
29
  },
29
- "certainty": {
30
- "@type": "@id",
31
- "@id": "http://temp.lincsproject.ca/certainty"
32
- },
33
- "precision": {
34
- "@type": "@id",
35
- "@id": "http://temp.lincsproject.ca/precision"
36
- },
37
30
  "contributor": "dcterms:contributor",
38
- "entityType": {
39
- "@type": "@id",
40
- "@id": "rdf:type"
41
- },
42
- "additionalType": {
43
- "@type": "@id",
44
- "@id": "crm:P2_has_type"
45
- },
46
- "modeExistence": {
47
- "@type": "@id",
48
- "@id": "edit:ModeExistence"
49
- },
50
31
  "description": "rdfs:comment",
51
32
  "title": "crm:P190_has_symbolic_content",
52
33
  "softwareVersion": "schema:softwareVersion"
@@ -152,7 +152,7 @@
152
152
  "description": "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.",
153
153
  "minLength": 1
154
154
  },
155
- "description": "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."
155
+ "description": "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."
156
156
  }
157
157
  ]
158
158
  },
@@ -204,7 +204,7 @@
204
204
  "minLength": 2,
205
205
  "maxLength": 3
206
206
  },
207
- "description": "The languages of the Web Resource's content. The value of the property should be an array of language code following the [bcp47] specification."
207
+ "description": "The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification."
208
208
  }
209
209
  ]
210
210
  }
@@ -1104,10 +1104,6 @@
1104
1104
  "description": "The IRI that identifies the Body resource."
1105
1105
  },
1106
1106
  "type": {
1107
- "type": "string",
1108
- "const": "TextualBody"
1109
- },
1110
- "entityType": {
1111
1107
  "oneOf": [
1112
1108
  {
1113
1109
  "oneOf": [
@@ -1224,11 +1220,15 @@
1224
1220
  }
1225
1221
  ]
1226
1222
  },
1223
+ {
1224
+ "type": "string",
1225
+ "const": "crm:E28_Conceptual_Object"
1226
+ },
1227
1227
  {
1228
1228
  "oneOf": [
1229
1229
  {
1230
1230
  "type": "string",
1231
- "const": "crm:E28_Conceptual_Object"
1231
+ "const": "crm:E5_Event"
1232
1232
  },
1233
1233
  {
1234
1234
  "type": "array",
@@ -1237,11 +1237,11 @@
1237
1237
  "items": [
1238
1238
  {
1239
1239
  "type": "string",
1240
- "const": "crm:E28_Conceptual_Object"
1240
+ "const": "event:Event"
1241
1241
  },
1242
1242
  {
1243
1243
  "type": "string",
1244
- "const": "wikidata:Q15831596"
1244
+ "const": "crm:E89_Propositional_Object"
1245
1245
  }
1246
1246
  ]
1247
1247
  }
@@ -1264,9 +1264,13 @@
1264
1264
  },
1265
1265
  {
1266
1266
  "type": "array",
1267
- "minItems": 2,
1268
- "maxItems": 2,
1267
+ "minItems": 3,
1268
+ "maxItems": 3,
1269
1269
  "items": [
1270
+ {
1271
+ "type": "string",
1272
+ "const": "TextualBody"
1273
+ },
1270
1274
  {
1271
1275
  "type": "string",
1272
1276
  "const": "xsd:date"
@@ -1277,10 +1281,6 @@
1277
1281
  }
1278
1282
  ]
1279
1283
  },
1280
- {
1281
- "type": "string",
1282
- "const": "crm:E33_Linguistic_Object"
1283
- },
1284
1284
  {
1285
1285
  "type": "array",
1286
1286
  "minItems": 2,
@@ -1288,7 +1288,7 @@
1288
1288
  "items": [
1289
1289
  {
1290
1290
  "type": "string",
1291
- "const": "fabio:Correction"
1291
+ "const": "TextualBody"
1292
1292
  },
1293
1293
  {
1294
1294
  "type": "string",
@@ -1298,16 +1298,20 @@
1298
1298
  },
1299
1299
  {
1300
1300
  "type": "array",
1301
- "minItems": 2,
1302
- "maxItems": 2,
1301
+ "minItems": 3,
1302
+ "maxItems": 3,
1303
1303
  "items": [
1304
1304
  {
1305
1305
  "type": "string",
1306
- "const": "crm:E55_Type"
1306
+ "const": "TextualBody"
1307
1307
  },
1308
1308
  {
1309
1309
  "type": "string",
1310
- "const": "crmdig:D1_Digital_Object"
1310
+ "const": "fabio:Correction"
1311
+ },
1312
+ {
1313
+ "type": "string",
1314
+ "const": "crm:E33_Linguistic_Object"
1311
1315
  }
1312
1316
  ]
1313
1317
  },
@@ -1322,49 +1326,32 @@
1322
1326
  },
1323
1327
  {
1324
1328
  "type": "string",
1325
- "const": "crm:E33_Linguistic_Object"
1329
+ "const": "crmdig:D1_Digital_Object"
1326
1330
  }
1327
1331
  ]
1328
1332
  },
1329
1333
  {
1330
- "type": "string",
1331
- "const": "crmdig:D1_Digital_Object"
1332
- },
1333
- {
1334
- "oneOf": [
1334
+ "type": "array",
1335
+ "minItems": 3,
1336
+ "maxItems": 3,
1337
+ "items": [
1335
1338
  {
1336
1339
  "type": "string",
1337
- "const": "crm:E5_Event"
1340
+ "const": "TextualBody"
1338
1341
  },
1339
1342
  {
1340
- "type": "array",
1341
- "minItems": 2,
1342
- "maxItems": 2,
1343
- "items": [
1344
- {
1345
- "type": "string",
1346
- "const": "crm:E5_Event"
1347
- },
1348
- {
1349
- "type": "string",
1350
- "const": "crm:E89_Propositional_Object"
1351
- }
1352
- ]
1343
+ "type": "string",
1344
+ "const": "crm:E55_Type"
1345
+ },
1346
+ {
1347
+ "type": "string",
1348
+ "const": "crm:E33_Linguistic_Object"
1353
1349
  }
1354
1350
  ]
1355
- }
1356
- ]
1357
- },
1358
- "additionalType": {
1359
- "anyOf": [
1360
- {
1361
- "type": "string"
1362
1351
  },
1363
1352
  {
1364
- "type": "array",
1365
- "items": {
1366
- "type": "string"
1367
- }
1353
+ "type": "string",
1354
+ "const": "crmdig:D1_Digital_Object"
1368
1355
  }
1369
1356
  ]
1370
1357
  },
@@ -1376,25 +1363,11 @@
1376
1363
  "minLength": 1,
1377
1364
  "description": "The title or name of a linked resource or named entity."
1378
1365
  },
1379
- "modeExistence": {
1380
- "oneOf": [
1381
- {
1382
- "type": "string",
1383
- "const": "edit:modeReal",
1384
- "description": "An indication that an entity or thing, such as a person, place or text, is understood to be part of lived or historical existence."
1385
- },
1386
- {
1387
- "type": "string",
1388
- "const": "edit:modeFictional",
1389
- "description": "An indication that an entity or a thing, such as a person, place or text, is invented or imagined."
1390
- },
1391
- {
1392
- "type": "string",
1393
- "const": "edit:modeIdentifiable",
1394
- "description": "An indication that an entity or a thing is understood as both existing and imagined, for instance a character in a work of literature that corresponds to a historical person or a place represented under another name that can be identified as a real place."
1395
- }
1396
- ],
1397
- "description": "An indication of the state of being of an entity or thing (OED)."
1366
+ "P2_has_type": {
1367
+ "type": "array",
1368
+ "items": {
1369
+ "type": "string"
1370
+ }
1398
1371
  },
1399
1372
  "description": {
1400
1373
  "type": "string",
@@ -1403,53 +1376,83 @@
1403
1376
  },
1404
1377
  "required": [
1405
1378
  "id",
1406
- "entityType"
1379
+ "type"
1407
1380
  ],
1408
1381
  "anyOf": [
1409
1382
  {
1410
1383
  "if": {
1411
1384
  "type": "object",
1412
1385
  "properties": {
1413
- "entityType": {
1386
+ "type": {
1414
1387
  "anyOf": [
1415
- {
1416
- "const": "crm:E33_Linguistic_Object"
1417
- },
1418
1388
  {
1419
1389
  "type": "array",
1420
1390
  "minItems": 2,
1421
1391
  "maxItems": 2,
1422
1392
  "items": [
1423
1393
  {
1394
+ "type": "string",
1395
+ "const": "TextualBody"
1396
+ },
1397
+ {
1398
+ "type": "string",
1399
+ "const": "crm:E33_Linguistic_Object"
1400
+ }
1401
+ ]
1402
+ },
1403
+ {
1404
+ "type": "array",
1405
+ "minItems": 3,
1406
+ "maxItems": 3,
1407
+ "items": [
1408
+ {
1409
+ "type": "string",
1410
+ "const": "TextualBody"
1411
+ },
1412
+ {
1413
+ "type": "string",
1424
1414
  "const": "xsd:date"
1425
1415
  },
1426
1416
  {
1417
+ "type": "string",
1427
1418
  "const": "crm:E52_Time-Span"
1428
1419
  }
1429
1420
  ]
1430
1421
  },
1431
1422
  {
1432
1423
  "type": "array",
1433
- "minItems": 2,
1434
- "maxItems": 2,
1424
+ "minItems": 3,
1425
+ "maxItems": 3,
1435
1426
  "items": [
1436
1427
  {
1428
+ "type": "string",
1429
+ "const": "TextualBody"
1430
+ },
1431
+ {
1432
+ "type": "string",
1437
1433
  "const": "fabio:Correction"
1438
1434
  },
1439
1435
  {
1436
+ "type": "string",
1440
1437
  "const": "crm:E33_Linguistic_Object"
1441
1438
  }
1442
1439
  ]
1443
1440
  },
1444
1441
  {
1445
1442
  "type": "array",
1446
- "minItems": 2,
1447
- "maxItems": 2,
1443
+ "minItems": 3,
1444
+ "maxItems": 3,
1448
1445
  "items": [
1449
1446
  {
1447
+ "type": "string",
1448
+ "const": "TextualBody"
1449
+ },
1450
+ {
1451
+ "type": "string",
1450
1452
  "const": "crm:E55_Type"
1451
1453
  },
1452
1454
  {
1455
+ "type": "string",
1453
1456
  "const": "crm:E33_Linguistic_Object"
1454
1457
  }
1455
1458
  ]
@@ -1461,27 +1464,28 @@
1461
1464
  "then": {
1462
1465
  "type": "object",
1463
1466
  "required": [
1467
+ "id",
1464
1468
  "type",
1465
1469
  "value"
1466
1470
  ],
1467
- "properties": {
1468
- "type": {
1469
- "type": "string",
1470
- "const": "TextualBody"
1471
- }
1472
- },
1473
1471
  "if": {
1474
1472
  "type": "object",
1475
1473
  "properties": {
1476
- "entityType": {
1474
+ "type": {
1477
1475
  "type": "array",
1478
- "minItems": 2,
1479
- "maxItems": 2,
1476
+ "minItems": 3,
1477
+ "maxItems": 3,
1480
1478
  "items": [
1481
1479
  {
1480
+ "type": "string",
1481
+ "const": "TextualBody"
1482
+ },
1483
+ {
1484
+ "type": "string",
1482
1485
  "const": "xsd:date"
1483
1486
  },
1484
1487
  {
1488
+ "type": "string",
1485
1489
  "const": "crm:E52_Time-Span"
1486
1490
  }
1487
1491
  ]
@@ -1490,20 +1494,17 @@
1490
1494
  },
1491
1495
  "then": {
1492
1496
  "type": "object",
1497
+ "required": [
1498
+ "id",
1499
+ "type",
1500
+ "value"
1501
+ ],
1493
1502
  "properties": {
1494
1503
  "value": {
1495
1504
  "type": "string",
1496
1505
  "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)?)$"
1497
1506
  }
1498
1507
  }
1499
- },
1500
- "else": {
1501
- "type": "object",
1502
- "properties": {
1503
- "value": {
1504
- "type": "string"
1505
- }
1506
- }
1507
1508
  }
1508
1509
  }
1509
1510
  }
@@ -1523,259 +1524,6 @@
1523
1524
  "type": "string",
1524
1525
  "const": "Choice"
1525
1526
  },
1526
- "entityType": {
1527
- "oneOf": [
1528
- {
1529
- "oneOf": [
1530
- {
1531
- "type": "string",
1532
- "const": "crm:E21_Person"
1533
- },
1534
- {
1535
- "type": "array",
1536
- "minItems": 2,
1537
- "maxItems": 2,
1538
- "items": [
1539
- {
1540
- "type": "string",
1541
- "const": "foaf:Person"
1542
- },
1543
- {
1544
- "type": "string",
1545
- "const": "crm:E89_Propositional_Object"
1546
- }
1547
- ]
1548
- }
1549
- ]
1550
- },
1551
- {
1552
- "oneOf": [
1553
- {
1554
- "type": "string",
1555
- "const": "crm:E53_Place"
1556
- },
1557
- {
1558
- "type": "array",
1559
- "minItems": 2,
1560
- "maxItems": 2,
1561
- "items": [
1562
- {
1563
- "type": "string",
1564
- "const": "biography:fictionalPlace"
1565
- },
1566
- {
1567
- "type": "string",
1568
- "const": "crm:E89_Propositional_Object"
1569
- }
1570
- ]
1571
- }
1572
- ]
1573
- },
1574
- {
1575
- "oneOf": [
1576
- {
1577
- "type": "string",
1578
- "const": "crm:E74_Group"
1579
- },
1580
- {
1581
- "type": "array",
1582
- "minItems": 2,
1583
- "maxItems": 2,
1584
- "items": [
1585
- {
1586
- "type": "string",
1587
- "const": "foaf:Organization"
1588
- },
1589
- {
1590
- "type": "string",
1591
- "const": "crm:E89_Propositional_Object"
1592
- }
1593
- ]
1594
- }
1595
- ]
1596
- },
1597
- {
1598
- "oneOf": [
1599
- {
1600
- "type": "string",
1601
- "const": "frbroo:F1"
1602
- },
1603
- {
1604
- "type": "array",
1605
- "minItems": 2,
1606
- "maxItems": 2,
1607
- "items": [
1608
- {
1609
- "type": "string",
1610
- "const": "frbroo:F1"
1611
- },
1612
- {
1613
- "type": "string",
1614
- "const": "wikidata:Q15306849"
1615
- }
1616
- ]
1617
- }
1618
- ]
1619
- },
1620
- {
1621
- "oneOf": [
1622
- {
1623
- "type": "string",
1624
- "const": "crm:E18_Physical_Thing"
1625
- },
1626
- {
1627
- "type": "array",
1628
- "minItems": 2,
1629
- "maxItems": 2,
1630
- "items": [
1631
- {
1632
- "type": "string",
1633
- "const": "crm:E18_Physical_Thing"
1634
- },
1635
- {
1636
- "type": "string",
1637
- "const": "wikidata:Q15831596"
1638
- }
1639
- ]
1640
- }
1641
- ]
1642
- },
1643
- {
1644
- "oneOf": [
1645
- {
1646
- "type": "string",
1647
- "const": "crm:E28_Conceptual_Object"
1648
- },
1649
- {
1650
- "type": "array",
1651
- "minItems": 2,
1652
- "maxItems": 2,
1653
- "items": [
1654
- {
1655
- "type": "string",
1656
- "const": "crm:E28_Conceptual_Object"
1657
- },
1658
- {
1659
- "type": "string",
1660
- "const": "wikidata:Q15831596"
1661
- }
1662
- ]
1663
- }
1664
- ]
1665
- },
1666
- {
1667
- "type": "array",
1668
- "minItems": 2,
1669
- "maxItems": 2,
1670
- "items": [
1671
- {
1672
- "type": "string",
1673
- "const": "cito:Citation"
1674
- },
1675
- {
1676
- "type": "string",
1677
- "const": "crm:E73_Information_Object"
1678
- }
1679
- ]
1680
- },
1681
- {
1682
- "type": "array",
1683
- "minItems": 2,
1684
- "maxItems": 2,
1685
- "items": [
1686
- {
1687
- "type": "string",
1688
- "const": "xsd:date"
1689
- },
1690
- {
1691
- "type": "string",
1692
- "const": "crm:E52_Time-Span"
1693
- }
1694
- ]
1695
- },
1696
- {
1697
- "type": "string",
1698
- "const": "crm:E33_Linguistic_Object"
1699
- },
1700
- {
1701
- "type": "array",
1702
- "minItems": 2,
1703
- "maxItems": 2,
1704
- "items": [
1705
- {
1706
- "type": "string",
1707
- "const": "fabio:Correction"
1708
- },
1709
- {
1710
- "type": "string",
1711
- "const": "crm:E33_Linguistic_Object"
1712
- }
1713
- ]
1714
- },
1715
- {
1716
- "type": "array",
1717
- "minItems": 2,
1718
- "maxItems": 2,
1719
- "items": [
1720
- {
1721
- "type": "string",
1722
- "const": "crm:E55_Type"
1723
- },
1724
- {
1725
- "type": "string",
1726
- "const": "crmdig:D1_Digital_Object"
1727
- }
1728
- ]
1729
- },
1730
- {
1731
- "type": "array",
1732
- "minItems": 2,
1733
- "maxItems": 2,
1734
- "items": [
1735
- {
1736
- "type": "string",
1737
- "const": "crm:E55_Type"
1738
- },
1739
- {
1740
- "type": "string",
1741
- "const": "crm:E33_Linguistic_Object"
1742
- }
1743
- ]
1744
- },
1745
- {
1746
- "type": "string",
1747
- "const": "crmdig:D1_Digital_Object"
1748
- },
1749
- {
1750
- "oneOf": [
1751
- {
1752
- "type": "string",
1753
- "const": "crm:E5_Event"
1754
- },
1755
- {
1756
- "type": "array",
1757
- "minItems": 2,
1758
- "maxItems": 2,
1759
- "items": [
1760
- {
1761
- "type": "string",
1762
- "const": "crm:E5_Event"
1763
- },
1764
- {
1765
- "type": "string",
1766
- "const": "crm:E89_Propositional_Object"
1767
- }
1768
- ]
1769
- }
1770
- ]
1771
- }
1772
- ]
1773
- },
1774
- "label": {
1775
- "type": "string",
1776
- "minLength": 1,
1777
- "description": "The title or name of a linked resource or named entity."
1778
- },
1779
1527
  "items": {
1780
1528
  "type": "array",
1781
1529
  "items": {
@@ -1786,7 +1534,6 @@
1786
1534
  "required": [
1787
1535
  "id",
1788
1536
  "type",
1789
- "entityType",
1790
1537
  "items"
1791
1538
  ],
1792
1539
  "additionalProperties": false