query-2311cd1c2bd7e8e93eacf5286dcec216
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. 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. } 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 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.
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. }
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;
v4("?GND_ID"):::projected
v6("?HDS_ID"):::projected
v5("?VIAF_ID"):::projected
v3("?family_name"):::projected
v2("?given_name"):::projected
v1("?item"):::projected
c9(["bd:serviceParam"]):::iri
c2(["wd:Q69235"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P20"--> c2
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
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end