Skip to content

Commit

Permalink
chore: update schema-files (DEV-449) (#187)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
gNahcab committed Apr 28, 2022
1 parent 7ebf588 commit 9a5a50b
Show file tree
Hide file tree
Showing 5 changed files with 874 additions and 187 deletions.
224 changes: 219 additions & 5 deletions knora/dsplib/schemas/ontology.json
Expand Up @@ -386,6 +386,68 @@
],
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"super": {
"const": "hasLinkTo"
}
}
},
"then": {
"properties": {
"gui_element": {
"const": "Searchbox"
}
}
}
},
{
"if": {
"properties": {
"super": {
"const": "isPartOf"
}
}
},
"then": {
"properties": {
"gui_element": {
"const": "Searchbox"
}
}
}
},
{
"if": {
"properties": {
"object": {
"const": "Representation"
}
}
},
"then": {
"properties": {
"super": {
"type": "array",
"items": {
"type": "string",
"oneOf": [
{
"enum": ["hasRepresentation"]
},
{
"$ref": "#/definitions/prefixedname"
}
]
}
},
"gui_element": {
"const": "Searchbox"
}
}
}
},
{
"if": {
"properties": {
Expand All @@ -396,6 +458,20 @@
},
"then": {
"properties": {
"super": {
"type": "array",
"items": {
"type": "string",
"oneOf": [
{
"enum": ["hasComment","hasValue"]
},
{
"$ref": "#/definitions/prefixedname"
}
]
}
},
"gui_element": {
"enum": [ "SimpleText", "Textarea", "Richtext" ]
}
Expand All @@ -412,6 +488,20 @@
},
"then": {
"properties": {
"super": {
"type": "array",
"items": {
"type": "string",
"oneOf": [
{
"enum": ["hasColor"]
},
{
"$ref": "#/definitions/prefixedname"
}
]
}
},
"gui_element": {
"const": "Colorpicker"
}
Expand All @@ -428,6 +518,20 @@
},
"then": {
"properties": {
"super": {
"type": "array",
"items": {
"type": "string",
"oneOf": [
{
"enum": ["hasValue"]
},
{
"$ref": "#/definitions/prefixedname"
}
]
}
},
"gui_element": {
"const": "Date"
}
Expand All @@ -444,6 +548,20 @@
},
"then": {
"properties": {
"super": {
"type": "array",
"items": {
"type": "string",
"oneOf": [
{
"enum": ["hasValue"]
},
{
"$ref": "#/definitions/prefixedname"
}
]
}
},
"gui_element": {
"const": "TimeStamp"
}
Expand All @@ -460,6 +578,20 @@
},
"then": {
"properties": {
"super": {
"type": "array",
"items": {
"type": "string",
"oneOf": [
{
"enum": ["hasValue"]
},
{
"$ref": "#/definitions/prefixedname"
}
]
}
},
"gui_element": {
"enum": ["Slider","SimpleText"]
}
Expand All @@ -482,9 +614,7 @@
"type": "string",
"oneOf": [
{
"enum": [
"hasGeometry"
]
"enum": ["hasGeometry"]
},
{
"$ref": "#/definitions/prefixedname"
Expand All @@ -511,6 +641,20 @@
},
"then": {
"properties": {
"super": {
"type": "array",
"items": {
"type": "string",
"oneOf": [
{
"enum": ["hasValue"]
},
{
"$ref": "#/definitions/prefixedname"
}
]
}
},
"gui_element": {
"const":
"Geonames"
Expand All @@ -528,6 +672,20 @@
},
"then": {
"properties": {
"super": {
"type": "array",
"items": {
"type": "string",
"oneOf": [
{
"enum": ["hasValue", "seqnum"]
},
{
"$ref": "#/definitions/prefixedname"
}
]
}
},
"gui_element": {
"enum": [
"Spinbox",
Expand All @@ -547,6 +705,20 @@
},
"then": {
"properties": {
"super": {
"type": "array",
"items": {
"type": "string",
"oneOf": [
{
"enum": ["hasValue"]
},
{
"$ref": "#/definitions/prefixedname"
}
]
}
},
"gui_element": {
"const": "Checkbox"
}
Expand All @@ -563,6 +735,20 @@
},
"then": {
"properties": {
"super": {
"type": "array",
"items": {
"type": "string",
"oneOf": [
{
"enum": ["hasValue"]
},
{
"$ref": "#/definitions/prefixedname"
}
]
}
},
"gui_element": {
"const": "SimpleText"
}
Expand All @@ -579,6 +765,20 @@
},
"then": {
"properties": {
"super": {
"type": "array",
"items": {
"type": "string",
"oneOf": [
{
"enum": ["hasValue"]
},
{
"$ref": "#/definitions/prefixedname"
}
]
}
},
"gui_element": {
"enum": [
"Interval",
Expand All @@ -599,6 +799,20 @@
"then": {
"properties": {
"gui_element": {
"super": {
"type": "array",
"items": {
"type": "string",
"oneOf": [
{
"enum": ["hasValue"]
},
{
"$ref": "#/definitions/prefixedname"
}
]
}
},
"enum": [
"Radio",
"List"
Expand Down Expand Up @@ -879,7 +1093,8 @@
"type": "array",
"items": {
"$ref": "#/definitions/cardinality"
}
},
"minItems": 1
}
},
"required": [
Expand Down Expand Up @@ -963,7 +1178,6 @@
"required": [
"shortcode",
"shortname",
"longname",
"descriptions",
"ontologies",
"keywords"
Expand Down

0 comments on commit 9a5a50b

Please sign in to comment.