diff --git a/data/packages/commons_votes/datapackage.yaml b/data/packages/commons_votes/datapackage.yaml index 88dd6a5..dadea9b 100644 --- a/data/packages/commons_votes/datapackage.yaml +++ b/data/packages/commons_votes/datapackage.yaml @@ -1,7 +1,7 @@ name: commons_votes title: Commons Votes Data description: "Dataset version of data from Commons Votes API\n" -version: 0.3.1 +version: 0.4.0 licenses: - name: CC-BY-4.0 path: https://creativecommons.org/licenses/by/4.0/ @@ -46,3 +46,4 @@ custom: 0.2.0: 'Change in data for resource(s): divisions' 0.3.0: 'Change in data for resource(s): divisions' 0.3.1: 'Minor change in data for resource(s): divisions' + 0.4.0: 'Change in data for resource(s): divisions' diff --git a/data/packages/commons_votes/divisions.parquet b/data/packages/commons_votes/divisions.parquet index 0ae4162..e332028 100644 Binary files a/data/packages/commons_votes/divisions.parquet and b/data/packages/commons_votes/divisions.parquet differ diff --git a/data/packages/commons_votes/divisions.resource.yaml b/data/packages/commons_votes/divisions.resource.yaml index 676d2bd..a706a7d 100644 --- a/data/packages/commons_votes/divisions.resource.yaml +++ b/data/packages/commons_votes/divisions.resource.yaml @@ -1,7 +1,7 @@ title: Divisions description: House of Commmons divisions as avaliable through the Commons Votes API custom: - row_count: 1753 + row_count: 1757 path: divisions.parquet name: divisions profile: data-resource @@ -130,4 +130,4 @@ schema: constraints: unique: false example: https://www.theyworkforyou.com/divisions/pw-2016-03-09-211-commons -hash: 6900ff496b75c2321295235140140d5a +hash: ef96c8840cbac1d0f4ed37f9948ef3b5 diff --git a/data/packages/commons_votes/versions/0.4.0/datapackage.yaml b/data/packages/commons_votes/versions/0.4.0/datapackage.yaml new file mode 100644 index 0000000..dadea9b --- /dev/null +++ b/data/packages/commons_votes/versions/0.4.0/datapackage.yaml @@ -0,0 +1,49 @@ +name: commons_votes +title: Commons Votes Data +description: "Dataset version of data from Commons Votes API\n" +version: 0.4.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: UK Parliament + path: https://parliament.uk + role: author +- title: mySociety + path: https://mysociety.org + role: author +custom: + build: project load-commons-votes + tests: + - test_commons_votes_divisions + dataset_order: 0 + download_options: + gate: default + survey: default + header_text: default + formats: + csv: true + parquet: true + gpkg: false + geojson: false + is_geodata: false + 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: Don't need to increment, first version + 0.2.0: 'Change in data for resource(s): divisions' + 0.3.0: 'Change in data for resource(s): divisions' + 0.3.1: 'Minor change in data for resource(s): divisions' + 0.4.0: 'Change in data for resource(s): divisions' diff --git a/data/packages/commons_votes/versions/0.4.0/divisions.parquet b/data/packages/commons_votes/versions/0.4.0/divisions.parquet new file mode 100644 index 0000000..e332028 Binary files /dev/null and b/data/packages/commons_votes/versions/0.4.0/divisions.parquet differ diff --git a/data/packages/commons_votes/versions/0.4.0/divisions.resource.yaml b/data/packages/commons_votes/versions/0.4.0/divisions.resource.yaml new file mode 100644 index 0000000..a706a7d --- /dev/null +++ b/data/packages/commons_votes/versions/0.4.0/divisions.resource.yaml @@ -0,0 +1,133 @@ +title: Divisions +description: House of Commmons divisions as avaliable through the Commons Votes API +custom: + row_count: 1757 +path: divisions.parquet +name: divisions +profile: data-resource +scheme: file +format: parquet +hashing: md5 +encoding: utf-8 +schema: + fields: + - name: division_id + type: integer + description: Internal ID for the division + constraints: + unique: false + example: 2 + - name: date + type: string + description: Date and time of the division + constraints: + unique: false + example: '2016-03-09T18:50:00' + - name: publication_updated + type: string + description: Date and time the division was last updated + constraints: + unique: false + example: '2016-03-15T12:07:14.623' + - name: number + type: integer + description: Division number (unique to day) + constraints: + unique: false + example: 1 + - name: is_deferred + type: boolean + description: Whether the division was deferred + constraints: + unique: false + enum: + - false + - true + example: 'False' + - name: evel_type + type: string + description: Whether the division was an English Votes for English Laws division + constraints: + unique: false + enum: + - '' + - Country + - Double Majority + example: '' + - name: evel_country + type: string + description: Country for English Votes for English Laws division + constraints: + unique: false + enum: + - '' + - England + - England and Wales + example: '' + - name: title + type: string + description: Title of the division + constraints: + unique: false + example: "\tElections Bill: Government Motion to disagree to Lords Amendment 23" + - name: aye_count + type: integer + description: Number of aye votes + constraints: + unique: false + example: 0 + - name: no_count + type: integer + description: Number of no votes + constraints: + unique: false + example: 0 + - name: double_majority_aye_count + type: number + description: Number of aye votes for double majority (EVEL) + constraints: + unique: false + example: 199.0 + - name: double_majority_no_count + type: number + description: Number of no votes for double majority (EVEL) + constraints: + unique: false + example: 3.0 + - name: friendly_description + type: string + description: Friendly description of the division + constraints: + unique: false + example: "21:30" + - name: friendly_title + type: string + description: Friendly title of the division + constraints: + unique: false + example: "Business of the House (Private Members' Bills): Amendment (a)" + - name: remote_voting_start + type: string + description: Date and time remote voting started + constraints: + unique: false + example: '2020-05-12T17:48:53' + - name: remote_voting_end + type: string + description: Date and time remote voting ended + constraints: + unique: false + example: '2020-05-12T18:03:53' + - name: division_key + type: string + description: Unique key for the division for TWFY + constraints: + unique: false + example: pw-2016-03-09-211-commons + - name: twfy_link + type: string + description: Link to the division on TheyWorkForYou + constraints: + unique: false + example: https://www.theyworkforyou.com/divisions/pw-2016-03-09-211-commons +hash: ef96c8840cbac1d0f4ed37f9948ef3b5 diff --git a/data/raw/months/2024-02.json b/data/raw/months/2024-02.json index 96179d6..a82a846 100644 --- a/data/raw/months/2024-02.json +++ b/data/raw/months/2024-02.json @@ -1,4 +1,44 @@ [ + { + "division_id": 1750, + "date": "2024-03-01T13:15:00", + "publication_updated": "2024-03-01T13:31:01", + "number": 86, + "is_deferred": false, + "evel_type": "", + "evel_country": "", + "title": "Closure", + "aye_count": 68, + "no_count": 15, + "double_majority_aye_count": null, + "double_majority_no_count": null, + "friendly_description": null, + "friendly_title": null, + "remote_voting_start": null, + "remote_voting_end": null, + "division_key": "pw-2024-03-01-86-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-03-01-86-commons" + }, + { + "division_id": 1749, + "date": "2024-03-01T09:34:00", + "publication_updated": "2024-03-01T09:49:19", + "number": 85, + "is_deferred": false, + "evel_type": "", + "evel_country": "", + "title": "Motion to sit in private", + "aye_count": 0, + "no_count": 64, + "double_majority_aye_count": null, + "double_majority_no_count": null, + "friendly_description": null, + "friendly_title": null, + "remote_voting_start": null, + "remote_voting_end": null, + "division_key": "pw-2024-03-01-85-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-03-01-85-commons" + }, { "division_id": 1748, "date": "2024-02-27T18:56:00", diff --git a/data/raw/months/2024-03.json b/data/raw/months/2024-03.json index 0637a08..0552f2c 100644 --- a/data/raw/months/2024-03.json +++ b/data/raw/months/2024-03.json @@ -1 +1,42 @@ -[] \ No newline at end of file +[ + { + "division_id": 1750, + "date": "2024-03-01T13:15:00", + "publication_updated": "2024-03-01T13:31:01", + "number": 86, + "is_deferred": false, + "evel_type": "", + "evel_country": "", + "title": "Closure", + "aye_count": 68, + "no_count": 15, + "double_majority_aye_count": null, + "double_majority_no_count": null, + "friendly_description": null, + "friendly_title": null, + "remote_voting_start": null, + "remote_voting_end": null, + "division_key": "pw-2024-03-01-86-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-03-01-86-commons" + }, + { + "division_id": 1749, + "date": "2024-03-01T09:34:00", + "publication_updated": "2024-03-01T09:49:19", + "number": 85, + "is_deferred": false, + "evel_type": "", + "evel_country": "", + "title": "Motion to sit in private", + "aye_count": 0, + "no_count": 64, + "double_majority_aye_count": null, + "double_majority_no_count": null, + "friendly_description": null, + "friendly_title": null, + "remote_voting_start": null, + "remote_voting_end": null, + "division_key": "pw-2024-03-01-85-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-03-01-85-commons" + } +] \ No newline at end of file