query-4e55516e547c61cb02bc4286b4f14a8a
Locations associated with a given person
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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT (SUBSTR(STR(?place),32) as ?link) ?propertyLabel ?placeLabel
WHERE {
wd:Q198984 ?prop ?place. ?place wdt:P625 [].
?property ?ref ?prop; rdf:type wikibase:Property.
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;
v5("?link")
v2("?place"):::projected
v1("?prop")
v3("?property")
v4("?ref")
a1((" "))
c6(["bd:serviceParam"]):::iri
c4(["wikibase:Property"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c1(["wd:Q198984"]):::iri
c1 -->v1--> v2
v2 --"wdt:P625"--> a1
v3 -->v4--> v1
v3 --"a"--> c4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind0[/"substring(str(?place),'32^^xsd:integer')"/]
v2 --o bind0
bind0 --as--o v5