Category:OSWd9aa0bca9b0040d8af6f5c091bf9eec7: Difference between revisions

Update package: OSW Base
(Update package: OSW Base)
(Update package: OSW Base)
 
Line 1: Line 1:
== Namespaces ==
for UUID generation via uuid5


* General (same as UUID of the category page): d9aa0bca-9b00-40d8-af6f-5c091bf9eec7
* FhG: c3bd285c-1545-59a6-9183-32bee5aeed41
jsondata
Line 31: Line 31:
         {
         {
             "text": "Eine Person mit Nutzerkennung",
             "text": "Eine Person mit Nutzerkennung",
             "lang": "en"
             "lang": "de"
         }
         }
     ],
     ],
jsonschema
Line 2: Line 2:
     "@context": [
     "@context": [
         {
         {
             "username": "Property:HasUsername",
             "room": {
             "room": "Property:HasRoom",
                "@id": "Property:HasRoom",
             "abbreviation": "Property:HasAbbreviation",
                "@type": "@id"
             "superior": "Property:HasSuperior"
            },
             "superior": {
                "@id": "Property:HasSuperior",
                "@type": "@id"
             },
            "username": {
                "@id": "Property:HasUsername",
                "@type": "xsd:string"
            }
        },
        "/wiki/Category:OSW44deaa5b806d41a2a88594f562b110e9?action=raw\u0026slot=jsonschema"
    ],
    "allOf": [
        {
             "$ref": "/wiki/Category:OSW44deaa5b806d41a2a88594f562b110e9?action=raw\u0026slot=jsonschema"
         }
         }
     ],
     ],
    "title": "User",
    "title*": {
        "de": "Nutzer"
    },
    "type": "object",
    "uuid": "d9aa0bca-9b00-40d8-af6f-5c091bf9eec7",
    "description": "A person who has a user ID.",
    "description*": {
        "de": "Eine Person mit Nutzerkennung"
    },
     "required": [
     "required": [
         "username",
         "username",
         "type"
         "type"
     ],
     ],
     "defaultProperties": [],
     "defaultProperties": [
        "username"
    ],
     "properties": {
     "properties": {
         "username": {
         "username": {
Line 19: Line 45:
                 "de": "Nutzername"
                 "de": "Nutzername"
             },
             },
             "desciption": "Fraunhofer user ID",
             "description": "Organization user ID",
            "description*": {
                "de": "Fraunhofer-User-ID"
            },
            "type": "string"
        },
        "abbreviation": {
            "title": "Abbreviation",
            "title*": {
                "de": "Kürzel"
            },
            "desciption": "Fraunhofer abbreviation",
             "description*": {
             "description*": {
                 "de": "Fraunhofer-Kürzel"
                 "de": "Organization-User-ID"
             },
             },
             "type": "string"
             "type": "string"
         },
         },
         "room": {
         "room": {
             "title": "Room",
             "title": "Room(s)",
             "title*": {
             "title*": {
                 "de": "Raum"
                 "de": "Raum"
             },
             },
             "desciption": "Office",
             "description": "Office",
             "description*": {
             "description*": {
                 "de": "Büro"
                 "de": "Büro"
Line 48: Line 63:
             "format": "table",
             "format": "table",
             "items": {
             "items": {
                 "title": "",
                 "title": "Room",
                "title*": {
                    "de": "Raum"
                },
                 "type": "string",
                 "type": "string",
                 "format": "autocomplete",
                 "format": "autocomplete",
                 "query": "[[HasType::Category:OSWc5ed0ed1e33c4b31887c67af25a610c1]] |?Display_title_of=label",
                 "range": "Category:OSWc5ed0ed1e33c4b31887c67af25a610c1"
                "previewWikiTextTemplate": "[[:{{result.fulltext}}]]",
                "labelTemplate": "{{result.printouts.label.[0]}}"
             },
             },
             "uniqueItems": true,
             "uniqueItems": true
            "minItems": 1,
            "default": [
                ""
            ]
         },
         },
         "superior": {
         "superior": {
             "title": "Superior",
             "title": "Superior(s)",
             "title*": {
             "title*": {
                 "de": "Führungsperson"
                 "de": "Führungsperson(en)"
            },
            "description": "Direct superior(s)",
            "description*": {
                "de": "Direkte Führungsperson(en)"
             },
             },
             "type": "array",
             "type": "array",
             "format": "table",
             "format": "table",
             "items": {
             "items": {
                 "title": "",
                 "title": "Supervisor",
                "title*": {
                    "de": "Führungsperson"
                },
                 "type": "string",
                 "type": "string",
                 "format": "autocomplete",
                 "format": "autocomplete",
                 "query": "[[HasType::Category:OSWd9aa0bca9b0040d8af6f5c091bf9eec7]] |?Display_title_of=label",
                 "range": "Category:OSWd9aa0bca9b0040d8af6f5c091bf9eec7"
                "previewWikiTextTemplate": "[[:{{result.fulltext}}]]",
                "labelTemplate": "{{result.printouts.label.[0]}}"
             },
             },
             "uniqueItems": true,
             "uniqueItems": true
            "default": [
                ""
            ]
         },
         },
         "type": {
         "type": {
Line 86: Line 100:
             ]
             ]
         }
         }
    },
    "type": "object",
    "allOf": [
        {
            "$ref": "/wiki/Category:OSW44deaa5b806d41a2a88594f562b110e9?action=raw\u0026slot=jsonschema"
        }
    ],
    "title": "User",
    "title*": {
        "de": "Nutzer"
     }
     }
}
}
header_template
Line 26: Line 26:
      
      
     {{#ask: [[Category:OSWc5ed0ed1e33c4b31887c67af25a610c1]][[HasResponsiblePerson::{{FULLPAGENAME}}]] | <!--?HasName={{#switch:{{USERLANGUAGECODE}}|en=Room|de=Raum}} | -->
     {{#ask: [[Category:OSWc5ed0ed1e33c4b31887c67af25a610c1]][[HasResponsiblePerson::{{FULLPAGENAME}}]] | <!--?HasName={{#switch:{{USERLANGUAGECODE}}|en=Room|de=Raum}} | -->
         ?HasRoomFunction={{#switch:{{USERLANGUAGECODE}}|en=Function|de=Funktion}} |
         ?HasRoomUsage={{#switch:{{USERLANGUAGECODE}}|en=Function|de=Funktion}} |
         mainlabel={{#switch:{{USERLANGUAGECODE}}|en=Room|de=Raum}} |
         mainlabel={{#switch:{{USERLANGUAGECODE}}|en=Room|de=Raum}} |
         format=datatable
         format=table
         }}
         }}
     | }}
     | }}
Line 37: Line 37:
      
      
     {{#ask: [[Category:OSWe427aafafbac4262955b9f690a83405d]][[HasResponsiblePerson::{{FULLPAGENAME}}]] |
     {{#ask: [[Category:OSWe427aafafbac4262955b9f690a83405d]][[HasResponsiblePerson::{{FULLPAGENAME}}]] |
         ?HasPurpose={{#switch:{{USERLANGUAGECODE}}|en=Purpose|de=Verwendungszweck|#default=Purpose}} |
         ?HasType={{#switch:{{USERLANGUAGECODE}}|en=Type|de=Typ|#default=Type}} |
        ?HasType.SubClassOf={{#switch:{{USERLANGUAGECODE}}|en=Category|de=Kategorie|#default=Category}} |
         mainlabel={{#switch:{{USERLANGUAGECODE}}|en=Tool|de=Werkzeug|#default=Tool}} |
         mainlabel={{#switch:{{USERLANGUAGECODE}}|en=Tool|de=Werkzeug|#default=Tool}} |
         format=datatable
         format=table
         }}
         }}
     | }}
     | }}
Line 48: Line 49:
      
      
     {{#ask: [[Category:OSW44deaa5b806d41a2a88594f562b110e9]][[HasSuperior::{{FULLPAGENAME}}]] |
     {{#ask: [[Category:OSW44deaa5b806d41a2a88594f562b110e9]][[HasSuperior::{{FULLPAGENAME}}]] |
         ?HasDepartment={{#switch:{{USERLANGUAGECODE}}|en=Department|de=Abteilung|#default=Department}} |
         ?HasOu={{#switch:{{USERLANGUAGECODE}}|en=Department|de=Abteilung|#default=Department}} |
         mainlabel={{#switch:{{USERLANGUAGECODE}}|en=Name|de=Name|#default=Name}} |
         mainlabel={{#switch:{{USERLANGUAGECODE}}|en=Name|de=Name|#default=Name}} |
         format=datatable
         format=table
         }}
         }}
     | }}
     | }}