query-42935ca16faa1fbbda1942f8d366f20e
Clickable map showing locations of sculpturesLimited by the small number of public pieces which have full location info.
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT DISTINCT (?showLabel as ?layer) ?loc ?pic ?picLabel ?picURI ?picbyLabel ?genreLabel ?manufacturerLabel ?cooncilLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
VALUES ?itemtypes {
wd:Q860861
wd:Q179700
wd:Q4989906
wd:Q483453
wd:Q1630622
wd:Q1759852
wd:Q557141
wd:Q427926
}
?pic wdt:P31 ?itemtypes.
?pic wdt:P131 ?cooncil.
{ ?cooncil wdt:P131 wd:Q22} UNION {?cooncil wdt:P31 wd:Q15060255.}.
?pic wdt:P625 ?loc .
?pic wdt:P31 ?itype. ?itype rdfs:label ?itypeLabel. FILTER(LANG(?itypeLabel) = "en").
FILTER (?itype = ?itemtypes).
OPTIONAL {?pic wdt:P18 ?picURI.}.
OPTIONAL { ?pic wdt:P136 ?genre. }.
OPTIONAL { ?pic wdt:P170 ?picCreatedBy. }.
OPTIONAL { ?pic wdt:P287 ?picDesignedBy. }.
OPTIONAL { ?pic wdt:P176 ?manufacturer. }.
BIND (IF (BOUND(?picCreatedBy), ?picCreatedBy, IF (BOUND(?picDesignedBy), ?picDesignedBy,"No producer details")) AS ?picby).
BIND (IF (BOUND(?picURI), ?itypeLabel, CONCAT ("Unimaged ", ?itypeLabel)) AS ?showLabel).
} LIMIT 1300
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?cooncil")
v8("?genre")
v4("?itemtypes")
v1("?itype")
v3("?itypeLabel")
v14("?layer")
v6("?loc"):::projected
v11("?manufacturer")
v4("?pic"):::projected
v9("?picCreatedBy")
v10("?picDesignedBy")
v7("?picURI"):::projected
v12("?picby")
v13("?showLabel"):::projected
c8(["wd:Q22"]):::iri
c9(["wd:Q15060255"]):::iri
c3(["bd:serviceParam"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?itype = ?itemtypes"]]
f0 --> v1
f0 --> v4
f1[["?itypeLabel = 'en'"]]
f1 --> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end
bind2[/VALUES ?itemtypes/]
bind2-->v4
bind20(["wd:Q860861"])
bind20 --> bind2
bind21(["wd:Q179700"])
bind21 --> bind2
bind22(["wd:Q4989906"])
bind22 --> bind2
bind23(["wd:Q483453"])
bind23 --> bind2
bind24(["wd:Q1630622"])
bind24 --> bind2
bind25(["wd:Q1759852"])
bind25 --> bind2
bind26(["wd:Q557141"])
bind26 --> bind2
bind27(["wd:Q427926"])
bind27 --> bind2
v4 --"wdt:P31"--> v4
v4 --"wdt:P131"--> v5
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v5 --"wdt:P31"--> c9
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v5 --"wdt:P131"--> c8
end
union0r <== or ==> union0l
end
v4 --"wdt:P625"--> v6
v4 --"wdt:P31"--> v1
v1 --"rdfs:label"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P18".-> v7
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P136".-> v8
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P170".-> v9
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P287".-> v10
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P176".-> v11
end
bind3[/"if(bound(?picCreatedBy),?picCreatedBy,if(bound(?picDesignedBy),?picDesignedBy,'No producer details'))"/]
v9 --o bind3
v10 --o bind3
bind3 --as--o v12
bind4[/"if(bound(?picURI),?itypeLabel,concat('Unimaged ',?itypeLabel))"/]
v7 --o bind4
v3 --o bind4
bind4 --as--o v13
bind5[/"?showLabel"/]
v13 --o bind5
bind5 --as--o v14