Category:OSW92cc6b1a2e6b4bb7bad470dfdcfdaf26: Difference between revisions

Update package: OSW Base
(Install package: OSW Base)
 
(Update package: OSW Base)
 
Line 1: Line 1:
== Tutorial ==
== Tutorial ==
[[Item:OSW52c2c5a6bbc84fcb8eab0fa69857e7dc|How to create a new article]]
[[Item:OSW52c2c5a6bbc84fcb8eab0fa69857e7dc|How to create a new article]]
== Instances ==
{{#ask: [[{{FULLPAGENAME}}]]
|?HasDescription
|?HasFileAttachment  # - |+ template = Viewer/File
|format=datatable
|sep=
}}
jsondata
Line 1: Line 1:
{
{
     "subclass_of": [
     "subclass_of": [
         "Category:Item"
         "Category:OSW712583f2479944deb2546b77cf860dda"
     ],
     ],
     "utf8_icon": [
     "utf8_icon": [
Line 31: Line 31:
     "type": [
     "type": [
         "Category:Category"
         "Category:Category"
    ],
    "instance_rdf_type": [
        "schema:Article"
     ]
     ]
}
}
jsonschema
Line 1: Line 1:
{
{
     "@context": [
     "@context": [
        "/wiki/Category:Item?action=raw\u0026slot=jsonschema",
         {
         {
             "File_": {
             "File_": {
Line 7: Line 6:
                 "@prefix": true
                 "@prefix": true
             },
             },
             "headline": "schema:headline",
             "headline": {
             "author": "schema:author"
                "@id": "schema:headline",
        }
                "@type": "xsd:string"
    ],
            },
    "type": "object",
            "headline*": {
    "schema_type": [
                "@id": "Property:HasAuthor",
         "schema:Article"
                "@type": "xsd:string"
            },
             "author": {
                "@id": "schema:author",
                "@type": "@id"
            },
            "author*": {
                "@id": "Property:HasAuthor",
                "@type": "@id"
            },
            "related_to": {
                "@id": "Property:IsRelatedTo",
                "@type": "@id"
            },
            "part_of": {
                "@id": "Property:IsPartOf",
                "@type": "@id"
            }
        },
         "/wiki/Category:OSW712583f2479944deb2546b77cf860dda?action=raw\u0026slot=jsonschema"
     ],
     ],
     "allOf": [
     "allOf": [
         {
         {
             "$ref": "/wiki/Category:Item?action=raw\u0026slot=jsonschema"
             "$ref": "/wiki/Category:OSW712583f2479944deb2546b77cf860dda?action=raw\u0026slot=jsonschema"
         }
         }
     ],
     ],
     "title": "Article",
     "title": "Article",
     "title*": {
     "title*": {
         "de": "Article"
         "de": "Artikel"
     },
     },
     "description": "A generic entry that can contain both text and media content",
     "description": "A generic entry that can contain both text and media content",
Line 28: Line 46:
         "de": "Ein allgemeiner Eintrag der sowohl Text als auch Medieninhalte enthalten kann"
         "de": "Ein allgemeiner Eintrag der sowohl Text als auch Medieninhalte enthalten kann"
     },
     },
    "type": "object",
     "properties": {
     "properties": {
         "type": {
         "type": {
Line 33: Line 52:
                 "Category:OSW92cc6b1a2e6b4bb7bad470dfdcfdaf26"
                 "Category:OSW92cc6b1a2e6b4bb7bad470dfdcfdaf26"
             ]
             ]
        },
        "related_to": {
            "type": "array",
            "title": "Related to",
            "title*": {
                "de": "Bezug zu"
            },
            "items": {
                "type": "string",
                "format": "autocomplete",
                "title": "Entry",
                "title*": {
                    "de": "Eintrag"
                },
                "options": {
                    "autocomplete": {
                        "query": "[[Category:Entity]] OR [[:Category:%2B]] |?Display_title_of=label"
                    }
                },
                "uniqueItems": true
            }
        },
        "part_of": {
            "type": "array",
            "title": "Article collection",
            "title*": {
                "de": "Artikelsammlung"
            },
            "description": "A superordinated element this entry is part of",
            "description*": {
                "de": "Ein übergeordnetes Element von dem dieser Eintrag ein Teil ist"
            },
            "items": {
                "type": "string",
                "format": "autocomplete",
                "title": "Collection",
                "title*": {
                    "de": "Sammlung"
                },
                "options": {
                    "autocomplete": {
                        "query": "[[Category:Entity]] OR [[:Category:%2B]] |?Display_title_of=label"
                    }
                }
            }
         }
         }
     },
     },