Category:Entity: Difference between revisions

16,960 bytes added ,  Thursday at 04:45
m
Protected "Entity": Protected as read-only import via Page Exchange extension ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]
(Install package: OSW Core)
 
m (Protected "Entity": Protected as read-only import via Page Exchange extension ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
 
(3 intermediate revisions by the same user not shown)
footer_template
Line 1: Line 1:
{{#if: {{{attachments|}}} |
 
{{#if: {{#ask: [[IsPartOf::{{FULLPAGENAME}}]]|format=plain|limit=1|searchlabel=}} |
=={{#switch:{{USERLANGUAGECODE}}|en=Structure|de=Struktur|#default=Structure}}==
 
{{#tree:  minExpandLevel=2 |
{{#ask:
[[{{FULLPAGENAME}}]]
OR [[IsPartOf::{{FULLPAGENAME}}]]
OR [[IsPartOf.IsPartOf::{{FULLPAGENAME}}]]
OR [[IsPartOf.IsPartOf.IsPartOf::{{FULLPAGENAME}}]]
OR [[IsPartOf.IsPartOf.IsPartOf.IsPartOf::{{FULLPAGENAME}}]]
OR [[IsPartOf.IsPartOf.IsPartOf.IsPartOf.IsPartOf::{{FULLPAGENAME}}]]
|format=tree
|parent=IsPartOf
}}
}}
|}}<!-- {{#if: {{{attachments|}}} |-->
 
=={{{_label_attachments| {{#switch:{{USERLANGUAGECODE}}|en=Attachments|de=Anhang|#default=Attachments}} }}}==
=={{{_label_attachments| {{#switch:{{USERLANGUAGECODE}}|en=Attachments|de=Anhang|#default=Attachments}} }}}==
<!-- {{#ask: [[IsFileAttachmentOf::{{FULLPAGENAME}}]] -->
{{#tag: gallery
{{#ask: [[-HasFileAttachment::{{FULLPAGENAME}}]]
|{{#arraymap: {{{attachments|}}} |;|__FILE__|__FILE__{{!}}[[:__FILE__]]|\n}}
|?HasName
}}
<!-- |?HasName #=Name
|?HasUrl=Link
|?Modification date=Zuletzt geändert  -->
|?HasUrl
|format=gallery
|redirects=HasUrl<!-- Links direct to download -->
|captionproperty=HasName
}} <!-- With format=table chem and math formular fail to render on page!?! -->
<!-- With format=datatable VE page safe fails!?! -->
<!-- <div class="fileupload-auto-reload">{{#batchupload:OslTemplate:ELN/Attachment|{{FULLPAGENAME}}|{{REVISIONUSER}}}}</div> -->
<!-- <div class="fileupload-auto-reload">{{#batchupload:OslTemplate:ELN/Attachment|{{FULLPAGENAME}}|{{REVISIONUSER}}}}</div> -->
{{#batchupload:}}
{{#batchupload:}}
|}}
<!--|}}-->
jsondata
Line 1: Line 1:
{
{
    "subclass_of": [
"uuid": "ce353767-c628-45bd-9d88-d6eb3009aec0",
        "Category:Entity"
"label": [
    ],
{
    "uuid": "ce353767-c628-45bd-9d88-d6eb3009aec0",
"text": "Entity",
    "label": [
"lang": "en"
        {
},
            "text": "Entity",
{
            "lang": "en"
"text": "Entität",
        },
"lang": "de"
        {
}
            "text": "Entität",
],
            "lang": "de"
"name": "Entity",
        }
"description": [
    ],
{
    "name": "Entity",
"text": "This is meant to be the most basic category. Contrary to its subcategories, it is not meant to be instantiated",
    "description": [
"lang": "en"
        {
},
            "text": "This is meant to be the most basic category.",
{
            "lang": "en"
"text": "Dies soll die aller grundlegendste Kategorie sein. Im Gegensatz zu ihren Subkategorien, ist diese nicht dazu gedacht instanziiert zu werden.",
        },
"lang": "de"
        {
}
            "text": "Dies soll die aller grundlegendste Kategorie sein.",
],
            "lang": "de"
"type": [
        }
"Category:Category"
    ]
]
}
}
jsonschema
Line 1: Line 1:
{
{
    "@context": {
"@context": {
        "schema": "https://schema.org/",
"owl": "http://www.w3.org/2002/07/owl#",
        "skos": "https://www.w3.org/TR/skos-reference/",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
        "wiki": "https://wiki-dev.open-semantic-lab.org/id/",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
        "Property": {
"schema": "https://schema.org/",
            "@id": "wiki:Property-3A",
"skos": "https://www.w3.org/TR/skos-reference/",
            "@type": "@id",
"wiki": "https://wiki-dev.open-semantic-lab.org/id/",
            "@prefix": true
"xsd": "http://www.w3.org/2001/XMLSchema#",
        },
"odrl": "http://www.w3.org/ns/odrl/2/",
        "File": {
"Category": {
            "@id": "https://wiki-dev.open-semantic-lab.org/wiki/Special:Redirect/file/",
"@id": "wiki:Category-3A",
            "@type": "@id",
"@prefix": true
            "@prefix": true
},
        },
"File": {
        "Category": {
"@id": "https://wiki-dev.open-semantic-lab.org/wiki/Special:Redirect/file/",
            "@id": "wiki:Category-3A",
"@prefix": true
            "@prefix": true
},
        },
"Item": {
        "category": {
"@id": "wiki:Item-3A",
            "@id": "@type"
"@prefix": true
        },
},
        "uuid*": "Property:HasUuid",
"Property": {
        "name*": "Property:HasName",
"@id": "wiki:Property-3A",
        "label": "skos:prefLabel",
"@prefix": true
        "label*": "Property:HasLabel",
},
        "text": {
"attachments*": {
            "@id": "@value"
"@id": "Property:HasFileAttachment",
        },
"@type": "@id"
        "lang": {
},
            "@id": "@language"
"based_on": {
        },
"@id": "skos:isBasedOn",
        "query_label": "Property:HasLabel",
"@type": "@id"
        "description": "skos:definition",
},
        "description_": "Property:HasDecription",
"based_on*": {
        "image": "schema:image",
"@id": "Property:IsBasedOn",
        "image*": "Property:HasImage",
"@type": "@id"
        "based_on": "skos:isBasedOn",
},
        "based_on*": {
"close_ontology_match": {
            "@id": "Property:IsBasedOn",
"@id": "skos:closeMatch",
            "@type": "@id"
"@type": "@id"
        },
},
        "short_name": "Property:HasShortName",
"close_ontology_match*": {
        "statements": "Property:HasStatement",
"@id": "Property:Equivalent_URI",
        "attachments*": {
"@type": "@id"
            "@id": "Property:HasFileAttachment",
},
            "@type": "@id"
"close_ontology_match**": {
        }
"@id": "Property:HasCloseOntologyMatch",
    },
"@type": "@id"
    "uuid": "ce353767-c628-45bd-9d88-d6eb3009aec0",
},
    "title": "Entity",
"description": {
    "type": "object",
"@id": "skos:definition"
    "id": "entity",
},
    "required": [
"description*": {
        "uuid",
"@id": "Property:HasDescription"
        "label"
},
    ],
"exact_ontology_match": {
    "properties": {
"@id": "skos:exactMatch",
        "uuid": {
"@type": "@id"
            "title": "UUID",
},
            "type": "string",
"exact_ontology_match*": {
            "format": "uuid",
"@id": "Property:Equivalent_URI",
            "options": {
"@type": "@id"
                "hidden": true
},
            }
"exact_ontology_match**": {
        },
"@id": "Property:HasExactOntologyMatch",
        "name": {
"@type": "@id"
            "title": "Name",
},
            "description": "Technical / Machine compatible name",
"image": {
            "description*": {
"@id": "schema:image",
                "de": "Technischer / Maschinenkompatibler Name"
"@type": "@id"
            },
},
            "type": "string",
"image*": {
            "options": {
"@id": "Property:HasImage",
                "hidden": true
"@type": "@id"
            }
},
        },
"keywords": {
        "label": {
"@id": "schema:keywords",
            "type": "array",
"@type": "@id"
            "title": "Labels",
},
            "title*": {
"keywords*": {
                "de": "Namen"
"@id": "Property:HasKeyword",
            },
"@type": "@id"
            "description": "Human readable names. You have to assign at least one.",
},
            "description*": {
"label": {
                "de": "Menschenlesbarer Namen. Du musst mindestens einen vergeben."
"@id": "skos:prefLabel"
            },
},
            "format": "table",
"label*": {
            "eval_template": [
"@id": "Property:HasLabel"
                {
},
                    "type": "mustache-wikitext",
"lang": {
                    "mode": "render",
"@id": "@language"
                    "value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%={{ }}=%\u003E {{#label}} |{{lang}}={{text}} {{/label}} {{=\u003C% %\u003E=}} }}"
},
                }
"meta": {
            ],
"@id": "Property:HasMeta",
            "items": {
"@type": "@id",
                "title": "Label",
"@context": {
                "title*": {
"change_id": {
                    "de": "Name"
"@id": "Property:HasChangeId",
                },
"@type": "xsd:string"
                "eval_template": [
}
                    {
}
                        "type": "wikitext",
},
                        "mode": "store",
"name*": {
                        "value": "{{{text}}}@{{{lang}}}"
"@id": "Property:HasName"
                    }
},
                ],
"classification_categories": {
                "$ref": "/wiki/JsonSchema:Label?action=raw"
"@id": "Property:Category",
            },
"@type": "@id"
            "minItems": 1
},
        },
"classification_categories*": {
        "short_name": {
"@id": "Property:HasClassificationCategory",
            "type": "array",
"@type": "@id"
            "title": "Short name",
},
            "title*": {
"query_label": {
                "de": "Kurzname"
"@id": "Property:HasLabel",
            },
"@type": "@id"
            "description": "Abbreviation, Acronym, etc.",
},
            "description*": {
"rdf_type": {
                "de": "Abkürzung, Akronym, etc."
"@id": "@type",
            },
"@type": "@id"
            "format": "table",
},
            "eval_template": {
"short_name": {
                "type": "mustache-wikitext",
"@id": "Property:HasShortName"
                "mode": "render",
},
                "value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%={{ }}=%\u003E {{#short_name}} |{{lang}}={{text}} {{/short_name}} {{=\u003C% %\u003E=}} }}"
"access_policy": {
            },
"@id": "odrl:hasPolicy",
            "items": {
"@type": "@id",
                "title": "Acronym",
"@context": {
                "title*": {
"usergroup_permissions": {
                    "de": "Kurzname"
"@id": "odrl:permission",
                },
"@type": "@id",
                "$ref": "/wiki/JsonSchema:Label?action=raw"
"@context": {
            }
"assignee_usergroup": {
        },
"@id": "odrl:assignee",
        "query_label": {
"@type": "@id"
            "title": "Label",
},
            "title*": {
"action": {
                "de": "Name"
"@id": "odrl:action",
            },
"@type": "@id"
            "type": "string",
}
            "options": {
}
                "hidden": true,
},
                "conditional_visible": {
"user_permissions": {
                    "modes": [
"@id": "odrl:permission",
                        "query"
"@type": "@id",
                    ]
"@context": {
                }
"assignee_user": {
            }
"@id": "odrl:assignee",
        },
"@type": "@id"
        "description": {
},
            "title": "Description",
"action": {
            "title*": {
"@id": "odrl:action",
                "de": "Beschreibung"
"@type": "@id"
            },
}
            "type": "array",
}
            "format": "table",
}
            "eval_template": {
}
                "type": "mustache-wikitext",
},
                "value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%={{ }}=%\u003E {{#description}} |{{lang}}={{text}} {{/description}} {{=\u003C% %\u003E=}} }}"
"statements": {
            },
"@id": "Property:HasStatement",
            "items": {
"@type": "@id"
                "$ref": "/wiki/JsonSchema:Description?action=raw"
},
            }
"text": {
        },
"@id": "@value"
        "image": {
},
            "title": "Image",
"type": {
            "title*": {
"@id": "Property:HasType",
                "de": "Bild"
"@type": "@id"
            },
},
            "type": "string",
"type*": {
            "format": "url",
"@id": "Property:HasSchema",
            "options": {
"@type": "@id"
                "upload": {}
},
            },
"uuid*": {
            "links": [
"@id": "Property:HasUuid"
                {
}
                    "href": "{{#if self}}/w/index.php?title=Special:Redirect/file/{{self}}\u0026width=200\u0026height=200{{/if}}",
},
                    "mediaType": "image"
"uuid": "ce353767-c628-45bd-9d88-d6eb3009aec0",
                },
"title": "Entity",
                {
"type": "object",
                    "href": "{{#if self}}/w/index.php?title=Special:Redirect/file/{{self}}{{/if}}",
"id": "entity",
                    "rel": "{{#if self}}download{{/if}}",
"required": [
                    "download": true
"uuid",
                }
"label"
            ]
],
        },
"defaultProperties": [
        "based_on": {
"description"
            "type": "array",
],
            "title": "Based on",
"properties": {
            "title*": {
"type": {
                "de": "Basierend auf"
"title": "Types/Categories",
            },
"title*": {
            "description": "Other entities on which this one is based, e.g. when it is created by copying",
"de": "Typen/Kategorien"
            "description*": {
},
                "de": "Andere Entitäten auf die diese basiert, z. B. wenn sie durch Kopieren entstanden ist"
"propertyOrder": -1010,
            },
"type": "array",
            "items": {
"format": "table",
                "type": "string"
"eval_template": [
            },
{
            "options": {
"type": "mustache-wikitext",
                "hidden": "true"
"mode": "render",
            }
"value": "{{=\u003C% %\u003E=}} \u003C%#type%\u003E {{Viewer/Link |page=\u003C%.%\u003E }} \u003Cbr\u003E\u003C%/type%\u003E"
        },
}
        "statements": {
],
            "type": "array",
"items": {
            "title": "Statements",
"title": "Type",
            "title*": {
"title*": {
                "de": "Aussagen"
"de": "Typ"
            },
},
            "format": "tabs",
"type": "string"
            "propertyOrder": 1010,
},
            "eval_template": {
"default": [
                "type": "mustache-wikitext",
"Category:Entity"
                "mode": "render",
],
                "value": "{{#statements}}.. {{#predicate}}[[{{predicate}}]]{{/predicate}}{{#property}}[[{{property}}]]{{/property}}{{#quantity}}[[{{quantity}}]]{{/quantity}} {{#object}}[[{{object}}]]{{/object}}{{#value}}{{value}}{{/value}}\u003Cbr\u003E{{/statements}}"
"minItems": 1
            },
},
            "items": {
"rdf_type": {
                "$ref": "/wiki/JsonSchema:Statement?action=raw"
"title": "Additional RDF type(s)",
            }
"title*": {
        },
"de": "Zusätzliche(r) RDF-Typ(en)"
        "attachments": {
},
            "type": "array",
"description": "Declares additional type(s) for this entity, thereby stating that this entity is an instance of an additional RDF class. See also https://schema.org/additionalType. Category:Entity is not directly instantiated. Therefor the inheriting classes (Category:Category, Category:Item, Category:Property) decide on the implementation and mapping within the \"@context\". The value must be a full IRI, e.g. https://schema.org/Person",
            "title": "File attachments",
"description*": {
            "title*": {
"de": "Deklariert zusätzliche(n) Typ(en) für diese Entität und gibt damit an, dass diese Entität eine Instanz einer zusätzlichen RDF-Klasse ist. Siehe auch https://schema.org/additionalType. Category:Entity wird nicht direkt instanziiert. Daher entscheiden die erbenden Klassen (Category:Category, Category:Item, Category:Property) über die Implementierung und das Mapping innerhalb des \"@context\". Der Wert muss eine vollständige IRI sein, z.B. https://schema.org/Person"
                "de": "Dateianhänge"
},
            },
"type": "array",
            "eval_template": {
"format": "table",
                "type": "mustache-wikitext",
"eval_template": [
                "mode": "render",
{
                "value": "{{=\u003C% %\u003E=}} \u003C%={{ }}=%\u003E {{#attachments}} [[{{{.}}}]] \u003Cbr\u003E {{/attachments}} {{=\u003C% %\u003E=}}"
"type": "mustache-wikitext",
            },
"mode": "render",
            "options": {
"value": "{{#rdf_type}} {{=\u003C% %\u003E=}} {{Viewer/Link |url= \u003C%={{ }}=%\u003E {{{.}}} {{=\u003C% %\u003E=}} }} \u003Cbr\u003E\u003C%={{ }}=%\u003E{{/rdf_type}}"
                "collapsed": true
}
            },
],
            "propertyOrder": 1020,
"items": {
            "items": {
"title": "RDF type",
                "title": "Attachment",
"title*": {
                "title*": {
"de": "RDF-Typ"
                    "de": "Anhang"
},
                },
"type": "string"
                "type": "string",
},
                "format": "url",
"uniqueItems": true
                "options": {
},
                    "upload": {}
"exact_ontology_match": {
                },
"type": "array",
                "links": [
"title": "Ontology Match (Exact)",
                    {
"description": "Only use this property if all properties defined in the Ontology can be asserted to this object.",
                        "href": "{{#if self}}/w/index.php?title=Special:Redirect/file/{{self}}\u0026width=200\u0026height=200{{/if}}",
"titel*": {
                        "mediaType": "image"
"de": "Ontologieübereinstimmung (exakt)"
                    },
},
                    {
"description*": {
                        "href": "{{#if self}}/w/index.php?title=Special:Redirect/file/{{self}}{{/if}}",
"de": "Verwenden Sie diese Eigenschaft nur, wenn alle in der Ontologie definierten Eigenschaften auf dieses Objekt übertragen werden können."
                        "rel": "{{#if self}}download{{/if}}",
},
                        "download": true
"eval_template": [
                    }
{
                ]
"type": "mustache-wikitext",
            }
"mode": "render",
        }
"value": "{{#exact_ontology_match}} {{=\u003C% %\u003E=}} {{Viewer/Link |url= \u003C%={{ }}=%\u003E {{{.}}} {{=\u003C% %\u003E=}} }} \u003Cbr\u003E\u003C%={{ }}=%\u003E{{/exact_ontology_match}}"
    }
}
],
"items": {
"type": "string",
"options": {
"compact": "true"
}
},
"uniqueItems": true
},
"close_ontology_match": {
"type": "array",
"title": "Ontology Match (Close)",
"description": "Use this property if you are not sure if all properties from the ontology can be asserted to this object but the meaning is very close.",
"titel*": {
"de": "Ontologieübereinstimmung (ähnlich)"
},
"description*": {
"de": "Verwenden Sie diese Eigenschaft, wenn Sie nicht sicher sind, ob alle Eigenschaften aus der Ontologie für dieses Objekt geltend gemacht werden können, die Bedeutung aber sehr nahe liegt."
},
"eval_template": [
{
"type": "mustache-wikitext",
"mode": "render",
"value": "{{#close_ontology_match}} {{=\u003C% %\u003E=}} {{Viewer/Link |url= \u003C%={{ }}=%\u003E {{{.}}} {{=\u003C% %\u003E=}} }} \u003Cbr\u003E\u003C%={{ }}=%\u003E{{/close_ontology_match}}"
}
],
"items": {
"type": "string",
"options": {
"compact": "true"
}
},
"uniqueItems": true
},
"uuid": {
"title": "UUID",
"type": "string",
"format": "uuid",
"options": {
"hidden": true
}
},
"iri": {
"title": "IRI",
"description": "The Internationalized Resource Identifier (IRI) of this entity",
"description*": {
"de": "Der internationalisierte Ressourcenbezeichner (IRI) dieser Entität"
},
"type": "string",
"format": "url",
"options": {
"hidden": true
}
},
"name": {
"title": "Technical name",
"title*": {
"de": "Technischer Name"
},
"description": "Technical / Machine compatible name",
"description*": {
"de": "Technischer / Maschinenkompatibler Name"
},
"type": "string",
"options": {
"hidden": true
}
},
"label": {
"type": "array",
"title": "Label(s)",
"title*": {
"de": "Bezeichnung(en)"
},
"description": "At least one label is required.",
"description*": {
"de": "Mindestens eine Bezeichnung ist erforderlich."
},
"format": "table",
"eval_template": [
{
"type": "mustache-wikitext",
"mode": "render",
"$comment": "Displays value according to user language with eng as fallback option. Note: {{=\u003C% %\u003E=}} changes mustache expression from {{..}} to \u003C% %\u003E for mixing with wikitext templates",
"value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%#label%\u003E | {{#ifeq: \u003C%lang%\u003E|en|#default|\u003C%lang%\u003E}} = \u003C%text%\u003E \u003C%/label%\u003E }}"
}
],
"items": {
"title": "Label",
"title*": {
"de": "Bezeichnung"
},
"eval_template": [
{
"type": "wikitext",
"mode": "store",
"value": "{{{text}}}@{{{lang}}}"
}
],
"$ref": "/wiki/JsonSchema:Label?action=raw"
},
"minItems": 1
},
"short_name": {
"type": "array",
"title": "Short name(s)",
"title*": {
"de": "Kurzname(n)"
},
"description": "Abbreviation, Acronym, etc.",
"description*": {
"de": "Abkürzung, Akronym, etc."
},
"format": "table",
"eval_template": {
"type": "mustache-wikitext",
"mode": "render",
"$comment": "Displays value according to user language with eng as fallback option. Note: {{=\u003C% %\u003E=}} changes mustache expression from {{..}} to \u003C% %\u003E for mixing with wikitext templates",
"value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%#short_name%\u003E | {{#ifeq: \u003C%lang%\u003E|en|#default|\u003C%lang%\u003E}} = \u003C%text%\u003E \u003C%/short_name%\u003E }}"
},
"items": {
"title": "Short name",
"title*": {
"de": "Kurzname"
},
"eval_template": [
{
"type": "wikitext",
"mode": "store",
"value": "{{{text}}}@{{{lang}}}"
}
],
"$ref": "/wiki/JsonSchema:Label?action=raw"
}
},
"query_label": {
"title": "Query label",
"title*": {
"de": "Abfrage-Bezeichnung"
},
"type": "string",
"options": {
"hidden": true,
"conditional_visible": {
"modes": [
"query"
]
}
}
},
"description": {
"title": "Description",
"title*": {
"de": "Beschreibung"
},
"type": "array",
"format": "table",
"eval_template": {
"type": "mustache-wikitext",
"mode": "render",
"$comment": "Displays value according to user language with eng as fallback option. Note: {{=\u003C% %\u003E=}} changes mustache expression from {{..}} to \u003C% %\u003E for mixing with wikitext templates",
"value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%#description%\u003E | {{#ifeq: \u003C%lang%\u003E|en|#default|\u003C%lang%\u003E}} = \u003C%text%\u003E \u003C%/description%\u003E }}"
},
"items": {
"title": "Description",
"title*": {
"de": "Beschreibung"
},
"eval_template": [
{
"type": "wikitext",
"mode": "store",
"value": "{{{text}}}@{{{lang}}}"
}
],
"$ref": "/wiki/JsonSchema:Description?action=raw"
}
},
"image": {
"title": "Image",
"title*": {
"de": "Bild"
},
"propertyOrder": 1020,
"type": "string",
"format": "url",
"options": {
"upload": {}
},
"links": [
{
"href": "{{#if self}}/w/index.php?title=Special:Redirect/file/{{self}}\u0026width=200\u0026height=200{{/if}}",
"mediaType": "image"
},
{
"href": "{{#if self}}/w/index.php?title=Special:Redirect/file/{{self}}{{/if}}",
"rel": "{{#if self}}download{{/if}}",
"download": true
}
]
},
"classification_categories": {
"type": "array",
"format": "table",
"title": "Classification categories",
"title*": {
"de": "Ordnungskategorien"
},
"description": "Classification categories are used to categorize instances, e.g., according to their use but not their properties. When querying for instances of a here listed classification category, this instance will be returned. Note: Classification categories define no properties, while 'regular' categories define properties, which an instance assigns values to.",
"description*": {
"de": "Ordnungskategorien werden verwendet, um Instanzen zu kategorisieren, z. B. nach ihrer Verwendung, nicht aber nach ihren Eigenschaften. Bei der Abfrage nach Instanzen einer hier aufgeführten Ordnungskategorie wird diese Instanz zurückgegeben. Hinweis: Ordnungskategorien definieren keine Eigenschaften, während 'normale' Kategorien Eigenschaften definieren, denen eine Instanz Werte zuweist."
},
"eval_template": [
{
"type": "mustache-wikitext",
"mode": "render",
"value": "{{=\u003C% %\u003E=}} \u003C%#classification_categories%\u003E {{Viewer/Link |page=\u003C%.%\u003E }} \u003Cbr\u003E\u003C%/classification_categories%\u003E"
}
],
"items": {
"title": "Classification category",
"title*": {
"de": "Ordnungskategorie"
},
"type": "string",
"format": "autocomplete",
"options": {
"autocomplete": {
"$comment": "SubCategories of Item OR OwlThing (Category:OSW379d5a1589c74c82bc0de47938264d00)",
"query": "[[SubClassOf::Category:Item]] OR [[SubClassOf.SubClassOf::Category:Item]] OR [[SubClassOf.SubClassOf.SubClassOf::Category:Item]] OR [[SubClassOf.SubClassOf.SubClassOf.SubClassOf::Category:Item]] OR [[SubClassOf.SubClassOf.SubClassOf.SubClassOf.SubClassOf::Category:Item]] OR [[SubClassOf::Category:OSW379d5a1589c74c82bc0de47938264d00]]"
}
}
}
},
"keywords": {
"type": "array",
"format": "table",
"title": "Keywords / Tags",
"title*": {
"de": "Schlagworte / Tags"
},
"description": "Designated to the user defined categorization of this element",
"description*": {
"de": "Dient der nutzerdefinierten Kategorisierung des Elements"
},
"eval_template": [
{
"type": "mustache-wikitext",
"mode": "render",
"value": "{{=\u003C% %\u003E=}} \u003C%#keywords%\u003E {{Viewer/Link |page=\u003C%.%\u003E }} \u003Cbr\u003E\u003C%/keywords%\u003E"
}
],
"items": {
"title": "Keyword",
"title*": {
"de": "Schlagwort"
},
"type": "string",
"format": "autocomplete",
"range": "Category:OSW09f6cdd54bc54de786eafced5f675cbe"
}
},
"based_on": {
"type": "array",
"title": "Based on",
"title*": {
"de": "Basierend auf"
},
"description": "Other entities on which this one is based, e.g. when it is created by copying",
"description*": {
"de": "Andere Entitäten auf die diese basiert, z. B. wenn sie durch Kopieren entstanden ist"
},
"eval_template": [
{
"type": "mustache-wikitext",
"mode": "render",
"value": "{{=\u003C% %\u003E=}} \u003C%#based_on%\u003E {{Viewer/Link |page=\u003C%.%\u003E }} \u003Cbr\u003E\u003C%/based_on%\u003E"
}
],
"items": {
"type": "string",
"format": "autocomplete",
"options": {
"autocomplete": {
"$comment": "All categories here since subclassof_range is limited by depth 5",
"query": "[[:Category:%2B]]"
}
}
},
"options": {
"hidden": "true"
}
},
"access_policy": {
"title": "AccessAndUsagePolicy",
"title*": {
"en": "Access policy",
"de": "Zugriffsbeschränkungen"
},
"description": "Defines access control rules (who can read/write this entity).",
"description*": {
"de": "Definiert Zugriffsregeln (wer darf diese Entität lesen/bearbeiten)."
},
"type": "object",
"defaultProperties": [
"usergroup_permissions"
],
"$comment": "See also https://www.w3.org/TR/odrl-vocab/#term-hasPolicy and https://w3c.github.io/odrl/bp/#. For interoperability with DSP/DCAT see https://docs.internationaldataspaces.org/ids-knowledgebase/dataspace-protocol/catalog/catalog.protocol#id-1.2-dcat-and-odrl-profiles.",
"eval_template": {
"$comment": "See https://www.mediawiki.org/wiki/Extension:Semantic_ACL",
"type": "mustache-wikitext",
"mode": "render",
"value": "{{=\u003C% %\u003E=}} \u003C%#access_policy.usergroup_permissions%\u003E {{#if: \u003C%assignee_usergroup%\u003E | [[\u003C%assignee_usergroup%\u003E]] {{#switch: \u003C%action%\u003E |odrl:read= {{#set: |Visible to=whitelist |Visible to group= {{#ask: [[\u003C%assignee_usergroup%\u003E]]|?HasGroupname=|mainlabel=-|link=none|format=plain}} }} (read) |odrl:write= {{#set: |Editable by=whitelist |Editable by group= {{#ask: [[\u003C%assignee_usergroup%\u003E]]|?HasGroupname=|mainlabel=-|link=none|format=plain}} }} (write) |#default=}} \u003Cbr\u003E |}} \u003C%/access_policy.usergroup_permissions%\u003E \u003C%#access_policy.user_permissions%\u003E {{#if: \u003C%assignee_user%\u003E | [[\u003C%assignee_user%\u003E]] {{#switch: \u003C%action%\u003E |odrl:read= {{#set: |Visible to=whitelist |Visible to user= User:{{#ask: [[\u003C%assignee_user%\u003E]]|?HasUsername=|mainlabel=-|link=none|format=plain}} }} (read) |odrl:write= {{#set: |Editable by=whitelist |Editable by user= User:{{#ask: [[\u003C%assignee_user%\u003E]]|?HasUsername=|mainlabel=-|link=none|format=plain}} }} (write) |#default=}} \u003Cbr\u003E |}} \u003C%/access_policy.user_permissions%\u003E"
},
"properties": {
"usergroup_permissions": {
"title": "GroupPermissions",
"title*": {
"en": "Group permissions",
"de": "Gruppen-Erlaubnisse"
},
"type": "array",
"format": "table",
"items": {
"title": "GroupPermission",
"title*": {
"en": "Permission",
"de": "Erlaubnis"
},
"type": "object",
"required": [
"assignee_usergroup",
"action"
],
"properties": {
"assignee_usergroup": {
"title": "User group",
"title*": {
"de": "Nutzergruppe"
},
"type": "string",
"minLength": 1,
"format": "autocomplete",
"range": "Category:OSWb24f37ada8d043c194e7036df5d86b39",
"options": {
"autocomplete": {
"$commment": "user should not create new or edit existing groups here",
"create_inline": false
}
}
},
"action": {
"type": "string",
"title": "Action",
"title*": {
"de": "Aktion"
},
"enum": [
"odrl:read",
"odrl:write"
],
"options": {
"enum_titles": [
"read",
"edit"
],
"enum_titles*": [
"Lesen",
"Bearbeiten"
]
}
}
}
}
},
"user_permissions": {
"title": "UserPermissions",
"title*": {
"en": "User permissions",
"de": "Nutzer-Erlaubnisse"
},
"type": "array",
"format": "table",
"items": {
"title": "Permission",
"title*": {
"en": "Permission",
"de": "Erlaubnis"
},
"type": "object",
"required": [
"assignee_user",
"action"
],
"properties": {
"assignee_user": {
"title": "Specific user",
"title*": {
"de": "Bestimmter Nutzer"
},
"type": "string",
"minLength": 1,
"format": "autocomplete",
"range": "Category:OSW8b3e627eb76b46d68fce3a12ff220c8e",
"options": {
"autocomplete": {
"$commment": "user should not create new or edit existing accounts here",
"create_inline": false
}
}
},
"action": {
"type": "string",
"title": "Action",
"title*": {
"de": "Aktion"
},
"enum": [
"odrl:read",
"odrl:write"
],
"options": {
"enum_titles": [
"read",
"edit"
],
"enum_titles*": [
"Lesen",
"Bearbeiten"
]
}
}
}
}
}
}
},
"statements": {
"type": "array",
"title": "Statements",
"title*": {
"de": "Aussagen"
},
"format": "tabs",
"propertyOrder": 1010,
"eval_template": {
"type": "mustache-wikitext",
"mode": "render",
"value": "{{=\u003C% %\u003E=}} \u003C%#statements%\u003E.. {{Viewer/Link |page=\u003C%#predicate%\u003E\u003C%predicate%\u003E\u003C%/predicate%\u003E\u003C%#property%\u003E\u003C%property%\u003E\u003C%/property%\u003E\u003C%#quantity%\u003E\u003C%quantity%\u003E\u003C%/quantity%\u003E}} \u003C%#object%\u003E{{Viewer/Link |page=\u003C%object%\u003E}}\u003C%/object%\u003E\u003C%#value%\u003E\u003C%value%\u003E\u003C%/value%\u003E\u003Cbr\u003E\u003C%/statements%\u003E"
},
"items": {
"$ref": "/wiki/JsonSchema:Statement?action=raw"
}
},
"attachments": {
"type": "array",
"title": "File attachments",
"title*": {
"de": "Dateianhänge"
},
"eval_template": {
"type": "mustache-wikitext",
"mode": "render",
"value": "{{=\u003C% %\u003E=}} \u003C%={{ }}=%\u003E  {{#attachments}}{{{.}}};{{/attachments}} {{=\u003C% %\u003E=}} \u003C%={{ }}=%\u003E"
},
"options": {
"collapsed": true
},
"propertyOrder": 1030,
"items": {
"title": "Attachment",
"title*": {
"de": "Anhang"
},
"type": "string",
"format": "url",
"options": {
"upload": {}
},
"links": [
{
"href": "{{#if self}}/w/index.php?title=Special:Redirect/file/{{self}}{{/if}}",
"rel": "{{#if self}}download{{/if}}",
"download": true
}
]
}
},
"meta": {
"$ref": "/wiki/JsonSchema:Meta?action=raw",
"options": {
"hidden": true
}
}
}
}
}
header_template
Line 1: Line 1:
<table class="info_box">
<table class="info_box">
<tr>
<tr>
<th class="heading" colspan="2">{{#if: {{{label|}}}|{{{label|}}} [{{{id|{{PAGENAME}}}}}] | {{{id|{{PAGENAME}}}}} }}  
<th colspan="2" class="heading">{{#if: {{{label|}}}|{{{label|}}} | {{{id|{{PAGENAME}}}}} }} {{#info: ID: {{{id|{{PAGENAMEE}}}}} &#124; UUID: {{{uuid|}}} {{#if: {{#ask: [[Category:OSW31a9c96c1f444f84b944d49afbce409b]][[HasPart::{{FULLPAGENAME}}]] |format=plain |mainlabel=HasId |headers=hide }} |  
&#124; 📦: {{#ask: [[Category:OSW31a9c96c1f444f84b944d49afbce409b]][[HasPart::{{FULLPAGENAME}}]] |format=plain |mainlabel=HasId |headers=hide }} |}} |max-width=350 | note}} </th>
</th>
</th>
</tr>
</tr>
Line 30: Line 31:
     </tr>
     </tr>
     |<!-- else show nothing -->}}
     |<!-- else show nothing -->}}
{{#if: {{{type|}}} |<!-- if type is not empty, show -->
    <tr>
    <th>{{#switch:{{USERLANGUAGECODE}}
        |de=Typen/Kategorien
        |#default=Types/Categories
        }}</th>
    <td>{{{type|}}}</td>
    </tr>
|<!-- else show nothing -->}}
{{#if: {{{image|}}}|<!-- show a row if an image exists -->
{{#if: {{{image|}}}|<!-- show a row if an image exists -->
     <tr>
     <tr>
Line 37: Line 47:
<tr>
<tr>
<td class="subheading" colspan="2">{{#switch:{{USERLANGUAGECODE}}
<td class="subheading" colspan="2">{{#switch:{{USERLANGUAGECODE}}
    |en=Statements (outgoing)
     |de=Aussagen (ausgehend)
     |de=Aussagen (ausgehend)
    |#default=Statements (outgoing)
     }}</td>
     }}</td>
</tr>
</tr>
Line 46: Line 56:
<tr>
<tr>
<td class="subheading" colspan="2">{{#switch:{{USERLANGUAGECODE}}
<td class="subheading" colspan="2">{{#switch:{{USERLANGUAGECODE}}
    |en=Statements (incoming)
     |de=Aussagen (eingehend)
     |de=Aussagen (eingehend)
    |#default=Statements (incoming)
     }}</td>
     }}</td>
</tr>
</tr>
Line 60: Line 70:
     |template=Template:Helper/UI/Query/ReverseListFormat
     |template=Template:Helper/UI/Query/ReverseListFormat
     |named args=yes
     |named args=yes
    |link=none
     |@deferred
     |@deferred
     }}</td>
     }}</td>
</tr>
</tr>
{{#if: {{{access_policy|}}} |<!-- if policy is not empty, show -->
<tr>
<td class="subheading" colspan="2">{{#switch:{{USERLANGUAGECODE}}
    |de=Zugriffs- und Nutzungsrichtlinie
    |#default=Access and usage policy
    }}</td>
</tr>
    <tr>
    <th>{{#switch:{{USERLANGUAGECODE}}
        |de=Zugriffs- und Nutzungsrichtlinie
        |#default=Access and usage policy
        }}</th>
    <td>{{{access_policy|}}}</td>
    </tr>
|<!-- else show nothing -->}}
{{#if: {{{rdf_type|}}} {{{exact_ontology_match|}}} {{{close_ontology_match|}}} {{{classification_categories|}}} {{{keywords|}}} {{{based_on|}}}  |<!-- if any annotation, show -->
<tr>
<td class="subheading" colspan="2">{{#switch:{{USERLANGUAGECODE}}
    |de=Annotationen
    |#default=Annotations
    }}</td>
</tr>
{{#if: {{{rdf_type|}}} |<!-- if rdf_type is not empty, show -->
    <tr>
    <th>{{#switch:{{USERLANGUAGECODE}}
        |de=Zusätzliche(r) RDF-Typ(en)
        |#default=Additional RDF Type(s)
        }}</th>
    <td>{{{rdf_type|}}}</td>
    </tr>
|<!-- else show nothing -->}}
{{#if: {{{exact_ontology_match|}}} |<!-- if exact_ontology_match is not empty, show -->
    <tr>
    <th>{{#switch:{{USERLANGUAGECODE}}
        |de=Ontologieübereinstimmung (exakt)
        |#default=Ontology Match (Exact)
        }}</th>
    <td>{{{exact_ontology_match|}}}</td>
    </tr>
|<!-- else show nothing -->}}
{{#if: {{{close_ontology_match|}}} |<!-- if close_ontology_match is not empty, show -->
    <tr>
    <th>{{#switch:{{USERLANGUAGECODE}}
        |de=Ontologieübereinstimmung (ähnlich)
        |#default=Ontology Match (Close)
        }}</th>
    <td>{{{close_ontology_match|}}}</td>
    </tr>
|<!-- else show nothing -->}}
{{#if: {{{classification_categories|}}}|<!-- show a row if an classification_categories exists -->
    <tr>
    <th>{{{_label_classification_categories|Classification categories}}}</th>
    <td>{{{classification_categories|}}}</td>
    </tr>
|}}
{{#if: {{{keywords|}}}|<!-- show a row if an keywords exists -->
    <tr>
    <th>{{{_keywords_name|Keywords}}}</th>
    <td>{{{keywords|}}}</td>
    </tr>
|}}
{{#if: {{{based_on|}}} |<!-- if based_on is not empty, show -->
    <tr>
    <th>{{#switch:{{USERLANGUAGECODE}}
        |de=Basierend auf
        |#default=Based on
        }}</th>
    <td>{{{based_on|}}}</td>
    </tr>
|<!-- else show nothing -->}}
|<!-- else hide annotation section -->}}
{{#if: {{{_details|}}} |<!-- if _details (json slot rendered as tree view) is not empty, show -->
    <tr><td class="subheading" colspan="2">{{#switch:{{USERLANGUAGECODE}}
        |de=Details
        |#default=Details
        }}</td></tr>
    <tr><td  colspan="2">{{{_details|}}}</td></tr>
|<!-- else show nothing -->}}
</table>
</table>