diff --git a/data/packages/uk_politician_data/datapackage.yaml b/data/packages/uk_politician_data/datapackage.yaml index 40cf069..e2331a8 100644 --- a/data/packages/uk_politician_data/datapackage.yaml +++ b/data/packages/uk_politician_data/datapackage.yaml @@ -1,7 +1,7 @@ name: uk_politician_data title: UK Politician data description: "TheyWorkForYou politician data as spreadsheets\n" -version: 0.1.0 +version: 0.2.0 licenses: - name: CC-BY-4.0 path: https://creativecommons.org/licenses/by/4.0/ @@ -37,3 +37,4 @@ custom: render: true change_log: 0.1.0: '' + 0.2.0: 'Change in data for resource(s): membership_identifiers,memberships,organization_identifiers,organizations,person_alternative_names,person_identifiers,persons,post_identifiers,posts' diff --git a/data/packages/uk_politician_data/versions/0.2.0/datapackage.yaml b/data/packages/uk_politician_data/versions/0.2.0/datapackage.yaml new file mode 100644 index 0000000..e2331a8 --- /dev/null +++ b/data/packages/uk_politician_data/versions/0.2.0/datapackage.yaml @@ -0,0 +1,40 @@ +name: uk_politician_data +title: UK Politician data +description: "TheyWorkForYou politician data as spreadsheets\n" +version: 0.2.0 +licenses: +- name: CC-BY-4.0 + path: https://creativecommons.org/licenses/by/4.0/ + title: Creative Commons Attribution 4.0 International License +contributors: +- title: mySociety + path: https://mysociety.org + role: author +custom: + build: politician_data.download:main + tests: + - test_uk_politician_data + dataset_order: 0 + download_options: + gate: default + survey: default + header_text: default + formats: + csv: true + parquet: true + composite: + xlsx: + include: all + exclude: none + render: true + sqlite: + include: all + exclude: none + render: true + json: + include: all + exclude: none + render: true + change_log: + 0.1.0: '' + 0.2.0: 'Change in data for resource(s): membership_identifiers,memberships,organization_identifiers,organizations,person_alternative_names,person_identifiers,persons,post_identifiers,posts' diff --git a/data/packages/uk_politician_data/versions/0.2.0/membership_identifiers.parquet b/data/packages/uk_politician_data/versions/0.2.0/membership_identifiers.parquet new file mode 100644 index 0000000..e9eed84 Binary files /dev/null and b/data/packages/uk_politician_data/versions/0.2.0/membership_identifiers.parquet differ diff --git a/data/packages/uk_politician_data/versions/0.2.0/membership_identifiers.resource.yaml b/data/packages/uk_politician_data/versions/0.2.0/membership_identifiers.resource.yaml new file mode 100644 index 0000000..2cc96fc --- /dev/null +++ b/data/packages/uk_politician_data/versions/0.2.0/membership_identifiers.resource.yaml @@ -0,0 +1,39 @@ +title: Alternative membership identifiers +description: Map between our membership IDs and other schemes +custom: + row_count: 41345 +path: membership_identifiers.parquet +name: membership_identifiers +profile: data-resource +scheme: file +format: parquet +hashing: md5 +encoding: mac-roman +schema: + fields: + - name: membership_id + type: string + description: The ID of the membership (unique combination of person, post, and + time) + constraints: + unique: false + example: uk.org.publicwhip/lord/100001 + - name: identifier + type: string + description: The identifier of the person in the other scheme + constraints: + unique: false + example: '1' + - name: scheme + type: string + description: Alternate ID scheme + constraints: + unique: false + enum: + - datadotparl_id + - historichansard_id + - peeragetype + - pims_id + - wikidata + example: datadotparl_id +hash: 07f1d7400433e9deb533c230afb8f841 diff --git a/data/packages/uk_politician_data/versions/0.2.0/memberships.parquet b/data/packages/uk_politician_data/versions/0.2.0/memberships.parquet new file mode 100644 index 0000000..a8a3db7 Binary files /dev/null and b/data/packages/uk_politician_data/versions/0.2.0/memberships.parquet differ diff --git a/data/packages/uk_politician_data/versions/0.2.0/memberships.resource.yaml b/data/packages/uk_politician_data/versions/0.2.0/memberships.resource.yaml new file mode 100644 index 0000000..fa708fc --- /dev/null +++ b/data/packages/uk_politician_data/versions/0.2.0/memberships.resource.yaml @@ -0,0 +1,94 @@ +title: Memberships +description: Table of memberships (a membership is connection between a person, post + and time) +custom: + row_count: 46490 +path: memberships.parquet +name: memberships +profile: data-resource +scheme: file +format: parquet +hashing: md5 +encoding: utf-8 +schema: + fields: + - name: id + type: string + description: The ID of the membership (unique combination of person, post, and + time) + constraints: + unique: true + example: uk.org.publicwhip/lord/100001 + - name: person_id + type: string + description: The ID of the person + constraints: + unique: false + example: uk.org.publicwhip/person/10001 + - name: organization_id + type: string + description: The ID of the organization this person is a member of (party) + constraints: + unique: false + example: crown + - name: on_behalf_of_id + type: string + description: The ID of the organization this person is a member of (party) + constraints: + unique: false + example: alba + - name: end_date + type: string + description: Date this membership ends + constraints: + unique: false + example: '1803-01-04' + - name: end_reason + type: string + description: Reason for end of membership + constraints: + unique: false + example: became_peer + - name: post_id + type: string + description: The ID of the post (e.g. a seat) + constraints: + unique: false + example: uk.org.publicwhip/cons/1 + - name: start_date + type: string + description: Date this membership starts + constraints: + unique: false + example: '1761-03-27' + - name: start_reason + type: string + description: Reason for start of membership + constraints: + unique: false + example: '' + - name: label + type: string + description: The label of the membership + constraints: + unique: false + example: Peer + - name: role + type: string + description: The role of the person in the organization + constraints: + unique: false + example: Counsellor of State + - name: redirect + type: string + description: If one ID remaps to another + constraints: + unique: false + example: uk.org.publicwhip/lord/100001 + - name: reason + type: string + description: Additional notes (hardly used) + constraints: + unique: false + example: changed_party +hash: 37ab4acf8e98ef35ee62d962d8acd5e8 diff --git a/data/packages/uk_politician_data/versions/0.2.0/organization_identifiers.parquet b/data/packages/uk_politician_data/versions/0.2.0/organization_identifiers.parquet new file mode 100644 index 0000000..a8a4720 Binary files /dev/null and b/data/packages/uk_politician_data/versions/0.2.0/organization_identifiers.parquet differ diff --git a/data/packages/uk_politician_data/versions/0.2.0/organization_identifiers.resource.yaml b/data/packages/uk_politician_data/versions/0.2.0/organization_identifiers.resource.yaml new file mode 100644 index 0000000..49eda4d --- /dev/null +++ b/data/packages/uk_politician_data/versions/0.2.0/organization_identifiers.resource.yaml @@ -0,0 +1,56 @@ +title: Organization identifiers +description: Map between our organization IDs and other schemes +custom: + row_count: 10 +path: organization_identifiers.parquet +name: organization_identifiers +profile: data-resource +scheme: file +format: parquet +hashing: md5 +encoding: cp1252 +schema: + fields: + - name: organization_id + type: string + description: Our ID of the organization (party) + constraints: + unique: true + enum: + - blaenau-gwent-peoples-voice + - brexit-alliance + - conservative + - independent + - john-marek-independent-party + - labour + - liberal-democrat + - non-attached + - plaid-cymru + - ukip + example: blaenau-gwent-peoples-voice + - name: identifier + type: string + description: The identifier of the organization in the other scheme + constraints: + unique: true + enum: + - Q10647 + - Q10691 + - Q2415493 + - Q327591 + - Q4923798 + - Q61586635 + - Q6246716 + - Q9624 + - Q9626 + - Q9630 + example: Q10647 + - name: scheme + type: string + description: Alternate ID scheme + constraints: + unique: false + enum: + - wikidata + example: wikidata +hash: e66893264309a7c74c5805f95625c958 diff --git a/data/packages/uk_politician_data/versions/0.2.0/organizations.parquet b/data/packages/uk_politician_data/versions/0.2.0/organizations.parquet new file mode 100644 index 0000000..2103367 Binary files /dev/null and b/data/packages/uk_politician_data/versions/0.2.0/organizations.parquet differ diff --git a/data/packages/uk_politician_data/versions/0.2.0/organizations.resource.yaml b/data/packages/uk_politician_data/versions/0.2.0/organizations.resource.yaml new file mode 100644 index 0000000..a5099ce --- /dev/null +++ b/data/packages/uk_politician_data/versions/0.2.0/organizations.resource.yaml @@ -0,0 +1,32 @@ +title: Organizations +description: List of organizations (parties) +custom: + row_count: 50 +path: organizations.parquet +name: organizations +profile: data-resource +scheme: file +format: parquet +hashing: md5 +encoding: cp1252 +schema: + fields: + - name: classification + type: string + description: The type of organization + constraints: + unique: false + example: party + - name: id + type: string + description: The ID of the organization (party) + constraints: + unique: true + example: alba + - name: name + type: string + description: The name of the organization (party) + constraints: + unique: true + example: Alba +hash: 3b106e01a477cbe8283a5a023363c99b diff --git a/data/packages/uk_politician_data/versions/0.2.0/person_alternative_names.parquet b/data/packages/uk_politician_data/versions/0.2.0/person_alternative_names.parquet new file mode 100644 index 0000000..80a85bd Binary files /dev/null and b/data/packages/uk_politician_data/versions/0.2.0/person_alternative_names.parquet differ diff --git a/data/packages/uk_politician_data/versions/0.2.0/person_alternative_names.resource.yaml b/data/packages/uk_politician_data/versions/0.2.0/person_alternative_names.resource.yaml new file mode 100644 index 0000000..fbdb5fe --- /dev/null +++ b/data/packages/uk_politician_data/versions/0.2.0/person_alternative_names.resource.yaml @@ -0,0 +1,125 @@ +title: Person names +description: Multiple names for people +custom: + row_count: 15026 +path: person_alternative_names.parquet +name: person_alternative_names +profile: data-resource +scheme: file +format: parquet +hashing: md5 +encoding: mac-roman +schema: + fields: + - name: person_id + type: string + description: The ID of the person + constraints: + unique: false + example: uk.org.publicwhip/person/10001 + - name: family_name + type: string + description: The family name of the person + constraints: + unique: false + example: 'Öpik' + - name: given_name + type: string + description: The given name of the person + constraints: + unique: false + example: '' + - name: note + type: string + description: A note about the name + constraints: + unique: false + enum: + - Alternate + - Main + example: Alternate + - name: end_date + type: string + description: The end date of the name + constraints: + unique: false + example: '1974-09-20' + - name: honorific_prefix + type: string + description: The honorific prefix of the person + constraints: + unique: false + example: Admiral + - name: start_date + type: string + description: The start date of the name + constraints: + unique: false + example: '' + - name: additional_name + type: string + description: An additional name of the person + constraints: + unique: false + example: '' + - name: county + type: string + description: The county of the person + constraints: + unique: false + example: '' + - name: lordname + type: string + description: The lord name of the person + constraints: + unique: false + example: '' + - name: lordofname + type: string + description: The lord of name of the person + constraints: + unique: false + example: '' + - name: name + type: string + description: The name of the person + constraints: + unique: false + example: A Cecil Walker + - name: lordofname_full + type: string + description: The full lord of name of the person + constraints: + unique: false + example: '' + - name: surname + type: string + description: The surname of the person + constraints: + unique: false + example: '' + - name: organization_id + type: string + description: The ID of the organization (house) + constraints: + unique: false + example: house-of-commons + - name: honorific_suffix + type: string + description: The honorific suffix of the person + constraints: + unique: false + example: KCMG + - name: additional_names + type: string + description: Additional names of the person + constraints: + unique: false + example: Richard + - name: additional__name + type: string + description: Additional name of the person + constraints: + unique: false + example: Ahmad +hash: 5ca3c52449fe13341474373e9e59a238 diff --git a/data/packages/uk_politician_data/versions/0.2.0/person_identifiers.parquet b/data/packages/uk_politician_data/versions/0.2.0/person_identifiers.parquet new file mode 100644 index 0000000..ff1d755 Binary files /dev/null and b/data/packages/uk_politician_data/versions/0.2.0/person_identifiers.parquet differ diff --git a/data/packages/uk_politician_data/versions/0.2.0/person_identifiers.resource.yaml b/data/packages/uk_politician_data/versions/0.2.0/person_identifiers.resource.yaml new file mode 100644 index 0000000..e053710 --- /dev/null +++ b/data/packages/uk_politician_data/versions/0.2.0/person_identifiers.resource.yaml @@ -0,0 +1,41 @@ +title: Person identifiers +description: Map between our person IDs and other schemes +custom: + row_count: 21310 +path: person_identifiers.parquet +name: person_identifiers +profile: data-resource +scheme: file +format: parquet +hashing: md5 +encoding: mac-roman +schema: + fields: + - name: person_id + type: string + description: Our ID of the person + constraints: + unique: false + example: uk.org.publicwhip/person/10001 + - name: identifier + type: string + description: The identifier of the person in the other scheme + constraints: + unique: false + example: '' + - name: scheme + type: string + description: Alternate ID scheme + constraints: + unique: false + enum: + - data.niassembly.gov.uk + - datadotparl_id + - historichansard_person_id + - historichansard_url + - pims_id + - senedd + - wikidata + - yournextmp + example: data.niassembly.gov.uk +hash: e35a43c953c5bb21744ef49e9dc9d33c diff --git a/data/packages/uk_politician_data/versions/0.2.0/persons.parquet b/data/packages/uk_politician_data/versions/0.2.0/persons.parquet new file mode 100644 index 0000000..2604ed6 Binary files /dev/null and b/data/packages/uk_politician_data/versions/0.2.0/persons.parquet differ diff --git a/data/packages/uk_politician_data/versions/0.2.0/persons.resource.yaml b/data/packages/uk_politician_data/versions/0.2.0/persons.resource.yaml new file mode 100644 index 0000000..ca608d1 --- /dev/null +++ b/data/packages/uk_politician_data/versions/0.2.0/persons.resource.yaml @@ -0,0 +1,38 @@ +title: Persons table +description: List of people (many specific details are in the memberships table) +custom: + row_count: 14218 +path: persons.parquet +name: persons +profile: data-resource +scheme: file +format: parquet +hashing: md5 +encoding: utf-8 +schema: + fields: + - name: id + type: string + description: The ID of the person + constraints: + unique: true + example: uk.org.publicwhip/person/10001 + - name: redirect + type: string + description: The ID of the person that this person redirects to + constraints: + unique: false + example: uk.org.publicwhip/person/10211 + - name: current_constituency + type: string + description: The current constituency of the person + constraints: + unique: false + example: Aberavon + - name: current_party + type: string + description: The current party of the person + constraints: + unique: false + example: Alliance +hash: abbc31b4b64a4af9eec4832c211567ef diff --git a/data/packages/uk_politician_data/versions/0.2.0/post_identifiers.parquet b/data/packages/uk_politician_data/versions/0.2.0/post_identifiers.parquet new file mode 100644 index 0000000..9b57255 Binary files /dev/null and b/data/packages/uk_politician_data/versions/0.2.0/post_identifiers.parquet differ diff --git a/data/packages/uk_politician_data/versions/0.2.0/post_identifiers.resource.yaml b/data/packages/uk_politician_data/versions/0.2.0/post_identifiers.resource.yaml new file mode 100644 index 0000000..8ca7dc2 --- /dev/null +++ b/data/packages/uk_politician_data/versions/0.2.0/post_identifiers.resource.yaml @@ -0,0 +1,35 @@ +title: Post Identifiers +description: Map between our IDs for posts and alternative schemes +custom: + row_count: 2191 +path: post_identifiers.parquet +name: post_identifiers +profile: data-resource +scheme: file +format: parquet +hashing: md5 +encoding: cp1254 +schema: + fields: + - name: post_id + type: string + description: The ID of the post + constraints: + unique: true + example: uk.org.publicwhip/cons/1 + - name: identifier + type: string + description: The identifier of the post in the other scheme + constraints: + unique: true + example: '1' + - name: scheme + type: string + description: Alternate ID scheme + constraints: + unique: false + enum: + - historichansard_id + - wikidata + example: historichansard_id +hash: e66954b41cb3fa572af46f5b7b274523 diff --git a/data/packages/uk_politician_data/versions/0.2.0/posts.parquet b/data/packages/uk_politician_data/versions/0.2.0/posts.parquet new file mode 100644 index 0000000..3e6b4bf Binary files /dev/null and b/data/packages/uk_politician_data/versions/0.2.0/posts.parquet differ diff --git a/data/packages/uk_politician_data/versions/0.2.0/posts.resource.yaml b/data/packages/uk_politician_data/versions/0.2.0/posts.resource.yaml new file mode 100644 index 0000000..3d0ffcc --- /dev/null +++ b/data/packages/uk_politician_data/versions/0.2.0/posts.resource.yaml @@ -0,0 +1,68 @@ +title: Posts +description: List of posts (generally constituencies, lists) +custom: + row_count: 2418 +path: posts.parquet +name: posts +profile: data-resource +scheme: file +format: parquet +hashing: md5 +encoding: cp1254 +schema: + fields: + - name: id + type: string + description: The ID of the post + constraints: + unique: true + example: uk.org.publicwhip/cons/1 + - name: label + type: string + description: The label of the post + constraints: + unique: false + example: MLA for Belfast East + - name: organization_id + type: string + description: The ID of the organization (party) + constraints: + unique: false + enum: + - house-of-commons + - london-assembly + - northern-ireland-assembly + - scottish-parliament + - welsh-parliament + example: house-of-commons + - name: role + type: string + description: The role of the person in the post + constraints: + unique: false + enum: + - MLA + - MS + - MSP + - Member of Parliament + - london-assembly-member + example: MLA + - name: start_date + type: string + description: Date this post starts + constraints: + unique: false + example: '1265' + - name: end_date + type: string + description: Date this post ends + constraints: + unique: false + example: '1821' + - name: area_name + type: string + description: The name of the area the post represents + constraints: + unique: false + example: Aberavon +hash: 07083e6f84cd46b24cb605e58db8ca38