JsonSchema:Statement: Difference between revisions

From OSL Demo
(Update package: OSW Core)
(Update package: OSW Core)
Line 14: Line 14:
     "common_definitions": {},
     "common_definitions": {},
     "type": "object",
     "type": "object",
    "format": "grid-strict",
     "id": "statement",
     "id": "statement",
    "headerTemplate": "... {{#if self.predicate}}{{self.predicate}}{{/if}}{{#if self.property}}{{self.property}}{{/if}}{{#if self.quantity}}{{self.quantity}}{{/if}} ...",
     "required": [
     "required": [
         "uuid"
         "uuid"
     ],
     ],
    "options": {
        "display_required_only": true
    },
     "properties": {
     "properties": {
         "uuid": {
         "uuid": {
Line 31: Line 36:
             "description": "Human readable name",
             "description": "Human readable name",
             "type": "array",
             "type": "array",
            "format": "table",
             "items": {
             "items": {
                 "title": "Label",
                 "title": "Label",
Line 44: Line 50:
                 ],
                 ],
                 "$ref": "/wiki/JsonSchema:Label?action=raw"
                 "$ref": "/wiki/JsonSchema:Label?action=raw"
            },
            "options": {
                "collapsed": true,
                "grid_columns": 12
             }
             }
         },
         },
Line 54: Line 64:
             },
             },
             "options": {
             "options": {
                "grid_columns": 4,
                 "autocomplete": {
                 "autocomplete": {
                     "category": "Category:Entity",
                     "category": "Category:Entity",
Line 64: Line 75:
             "type": "array",
             "type": "array",
             "format": "tabs",
             "format": "tabs",
            "propertyOrder": 1010,
             "items": {
             "items": {
                 "$ref": "#"
                 "$ref": "#"
            },
            "options": {
                "grid_columns": 12
             }
             }
         }
         }
Line 73: Line 88:
             "$ref": "#/common_definitions",
             "$ref": "#/common_definitions",
             "title": "Object Statement",
             "title": "Object Statement",
            "headerTemplate": "... {{self.predicate}} ...",
             "required": [
             "required": [
                 "uuid",
                 "uuid",
Line 88: Line 102:
                     },
                     },
                     "options": {
                     "options": {
                        "grid_columns": 4,
                         "autocomplete": {
                         "autocomplete": {
                             "category": "Category:Property"
                             "category": "Category:Property"
Line 101: Line 116:
                     },
                     },
                     "options": {
                     "options": {
                        "grid_columns": 4,
                         "autocomplete": {
                         "autocomplete": {
                             "category": "Category:Entity",
                             "category": "Category:Entity",
Line 115: Line 131:
                 "de": "Datenangabe"
                 "de": "Datenangabe"
             },
             },
            "headerTemplate": "... {{self.property}} ...",
             "required": [
             "required": [
                 "uuid",
                 "uuid",
Line 130: Line 145:
                     },
                     },
                     "options": {
                     "options": {
                        "grid_columns": 4,
                         "autocomplete": {
                         "autocomplete": {
                             "category": "Category:DataProperty"
                             "category": "Category:DataProperty"
Line 140: Line 156:
                     "title*": {
                     "title*": {
                         "de": "Wert"
                         "de": "Wert"
                    },
                    "options": {
                        "grid_columns": 4
                     }
                     }
                 }
                 }
Line 150: Line 169:
                 "de": "Größenangabe"
                 "de": "Größenangabe"
             },
             },
            "headerTemplate": "... {{self.quantity}} ...",
             "required": [
             "required": [
                 "uuid",
                 "uuid",
Line 168: Line 186:
                     },
                     },
                     "options": {
                     "options": {
                        "grid_columns": 4,
                         "autocomplete": {
                         "autocomplete": {
                             "category": "Category:QuantityProperty"
                             "category": "Category:QuantityProperty"
Line 176: Line 195:
                     "type": "string",
                     "type": "string",
                     "format": "number",
                     "format": "number",
                     "title": "Numerical value",
                     "title": "Value",
                     "title*": {
                     "title*": {
                         "de": "Zahlenwert"
                         "de": "Wert"
                    },
                    "options": {
                        "grid_columns": 2
                     }
                     }
                 },
                 },
Line 193: Line 215:
                     },
                     },
                     "options": {
                     "options": {
                        "grid_columns": 2,
                         "autocomplete": {
                         "autocomplete": {
                             "query": "[[-HasInputUnit::{{$(quantity)}}]]|?Display_title_of=label",
                             "query": "[[-HasInputUnit::{{$(quantity)}}]]|?Display_title_of=label",

Revision as of 06:24, 31 March 2023

@context
Property"https://wiki-dev.open-semantic-lab.org/id/Property-3A"
subject"Property:HasSubject"
predicate"Property:HasProperty"
property"Property:HasProperty"
quantity"Property:HasProperty"
object"Property:HasObject"
value"Property:HasObject"
unit"Property:HasUnit"
substatements"Property:HasStatement"
label"Property:HasLabel"
common_definitions
Empty object
type"object"
format"grid-strict"
id"statement"
headerTemplate"... {{#if self.predicate}}{{self.predicate}}{{/if}}{{#if self.property}}{{self.property}}{{/if}}{{#if self.quantity}}{{self.quantity}}{{/if}} ..."
required
"uuid"
options
display_required_onlytrue
properties
uuid
title"UUID"
type"string"
format"uuid"
options
hiddentrue
label
title"Label"
description"Human readable name"
type"array"
format"table"
items
title"Label"
title*
de"Name"
eval_template
type"wikitext"
mode"store"
value"{{{text}}}@{{{lang}}}"
$ref"/wiki/JsonSchema:Label?action=raw"
options
collapsedtrue
grid_columns12
subject
type"string"
format"autocomplete"
title"Subject"
title*
de"Subjekt"
options
grid_columns4
autocomplete
category"Category:Entity"
query_filter_property"HasName"
substatements
title"Substatements"
type"array"
format"tabs"
propertyOrder1010
items
$ref"#"
options
grid_columns12
oneOf
$ref"#/common_definitions"
title"Object Statement"
required
"uuid"
"predicate"
"object"
properties
predicate
type"string"
format"autocomplete"
title"Predicate"
title*
de"Prädikat"
options
grid_columns4
autocomplete
category"Category:Property"
object
type"string"
format"autocomplete"
title"Object"
title*
de"Objekt"
options
grid_columns4
autocomplete
category"Category:Entity"
query_filter_property"HasName"
$ref"#/common_definitions"
title"Data Statement"
title*
de"Datenangabe"
required
"uuid"
"property"
"value"
properties
property
type"string"
format"autocomplete"
title"Property"
title*
de"Attribut"
options
grid_columns4
autocomplete
category"Category:DataProperty"
value
type"string"
title"Value"
title*
de"Wert"
options
grid_columns4
$ref"#/common_definitions"
title"Quantity Statement"
title*
de"Größenangabe"
required
"uuid"
"quantity"
"value"
"unit"
"unit_symbol"
"numerical_value"
properties
quantity
type"string"
format"autocomplete"
title"Property"
title*
de"Attribut"
options
grid_columns4
autocomplete
category"Category:QuantityProperty"
numerical_value
type"string"
format"number"
title"Value"
title*
de"Wert"
options
grid_columns2
unit
type"string"
format"autocomplete"
title"Unit"
title*
de"Einheit"
watch
quantity"statement.quantity"
unit_symbol"statement.unit_symbol"
options
grid_columns2
autocomplete
query"[[-HasInputUnit::{{$(quantity)}}]]|?Display_title_of=label"
render_template
type
"handlebars"
value"{{result.printouts.label.[0]}}"
field_maps
source_path"$"
template"{{{result.printouts.label.[0]}}}"
target_path"$(unit_symbol)"
unit_symbol
type"string"
options
hiddentrue
value
type"string"
title"Value"
title*
de"Wert"
watch
numerical_value"statement.numerical_value"
unit_symbol"statement.unit_symbol"
template"{{{numerical_value}}} {{{unit_symbol}}}"
options
hiddentrue
Cookies help us deliver our services. By using our services, you agree to our use of cookies.