query-e44a8f97bd228336a0a7c3372565bd91
Municipalités existantes au Québec créées en 1855 SELECT DISTINCT ?item ?itemLabel ?statutLabel ?mrcLabel ?regionLabel ?dateCreation WHERE { ?item(wdt:P31/wdt:P279) wd:Q3327873 . ?item wdt:P31 ?statut . ?item wdt:P131 ?mrc . ?mrc wdt:P131 ?region . ?item wdt:P571 ?dateCreation . FILTER (?dateCreation >= "1855-01-01T00:00:00Z"^^xsd:dateTime ) . FILTER (?dateCreation < "1856-01-01T00:00:00Z"^^xsd:dateTime ) . FILTER NOT EXISTS { ?item wdt:P576 ?dissolu} FILTER NOT EXISTS { ?item wdt:P582 ?fin } FILTER NOT EXISTS { ?item p:P31 [ pq:P582 ?pqfin ] } SERVICE wikibase:label {bd:serviceParam wikibase:language "fr" } } ORDER BY ?itemLabel LIMIT 1000
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
#Municipalités existantes au Québec créées en 1855
SELECT DISTINCT ?item ?itemLabel ?statutLabel ?mrcLabel ?regionLabel ?dateCreation
WHERE
{
?item(wdt:P31*/wdt:P279*) wd:Q3327873 .
?item wdt:P31 ?statut .
?item wdt:P131 ?mrc .
?mrc wdt:P131 ?region .
?item wdt:P571 ?dateCreation .
FILTER (?dateCreation >= "1855-01-01T00:00:00Z"^^xsd:dateTime ) .
FILTER (?dateCreation < "1856-01-01T00:00:00Z"^^xsd:dateTime ) .
FILTER NOT EXISTS { ?item wdt:P576 ?dissolu}
FILTER NOT EXISTS { ?item wdt:P582 ?fin }
FILTER NOT EXISTS { ?item p:P31 [ pq:P582 ?pqfin ] }
SERVICE wikibase:label {bd:serviceParam wikibase:language "fr" }
}
ORDER BY ?itemLabel
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?dateCreation"):::projected
v5("?dissolu")
v4("?fin")
v3("?item"):::projected
v1("?itemLabel"):::projected
v8("?mrc")
v2("?pqfin")
v9("?region")
v7("?statut")
a2((" "))
a1((" "))
c15(["fr"]):::literal
c9(["wd:Q3327873"]):::iri
c13(["bd:serviceParam"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0a1 --"p:qualifier/P582"--> e0v1
e0v2 --"p:P31"--> e0a1
e0v2("?item"):::projected
e0v1("?pqfin"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> a1
f0 --> c1
f0 --> v2
f0 --> v3
f0 --> c2
a1 --"p:qualifier/P582"--> v2
v3 --"p:P31"--> a1
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"p:direct/P582"--> e1v2
e1v2("?fin"):::projected
e1v1("?item"):::projected
end
f1--EXISTS--> f1e1
f1 --> v3
f1 --> c3
f1 --> v4
v3 --"p:direct/P582"--> v4
f2[["not "]]
subgraph f2e2["Exists Clause"]
e2v1 --"p:direct/P576"--> e2v2
e2v2("?dissolu"):::projected
e2v1("?item"):::projected
end
f2--EXISTS--> f2e2
f2 --> v3
f2 --> c4
f2 --> v5
v3 --"p:direct/P576"--> v5
f3[["?dateCreation < '1856-01-01T00:00:00Z^^xsd:dateTime'"]]
f3 --> v6
f4[["?dateCreation >= '1855-01-01T00:00:00Z^^xsd:dateTime'"]]
f4 --> v6
v3 --"p:direct/P31"--> a2
a2 --"p:direct/P279"--> c9
v3 --"p:direct/P31"--> v7
v3 --"p:direct/P131"--> v8
v8 --"p:direct/P131"--> v9
v3 --"p:direct/P571"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end