Vorlagenprogrammierung Diskussionen Lua Unterseiten
Modul Deutsch English

Modul: Dokumentation

Diese Seite umreißt für einen fiktiven Anwendungsfall von WikidataScheme für Opernsänger eine mögliche JSON-Spezifikation.

This page is detailing an arbitrary usecase for WikidataScheme and outlines a possible specification for an opera singer by JSON.

{ "@generated": "2024-12-10T03:46:10+01:00",
  "@format": "WikidataScheme 2019-12-16",
  "caption": "Q2865819",
  "claims": [
    { "subject": "instance",
      "state":   "required",
      "values":  [
                   {
        "q": "human"
                   }
                 ]
    },
    { "subject": "gender",
      "state":   "required",
      "values":  [
                   {
        "qlist": [ "female",
                   "male",
                   true ]
                   }
                 ]
    },
    { "subject": "nameFamily",
      "state":   "required"
    },
    { "subject": "nameGiven",
      "state":   "suggested"
    },
    { "subject": "nameArtist",
      "state":   "optional"
    },
    { "subject": "nameBirth",
      "state":   "optional"
    },
    { "subject": "birthDate",
      "state":   "suggested"
    },
    { "subject": "birthPlace",
      "state":   "suggested"
    },
    { "subject": "deathDate",
      "state":   "suggested"
    },
    { "subject": "deathPlace",
      "state":   "suggested"
    },
    { "subject": "occupation",
      "state":   "required",
      "values":  [
                   {
        "qlist": [ "singerOpera",
                   "actorStage",
                   "actorMovie",
                   "singer",
                   true ]
                   }
                 ]
    },
    { "subject": "voicetype",
      "state":   "required",
      "values":  [
                   {
        "qlist": [ "soprano",
                   "mezzosoprano",
                   "contralto",
                   "countertenor",
                   "tenor",
                   "baritone",
                   "bass",
                   "falsetto",
                   true ]
                   }
                 ]
    },
    { "subject": "genre",
      "state":   "suggested",
      "values":  [
                   {
        "qlist": [ "opera",
                   "operetta",
                   "musical",
                   true ]
                   }
                 ]
    },
    { "subject": "instrument",
      "state":   "required",
      "values":  [
                   {
        "qlist": [ "instrumentVoice",
                   "instrumentPiano",
                   true ]
                   }
                 ]
    }
            ],
  "resolve": { "actorMovie":       { "Q": 10800557 },
               "actorStage":       { "Q": 2259451 },
               "baritone":         { "Q": 31687 },
               "bass":             { "Q": 27911 },
               "birthDate":        { "P": 569 },
               "birthPlace":       { "P": 19 },
               "contralto":        { "Q": 37137 },
               "countertenor":     { "Q": 223166 },
               "deathDate":        { "P": 570 },
               "deathPlace":       { "P": 20 },
               "falsetto":         { "Q": 193935 },
               "female":           { "Q": 6581072 },
               "gender":           { "P": 21 },
               "genre":            { "P": 136 },
               "human":            { "Q": 5 },
               "instance":         { "P": 31 },
               "instrument":       { "P": 1303 },
               "instrumentPiano":  { "Q": 5994 },
               "instrumentVoice":  { "Q": 17172850 },
               "male":             { "Q": 6581097 },
               "mezzosoprano":     { "Q": 186506 },
               "musical":          { "Q": 2743 },
               "nameArtist":       { "P": 1787 },
               "nameBirth":        { "P": 1477 },
               "nameFamily":       { "P": 734 },
               "nameGiven":        { "P": 735 },
               "occupation":       { "P": 106 },
               "opera":            { "Q": 1344 },
               "operetta":         { "Q": 170384 },
               "singer":           { "Q": 177220 },
               "singerOpera":      { "Q": 2865819 },
               "soprano":          { "Q": 30903 },
               "tenor":            { "Q": 27914 },
               "voicetype":        { "P": 412 }
           }
}