Category:OSW3cb8cef2225e403092f098f99bc4c472: Difference between revisions

Update package: OSW Base
(Update package: OSW Base)
(Update package: OSW Base)
 
(3 intermediate revisions by the same user not shown)
jsondata
Line 1: Line 1:
{
{
    "subclass_of": [
        "Category:Item"
    ],
     "type": [
     "type": [
         "Category:Category"
         "Category:Category"
    ],
    "subclass_of": [
        "Category:Item"
     ],
     ],
     "uuid": "3cb8cef2-225e-4030-92f0-98f99bc4c472",
     "uuid": "3cb8cef2-225e-4030-92f0-98f99bc4c472",
    "name": "OrganizationalUnit",
     "label": [
     "label": [
         {
         {
Line 28: Line 27:
         }
         }
     ],
     ],
    "name": "OrganizationalUnit",
     "instance_rdf_type": [
     "instance_rdf_type": [
         "schema:Organization"
         "schema:Organization"
    ],
    "utf8_icon": [
        "🏢"
     ]
     ]
}
}
jsonschema
Line 3: Line 3:
         {
         {
             "abbreviation": {
             "abbreviation": {
                "@id": "Property:HasId",
                "@type": "xsd:string"
            },
            "abbreviation*": {
                 "@id": "Property:HasAbbreviation",
                 "@id": "Property:HasAbbreviation",
                 "@type": "xsd:string"
                 "@type": "xsd:string"
             },
             },
             "city": {
             "abbreviation**": {
                 "@id": "Property:HasCity",
                 "@id": "Property:HasAcronym",
                 "@type": "@id"
                 "@type": "xsd:string"
             },
             },
             "competence": {
             "competence": {
Line 16: Line 20:
             "competence*": {
             "competence*": {
                 "@id": "Property:HasCompetence",
                 "@id": "Property:HasCompetence",
                "@type": "@id"
            },
            "country": {
                "@id": "Property:HasCountry",
                 "@type": "@id"
                 "@type": "@id"
             },
             },
Line 73: Line 73:
                 "@id": "Property:HasFunder",
                 "@id": "Property:HasFunder",
                 "@type": "@id"
                 "@type": "@id"
            },
            "house_no": {
                "@id": "Property:HasHouseNo",
                "@type": "xsd:string"
             },
             },
             "image": {
             "image": {
Line 124: Line 120:
             "member_of*": {
             "member_of*": {
                 "@id": "Property:IsMemberOf",
                 "@id": "Property:IsMemberOf",
                "@type": "@id"
            },
            "employees*": {
                "@id": "schema:employee",
                "@type": "@id"
            },
            "employees**": {
                "@reverse": "Property:HasOrganization",
                 "@type": "@id"
                 "@type": "@id"
             },
             },
Line 135: Line 139:
             },
             },
             "postal_address": {
             "postal_address": {
                "@id": "schema:address",
                "@type": "@id"
            },
            "postal_address*": {
                 "@id": "Property:HasPostalAddress",
                 "@id": "Property:HasPostalAddress",
                 "@type": "@id"
                 "@type": "@id",
            },
                 "@context": [
            "postal_code": {
                    "/wiki/JsonSchema:PostalAddress?action=raw"
                 "@id": "schema:postalCode",
                 ]
                "@type": "xsd:string"
            },
            "postal_code*": {
                 "@id": "Property:HasPostalCode",
                "@type": "xsd:string"
            },
            "post_office_box_no": {
                "@id": "schema:postOfficeBoxNumber",
                "@type": "xsd:string"
            },
            "post_office_box_no*": {
                "@id": "Property:HasPoBoxNo",
                "@type": "xsd:string"
            },
            "region": {
                "@id": "schema:addressLocality",
                "@type": "@id"
            },
            "region*": {
                "@id": "Property:HasRegion",
                "@type": "@id"
             },
             },
             "ror_id": {
             "ror_id": {
Line 180: Line 159:
             "site*": {
             "site*": {
                 "@id": "Property:IsLocatedIn",
                 "@id": "Property:IsLocatedIn",
                "@type": "@id"
            },
            "state": {
                "@id": "schema:addressRegion",
                "@type": "@id"
            },
            "state*": {
                "@id": "Property:HasState",
                "@type": "@id"
            },
            "street_name": {
                "@id": "schema:streetAddress",
                "@type": "@id"
            },
            "street_name*": {
                "@id": "Property:HasStreet",
                 "@type": "@id"
                 "@type": "@id"
             },
             },
Line 251: Line 214:
     "title": "OrganizationalUnit",
     "title": "OrganizationalUnit",
     "title*": {
     "title*": {
         "de": "Organisationseinheit"
         "de": "Organisationseinheit",
        "en": "Organizational unit"
     },
     },
     "uuid": "3cb8cef2-225e-4030-92f0-98f99bc4c472",
     "uuid": "3cb8cef2-225e-4030-92f0-98f99bc4c472",
Line 258: Line 222:
     "description": "The most general kind of organizational unit - an organization but also parts of an organization",
     "description": "The most general kind of organizational unit - an organization but also parts of an organization",
     "description*": {
     "description*": {
         "de": "Die allgemeinste Art von Organisationseinheit - eine Organisation, aber auch Teile einer Organisation"
         "de": "Die allgemeinste Art von Organisationseinheit - eine Organisation, aber auch Teile einer Organisation",
        "en": "The most general kind of organizational unit - an organization but also parts of an organization"
     },
     },
     "defaultProperties": [
     "defaultProperties": [
Line 521: Line 486:
         },
         },
         "postal_address": {
         "postal_address": {
             "type": "object",
             "allOf": [
            "title": "Postal address",
                 {
            "title*": {
                     "$ref": "/wiki/JsonSchema:PostalAddress?action=raw"
                "de": "Postalische Adresse"
            },
            "description": "Physical address of the organizational unit.",
            "description*": {
                "de": "Physische Adresse der Organisationseinheit."
            },
            "eval_template": {
                "type": "wikitext",
                "mode": "render",
                "value": "{{{street_name|}}} {{{house_no|}}}, {{{postal_code|}}} {{{city|}}}, {{{country|}}}"
            },
            "required": [
                 "uuid"
            ],
            "defaultProperties": [
                "uuid",
                "street_name",
                "house_no",
                "postal_code",
                "city",
                "country"
            ],
            "properties": {
                "uuid": {
                    "type": "string",
                    "format": "uuid",
                    "options": {
                        "hidden": true
                    }
                },
                "country": {
                    "title": "Country",
                    "title*": {
                        "en": "Country",
                        "de": "Land"
                    },
                    "type": "string",
                    "format": "autocomplete",
                    "range": "Category:OSW0551abcd6f734047825e3ded4c8a0ffe"
                },
                "state": {
                    "title": "State",
                    "title*": {
                        "en": "State",
                        "de": "Bundesland"
                    },
                    "type": "string",
                    "format": "autocomplete",
                     "range": "Category:OSWab60f9a227954ee0be92344ff6272420"
                },
                "region": {
                    "title": "Region",
                    "title*": {
                        "en": "Region",
                        "de": "Region"
                    },
                    "type": "string",
                    "format": "autocomplete",
                    "range": "Category:OSW95efaf34e2c7439e8e7967233910e44b"
                },
                "post_office_box_no": {
                    "title": "PO box number",
                    "title*": {
                        "en": "PO box number",
                        "de": "Postfach nummer"
                    },
                    "type": "string"
                },
                "postal_code": {
                    "title": "Postal code",
                    "title*": {
                        "en": "Postal code",
                        "de": "Postleitzahl"
                    },
                    "type": "string"
                },
                "city": {
                    "title": "City",
                    "title*": {
                        "en": "City",
                        "de": "Stadt"
                    },
                    "type": "string",
                    "format": "autocomplete",
                    "range": "Category:OSW807f1da5b42e42f296b213ab06ca873b"
                },
                "street_name": {
                    "title": "Street",
                    "title*": {
                        "en": "Street",
                        "de": "Straße"
                    },
                    "type": "string"
                },
                "house_no": {
                    "title": "House number",
                    "title*": {
                        "en": "House number",
                        "de": "Hausnummer"
                    },
                    "type": "string"
                 }
                 }
             }
             ]
         },
         },
         "ror_id": {
         "ror_id": {
Line 710: Line 574:
                     }
                     }
                 }
                 }
             },
             }
            "uniqueItems": true
         },
         },
         "vat_id_obj": {
         "vat_id_obj": {
Line 748: Line 611:
                     }
                     }
                 }
                 }
             },
             }
            "uniqueItems": true
         },
         },
         "topic": {
         "topic": {
Line 877: Line 739:
                 },
                 },
                 "type": "string"
                 "type": "string"
            }
        }
    },
    "x-oold-reverse-defaultProperties": [
        "employees"
    ],
    "x-oold-reverse-properties": {
        "employees": {
            "type": "array",
            "title": "Employees",
            "items": {
                "type": "string",
                "format": "autocomplete",
                "title": "Person",
                "$comment": "range is Person",
                "range": "Category:OSW44deaa5b806d41a2a88594f562b110e9"
             }
             }
         }
         }
     }
     }
}
}
header_template
Line 130: Line 130:
=={{#switch:{{USERLANGUAGECODE}}|en=Members |de=Mitarbeitende|#default=Members}}==
=={{#switch:{{USERLANGUAGECODE}}|en=Members |de=Mitarbeitende|#default=Members}}==
{{#set: HasNumberOfMembers=
{{#set: HasNumberOfMembers=
     {{#ask: [[Category:OSW44deaa5b806d41a2a88594f562b110e9]][[HasOu::{{FULLPAGENAME}}]]
     {{#ask: [[Category:OSW44deaa5b806d41a2a88594f562b110e9]][[HasOu::{{FULLPAGENAME}}]][[HasEmploymentContractStatus::Item:OSW62770459451644f3841c502df8a5cb1d]]
         |format=count
         |format=count
         |limit=1000
         |limit=1000
Line 140: Line 140:
         |#default=Number of members
         |#default=Number of members
     }}: {{#show: {{FULLPAGENAME}} |?HasNumberOfMembers}}
     }}: {{#show: {{FULLPAGENAME}} |?HasNumberOfMembers}}
{{#ask: [[Category:OSW44deaa5b806d41a2a88594f562b110e9]][[HasOu::{{FULLPAGENAME}}]]
{{#ask: [[Category:OSW44deaa5b806d41a2a88594f562b110e9]][[HasOu::{{FULLPAGENAME}}]][[HasEmploymentContractStatus::Item:OSW62770459451644f3841c502df8a5cb1d]]
    |?HasRoom={{#switch: {{USERLANGUAGECODE}} |en=Room |de=Raum |#default=Room}}
    |?HasPhoneNumber={{#switch: {{USERLANGUAGECODE}} |en=Phone |de=Telefon |#default=Phone}}
    |?HasSuperior={{#switch: {{USERLANGUAGECODE}} |en=Superior |de=Führungskraft |#default=Superior}}
    |?HasRole={{#switch: {{USERLANGUAGECODE}} |en=Role |de=Rolle |#default=Role}}
    |format=table
    |limit=1000
    |sort=Display title of
    |order=asc
    }}
=={{#switch:{{USERLANGUAGECODE}}|en=Former members |de=Ausgeschiedene Mitarbeitende|#default=Former members}}==
{{#ask: [[Category:OSW44deaa5b806d41a2a88594f562b110e9]][[HasOu::{{FULLPAGENAME}}]][[HasEmploymentContractStatus::Item:OSWacf5f4db53264d29ae8744d03796be0b]]
     |?HasRoom={{#switch: {{USERLANGUAGECODE}} |en=Room |de=Raum |#default=Room}}
     |?HasRoom={{#switch: {{USERLANGUAGECODE}} |en=Room |de=Raum |#default=Room}}
     |?HasPhoneNumber={{#switch: {{USERLANGUAGECODE}} |en=Phone |de=Telefon |#default=Phone}}
     |?HasPhoneNumber={{#switch: {{USERLANGUAGECODE}} |en=Phone |de=Telefon |#default=Phone}}