query-0fb1ebd7e63938167186e3b31ce7443e
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#>
#TEMPLATE={ "template": { "en": "streets in ?city with gender of the person they’re named after", "de": "Straßen in ?city mit Geschlecht der Person, nach der sie benannt sind" }, "variables": { "?city": { "query": "SELECT DISTINCT ?id WHERE { ?id wdt:P31/wdt:P279* wd:Q1549591; wdt:P1082 ?population. } ORDER BY DESC(?population) LIMIT 100" } } }
#defaultView:Map{"layer": "?genderLabel", "hide": ["?coordinates", "?genderLabel"]}
SELECT DISTINCT ?street ?streetLabel ?coordinates ?image ?eponym ?eponymLabel ?genderLabel WHERE {
BIND(wd:Q64 AS ?city)
?street wdt:P131+ ?city;
wdt:P31/wdt:P279* wd:Q83620.
OPTIONAL { ?street wdt:P625 ?coordinates. }
OPTIONAL { ?street wdt:P18 ?image. }
OPTIONAL { ?street wdt:P138 ?eponym. ?eponym wdt:P21 ?gender. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?city")
v3("?coordinates"):::projected
v5("?eponym"):::projected
v6("?gender")
v4("?image"):::projected
v2("?street"):::projected
a1((" "))
c10(["bd:serviceParam"]):::iri
c4(["wd:Q83620"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,de,en"]):::literal
bind0[/"'wd:Q64'"/]
bind0 --as--o v1
v2 --"wdt:P131"--> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P625".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P138".-> v5
v5 --"wdt:P21"--> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end