query-4569312bdae7f6634b74fa7f78cb8844
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#>
# Ponts segons què hi passa
SELECT ?item ?itemLabel ?coord ?layer ?layerLabel WHERE {
VALUES ?catalunya {wd:Q5705 wd:Q12709}
?item wdt:P31/wdt:P279* wd:Q12280.
?item wdt:P131* ?catalunya.
?item wdt:P625 ?coord.
OPTIONAL {?item wdt:P2505 ?layer.}
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,fr".}
}
#defaultView:Map
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?catalunya")
v3("?coord"):::projected
v2("?item"):::projected
v4("?layer"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c3(["wd:Q12280"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,ca,en,es,fr"]):::literal
bind0[/VALUES ?catalunya/]
bind0-->v1
bind00(["wd:Q5705"])
bind00 --> bind0
bind01(["wd:Q12709"])
bind01 --> bind0
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P131"--> v1
v2 --"wdt:P625"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P2505".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end