Category:OSW1b15ddcf042c4599bd9d431cbfdf3430: Difference between revisions

From OpenSemanticWorld
Update package: OSW Core
(Update package: OSW Core)
(Update package: OSW Core)
jsondata
Line 1: Line 1:
{
{
    "type": [
"type": [
        "Category:Category"
"Category:Category"
    ],
],
    "subclass_of": [
"subclass_of": [
        "Category:QuantityProperty"
"Category:QuantityProperty"
    ],
],
    "uuid": "1b15ddcf-042c-4599-bd9d-431cbfdf3430",
"uuid": "1b15ddcf-042c-4599-bd9d-431cbfdf3430",
    "label": [
"label": [
        {
{
            "text": "Main Quantity Property",
"text": "Main Quantity Property",
            "lang": "en"
"lang": "en"
        },
},
        {
{
            "text": "Hauptgrößenattribut",
"text": "Hauptgrößenattribut",
            "lang": "de"
"lang": "de"
        }
}
    ],
],
    "description": [
"description": [
        {
{
            "text": "Defines valid units for itself and all of its subquantities",
"text": "Defines valid units for itself and all of its subquantities",
            "lang": "en"
"lang": "en"
        },
},
        {
{
            "text": "Definiert gültige Einheiten für sich selbst und alle seine Untergrößen.",
"text": "Definiert gültige Einheiten für sich selbst und alle seine Untergrößen.",
            "lang": "de"
"lang": "de"
        }
}
    ],
],
    "name": "MainQuantityProperty"
"name": "MainQuantityProperty"
}
}
jsonschema
Line 1: Line 1:
{
{
    "@context": [
"@context": [
        "/wiki/Category:QuantityProperty?action=raw\u0026slot=jsonschema",
{
        {
"main_unit": {
            "main_unit": {
"@id": "Property:HasMainUnit",
                "@id": "Property:HasMainUnit",
"@type": "@id"
                "@type": "@id"
},
            },
"main_unit*": "Property:HasDisplayUnit",
            "main_unit*": "Property:HasDisplayUnit",
"main_unit**": "Property:HasInputUnit",
            "main_unit**": "Property:HasInputUnit",
"additional_units": {
            "additional_units": {
"@id": "Property:HasUnit",
                "@id": "Property:HasUnit",
"@type": "@id"
                "@type": "@id"
},
            },
"additional_units*": "Property:HasDisplayUnit",
            "additional_units*": "Property:HasDisplayUnit",
"additional_units**": "Property:HasInputUnit",
            "additional_units**": "Property:HasInputUnit",
"main_symbol": "Property:HasMainUnitSymbol",
            "main_symbol": "Property:HasMainUnitSymbol",
"alternative_symbols": "Property:HasUnitSymbol",
            "alternative_symbols": "Property:HasUnitSymbol",
"codes": {
            "conversion_factor_to_main_unit": "Property:HasConversionFactor"
"@id": "Property:HasUnitCode"
        }
},
    ],
"conversion_factor_to_main_unit": "Property:HasConversionFactor",
    "allOf": [
"proportional_to": {
        {
"@id": "Property:IsProportionalTo",
            "$ref": "/wiki/Category:QuantityProperty?action=raw\u0026slot=jsonschema"
"@type": "@id"
        }
},
    ],
"inverse_proportional_to": {
    "type": "object",
"@id": "Property:IsInverseProportionalTo",
    "uuid": "1b15ddcf-042c-4599-bd9d-431cbfdf3430",
"@type": "@id"
    "title": "MainQuantityProperty",
}
    "title*": {
},
        "en": "Main Quantity Property",
"/wiki/Category:QuantityProperty?action=raw\u0026slot=jsonschema"
        "de": "Hauptgrößenattribut"
],
    },
"allOf": [
    "description": "Defines valid units for itself and all of its subquantities",
{
    "description*": {
"$ref": "/wiki/Category:QuantityProperty?action=raw\u0026slot=jsonschema"
        "en": "Defines valid units for itself and all of its subquantities",
}
        "de": "Definiert gültige Einheiten für sich selbst und alle seine Untergrößen."
],
    },
"type": "object",
    "properties": {
"uuid": "1b15ddcf-042c-4599-bd9d-431cbfdf3430",
        "main_unit": {
"title": "MainQuantityProperty",
            "title": "Main unit",
"title*": {
            "title*": {
"en": "Main Quantity Property",
                "de": "Haupteinheit"
"de": "Hauptgrößenattribut"
            },
},
            "type": "object",
"description": "Defines valid units for itself and all of its subquantities",
            "required": [
"description*": {
                "uuid",
"en": "Defines valid units for itself and all of its subquantities",
                "name",
"de": "Definiert gültige Einheiten für sich selbst und alle seine Untergrößen."
                "main_symbol"
},
            ],
"required": [
            "options": {
"type"
                "compact": true
],
            },
"defaultProperties": [
            "id": "unit",
"main_unit",
            "eval_template": {
"additional_units"
                "type": "mustache-wikitext",
],
                "mode": "render",
"properties": {
                "value": "1 {{main_unit.main_symbol}} {{=\u003C% %\u003E=}} {{#set: \u003C%={{ }}=%\u003E |Corresponds to=1 {{main_unit.main_symbol}} {{#main_unit.alternative_symbols}}, {{.}}{{/main_unit.alternative_symbols}} {{=\u003C% %\u003E=}} }} \u003C%={{ }}=%\u003E"
"main_unit": {
            },
"title": "Main unit",
            "properties": {
"title*": {
                "uuid": {
"de": "Haupteinheit"
                    "title": "UUID",
},
                    "type": "string",
"type": "object",
                    "format": "uuid",
"options": {
                    "options": {
"compact": true
                        "hidden": true
},
                    }
"id": "unit",
                },
"eval_template": {
                "name": {
"type": "mustache-wikitext",
                    "title": "Name",
"mode": "render",
                    "description": "Technical / Machine compatible name",
"value": "1 {{main_unit.main_symbol}} {{=\u003C% %\u003E=}} {{#set: \u003C%={{ }}=%\u003E |Corresponds to=1 {{main_unit.main_symbol}} {{#main_unit.alternative_symbols}}, {{.}}{{/main_unit.alternative_symbols}} {{=\u003C% %\u003E=}} }} \u003C%={{ }}=%\u003E"
                    "description*": {
},
                        "de": "Technischer / Maschinenkompatibler Name"
"required": [
                    },
"uuid",
                    "type": "string",
"name",
                    "watch": {
"main_symbol"
                        "main_symbol": "unit.main_symbol"
],
                    },
"defaultProperties": [
                    "template": "{{main_symbol}}",
"main_symbol"
                    "options": {
],
                        "hidden": true
"properties": {
                    }
"uuid": {
                },
"title": "UUID",
                "main_symbol": {
"type": "string",
                    "title": "Symbol",
"format": "uuid",
                    "title*": {
"options": {
                        "de": "Symbol"
"hidden": true
                    },
}
                    "type": "string"
},
                },
"name": {
                "alternative_symbols": {
"title": "Name",
                    "title": "Alternative symbols",
"description": "Technical / Machine compatible name",
                    "title*": {
"description*": {
                        "de": "Alternative Symbole"
"de": "Technischer / Maschinenkompatibler Name"
                    },
},
                    "type": "array",
"type": "string",
                    "items": {
"watch": {
                        "title": "Symbol",
"main_symbol": "unit.main_symbol"
                        "title*": {
},
                            "de": "Symbol"
"template": "{{main_symbol}}",
                        },
"options": {
                        "type": "string"
"hidden": true
                    }
}
                },
},
                "use_as_input_unit": {
"main_symbol": {
                    "type": "boolean",
"title": "Symbol",
                    "format": "checkbox"
"title*": {
                },
"de": "Symbol"
                "use_as_display_unit": {
},
                    "type": "boolean",
"type": "string"
                    "format": "checkbox"
},
                },
"alternative_symbols": {
                "ontology_iri": {
"title": "Alternative symbols",
                    "title": "Ontology IRI(s)",
"title*": {
                    "title*": {
"de": "Alternative Symbole"
                        "de": "Ontologie-IRI(s)"
},
                    },
"type": "array",
                    "description": "e. g. from https://www.qudt.org/doc/DOC_VOCAB-UNITS.html",
"items": {
                    "type": "array",
"title": "Symbol",
                    "items": {
"title*": {
                        "title": "IRI",
"de": "Symbol"
                        "type": "string",
},
                        "format": "url"
"type": "string"
                    }
}
                }
},
            }
"codes": {
        },
"title": "Unit codes",
        "additional_units": {
"title*": {
            "title": "Units",
"de": "Einheiten Codes"
            "title*": {
},
                "de": "Einheiten"
"description": "e.g. UN/CEFACT Common Code (measurement units), ISO 4217 (currencies)",
            },
"description*": {
            "type": "array",
"de": "z. B. UN/CEFACT Common Code (Maßeinheiten), ISO 4217 (Währungen)"
            "format": "tabs",
},
            "minItems": 1,
"type": "array",
            "uniqueItems": true,
"items": {
            "options": {
"title": "Code",
                "dependencies": {
"title*": {
                    "subproperty_of": ""
"de": "Code"
                }
},
            },
"type": "string"
            "eval_template_": {
}
                "type": "mustache-wikitext",
},
                "mode": "render",
"use_as_input_unit": {
                "value": "{{#units}} {{conversion_factor_to_main_unit}} {{#unit_symbols}} {{.}}, {{/unit_symbols}} {{=\u003C% %\u003E=}} {{#set: \u003C%={{ }}=%\u003E |Corresponds to={{conversion_factor_to_main_unit}} {{#unit_symbols}} {{.}}, {{/unit_symbols}} {{=\u003C% %\u003E=}} }} \u003C%={{ }}=%\u003E \u003Cbr\u003E {{/units}}"
"type": "boolean",
            },
"format": "checkbox"
            "eval_template": {
},
                "type": "mustache-wikitext",
"use_as_display_unit": {
                "mode": "render",
"type": "boolean",
                "value": "{{#additional_units}} \u003Cbr\u003E= {{conversion_factor_to_main_unit}} {{main_symbol}} {{=\u003C% %\u003E=}} {{#set: \u003C%={{ }}=%\u003E |Corresponds to={{conversion_factor_to_main_unit}} {{main_symbol}} {{#alternative_symbols}}, {{.}}{{/alternative_symbols}} {{=\u003C% %\u003E=}} }} \u003C%={{ }}=%\u003E {{/additional_units}}"
"format": "checkbox"
            },
},
            "items": {
"ontology_iri": {
                "$ref": "#/properties/main_unit",
"title": "Ontology IRI(s)",
                "title": "Unit",
"title*": {
                "title*": {
"de": "Ontologie-IRI(s)"
                    "de": "Einheit"
},
                },
"description": "e. g. from https://www.qudt.org/doc/DOC_VOCAB-UNITS.html",
                "headerTemplate": "{{self.main_symbol}}",
"type": "array",
                "properties": {
"items": {
                    "conversion_factor_to_main_unit": {
"title": "IRI",
                        "type": "string",
"type": "string",
                        "format": "number"
"format": "url"
                    }
}
                }
}
            }
}
        },
},
        "type": {
"additional_units": {
            "default": [
"title": "Units",
                "Category:OSW1b15ddcf042c4599bd9d431cbfdf3430"
"title*": {
            ]
"de": "Einheiten"
        }
},
    },
"type": "array",
    "required": [
"format": "tabs",
        "type"
"options": {
    ]
"dependencies": {
"subproperty_of": ""
}
},
"eval_template_": {
"type": "mustache-wikitext",
"mode": "render",
"value": "{{#units}} {{conversion_factor_to_main_unit}} {{#unit_symbols}} {{.}}, {{/unit_symbols}} {{=\u003C% %\u003E=}} {{#set: \u003C%={{ }}=%\u003E |Corresponds to={{conversion_factor_to_main_unit}} {{#unit_symbols}} {{.}}, {{/unit_symbols}} {{=\u003C% %\u003E=}} }} \u003C%={{ }}=%\u003E \u003Cbr\u003E {{/units}}"
},
"eval_template": {
"type": "mustache-wikitext",
"mode": "render",
"value": "{{#additional_units}} \u003Cbr\u003E= {{conversion_factor_to_main_unit}} {{main_symbol}} {{=\u003C% %\u003E=}} {{#set: \u003C%={{ }}=%\u003E |Corresponds to={{conversion_factor_to_main_unit}} {{main_symbol}} {{#alternative_symbols}}, {{.}}{{/alternative_symbols}} {{=\u003C% %\u003E=}} }} \u003C%={{ }}=%\u003E {{/additional_units}}"
},
"items": {
"allOf": [
{
"$ref": "#/properties/main_unit"
}
],
"title": "Unit",
"title*": {
"de": "Einheit"
},
"headerTemplate": "{{self.main_symbol}}",
"defaultProperties": [
"conversion_factor_to_main_unit"
],
"properties": {
"conversion_factor_to_main_unit": {
"type": "string",
"format": "number"
}
}
}
},
"proportional_to": {
"title": "Proportional to",
"title*": {
"de": "Proportional zu"
},
"description": "Related quantity which units are in the numerator of the units of this quantity",
"description*": {
"de": "Verwandte Größe deren Einheiten im Zähler der Einheiten dieser Größe stehen "
},
"type": "array",
"items": {
"title": "Quantity",
"title*": "Größe*",
"type": "string",
"format": "autocomplete",
"options": {
"autocomplete": {
"category": "Category:OSW1b15ddcf042c4599bd9d431cbfdf3430"
}
}
},
"eval_template": {
"type": "mustache-wikitext",
"mode": "render",
"value": "{{#proportional_to}} \u003Cbr\u003E [[{{{.}}}]] {{/proportional_to}}"
}
},
"inverse_proportional_to": {
"title": "Inverse proportional to",
"title*": {
"de": "Invers proportional zu"
},
"description": "Related quantity which units are in the denominator of the units of this quantity",
"description*": {
"de": "Verwandte Größe deren Einheiten im Nenner der Einheiten dieser Größe stehen "
},
"type": "array",
"items": {
"title": "Quantity",
"title*": "Größe*",
"type": "string",
"format": "autocomplete",
"options": {
"autocomplete": {
"category": "Category:OSW1b15ddcf042c4599bd9d431cbfdf3430"
}
}
},
"eval_template": {
"type": "mustache-wikitext",
"mode": "render",
"value": "{{#inverse_proportional_to}} \u003Cbr\u003E [[{{{.}}}]] {{/inverse_proportional_to}}"
}
},
"type": {
"default": [
"Category:OSW1b15ddcf042c4599bd9d431cbfdf3430"
]
}
}
}
}
header_template
Line 7: Line 7:
     <th>{{{_label_units|Units}}}</th>
     <th>{{{_label_units|Units}}}</th>
     <td>{{{main_unit|}}}{{{additional_units|}}}</td>
     <td>{{{main_unit|}}}{{{additional_units|}}}</td>
    </tr>
    |<!-- else show nothing -->}}
{{#if: {{{proportional_to|}}} | <!-- if units is not empty, show -->
    <tr>
    <th>{{{_label_proportional_to|Proportional to}}}</th>
    <td>{{{proportional_to|}}}</td>
    </tr>
    |<!-- else show nothing -->}}
{{#if: {{{inverse_proportional_to|}}} | <!-- if units is not empty, show -->
    <tr>
    <th>{{{_label_inverse_proportional_to|Inverse proportional to}}}</th>
    <td>{{{inverse_proportional_to|}}}</td>
     </tr>
     </tr>
     |<!-- else show nothing -->}}
     |<!-- else show nothing -->}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.