query-1b895cbe99c43e28a0abb7250c3699f3
Dates of constituencies of the French Fifth Republic Tubezlob: Request date: 17 June 2017, byLink to discussions justifying the requestWikidata talk:WikiProject France/Politicians#Massive data trove about all French electionsTask description. Can someone fix that? (P576)dissolved, abolished or demolished date /(P571)inception instead of (P582)end time /(P580)start time use the properties (Q15620943)constituency of the French Fifth Republic A lot of : OravrattasSee this query from French Legislative Constituencies 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 ps: <http://www.wikidata.org/prop/statement/>
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 ?territoryLabel ?ordinal ?start ?end ?inception ?dissolution
WHERE {
?item p:P31 ?statement .
?statement ps:P31 wd:Q15620943 .
OPTIONAL { ?statement pq:P1545 ?ordinal }
OPTIONAL { ?item wdt:P131 ?territory }
OPTIONAL { ?item wdt:P580 ?start }
OPTIONAL { ?item wdt:P582 ?end }
OPTIONAL { ?item wdt:P571 ?inception }
OPTIONAL { ?item wdt:P576 ?dissolution }
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" . }
}
ORDER BY ?territoryLabel ?ordinal ?itemLabel
Query found at
- https://www.wikidata.org/wiki/User:Oravrattas/daynotes/2017-06-13
- https://www.wikidata.org/wiki/Wikidata:Bot_requests/Archive/2017/06
- https://www.wikidata.org/wiki/Wikidata_talk:WikiProject_France/Politicians
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v10("?dissolution"):::projected
v8("?end"):::projected
v9("?inception"):::projected
v4("?item"):::projected
v3("?itemLabel"):::projected
v2("?ordinal"):::projected
v7("?start"):::projected
v5("?statement")
v6("?territory")
v1("?territoryLabel"):::projected
c13(["fr"]):::literal
c3(["wd:Q15620943"]):::iri
c11(["bd:serviceParam"]):::iri
v4 --"p:P31"--> v5
v5 --"p:statement/P31"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:qualifier/P1545".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P131".-> v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P580".-> v7
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P582".-> v8
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P571".-> v9
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P576".-> v10
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end