query-629efb11c292bef4ae9c5d7471e850a5
Carrers i places de municipis de Catalunya
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#>
SELECT ?street ?streetLabel ?ciutatLabel ?ambquiLabel ?instanciaLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca". }
VALUES ?espais {
wd:Q79007 # carrer
wd:Q174782 #plaça
wd:Q7543083 #avinguda
}
?street wdt:P31 ?espais;
wdt:P131 ?ciutat.
?ciutat wdt:P31 wd:Q33146843.
?street wdt:P31 ?instancia.
OPTIONAL {?street wdt:P138 ?ambqui.}
}
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?ambqui")
v3("?ciutat")
v1("?espais")
v4("?instancia")
v2("?street"):::projected
c2(["bd:serviceParam"]):::iri
c7(["wd:Q33146843"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,ca"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
bind0[/VALUES ?espais/]
bind0-->v1
bind00(["wd:Q79007"])
bind00 --> bind0
bind01(["wd:Q174782"])
bind01 --> bind0
bind02(["wd:Q7543083"])
bind02 --> bind0
v2 --"wdt:P31"--> v1
v2 --"wdt:P131"--> v3
v3 --"wdt:P31"--> c7
v2 --"wdt:P31"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P138".-> v5
end