|
1 | 1 | { |
2 | | - "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 2 | + "$schema": "https://json-schema.org/draft-07/schema", |
3 | 3 | "$id": "https://dasch.swiss/schema/ontology.json", |
4 | 4 | "title": "JSON schema for DSP ontologies", |
5 | 5 | "description": "JSON schema for DSP ontologies", |
|
434 | 434 | "type": "string", |
435 | 435 | "oneOf": [ |
436 | 436 | { |
437 | | - "enum": ["hasRepresentation"] |
| 437 | + "enum": [ |
| 438 | + "hasRepresentation" |
| 439 | + ] |
438 | 440 | }, |
439 | 441 | { |
440 | 442 | "$ref": "#/definitions/prefixedname" |
|
464 | 466 | "type": "string", |
465 | 467 | "oneOf": [ |
466 | 468 | { |
467 | | - "enum": ["hasComment","hasValue"] |
| 469 | + "enum": [ |
| 470 | + "hasComment", |
| 471 | + "hasValue" |
| 472 | + ] |
468 | 473 | }, |
469 | 474 | { |
470 | 475 | "$ref": "#/definitions/prefixedname" |
|
473 | 478 | } |
474 | 479 | }, |
475 | 480 | "gui_element": { |
476 | | - "enum": [ "SimpleText", "Textarea", "Richtext" ] |
| 481 | + "enum": [ |
| 482 | + "SimpleText", |
| 483 | + "Textarea", |
| 484 | + "Richtext" |
| 485 | + ] |
477 | 486 | } |
478 | 487 | } |
479 | 488 | } |
|
494 | 503 | "type": "string", |
495 | 504 | "oneOf": [ |
496 | 505 | { |
497 | | - "enum": ["hasColor"] |
| 506 | + "enum": [ |
| 507 | + "hasColor" |
| 508 | + ] |
498 | 509 | }, |
499 | 510 | { |
500 | 511 | "$ref": "#/definitions/prefixedname" |
|
524 | 535 | "type": "string", |
525 | 536 | "oneOf": [ |
526 | 537 | { |
527 | | - "enum": ["hasValue"] |
| 538 | + "enum": [ |
| 539 | + "hasValue" |
| 540 | + ] |
528 | 541 | }, |
529 | 542 | { |
530 | 543 | "$ref": "#/definitions/prefixedname" |
|
554 | 567 | "type": "string", |
555 | 568 | "oneOf": [ |
556 | 569 | { |
557 | | - "enum": ["hasValue"] |
| 570 | + "enum": [ |
| 571 | + "hasValue" |
| 572 | + ] |
558 | 573 | }, |
559 | 574 | { |
560 | 575 | "$ref": "#/definitions/prefixedname" |
|
584 | 599 | "type": "string", |
585 | 600 | "oneOf": [ |
586 | 601 | { |
587 | | - "enum": ["hasValue"] |
| 602 | + "enum": [ |
| 603 | + "hasValue" |
| 604 | + ] |
588 | 605 | }, |
589 | 606 | { |
590 | 607 | "$ref": "#/definitions/prefixedname" |
|
593 | 610 | } |
594 | 611 | }, |
595 | 612 | "gui_element": { |
596 | | - "enum": ["Slider","SimpleText"] |
| 613 | + "enum": [ |
| 614 | + "Slider", |
| 615 | + "SimpleText" |
| 616 | + ] |
597 | 617 | } |
598 | 618 | } |
599 | 619 | } |
|
614 | 634 | "type": "string", |
615 | 635 | "oneOf": [ |
616 | 636 | { |
617 | | - "enum": ["hasGeometry"] |
| 637 | + "enum": [ |
| 638 | + "hasGeometry" |
| 639 | + ] |
618 | 640 | }, |
619 | 641 | { |
620 | 642 | "$ref": "#/definitions/prefixedname" |
|
647 | 669 | "type": "string", |
648 | 670 | "oneOf": [ |
649 | 671 | { |
650 | | - "enum": ["hasValue"] |
| 672 | + "enum": [ |
| 673 | + "hasValue" |
| 674 | + ] |
651 | 675 | }, |
652 | 676 | { |
653 | 677 | "$ref": "#/definitions/prefixedname" |
|
656 | 680 | } |
657 | 681 | }, |
658 | 682 | "gui_element": { |
659 | | - "const": |
660 | | - "Geonames" |
| 683 | + "const": "Geonames" |
661 | 684 | } |
662 | 685 | } |
663 | 686 | } |
|
678 | 701 | "type": "string", |
679 | 702 | "oneOf": [ |
680 | 703 | { |
681 | | - "enum": ["hasValue", "seqnum"] |
| 704 | + "enum": [ |
| 705 | + "hasValue", |
| 706 | + "seqnum" |
| 707 | + ] |
682 | 708 | }, |
683 | 709 | { |
684 | 710 | "$ref": "#/definitions/prefixedname" |
|
711 | 737 | "type": "string", |
712 | 738 | "oneOf": [ |
713 | 739 | { |
714 | | - "enum": ["hasValue"] |
| 740 | + "enum": [ |
| 741 | + "hasValue" |
| 742 | + ] |
715 | 743 | }, |
716 | 744 | { |
717 | 745 | "$ref": "#/definitions/prefixedname" |
|
741 | 769 | "type": "string", |
742 | 770 | "oneOf": [ |
743 | 771 | { |
744 | | - "enum": ["hasValue"] |
| 772 | + "enum": [ |
| 773 | + "hasValue" |
| 774 | + ] |
745 | 775 | }, |
746 | 776 | { |
747 | 777 | "$ref": "#/definitions/prefixedname" |
|
771 | 801 | "type": "string", |
772 | 802 | "oneOf": [ |
773 | 803 | { |
774 | | - "enum": ["hasValue"] |
| 804 | + "enum": [ |
| 805 | + "hasValue" |
| 806 | + ] |
775 | 807 | }, |
776 | 808 | { |
777 | 809 | "$ref": "#/definitions/prefixedname" |
|
805 | 837 | "type": "string", |
806 | 838 | "oneOf": [ |
807 | 839 | { |
808 | | - "enum": ["hasValue"] |
| 840 | + "enum": [ |
| 841 | + "hasValue" |
| 842 | + ] |
809 | 843 | }, |
810 | 844 | { |
811 | 845 | "$ref": "#/definitions/prefixedname" |
|
976 | 1010 | "if": { |
977 | 1011 | "properties": { |
978 | 1012 | "gui_element": { |
979 | | - "enum": ["Radio", "List"] |
| 1013 | + "enum": [ |
| 1014 | + "Radio", |
| 1015 | + "List" |
| 1016 | + ] |
980 | 1017 | } |
981 | 1018 | } |
982 | 1019 | }, |
|
990 | 1027 | } |
991 | 1028 | }, |
992 | 1029 | "additionalProperties": false |
993 | | - |
994 | 1030 | } |
995 | 1031 | }, |
996 | 1032 | "required": [ |
|
1024 | 1060 | "if": { |
1025 | 1061 | "properties": { |
1026 | 1062 | "gui_element": { |
1027 | | - "enum": ["Richtext", "Date", "TimeStamp", "Geometry", "Geonames", "Checkbox", "Interval"] |
| 1063 | + "enum": [ |
| 1064 | + "Richtext", |
| 1065 | + "Date", |
| 1066 | + "TimeStamp", |
| 1067 | + "Geometry", |
| 1068 | + "Geonames", |
| 1069 | + "Checkbox", |
| 1070 | + "Interval" |
| 1071 | + ] |
1028 | 1072 | } |
1029 | 1073 | } |
1030 | 1074 | }, |
|
0 commit comments