Category:Entity: Difference between revisions

Update package: OSW Core
(Update package: OSW Core)
(Update package: OSW Core)
 
jsonschema
Line 5: Line 5:
         "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
             "@prefix": true
         },
         },
         "rdf_type": {
         "Item": {
             "@id": "@type",
             "@id": "wiki:Item-3A",
             "@type": "@id"
             "@prefix": true
         },
         },
         "uuid*": "Property:HasUuid",
         "attachments*": {
        "name*": "Property:HasName",
             "@id": "Property:HasFileAttachment",
        "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",
        "keywords": {
            "@id": "schema:keywords",
             "@type": "@id"
             "@type": "@id"
         },
         },
         "keywords*": {
         "based_on": {
             "@id": "Property:HasKeyword",
             "@id": "skos:isBasedOn",
             "@type": "@id"
             "@type": "@id"
         },
         },
        "based_on": "skos:isBasedOn",
         "based_on*": {
         "based_on*": {
             "@id": "Property:IsBasedOn",
             "@id": "Property:IsBasedOn",
             "@type": "@id"
             "@type": "@id"
         },
         },
         "short_name": "Property:HasShortName",
         "description": {
         "statements": "Property:HasStatement",
            "@id": "skos:definition"
         "attachments*": {
        },
             "@id": "Property:HasFileAttachment",
        "description*": {
            "@id": "Property:HasDescription"
        },
         "image": {
            "@id": "schema:image",
            "@type": "@id"
        },
         "image*": {
             "@id": "Property:HasImage",
             "@type": "@id"
             "@type": "@id"
        },
        "label": {
            "@id": "skos:prefLabel"
        },
        "label*": {
            "@id": "Property:HasLabel"
        },
        "lang": {
            "@id": "@language"
        },
        "text": {
            "@id": "@value"
        },
        "uuid*": {
            "@id": "Property:HasUuid"
         },
         },
         "meta": {
         "meta": {
Line 66: Line 71:
                 }
                 }
             }
             }
        },
        "name*": {
            "@id": "Property:HasName"
        },
        "query_label": {
            "@id": "Property:HasLabel"
        },
        "short_name": {
            "@id": "Property:HasShortName"
        },
        "keywords": {
            "@id": "schema:keywords",
            "@type": "@id"
        },
        "keywords*": {
            "@id": "Property:HasKeyword",
            "@type": "@id"
        },
        "statements": {
            "@id": "Property:HasStatement",
            "@type": "@id"
         }
         }
     },
     },
Line 225: Line 251:
                 "de": "Bild"
                 "de": "Bild"
             },
             },
            "propertyOrder": 1020,
             "type": "string",
             "type": "string",
             "format": "url",
             "format": "url",
Line 244: Line 271:
         "keywords": {
         "keywords": {
             "type": "array",
             "type": "array",
            "format": "table",
             "title": "Keywords / Tags",
             "title": "Keywords / Tags",
             "title*": {
             "title*": {
Line 255: 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 315: 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 63: 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>