query-80ad69f123b5c8ec438452b905c4989f
11:38, 19 August 2021 (UTC)) talk (TheklanBut I would like to show it in a map with their geoshape. I konw that it is possible, but I can't see it in the documentation. Thanks! - for an idea of how to use multiple colours for the shapes ... not sure if there's an easier way to do that.this example: This is a start. See Theklan@
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#>
#defaultView:Map
SELECT DISTINCT ?diplomaziaLabel ?shape WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". }
?herrialdea wdt:P17 wd:Q889.
?herrialdea wdt:P530 ?diplomazia.
?diplomazia wdt:P3896 ?shape.
}
ORDER by ?diplomaziaLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?diplomazia")
v1("?diplomaziaLabel"):::projected
v2("?herrialdea")
v4("?shape"):::projected
c2(["bd:serviceParam"]):::iri
c6(["wd:Q889"]):::iri
c4(["eu,es,fr,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v2 --"wdt:P17"--> c6
v2 --"wdt:P530"--> v3
v3 --"wdt:P3896"--> v4