query-070286d1ac45433937007e290b9fd9c8
Municipalités dissoutes ou ayant changé de statut
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?statutLabel ?pqfin ?dissolution
WHERE
{
{?municip wdt:P31*/wdt:P279* wd:Q3327873 } UNION {?municip wdt:P31 wd:Q3518810 }
?item wdt:P31 ?statut .
{?item p:P31 [ pq:P582 ?pqfin ] } union {?item wdt:P576 ?dissolution }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "fr" .
}
}
ORDER BY ?itemLabel
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?dissolution"):::projected
v3("?item"):::projected
v1("?itemLabel"):::projected
v2("?municip")
v5("?pqfin"):::projected
v4("?statut")
a1((" "))
a2((" "))
c3(["wd:Q3327873"]):::iri
c4(["wd:Q3518810"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["fr"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"p:direct/P31"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
end
union0r <== or ==> union0l
end
v3 --"p:direct/P31"--> v4
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P576"--> v6
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
a2 --"p:qualifier/P582"--> v5
v3 --"p:P31"--> a2
end
union1r <== or ==> union1l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end