Skip to content

Commit 9a5a50b

Browse files
authored
chore: update schema-files (DEV-449) (#187)
* update schema-files * adapt test-onto.json * update properties-only.json and resources-only.json * delete longname as required and knora-schema-properties-only.json
1 parent 7ebf588 commit 9a5a50b

5 files changed

Lines changed: 874 additions & 187 deletions

File tree

‎knora/dsplib/schemas/ontology.json‎

Lines changed: 219 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,68 @@
386386
],
387387
"additionalProperties": false,
388388
"allOf": [
389+
{
390+
"if": {
391+
"properties": {
392+
"super": {
393+
"const": "hasLinkTo"
394+
}
395+
}
396+
},
397+
"then": {
398+
"properties": {
399+
"gui_element": {
400+
"const": "Searchbox"
401+
}
402+
}
403+
}
404+
},
405+
{
406+
"if": {
407+
"properties": {
408+
"super": {
409+
"const": "isPartOf"
410+
}
411+
}
412+
},
413+
"then": {
414+
"properties": {
415+
"gui_element": {
416+
"const": "Searchbox"
417+
}
418+
}
419+
}
420+
},
421+
{
422+
"if": {
423+
"properties": {
424+
"object": {
425+
"const": "Representation"
426+
}
427+
}
428+
},
429+
"then": {
430+
"properties": {
431+
"super": {
432+
"type": "array",
433+
"items": {
434+
"type": "string",
435+
"oneOf": [
436+
{
437+
"enum": ["hasRepresentation"]
438+
},
439+
{
440+
"$ref": "#/definitions/prefixedname"
441+
}
442+
]
443+
}
444+
},
445+
"gui_element": {
446+
"const": "Searchbox"
447+
}
448+
}
449+
}
450+
},
389451
{
390452
"if": {
391453
"properties": {
@@ -396,6 +458,20 @@
396458
},
397459
"then": {
398460
"properties": {
461+
"super": {
462+
"type": "array",
463+
"items": {
464+
"type": "string",
465+
"oneOf": [
466+
{
467+
"enum": ["hasComment","hasValue"]
468+
},
469+
{
470+
"$ref": "#/definitions/prefixedname"
471+
}
472+
]
473+
}
474+
},
399475
"gui_element": {
400476
"enum": [ "SimpleText", "Textarea", "Richtext" ]
401477
}
@@ -412,6 +488,20 @@
412488
},
413489
"then": {
414490
"properties": {
491+
"super": {
492+
"type": "array",
493+
"items": {
494+
"type": "string",
495+
"oneOf": [
496+
{
497+
"enum": ["hasColor"]
498+
},
499+
{
500+
"$ref": "#/definitions/prefixedname"
501+
}
502+
]
503+
}
504+
},
415505
"gui_element": {
416506
"const": "Colorpicker"
417507
}
@@ -428,6 +518,20 @@
428518
},
429519
"then": {
430520
"properties": {
521+
"super": {
522+
"type": "array",
523+
"items": {
524+
"type": "string",
525+
"oneOf": [
526+
{
527+
"enum": ["hasValue"]
528+
},
529+
{
530+
"$ref": "#/definitions/prefixedname"
531+
}
532+
]
533+
}
534+
},
431535
"gui_element": {
432536
"const": "Date"
433537
}
@@ -444,6 +548,20 @@
444548
},
445549
"then": {
446550
"properties": {
551+
"super": {
552+
"type": "array",
553+
"items": {
554+
"type": "string",
555+
"oneOf": [
556+
{
557+
"enum": ["hasValue"]
558+
},
559+
{
560+
"$ref": "#/definitions/prefixedname"
561+
}
562+
]
563+
}
564+
},
447565
"gui_element": {
448566
"const": "TimeStamp"
449567
}
@@ -460,6 +578,20 @@
460578
},
461579
"then": {
462580
"properties": {
581+
"super": {
582+
"type": "array",
583+
"items": {
584+
"type": "string",
585+
"oneOf": [
586+
{
587+
"enum": ["hasValue"]
588+
},
589+
{
590+
"$ref": "#/definitions/prefixedname"
591+
}
592+
]
593+
}
594+
},
463595
"gui_element": {
464596
"enum": ["Slider","SimpleText"]
465597
}
@@ -482,9 +614,7 @@
482614
"type": "string",
483615
"oneOf": [
484616
{
485-
"enum": [
486-
"hasGeometry"
487-
]
617+
"enum": ["hasGeometry"]
488618
},
489619
{
490620
"$ref": "#/definitions/prefixedname"
@@ -511,6 +641,20 @@
511641
},
512642
"then": {
513643
"properties": {
644+
"super": {
645+
"type": "array",
646+
"items": {
647+
"type": "string",
648+
"oneOf": [
649+
{
650+
"enum": ["hasValue"]
651+
},
652+
{
653+
"$ref": "#/definitions/prefixedname"
654+
}
655+
]
656+
}
657+
},
514658
"gui_element": {
515659
"const":
516660
"Geonames"
@@ -528,6 +672,20 @@
528672
},
529673
"then": {
530674
"properties": {
675+
"super": {
676+
"type": "array",
677+
"items": {
678+
"type": "string",
679+
"oneOf": [
680+
{
681+
"enum": ["hasValue", "seqnum"]
682+
},
683+
{
684+
"$ref": "#/definitions/prefixedname"
685+
}
686+
]
687+
}
688+
},
531689
"gui_element": {
532690
"enum": [
533691
"Spinbox",
@@ -547,6 +705,20 @@
547705
},
548706
"then": {
549707
"properties": {
708+
"super": {
709+
"type": "array",
710+
"items": {
711+
"type": "string",
712+
"oneOf": [
713+
{
714+
"enum": ["hasValue"]
715+
},
716+
{
717+
"$ref": "#/definitions/prefixedname"
718+
}
719+
]
720+
}
721+
},
550722
"gui_element": {
551723
"const": "Checkbox"
552724
}
@@ -563,6 +735,20 @@
563735
},
564736
"then": {
565737
"properties": {
738+
"super": {
739+
"type": "array",
740+
"items": {
741+
"type": "string",
742+
"oneOf": [
743+
{
744+
"enum": ["hasValue"]
745+
},
746+
{
747+
"$ref": "#/definitions/prefixedname"
748+
}
749+
]
750+
}
751+
},
566752
"gui_element": {
567753
"const": "SimpleText"
568754
}
@@ -579,6 +765,20 @@
579765
},
580766
"then": {
581767
"properties": {
768+
"super": {
769+
"type": "array",
770+
"items": {
771+
"type": "string",
772+
"oneOf": [
773+
{
774+
"enum": ["hasValue"]
775+
},
776+
{
777+
"$ref": "#/definitions/prefixedname"
778+
}
779+
]
780+
}
781+
},
582782
"gui_element": {
583783
"enum": [
584784
"Interval",
@@ -599,6 +799,20 @@
599799
"then": {
600800
"properties": {
601801
"gui_element": {
802+
"super": {
803+
"type": "array",
804+
"items": {
805+
"type": "string",
806+
"oneOf": [
807+
{
808+
"enum": ["hasValue"]
809+
},
810+
{
811+
"$ref": "#/definitions/prefixedname"
812+
}
813+
]
814+
}
815+
},
602816
"enum": [
603817
"Radio",
604818
"List"
@@ -879,7 +1093,8 @@
8791093
"type": "array",
8801094
"items": {
8811095
"$ref": "#/definitions/cardinality"
882-
}
1096+
},
1097+
"minItems": 1
8831098
}
8841099
},
8851100
"required": [
@@ -963,7 +1178,6 @@
9631178
"required": [
9641179
"shortcode",
9651180
"shortname",
966-
"longname",
9671181
"descriptions",
9681182
"ontologies",
9691183
"keywords"

0 commit comments

Comments
 (0)