query-6f7c97a38a55deaef9e1b52764760e55

rq turtle/ttl

People that died in Cham (Switzerland) SELECT DISTINCT ?item (?itemlabel AS ?Anything_you_like) (?itemdescription AS ?Your_choice) ?given_name (?given_namelabel AS ?Something_else) ?family_name (?family_namelabel AS ?Lack_of_fantasy) ?GND_ID ?VIAF_ID ?HDS_ID WHERE { VALUES ?mylang { 'de' } ?item wdt:P20 wd:Q69235. ?item rdfs:label ?itemlabel . FILTER(lang(?itemlabel)=?mylang) ?item schema:description ?itemdescription . FILTER(lang(?itemdescription)=?mylang) OPTIONAL { ?item wdt:P735 ?given_name . ?given_name rdfs:label ?given_namelabel . FILTER(lang(?given_namelabel)=?mylang) } OPTIONAL { ?item wdt:P734 ?family_name. ?family_name rdfs:label ?family_namelabel . FILTER(lang(?family_namelabel)=?mylang) } OPTIONAL { ?item wdt:P227 ?GND_ID. } OPTIONAL { ?item wdt:P214 ?VIAF_ID. } OPTIONAL { ?item wdt:P902 ?HDS_ID. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#People that died in Cham (Switzerland)
SELECT DISTINCT ?item (?itemlabel AS ?Anything_you_like) (?itemdescription AS ?Your_choice) ?given_name (?given_namelabel AS ?Something_else) ?family_name (?family_namelabel AS ?Lack_of_fantasy) ?GND_ID ?VIAF_ID ?HDS_ID WHERE {
  VALUES ?mylang { 'de' }
  ?item wdt:P20 wd:Q69235. 
  ?item rdfs:label ?itemlabel . FILTER(lang(?itemlabel)=?mylang) 
  ?item schema:description ?itemdescription . FILTER(lang(?itemdescription)=?mylang)
  OPTIONAL { ?item wdt:P735 ?given_name . ?given_name rdfs:label ?given_namelabel . FILTER(lang(?given_namelabel)=?mylang) }
  OPTIONAL { ?item wdt:P734 ?family_name. ?family_name rdfs:label ?family_namelabel . FILTER(lang(?family_namelabel)=?mylang) }
  OPTIONAL { ?item wdt:P227 ?GND_ID. } 
  OPTIONAL { ?item wdt:P214 ?VIAF_ID. }
  OPTIONAL { ?item wdt:P902 ?HDS_ID. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v12("?Anything_you_like") v9("?GND_ID"):::projected v11("?HDS_ID"):::projected v15("?Lack_of_fantasy") v14("?Something_else") v10("?VIAF_ID"):::projected v13("?Your_choice") v8("?family_name"):::projected v1("?family_namelabel"):::projected v7("?given_name"):::projected v5("?given_namelabel"):::projected v6("?item"):::projected v3("?itemdescription"):::projected v4("?itemlabel"):::projected v6("?mylang") c2(["wd:Q69235"]):::iri c11(["bd:serviceParam"]):::iri c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?itemdescription = ?mylang"]] f0 --> v3 f0 --> v6 f1[["?itemlabel = ?mylang"]] f1 --> v4 f1 --> v6 bind2[/VALUES ?mylang/] bind2-->v6 bind20(["de"]) bind20 --> bind2 v6 --"wdt:P20"--> c2 v6 --"rdfs:label"--> v4 v6 --"schema:description"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v6 -."wdt:P735".-> v7 v7 --"rdfs:label"--> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v6 -."wdt:P734".-> v8 v8 --"rdfs:label"--> v1 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v6 -."wdt:P227".-> v9 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v6 -."wdt:P214".-> v10 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v6 -."wdt:P902".-> v11 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end bind3[/"?itemlabel"/] v4 --o bind3 bind3 --as--o v12 bind4[/"?itemdescription"/] v3 --o bind4 bind4 --as--o v13 bind5[/"?given_namelabel"/] v5 --o bind5 bind5 --as--o v14 bind6[/"?family_namelabel"/] v1 --o bind6 bind6 --as--o v15