Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example case: Scotland #13

Open
tmtmtmtm opened this issue Jul 21, 2017 · 3 comments
Open

Example case: Scotland #13

tmtmtmtm opened this issue Jul 21, 2017 · 3 comments

Comments

@tmtmtmtm
Copy link
Contributor

for each of the terms of the Scottish Parliament, we need to be able to produce a separate prompt comparing the full list of term memberships in Wikidata, with those from parlparse.

e.g. for term 4 we can get the list from Wikidata via:

SELECT DISTINCT ?item ?itemLabel ?startDate ?endDate ?party ?partyLabel ?area ?areaLabel WHERE {
  ?item p:P39 ?mem .
  ?mem ps:P39 wd:Q30580545 .
  OPTIONAL { ?mem pq:P580 ?startDate }
  OPTIONAL { ?mem pq:P582 ?endDate }
  OPTIONAL { ?mem pq:P102|pq:P4100 ?party }
  OPTIONAL { ?mem pq:P768 ?area }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

The parlparse data doesn't currently live in Morph, but is accessible as CSV from parlparse-to-csv app (on heroku), or potentially even just by looking at the most recent version committed to everypolitician-data

@lucychambers
Copy link

This example will have full memberships. i.e. people will not disappear from the lists, they will just receive an end date.

TODO during implementation: Decide whether we need to further split this ticket up.

@chrismytton
Copy link
Contributor

There is documentation, along with some code for generating the ID mapping, in the examples/scotland directory.

@lucychambers
Copy link

Outstanding on this is making it work without going via the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants