query-6f7c97a38a55deaef9e1b52764760e55
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
- https://query.wikidata.org/sparql
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". }
}