query-7aee79f998d5b11d391dda4d206a7d84
TODO
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#>
#Locations of paintings by RAs
#defaultView:Map
SELECT DISTINCT ?painter ?painterLabel ?item ?itemLabel ?location ?locationLabel ?coords WHERE {
?item wdt:P31/wdt:P279* wd:Q3305213 .
?item wdt:P170 ?painter .
?painter wdt:P463 wd:Q270920 .
?item wdt:P276 ?location .
?location wdt:P625 ?coords .
# ?location wdt:P131* wd:Q145 .
OPTIONAL {?item wdt:P18 ?image} .
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("?coords"):::projected
v5("?image")
v1("?item"):::projected
v3("?location"):::projected
v2("?painter"):::projected
a1((" "))
c3(["wd:Q3305213"]):::iri
c11(["bd:serviceParam"]):::iri
c6(["wd:Q270920"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P170"--> v2
v2 --"wdt:P463"--> c6
v1 --"wdt:P276"--> v3
v3 --"wdt:P625"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end