@lincs.project/webannotation-schema 1.16.0 → 1.17.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.
@@ -53,6 +53,7 @@
53
53
  "oa:describing",
54
54
  "correcting",
55
55
  "oa:linking",
56
+ "oa:tagging",
56
57
  "citing"
57
58
  ]
58
59
  }
@@ -147,6 +148,7 @@
147
148
  "oa:describing",
148
149
  "correcting",
149
150
  "oa:linking",
151
+ "oa:tagging",
150
152
  "citing"
151
153
  ]
152
154
  }
@@ -325,10 +327,6 @@
325
327
  }
326
328
  ]
327
329
  },
328
- {
329
- "type": "string",
330
- "const": "crm:E28_Conceptual_Object"
331
- },
332
330
  {
333
331
  "type": "array",
334
332
  "minItems": 3,
@@ -437,19 +435,8 @@
437
435
  "type": "object",
438
436
  "properties": {
439
437
  "type": {
440
- "type": "array",
441
- "minItems": 2,
442
- "maxItems": 2,
443
- "items": [
444
- {
445
- "type": "string",
446
- "const": "TextualBody"
447
- },
448
- {
449
- "type": "string",
450
- "const": "crm:E33_Linguistic_Object"
451
- }
452
- ]
438
+ "type": "string",
439
+ "const": "crm:E28_Conceptual_Object"
453
440
  }
454
441
  }
455
442
  }
@@ -460,7 +447,7 @@
460
447
  "properties": {
461
448
  "motivation": {
462
449
  "type": "string",
463
- "const": "oa:describing"
450
+ "const": "oa:tagging"
464
451
  },
465
452
  "P2_has_type": {
466
453
  "type": "array",
@@ -469,7 +456,7 @@
469
456
  "items": [
470
457
  {
471
458
  "type": "string",
472
- "const": "oa:describing"
459
+ "const": "oa:tagging"
473
460
  }
474
461
  ],
475
462
  "additionalItems": {
@@ -516,17 +503,13 @@
516
503
  "properties": {
517
504
  "type": {
518
505
  "type": "array",
519
- "minItems": 3,
520
- "maxItems": 3,
506
+ "minItems": 2,
507
+ "maxItems": 2,
521
508
  "items": [
522
509
  {
523
510
  "type": "string",
524
511
  "const": "TextualBody"
525
512
  },
526
- {
527
- "type": "string",
528
- "const": "fabio:Correction"
529
- },
530
513
  {
531
514
  "type": "string",
532
515
  "const": "crm:E33_Linguistic_Object"
@@ -542,7 +525,7 @@
542
525
  "properties": {
543
526
  "motivation": {
544
527
  "type": "string",
545
- "const": "correcting"
528
+ "const": "oa:describing"
546
529
  },
547
530
  "P2_has_type": {
548
531
  "type": "array",
@@ -551,7 +534,7 @@
551
534
  "items": [
552
535
  {
553
536
  "type": "string",
554
- "const": "correcting"
537
+ "const": "oa:describing"
555
538
  }
556
539
  ],
557
540
  "additionalItems": {
@@ -597,8 +580,23 @@
597
580
  "type": "object",
598
581
  "properties": {
599
582
  "type": {
600
- "type": "string",
601
- "const": "crmdig:D1_Digital_Object"
583
+ "type": "array",
584
+ "minItems": 3,
585
+ "maxItems": 3,
586
+ "items": [
587
+ {
588
+ "type": "string",
589
+ "const": "TextualBody"
590
+ },
591
+ {
592
+ "type": "string",
593
+ "const": "fabio:Correction"
594
+ },
595
+ {
596
+ "type": "string",
597
+ "const": "crm:E33_Linguistic_Object"
598
+ }
599
+ ]
602
600
  }
603
601
  }
604
602
  }
@@ -609,7 +607,7 @@
609
607
  "properties": {
610
608
  "motivation": {
611
609
  "type": "string",
612
- "const": "oa:linking"
610
+ "const": "correcting"
613
611
  },
614
612
  "P2_has_type": {
615
613
  "type": "array",
@@ -618,7 +616,7 @@
618
616
  "items": [
619
617
  {
620
618
  "type": "string",
621
- "const": "oa:linking"
619
+ "const": "correcting"
622
620
  }
623
621
  ],
624
622
  "additionalItems": {
@@ -664,19 +662,8 @@
664
662
  "type": "object",
665
663
  "properties": {
666
664
  "type": {
667
- "type": "array",
668
- "minItems": 2,
669
- "maxItems": 2,
670
- "items": [
671
- {
672
- "type": "string",
673
- "const": "cito:Citation"
674
- },
675
- {
676
- "type": "string",
677
- "const": "crm:E73_Information_Object"
678
- }
679
- ]
665
+ "type": "string",
666
+ "const": "crmdig:D1_Digital_Object"
680
667
  }
681
668
  }
682
669
  }
@@ -687,7 +674,7 @@
687
674
  "properties": {
688
675
  "motivation": {
689
676
  "type": "string",
690
- "const": "citing"
677
+ "const": "oa:linking"
691
678
  },
692
679
  "P2_has_type": {
693
680
  "type": "array",
@@ -696,7 +683,7 @@
696
683
  "items": [
697
684
  {
698
685
  "type": "string",
699
- "const": "citing"
686
+ "const": "oa:linking"
700
687
  }
701
688
  ],
702
689
  "additionalItems": {
@@ -733,6 +720,85 @@
733
720
  }
734
721
  }
735
722
  }
723
+ },
724
+ "else": {
725
+ "if": {
726
+ "type": "object",
727
+ "properties": {
728
+ "body": {
729
+ "type": "object",
730
+ "properties": {
731
+ "type": {
732
+ "type": "array",
733
+ "minItems": 2,
734
+ "maxItems": 2,
735
+ "items": [
736
+ {
737
+ "type": "string",
738
+ "const": "cito:Citation"
739
+ },
740
+ {
741
+ "type": "string",
742
+ "const": "crm:E73_Information_Object"
743
+ }
744
+ ]
745
+ }
746
+ }
747
+ }
748
+ }
749
+ },
750
+ "then": {
751
+ "type": "object",
752
+ "properties": {
753
+ "motivation": {
754
+ "type": "string",
755
+ "const": "citing"
756
+ },
757
+ "P2_has_type": {
758
+ "type": "array",
759
+ "minItems": 1,
760
+ "maxItems": 3,
761
+ "items": [
762
+ {
763
+ "type": "string",
764
+ "const": "citing"
765
+ }
766
+ ],
767
+ "additionalItems": {
768
+ "oneOf": [
769
+ {
770
+ "oneOf": [
771
+ {
772
+ "type": "string",
773
+ "enum": [
774
+ "edit:qualityLowCertainty",
775
+ "edit:qualityMediumCertainty",
776
+ "edit:qualityHighCertainty",
777
+ "edit:qualityUnknownCertainty"
778
+ ]
779
+ }
780
+ ],
781
+ "description": "Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."
782
+ },
783
+ {
784
+ "oneOf": [
785
+ {
786
+ "type": "string",
787
+ "enum": [
788
+ "edit:qualityLowPrecision",
789
+ "edit:qualityMediumPrecision",
790
+ "edit:qualityHighPrecision",
791
+ "edit:qualityUnknownPrecision"
792
+ ]
793
+ }
794
+ ],
795
+ "description": "Indicates the degree of precision associated with the location of the entity linked to the annotation body."
796
+ }
797
+ ]
798
+ }
799
+ }
800
+ }
801
+ }
736
802
  }
737
803
  }
738
804
  }