Category:Entity: Difference between revisions

1,508 bytes removed ,  Yesterday at 04:33
Update package: OSW Core
m (Reverted edits by 0000-0003-0410-3616 (talk) to last revision by Lukas Gold)
Tag: Rollback
(Update package: OSW Core)
 
jsonschema
Line 1: Line 1:
{
{
     "@context": {
     "@context": {
        "bvco": "https://bvco.ontology.link/",
        "databatt": "http://www.databatt.org/",
        "emmo": "https://w3id.org/emmo#",
        "emmobattery": "https://w3id.org/emmo/domain/battery#",
        "emmochameo": "https://w3id.org/emmo/domain/chameo#",
        "emmochemicals": "https://w3id.org/emmo/domain/chemicalsubstance#",
        "emmoelch": "https://w3id.org/emmo/domain/electrochemistry#",
         "schema": "https://schema.org/",
         "schema": "https://schema.org/",
         "skos": "https://www.w3.org/TR/skos-reference/",
         "skos": "https://www.w3.org/TR/skos-reference/",
         "xsd": "http://www.w3.org/2001/XMLSchema#",
         "xsd": "http://www.w3.org/2001/XMLSchema#",
         "wiki": "https://wiki-dev.open-semantic-lab.org/id/",
         "wiki": "https://wiki-dev.open-semantic-lab.org/id/",
         "Property": {
         "Category": {
             "@id": "wiki:Property-3A",
             "@id": "wiki:Category-3A",
            "@type": "@id",
             "@prefix": true
             "@prefix": true
         },
         },
         "File": {
         "File": {
             "@id": "https://wiki-dev.open-semantic-lab.org/wiki/Special:Redirect/file/",
             "@id": "https://wiki-dev.open-semantic-lab.org/wiki/Special:Redirect/file/",
            "@type": "@id",
             "@prefix": true
             "@prefix": true
         },
         },
         "Category": {
         "Property": {
             "@id": "wiki:Category-3A",
             "@id": "wiki:Property-3A",
            "@prefix": true
        },
        "Item": {
            "@id": "wiki:Item-3A",
             "@prefix": true
             "@prefix": true
         },
         },
         "rdf_type": {
         "attachments*": {
             "@id": "@type",
             "@id": "Property:HasFileAttachment",
             "@type": "@id"
             "@type": "@id"
         },
         },
         "rdf_type*": {
         "based_on": {
             "@id": "schema:additionalType",
             "@id": "skos:isBasedOn",
             "@type": "@id"
             "@type": "@id"
         },
         },
         "rdf_type**": {
         "based_on*": {
             "@id": "owl:sameAs",
             "@id": "Property:IsBasedOn",
             "@type": "@id"
             "@type": "@id"
         },
         },
         "rdf_type***": {
         "description": {
             "@id": "Property:Equivalent_URI",
            "@id": "skos:definition"
        },
        "description*": {
             "@id": "Property:HasDescription"
        },
        "image": {
            "@id": "schema:image",
             "@type": "@id"
             "@type": "@id"
         },
         },
         "rdf_type****": {
         "image*": {
             "@id": "Property:HasEquivalentUri",
             "@id": "Property:HasImage",
             "@type": "@id"
             "@type": "@id"
         },
         },
         "uuid*": "Property:HasUuid",
         "label": {
         "name*": "Property:HasName",
            "@id": "skos:prefLabel"
         "label": "skos:prefLabel",
        },
        "label*": "Property:HasLabel",
         "label*": {
            "@id": "Property:HasLabel"
        },
         "lang": {
            "@id": "@language"
        },
         "text": {
         "text": {
             "@id": "@value"
             "@id": "@value"
         },
         },
         "lang": {
         "uuid*": {
             "@id": "@language"
             "@id": "Property:HasUuid"
        },
        "meta": {
            "@id": "Property:HasMeta",
            "@type": "@id",
            "@context": {
                "change_id": {
                    "@id": "Property:HasChangeId",
                    "@type": "xsd:string"
                }
            }
        },
        "name*": {
            "@id": "Property:HasName"
        },
        "query_label": {
            "@id": "Property:HasLabel"
        },
        "short_name": {
            "@id": "Property:HasShortName"
         },
         },
        "query_label": "Property:HasLabel",
        "description": "skos:definition",
        "description*": "Property:HasDescription",
        "image": "schema:image",
        "image*": "Property:HasImage",
         "keywords": {
         "keywords": {
             "@id": "schema:keywords",
             "@id": "schema:keywords",
Line 69: Line 89:
             "@type": "@id"
             "@type": "@id"
         },
         },
         "based_on": "skos:isBasedOn",
         "statements": {
        "based_on*": {
             "@id": "Property:HasStatement",
             "@id": "Property:IsBasedOn",
            "@type": "@id"
        },
        "short_name": "Property:HasShortName",
        "statements": "Property:HasStatement",
        "attachments*": {
            "@id": "Property:HasFileAttachment",
             "@type": "@id"
             "@type": "@id"
         }
         }
Line 93: Line 106:
     ],
     ],
     "properties": {
     "properties": {
        "rdf_type": {
            "title": "Additional RDF type(s)",
            "title*": {
                "de": "Zusätzliche(r) RDF-Typ(en)"
            },
            "description": "Declares additional type(s) for this entity, e.g., to state that this entity has the same meaning as a term in a controlled vocabulary or ontology. This property is synonymous to the schema:additionalType and owl:sameAs. Full ontology IRIs are preferred. ",
            "description*": {
                "de": "Gibt zusätzliche Typens für diese Entität an, z. B. um anzugeben, dass diese Entität dieselbe Bedeutung hat wie ein Begriff in einem kontrollierten Vokabular oder einer Ontologie. Diese Eigenschaft ist ein Synonym für schema:additionalType und owl:sameAs. Volle Ontologie IRIs sind bevorzugt anzugeben."
            },
            "type": "array",
            "format": "table",
            "items": {
                "title": "RDF type",
                "title*": {
                    "de": "RDF-Typ"
                },
                "type": "string"
            },
            "eval_template": {
                "type": "mustache-wikitext",
                "value": "{{#rdf_type}} [{{{.}}} {{{.}}}] \u003Cbr\u003E {{/rdf_type}}"
            },
            "uniqueItems": true
        },
         "uuid": {
         "uuid": {
             "title": "UUID",
             "title": "UUID",
Line 219: Line 208:
         },
         },
         "query_label": {
         "query_label": {
             "title": "Label",
             "title": "Query label",
             "title*": {
             "title*": {
                 "de": "Name"
                 "de": "Abfrage-Bezeichnung"
             },
             },
             "type": "string",
             "type": "string",
Line 262: Line 251:
                 "de": "Bild"
                 "de": "Bild"
             },
             },
            "propertyOrder": 1020,
             "type": "string",
             "type": "string",
             "format": "url",
             "format": "url",
Line 281: Line 271:
         "keywords": {
         "keywords": {
             "type": "array",
             "type": "array",
            "format": "table",
             "title": "Keywords / Tags",
             "title": "Keywords / Tags",
             "title*": {
             "title*": {
Line 292: Line 283:
                 "type": "mustache-wikitext",
                 "type": "mustache-wikitext",
                 "mode": "render",
                 "mode": "render",
                 "value": "{{=\u003C% %\u003E=}} \u003C%={{ }}=%\u003E  {{#keywords}}[[{{{.}}}]] \u003Cbr\u003E {{/keywords}} {{=\u003C% %\u003E=}} \u003C%={{ }}=%\u003E"
                 "value": "{{#keywords}}[[{{{.}}}]] \u003Cbr\u003E {{/keywords}}"
             },
             },
             "items": {
             "items": {
Line 352: Line 343:
                 "collapsed": true
                 "collapsed": true
             },
             },
             "propertyOrder": 1020,
             "propertyOrder": 1030,
             "items": {
             "items": {
                 "title": "Attachment",
                 "title": "Attachment",
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 class="heading" colspan="2">{{#if: {{{label|}}}|{{{label|}}} | {{{id|{{PAGENAME}}}}} }}  
</th>
</th>
</tr>
</tr>
Line 32: Line 32:
{{#if: {{{image|}}}|<!-- show a row if an image exists -->
{{#if: {{{image|}}}|<!-- show a row if an image exists -->
     <tr>
     <tr>
     <td class="picture" colspan="2">{{#if: {{#pos:{{{image|}}}|File:}} | [[{{{image|}}}|200x800px]] | {{{image|}}}}}</td><!-- support both local and remote images (wgAllowExternalImages must be enabled-->
     <td class="picture" colspan="2">[[{{{image|}}}|200x800px]]</td>
     </tr>
     </tr>
     |<!-- don't show a row, if there is no image -->}}
     |<!-- don't show a row, if there is no image -->}}
<tr>
<td class="subheading" colspan="2">{{#switch:{{USERLANGUAGECODE}}
    |en=Ontology equivalents
    |de=Ontologie-Äquivalente
    }}</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">
{{{rdf_type|}}}
</td>
</tr>
<tr>
<tr>
<td class="subheading" colspan="2">{{#switch:{{USERLANGUAGECODE}}
<td class="subheading" colspan="2">{{#switch:{{USERLANGUAGECODE}}
Line 74: Line 63:
     }}</td>
     }}</td>
</tr>
</tr>
<tr>
{{#if: {{{ordering_categories|}}}|<!-- show a row if an ordering_categories exists -->
    <th>{{{_label_ordering_categories|Classification categories}}}</th>
    <td>{{{ordering_categories|}}}</td>
    </tr>
    <tr>
|}}
{{#if: {{{keywords|}}}|<!-- show a row if an keywords exists -->
     <tr>
     <tr>
     <th>{{{_keywords_name|Keywords}}}</th>
     <th>{{{_keywords_name|Keywords}}}</th>
     <td>{{{keywords|}}}</td>
     <td>{{{keywords|}}}</td>
     </tr>
     </tr>
|}}
</table>
</table>