query-4c5dcefd7d5b54fb9563080084922f64
2017 report. We should have 650 members elected in this round - every seat was contested, none were delayed, and all returned a member. Wikidata:Request a query#New UK MPsOkay, here's some reports to work through 2017, based on the ones at .All MPs with an "elected in: 2017 general election" qualifier All members with a "term: 57th UK Parliament" qualifierIn both of these, MPs with more than one "elected in" or "term" on the same item will have duplicated lines. The reports also show whether or not core metadata (seat, party, date) is present.. an "elected in: 2017 general election" qualifierwithoutAll MPs in enwiki a "term: 57th UK Parliament" qualifierwithoutAll MPs in enwiki 16:48, 11 June 2017 (UTC)) talk (Andrew GrayOnce we've got 2017 in shape we can start looking at backfilling, but pending working out a way to do this with scripts, it'll take a while... For making sure that all new members have enough data set, I've been using:
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 ?item ?itemLabel ?givenNameLabel ?genderLabel ?partyLabel ?constituencyLabel ?replacesLabel {
?item p:P39 ?positionStatement .
?positionStatement ps:P39 wd:Q16707842; pq:P2937 wd:Q29974940 .
MINUS { ?item p:P39 [ ps:P39 wd:Q16707842; pq:P2937 [ ^(wdt:P155+) wd:Q29974940 ] ] . }
OPTIONAL { ?item wdt:P21 ?gender . }
OPTIONAL { ?item wdt:P735 ?givenName . }
OPTIONAL { ?positionStatement pq:P768 ?constituency . }
OPTIONAL { ?positionStatement pq:P102 ?party . }
OPTIONAL { ?positionStatement pq:P1365 ?replaces . }
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
}