query-4e5239356613ff2dd448d4dd04ddf22e
People that died in Cham (Switzerland) SELECT DISTINCT ?item ?itemLabel ?itemDescription ?given_name ?given_nameLabel ?family_name ?family_nameLabel ?GND_ID ?VIAF_ID ?HDS_ID WHERE { ?item wdt:P20 wd:Q69235. SERVICE wikibase:label { bd:serviceParam wikibase:language "de". } OPTIONAL { ?item wdt:P735 ?given_name. } OPTIONAL { ?item wdt:P734 ?family_name. } OPTIONAL { ?item wdt:P227 ?GND_ID. } OPTIONAL { ?item wdt:P214 ?VIAF_ID. } OPTIONAL { ?item wdt:P902 ?HDS_ID. } }
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 bd: <http://www.bigdata.com/rdf#>
#People that died in Cham (Switzerland)
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?given_name ?given_nameLabel ?family_name ?family_nameLabel ?GND_ID ?VIAF_ID ?HDS_ID WHERE {
?item wdt:P20 wd:Q69235.
SERVICE wikibase:label { bd:serviceParam wikibase:language "de". }
OPTIONAL { ?item wdt:P735 ?given_name. }
OPTIONAL { ?item wdt:P734 ?family_name. }
OPTIONAL { ?item wdt:P227 ?GND_ID. }
OPTIONAL { ?item wdt:P214 ?VIAF_ID. }
OPTIONAL { ?item wdt:P902 ?HDS_ID. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?GND_ID"):::projected
v6("?HDS_ID"):::projected
v5("?VIAF_ID"):::projected
v3("?family_name"):::projected
v2("?given_name"):::projected
v1("?item"):::projected
c6(["de"]):::literal
c4(["bd:serviceParam"]):::iri
c2(["wd:Q69235"]):::iri
v1 --"wdt:P20"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P735".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P734".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P227".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P214".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P902".-> v6
end