diff --git a/data/packages/commons_votes/datapackage.yaml b/data/packages/commons_votes/datapackage.yaml index d649c65..83c3ca0 100644 --- a/data/packages/commons_votes/datapackage.yaml +++ b/data/packages/commons_votes/datapackage.yaml @@ -1,29 +1,22 @@ name: commons_votes title: Commons Votes Data -description : | - Dataset version of data from Commons Votes API +description: "Dataset version of data from Commons Votes API\n" version: 0.1.0 licenses: - - - name: CC-BY-4.0 - path: https://creativecommons.org/licenses/by/4.0/ - title: Creative Commons Attribution 4.0 International License - +- 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 - - +- title: UK Parliament + path: https://parliament.uk + role: author +- title: mySociety + path: https://mysociety.org + role: author custom: - build: "project load-commons-votes" + build: project load-commons-votes tests: - - test_commons_votes_divisions + - test_commons_votes_divisions dataset_order: 0 download_options: gate: default @@ -48,4 +41,5 @@ custom: include: all exclude: none render: true - + change_log: + 0.1.0: Don't need to increment, first version diff --git a/data/packages/commons_votes/versions/0.1.0/datapackage.yaml b/data/packages/commons_votes/versions/0.1.0/datapackage.yaml new file mode 100644 index 0000000..83c3ca0 --- /dev/null +++ b/data/packages/commons_votes/versions/0.1.0/datapackage.yaml @@ -0,0 +1,45 @@ +name: commons_votes +title: Commons Votes Data +description: "Dataset version of data from Commons Votes API\n" +version: 0.1.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 diff --git a/data/packages/commons_votes/versions/0.1.0/divisions.parquet b/data/packages/commons_votes/versions/0.1.0/divisions.parquet new file mode 100644 index 0000000..379c7ac Binary files /dev/null and b/data/packages/commons_votes/versions/0.1.0/divisions.parquet differ diff --git a/data/packages/commons_votes/versions/0.1.0/divisions.resource.yaml b/data/packages/commons_votes/versions/0.1.0/divisions.resource.yaml new file mode 100644 index 0000000..d500c81 --- /dev/null +++ b/data/packages/commons_votes/versions/0.1.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: 1739 +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: d9ae5444a06e0bb4e932d1fd7eb27805 diff --git a/data/raw/months/2023-12.json b/data/raw/months/2023-12.json index 465c564..3f38e25 100644 --- a/data/raw/months/2023-12.json +++ b/data/raw/months/2023-12.json @@ -15,7 +15,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2023-12-13-33-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2023-12-13-33-commons" }, { "division_id": 1696, @@ -33,7 +35,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2023-12-13-32-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2023-12-13-32-commons" }, { "division_id": 1695, @@ -51,7 +55,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2023-12-13-31-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2023-12-13-31-commons" }, { "division_id": 1694, @@ -69,7 +75,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2023-12-13-30-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2023-12-13-30-commons" }, { "division_id": 1693, @@ -87,7 +95,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2023-12-13-29-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2023-12-13-29-commons" }, { "division_id": 1692, @@ -105,7 +115,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2023-12-12-28-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2023-12-12-28-commons" }, { "division_id": 1691, @@ -123,7 +135,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2023-12-12-27-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2023-12-12-27-commons" }, { "division_id": 1690, @@ -141,7 +155,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2023-12-12-26-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2023-12-12-26-commons" }, { "division_id": 1689, @@ -159,7 +175,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2023-12-04-25-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2023-12-04-25-commons" }, { "division_id": 1688, @@ -177,7 +195,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2023-12-04-24-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2023-12-04-24-commons" }, { "division_id": 1687, @@ -195,7 +215,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2023-12-04-23-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2023-12-04-23-commons" }, { "division_id": 1686, @@ -213,7 +235,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2023-12-04-22-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2023-12-04-22-commons" }, { "division_id": 1685, @@ -231,6 +255,8 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2023-12-04-21-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2023-12-04-21-commons" } ] \ No newline at end of file diff --git a/data/raw/months/2024-01.json b/data/raw/months/2024-01.json index e213282..f551c76 100644 --- a/data/raw/months/2024-01.json +++ b/data/raw/months/2024-01.json @@ -15,7 +15,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-31-70-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-31-70-commons" }, { "division_id": 1733, @@ -33,7 +35,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-31-69-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-31-69-commons" }, { "division_id": 1732, @@ -51,7 +55,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-30-68-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-30-68-commons" }, { "division_id": 1731, @@ -69,7 +75,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-30-67-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-30-67-commons" }, { "division_id": 1730, @@ -87,7 +95,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-30-66-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-30-66-commons" }, { "division_id": 1729, @@ -105,7 +115,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-30-65-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-30-65-commons" }, { "division_id": 1728, @@ -123,7 +135,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-23-64-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-23-64-commons" }, { "division_id": 1727, @@ -141,7 +155,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-23-63-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-23-63-commons" }, { "division_id": 1726, @@ -159,7 +175,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-22-62-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-22-62-commons" }, { "division_id": 1725, @@ -177,7 +195,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-22-61-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-22-61-commons" }, { "division_id": 1724, @@ -195,7 +215,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-17-60-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-17-60-commons" }, { "division_id": 1723, @@ -213,7 +235,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-17-59-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-17-59-commons" }, { "division_id": 1722, @@ -231,7 +255,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-17-58-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-17-58-commons" }, { "division_id": 1721, @@ -249,7 +275,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-17-57-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-17-57-commons" }, { "division_id": 1720, @@ -267,7 +295,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-17-56-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-17-56-commons" }, { "division_id": 1719, @@ -285,7 +315,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-17-55-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-17-55-commons" }, { "division_id": 1718, @@ -303,7 +335,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-17-54-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-17-54-commons" }, { "division_id": 1717, @@ -321,7 +355,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-17-53-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-17-53-commons" }, { "division_id": 1716, @@ -339,7 +375,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-17-52-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-17-52-commons" }, { "division_id": 1715, @@ -357,7 +395,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-16-51-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-16-51-commons" }, { "division_id": 1714, @@ -375,7 +415,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-16-50-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-16-50-commons" }, { "division_id": 1713, @@ -393,7 +435,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-16-49-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-16-49-commons" }, { "division_id": 1712, @@ -411,7 +455,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-16-48-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-16-48-commons" }, { "division_id": 1711, @@ -429,7 +475,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-16-47-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-16-47-commons" }, { "division_id": 1710, @@ -447,7 +495,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-16-46-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-16-46-commons" }, { "division_id": 1709, @@ -465,7 +515,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-16-45-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-16-45-commons" }, { "division_id": 1708, @@ -483,7 +535,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-15-44-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-15-44-commons" }, { "division_id": 1707, @@ -501,7 +555,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-15-43-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-15-43-commons" }, { "division_id": 1706, @@ -519,7 +575,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-15-42-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-15-42-commons" }, { "division_id": 1705, @@ -537,7 +595,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-10-41-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-10-41-commons" }, { "division_id": 1704, @@ -555,7 +615,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-10-40-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-10-40-commons" }, { "division_id": 1703, @@ -573,7 +635,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-10-39-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-10-39-commons" }, { "division_id": 1702, @@ -591,7 +655,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-10-38-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-10-38-commons" }, { "division_id": 1701, @@ -609,7 +675,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-10-37-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-10-37-commons" }, { "division_id": 1700, @@ -627,7 +695,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-10-36-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-10-36-commons" }, { "division_id": 1699, @@ -645,7 +715,9 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-09-35-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-09-35-commons" }, { "division_id": 1698, @@ -663,6 +735,8 @@ "friendly_description": null, "friendly_title": null, "remote_voting_start": null, - "remote_voting_end": null + "remote_voting_end": null, + "division_key": "pw-2024-01-09-34-commons", + "twfy_link": "https://www.theyworkforyou.com/divisions/pw-2024-01-09-34-commons" } ] \ No newline at end of file