Category:Entity: Difference between revisions

Category page
Category:Entity
(Install package: OSW Core)
 
No edit summary
Tag: Metadata slot edit
 
(3 intermediate revisions by 2 users not shown)
footer_template
Line 1: Line 1:
 
{{#if: {{{attachments|}}} |
=={{{_label_attachments| {{#switch:{{USERLANGUAGECODE}}|en=Attachments|de=Anhang|#default=Attachments}} }}}==
<!-- {{#ask: [[IsFileAttachmentOf::{{FULLPAGENAME}}]] -->
{{#ask: [[-HasFileAttachment::{{FULLPAGENAME}}]]
|?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> -->
{{#batchupload:}}
|}}
jsonschema
Line 21: Line 21:
             "@id": "@type"
             "@id": "@type"
         },
         },
        "uuid*": "Property:HasUuid",
         "name*": "Property:HasName",
         "name*": "Property:HasName",
         "label": "skos:prefLabel",
         "label": "skos:prefLabel",
Line 32: Line 33:
         "query_label": "Property:HasLabel",
         "query_label": "Property:HasLabel",
         "description": "skos:definition",
         "description": "skos:definition",
         "description_": "Property:HasDecription",
         "description*": "Property:HasDescription",
         "image": "schema:image",
         "image": "schema:image",
         "image*": "Property:HasImage",
         "image*": "Property:HasImage",
        "based_on": "skos:isBasedOn",
        "based_on*": {
            "@id": "Property:IsBasedOn",
            "@type": "@id"
        },
         "short_name": "Property:HasShortName",
         "short_name": "Property:HasShortName",
         "statements": "Property:HasStatement"
         "statements": "Property:HasStatement",
        "attachments*": {
            "@id": "Property:HasFileAttachment",
            "@type": "@id"
        }
     },
     },
     "uuid": "ce353767-c628-45bd-9d88-d6eb3009aec0",
     "uuid": "ce353767-c628-45bd-9d88-d6eb3009aec0",
Line 114: Line 124:
                 "type": "mustache-wikitext",
                 "type": "mustache-wikitext",
                 "mode": "render",
                 "mode": "render",
                 "value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%={{ }}=%\u003E {{#label}} |{{lang}}={{text}} {{/label}} {{=\u003C% %\u003E=}} }}"
                 "value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%={{ }}=%\u003E {{#short_name}} |{{lang}}={{text}} {{/short_name}} {{=\u003C% %\u003E=}} }}"
             },
             },
             "items": {
             "items": {
Line 175: Line 185:
                 }
                 }
             ]
             ]
        },
        "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"
            },
            "items": {
                "type": "string"
            },
            "options": {
                "hidden": "true"
            }
         },
         },
         "statements": {
         "statements": {
Line 183: Line 210:
             },
             },
             "format": "tabs",
             "format": "tabs",
            "propertyOrder": 1010,
             "eval_template": {
             "eval_template": {
                 "type": "mustache-wikitext",
                 "type": "mustache-wikitext",
Line 190: Line 218:
             "items": {
             "items": {
                 "$ref": "/wiki/JsonSchema:Statement?action=raw"
                 "$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}} [[{{{.}}}]] \u003Cbr\u003E {{/attachments}} {{=\u003C% %\u003E=}}"
            },
            "options": {
                "collapsed": true
            },
            "propertyOrder": 1020,
            "items": {
                "title": "Attachment",
                "title*": {
                    "de": "Anhang"
                },
                "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
                    }
                ]
             }
             }
         }
         }
     }
     }
}
}
header_template
Line 1: Line 1:
<table class="info_box" style="height: 33px;border: 0;background-color: unset;">
<tr><td style="border: 0; display: flex;justify-content: right;" colspan="2">
    <div class="pagebot-button" data-config='{
    "action": "edit",
    "class": "btn btn-outline-secondary",
    "icon_class": "icon icon-edit",
    "label": "",
    "tooltip": "Edit page"
}'></div><div class="pagebot-button" data-config='{
    "action": "edit-data",
    "class": "btn btn-outline-secondary",
    "icon_class": "icon icon-menu",
    "label": ""
}'></div><div class="pagebot-button" data-config='{
    "action": "copy",
    "class": "btn btn-outline-secondary",
    "icon_class": "icon icon-copy",
    "label": ""
}'></div><div class="pagebot-button" data-config='{
    "action": "export",
    "class": "btn btn-outline-secondary",
    "icon_class": "icon icon-download",
    "label": ""
}'></div>{{#ifeq: {{NAMESPACE}}|Category|<div class="pagebot-button" data-config='{
    "action": "create-subcategory",
    "class": "btn btn-light",
    "icon_class": "icon icon-arrow-down",
    "label": ""
}'></div><div class="pagebot-button" data-config='{
    "action": "create-instance",
    "class": "btn btn-light",
    "icon_class": "icon icon-plus",
    "label": ""
}'></div><div class="pagebot-button" data-config='{
    "action": "query-instance",
    "class": "btn btn-light",
    "icon_class": "icon icon-search",
    "label": ""
}'></div>|}}</th>
</td>
</table>
<table class="info_box">
<table class="info_box">
<tr>
<tr>
<th class="heading" colspan="2">{{#if: {{{label|}}}|{{{label|}}} [{{{id|{{PAGENAME}}}}}] | {{{id|{{PAGENAME}}}}} }}</th>
<th class="heading" colspan="2">{{#if: {{{label|}}}|{{{label|}}} [{{{id|{{PAGENAME}}}}}] | {{{id|{{PAGENAME}}}}} }}  
</th>
</tr>
</tr>
<tr class="osw-table-details">
<tr class="osw-table-details">

Latest revision as of 05:43, 19 May 2023

jsondata
subclass_of
"Category:Entity"
uuid"ce353767-c628-45bd-9d88-d6eb3009aec0"
label
text"Entity"
lang"en"
text"Entität"
lang"de"
name"Entity"
description
text"This is meant to be the most basic category."
lang"en"
text"Dies soll die aller grundlegendste Kategorie sein."
lang"de"
jsonschema
@context
schema"https://schema.org/"
skos"https://www.w3.org/TR/skos-reference/"
wiki"https://wiki-dev.open-semantic-lab.org/id/"
Property
@id"wiki:Property-3A"
@type"@id"
@prefixtrue
File
@id"https://wiki-dev.open-semantic-lab.org/wiki/Special:Redirect/file/"
@type"@id"
@prefixtrue
Category
@id"wiki:Category-3A"
@prefixtrue
category
@id"@type"
uuid*"Property:HasUuid"
name*"Property:HasName"
label"skos:prefLabel"
label*"Property:HasLabel"
text
@id"@value"
lang
@id"@language"
query_label"Property:HasLabel"
description"skos:definition"
description*"Property:HasDescription"
image"schema:image"
image*"Property:HasImage"
based_on"skos:isBasedOn"
based_on*
@id"Property:IsBasedOn"
@type"@id"
short_name"Property:HasShortName"
statements"Property:HasStatement"
attachments*
@id"Property:HasFileAttachment"
@type"@id"
uuid"ce353767-c628-45bd-9d88-d6eb3009aec0"
title"Entity"
type"object"
id"entity"
required
"uuid"
"label"
properties
uuid
title"UUID"
type"string"
format"uuid"
options
hiddentrue
name
title"Name"
description"Technical / Machine compatible name"
description*
de"Technischer / Maschinenkompatibler Name"
type"string"
options
hiddentrue
label
type"array"
title"Labels"
title*
de"Namen"
description"Human readable names. You have to assign at least one."
description*
de"Menschenlesbarer Namen. Du musst mindestens einen vergeben."
format"table"
eval_template
type"mustache-wikitext"
mode"render"
value"{{=<% %>=}} {{#switch:{{USERLANGUAGECODE}} <%={{ }}=%> {{#label}} |{{lang}}={{text}} {{/label}} {{=<% %>=}} }}"
items
title"Label"
title*
de"Name"
eval_template
type"wikitext"
mode"store"
value"{{{text}}}@{{{lang}}}"
$ref"/wiki/JsonSchema:Label?action=raw"
minItems1
short_name
type"array"
title"Short name"
title*
de"Kurzname"
description"Abbreviation, Acronym, etc."
description*
de"Abkürzung, Akronym, etc."
format"table"
eval_template
type"mustache-wikitext"
mode"render"
value"{{=<% %>=}} {{#switch:{{USERLANGUAGECODE}} <%={{ }}=%> {{#short_name}} |{{lang}}={{text}} {{/short_name}} {{=<% %>=}} }}"
items
title"Acronym"
title*
de"Kurzname"
$ref"/wiki/JsonSchema:Label?action=raw"
query_label
title"Label"
title*
de"Name"
type"string"
options
hiddentrue
conditional_visible
modes
"query"
description
title"Description"
title*
de"Beschreibung"
type"array"
format"table"
eval_template
type"mustache-wikitext"
value"{{=<% %>=}} {{#switch:{{USERLANGUAGECODE}} <%={{ }}=%> {{#description}} |{{lang}}={{text}} {{/description}} {{=<% %>=}} }}"
items
$ref"/wiki/JsonSchema:Description?action=raw"
image
title"Image"
title*
de"Bild"
type"string"
format"url"
options
upload
Empty object
links
href"{{#if self}}/w/index.php?title=Special:Redirect/file/{{self}}&width=200&height=200{{/if}}"
mediaType"image"
href"{{#if self}}/w/index.php?title=Special:Redirect/file/{{self}}{{/if}}"
rel"{{#if self}}download{{/if}}"
downloadtrue
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"
items
type"string"
options
hidden"true"
statements
type"array"
title"Statements"
title*
de"Aussagen"
format"tabs"
propertyOrder1010
eval_template
type"mustache-wikitext"
mode"render"
value"{{#statements}}.. {{#predicate}}[[{{predicate}}]]{{/predicate}}{{#property}}[[{{property}}]]{{/property}}{{#quantity}}[[{{quantity}}]]{{/quantity}} {{#object}}[[{{object}}]]{{/object}}{{#value}}{{value}}{{/value}}<br>{{/statements}}"
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"{{=<% %>=}} <%={{ }}=%> {{#attachments}} [[{{{.}}}]] <br> {{/attachments}} {{=<% %>=}}"
options
collapsedtrue
propertyOrder1020
items
title"Attachment"
title*
de"Anhang"
type"string"
format"url"
options
upload
Empty object
links
href"{{#if self}}/w/index.php?title=Special:Redirect/file/{{self}}&width=200&height=200{{/if}}"
mediaType"image"
href"{{#if self}}/w/index.php?title=Special:Redirect/file/{{self}}{{/if}}"
rel"{{#if self}}download{{/if}}"
downloadtrue

Subcategories

This category has only the following subcategory.

P

... more about "Entity"
This is meant to be the most basic category. +
Entity (en) +  and Entität (de) +
ce353767-c628-45bd-9d88-d6eb3009aec0 +
Cookies help us deliver our services. By using our services, you agree to our use of cookies.