query-8e4489adf3b596df61a70adc04ae13bb
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#>
#defaultView:Map
SELECT ?street ?streetLabel ?layer ?coords WHERE {
?street (wdt:P31/(wdt:P279*)) wd:Q294440;
wdt:P131 wd:Q490;
wdt:P138 ?namedafter;
wdt:P625 ?coords.
?namedafter wdt:P21 ?gender.
BIND(IF(?gender = wd:Q6581072, "donna", "uomo") AS ?layer)
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coords"):::projected
v4("?gender")
v5("?layer"):::projected
v2("?namedafter")
v1("?street"):::projected
a1((" "))
c10(["bd:serviceParam"]):::iri
c12(["it,en"]):::literal
c5(["wd:Q490"]):::iri
c3(["wd:Q294440"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P131"--> c5
v1 --"wdt:P138"--> v2
v1 --"wdt:P625"--> v3
v2 --"wdt:P21"--> v4
bind0[/"if(?gender = 'wd:Q6581072','donna','uomo')"/]
v4 --o bind0
bind0 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end