query-108b7e0e53f4530fcdada90a49f154cc
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 ?cooncilLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
VALUES ?itemtypes {
wd:Q483453
wd:Q1630622
}
?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:P170 ?picCreatedBy. }.
OPTIONAL { ?pic wdt:P287 ?picDesignedBy. }.
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")
v4("?itemtypes")
v1("?itype")
v3("?itypeLabel")
v12("?layer")
v6("?loc"):::projected
v4("?pic"):::projected
v8("?picCreatedBy")
v9("?picDesignedBy")
v7("?picURI"):::projected
v10("?picby")
v11("?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:Q483453"])
bind20 --> bind2
bind21(["wd:Q1630622"])
bind21 --> 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:P170".-> v8
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P287".-> v9
end
bind3[/"if(bound(?picCreatedBy),?picCreatedBy,if(bound(?picDesignedBy),?picDesignedBy,'No producer details'))"/]
v8 --o bind3
v9 --o bind3
bind3 --as--o v10
bind4[/"if(bound(?picURI),?itypeLabel,concat('Unimaged ',?itypeLabel))"/]
v7 --o bind4
v3 --o bind4
bind4 --as--o v11
bind5[/"?showLabel"/]
v11 --o bind5
bind5 --as--o v12