Category:Category: Difference between revisions

Update package: OSW Core
(Update package: OSW Core)
 
(Update package: OSW Core)
 
(16 intermediate revisions by 3 users not shown)
jsondata
Line 13: Line 13:
         }
         }
     ],
     ],
     "name": "CategoryClass"
     "name": "CategoryClass",
    "type": [
        "Category:Category"
    ]
}
}
jsonschema
Line 3: Line 3:
         "/wiki/Category:Entity?action=raw\u0026slot=jsonschema",
         "/wiki/Category:Entity?action=raw\u0026slot=jsonschema",
         {
         {
             "subclass_of": "rdf:subclass_of",
            "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
             "subclass_of": {
                "@id": "rdfs:subClassOf",
                "@type": "@id"
            },
            "subclass_of*": {
                "@id": "Property:SubClassOf",
                "@type": "@id"
            },
            "metaclass": {
                "@id": "Property:HasMetaCategory",
                "@type": "@id"
            },
            "type": {
                "@id": "Property:HasType",
                "@type": "@id"
            },
             "utf8_icon": "Property:HasUtf8Icon"
             "utf8_icon": "Property:HasUtf8Icon"
         }
         }
     ],
     ],
    "type": "object",
    "title": "Category",
    "title*": {
        "de": "Kategorie",
        "en": "Category"
    },
     "allOf": [
     "allOf": [
         {
         {
            "type": "object",
             "$ref": "/wiki/Category:Entity?action=raw\u0026slot=jsonschema"
             "$ref": "/wiki/Category:Entity?action=raw\u0026slot=jsonschema"
         }
         }
     ],
     ],
    "uuid": "89aafe6d-ae5a-4f29-97ff-df7736d4cab6",
    "type": "object",
    "title": "Category",
    "title*": {
        "de": "Kategorie (Klasse)",
        "en": "Category (Class)"
    },
     "required": [
     "required": [
         "subclass_of"
         "subclass_of",
        "type"
     ],
     ],
     "properties": {
     "properties": {
        "type": {
            "title": "Types/Categories",
            "title*": {
                "de": "Typen/Kategorien"
            },
            "propertyOrder": -1010,
            "type": "array",
            "format": "table",
            "items": {
                "title": "Type",
                "title*": {
                    "de": "Type"
                },
                "type": "string",
                "format": "autocomplete",
                "options": {
                    "autocomplete": {
                        "query": "[[HasType::Category:Category]]|?Display_title_of=label|?HasImage=image|?HasDescription=description"
                    }
                }
            },
            "minItems": 1,
            "default": [
                "Category:Category"
            ],
            "options": {
                "hidden": true
            }
        },
        "instance_rdf_type": {
            "type": "array",
            "title": "RDF type(s) of instances",
            "title*": {
                "de": "RDF-Typ(en) der Instanzen"
            },
            "description": "References a class/type/category in another ontology to describe the instances of this category. Typically a prefix, representing the resolvable URI of an ontology and an id from the namespace of said ontology, separated by colon, e.g., \"schema:Person\"",
            "description*": {
                "de": "Verweist auf eine Klasse/Typ/Kategory in einer anderen Ontologie, um die Instanzen dieser Kategorie zu beschreiben. In der Regel ein Präfix, das den auflösbaren URI einer Ontologie und eine ID aus dem Namensraum dieser Ontologie darstellt, durch einen Doppelpunkt getrennt, z.B. \"schema:Person\""
            },
            "format": "table",
            "items": {
                "type": "string",
                "title": "RDF type",
                "title*": {
                    "de": "RDF-Typ"
                },
                "default": ""
            }
        },
         "subclass_of": {
         "subclass_of": {
             "title": "Supercategories",
             "title": "Supercategories",
Line 30: Line 96:
             },
             },
             "type": "array",
             "type": "array",
            "propertyOrder": -1009,
             "items": {
             "items": {
                 "title": "Category",
                 "title": "Category",
Line 38: Line 105:
                 "type": "string",
                 "type": "string",
                 "format": "autocomplete",
                 "format": "autocomplete",
                 "query": "[[IsA::Category:Category]] |?Display_title_of=label",
                 "options": {
                "previewWikiTextTemplate": "[[:{{result.fulltext}}]]",
                    "autocomplete": {
                 "labelTemplate": "{{result.printouts.label.[0]}}"
                        "query": "[[HasType::Category:Category]]|?Display_title_of=label|?HasImage=image|HasDescription=description"
                    }
                 }
             },
             },
             "default": [
             "default": [
Line 47: Line 116:
             "options": {
             "options": {
                 "hidden": false
                 "hidden": false
            }
        },
        "metaclass": {
            "title": "Metaclasses/-categories",
            "title*": {
                "de": "Metaklassen/-kategorien"
            },
            "type": "array",
            "format": "table",
            "propertyOrder": -1008,
            "items": {
                "title": "Metaclass",
                "title*": {
                    "de": "Metaklasse"
                },
                "type": "string",
                "format": "autocomplete",
                "options": {
                    "autocomplete": {
                        "query": "[[HasType::Category:Category]]|?Display_title_of=label|?HasImage=image|HasDescription=description"
                    }
                }
             }
             }
         },
         },
Line 52: Line 143:
             "type": "array",
             "type": "array",
             "title": "UTF8-Icons",
             "title": "UTF8-Icons",
             "description": "see https://www.w3schools.com/charsets/ref_utf_symbols.asp",
             "description": "see https://www.unicode.org/cldr/charts/latest/annotations/romance.html",
             "description*": {
             "description*": {
                 "de": "see https://www.w3schools.com/charsets/ref_utf_symbols.asp"
                 "de": "siehe https://www.unicode.org/cldr/charts/latest/annotations/germanic.html"
             },
             },
             "items": {
             "items": {
footer_template
Line 1: Line 1:
<!-- Include optional extensions of this page  -->
{{#ask: [[ExtendsDocumentationOf::{{FULLPAGENAME}}]]
|format=embedded
|embedformat=h1
|embedonly=yes
}}
=={{#switch:{{USERLANGUAGECODE}}|en=Graph|de=Graph}}==
=={{#switch:{{USERLANGUAGECODE}}|en=Graph|de=Graph}}==
<div style="width: 100%;" class="InteractiveSemanticGraph" data-config='{ "root":"{{FULLPAGENAME}}", "properties":["Subcategory of","-Subcategory of","HasUtf8Icon","-HasType"], "ignore_properties":["IsA"], "permalink":true, "depth":2, "edit": true, "edge_labels": false}'></div>
<div style="width: 100%;" class="InteractiveSemanticGraph" data-config='{ "root":"{{FULLPAGENAME}}", "properties":["SubClassOf","HasImage","HasUtf8Icon"], "ignore_properties":["Subcategory_of", "-Subcategory_of", "Has_query", "Display_title_of", "Display_title_of_lowercase", "Display_title_of_normalized"], "permalink":true, "depth":2, "edit": true, "edge_labels": false, "query_limit":25}'></div>
<br>
<br>
<br>
<br>
schema_template
Line 1: Line 1:
 
{
    "@context": [
    {{#each subclass_of}}
        "/wiki/{{{.}}}?action=raw\u0026slot=jsonschema"{{#unless @last}},{{/unless}}
        {{/each}}
    ],
    "allOf": [
        {
        {{#each subclass_of}}
            "$ref": "/wiki/{{{.}}}?action=raw\u0026slot=jsonschema"{{#unless @last}},{{/unless}}
            {{/each}}
        }
    ],
    "type": "object",
    "uuid": "{{{uuid}}}",
    "title": "{{{name}}}",
    "title*": {
    {{#each label}}
        "{{{lang}}}": "{{{text}}}"{{#unless @last}},{{/unless}}
    {{/each}}
    },
    "description": "{{{description.[0].text}}}",
    "description*": {
    {{#each description}}
        "{{{lang}}}": "{{{text}}}"{{#unless @last}},{{/unless}}
    {{/each}}
    },
    "required": [
        "type"
    ],
    "properties": {
        "type": {
            "default": ["{{{_page_title}}}"]
        }
    }
}