query-47e1a174d6c3e174f1a9964e35a5b405
Parcs provinciaux pour une région donnée
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 DISTINCT ?park ?parkLabel
WHERE { {
SELECT DISTINCT ?park WHERE {
?park wdt:P31/wdt:P279* wd:Q176 .
} }
?park wdt:P131+ wd:Q176 . # For another region, just change the "Q1904" for another province or territory.
MINUS { ?park wdt:P1311 ?end }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ?parkLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?end")
v2("?park"):::projected
v1("?parkLabel"):::projected
a1((" "))
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
c3(["wd:Q176"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P131"--> c3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P1311"--> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end