531
edits
(Update package: OSW Core) |
(Update package: OSW Core) |
||
| jsondata | |||
|---|---|---|---|
| Line 1: | Line 1: | ||
{ | { | ||
"type": [ | |||
"Category:Category" | |||
], | |||
"subclass_of": [ | |||
"Category:QuantityProperty" | |||
], | |||
"uuid": "69f251a9-0094-4602-a08d-1cca830249b5", | |||
"label": [ | |||
{ | |||
"text": "Sub Quantity Property", | |||
"lang": "en" | |||
}, | |||
{ | |||
"text": "Untergrößenattribut", | |||
"lang": "de" | |||
} | |||
], | |||
"description": [ | |||
{ | |||
"text": "Is the sub-property of a main quantity or other sub-quantity and inherits its valid units. Can define a subset of input and display units from it.", | |||
"lang": "en" | |||
}, | |||
{ | |||
"text": "Ist das Unterattribut einer Hauptgröße oder einer anderen Untergröße und erbt dessen gültige Einheiten. Kann daraus ein Untermenge von Eingabe- und Anzeigeeinheiten definieren.", | |||
"lang": "de" | |||
} | |||
], | |||
"name": "SubQuantityProperty" | |||
} | } | ||
| jsonschema | |||
| Line 1: | Line 1: | ||
{ | { | ||
"@context": [ | |||
"/wiki/Category:QuantityProperty?action=raw\u0026slot=jsonschema", | |||
{ | |||
"display_units": { | |||
"@id": "Property:HasDisplayUnit", | |||
"@type": "@id" | |||
}, | |||
"input_units": { | |||
"@id": "Property:HasInputUnit", | |||
"@type": "@id" | |||
} | |||
} | |||
], | |||
"allOf": [ | |||
{ | |||
"$ref": "/wiki/Category:QuantityProperty?action=raw\u0026slot=jsonschema" | |||
} | |||
], | |||
"type": "object", | |||
"uuid": "69f251a9-0094-4602-a08d-1cca830249b5", | |||
"title": "SubQuantityProperty", | |||
"title*": { | |||
"en": "Sub Quantity Property", | |||
"de": "Untergrößenattribut" | |||
}, | |||
"description": "Is the sub-property of a main quantity or other sub-quantity and inherits its valid units. Can define a subset of input and display units from it.", | |||
"description*": { | |||
"en": "Is the sub-property of a main quantity or other sub-quantity and inherits its valid units. Can define a subset of input and display units from it.", | |||
"de": "Ist das Unterattribut einer Hauptgröße oder einer anderen Untergröße und erbt dessen gültige Einheiten. Kann daraus ein Untermenge von Eingabe- und Anzeigeeinheiten definieren." | |||
}, | |||
"required": [ | |||
"subproperty_of", | |||
"base_property", | |||
"type" | |||
], | |||
"properties": { | |||
"subproperty_of": { | |||
"title": "Subquantity of", | |||
"title*": { | |||
"de": "Untergröße von" | |||
}, | |||
"items": { | |||
"type": "string", | |||
"format": "autocomplete", | |||
"range": "Category:QuantityProperty" | |||
} | |||
}, | |||
"base_property": { | |||
"title": "Base quantity", | |||
"title*": { | |||
"de": "Hauptgröße" | |||
}, | |||
"type": "string", | |||
"format": "autocomplete", | |||
"options": { | |||
"autocomplete": { | |||
"category": "Category:OSW1b15ddcf042c4599bd9d431cbfdf3430" | |||
} | |||
} | |||
}, | |||
"display_units": { | |||
"title": "Display units", | |||
"title*": { | |||
"de": "Anzeigeeinheiten" | |||
}, | |||
"type": "array", | |||
"minItems": 1, | |||
"uniqueItems": true, | |||
"watch": { | |||
"base_property": "base_property" | |||
}, | |||
"items": { | |||
"title": "Unit", | |||
"title*": { | |||
"de": "Einheit" | |||
}, | |||
"type": "string", | |||
"format": "autocomplete", | |||
"options": { | |||
"autocomplete": { | |||
"query": "[[-HasDisplayUnit::{{base_property}}]][[Display_title_of::~*{{{_user_input}}}*]]|?Display_title_of=label" | |||
} | |||
} | |||
} | |||
}, | |||
"input_units": { | |||
"title": "Input units", | |||
"title*": { | |||
"de": "Eingabeeinheiten" | |||
}, | |||
"type": "array", | |||
"minItems": 1, | |||
"uniqueItems": true, | |||
"watch": { | |||
"base_property": "base_property" | |||
}, | |||
"items": { | |||
"title": "Unit", | |||
"title*": { | |||
"de": "Einheit" | |||
}, | |||
"type": "string", | |||
"format": "autocomplete", | |||
"options": { | |||
"autocomplete": { | |||
"query": "[[-HasInputUnit::{{base_property}}]][[Display_title_of::~*{{{_user_input}}}*]]|?Display_title_of=label" | |||
} | |||
} | |||
} | |||
}, | |||
"type": { | |||
"default": [ | |||
"Category:OSW69f251a900944602a08d1cca830249b5" | |||
] | |||
} | |||
} | |||
} | } | ||
edits