query-dabb485fd1cb7459dc8dced57230be6c
Clickable map showing gallery locations of paintings
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#defaultView:Map
SELECT DISTINCT ?loc ?placeLabel ?pic ?picTitle ?picURI ?picBy WHERE { { ?cooncil wdt:P131 wd:Q22} ?cooncil wdt:P31 wd:Q15060255.
{ {?place wdt:P31 wd:Q207694 } UNION { ?place wdt:P31 wd:Q33506} } ?place wdt:P131 ?cooncil . ?place wdt:P625 ?loc .
?place rdfs:label ?placeLabel. FILTER(LANG(?placeLabel) = "en").
{ ?pic wdt:P195 ?place } UNION { ?pic wdt:P276 ?place } ?pic wdt:P31 wd:Q3305213 . ?pic wdt:P18 ?picURI. ?pic wdt:P170 ?picQ. ?picQ rdfs:label ?picBy. FILTER(LANG(?picBy) = "en"). ?pic rdfs:label ?picTitle. FILTER(LANG(?picTitle) = "en").
} LIMIT 4000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?cooncil")
v6("?loc"):::projected
v7("?pic"):::projected
v2("?picBy"):::projected
v9("?picQ")
v1("?picTitle"):::projected
v8("?picURI"):::projected
v5("?place")
v3("?placeLabel"):::projected
c6(["wd:Q207694"]):::iri
c7(["wd:Q33506"]):::iri
c3(["wd:Q22"]):::iri
c5(["wd:Q15060255"]):::iri
c12(["wd:Q3305213"]):::iri
f0[["?picTitle = 'en'"]]
f0 --> v1
f1[["?picBy = 'en'"]]
f1 --> v2
f2[["?placeLabel = 'en'"]]
f2 --> v3
v4 --"wdt:P131"--> c3
v4 --"wdt:P31"--> c5
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v5 --"wdt:P31"--> c7
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v5 --"wdt:P31"--> c6
end
union0r <== or ==> union0l
end
v5 --"wdt:P131"--> v4
v5 --"wdt:P625"--> v6
v5 --"rdfs:label"--> v3
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v7 --"wdt:P276"--> v5
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v7 --"wdt:P195"--> v5
end
union1r <== or ==> union1l
end
v7 --"wdt:P31"--> c12
v7 --"wdt:P18"--> v8
v7 --"wdt:P170"--> v9
v9 --"rdfs:label"--> v2
v7 --"rdfs:label"--> v1