Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/mysociety/voting-data into …
Browse files Browse the repository at this point in the history
…main
  • Loading branch information
ajparsons committed Feb 8, 2024
2 parents 1a758e9 + a9b37b3 commit ca6c754
Show file tree
Hide file tree
Showing 6 changed files with 342 additions and 70 deletions.
34 changes: 14 additions & 20 deletions data/packages/commons_votes/datapackage.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -48,4 +41,5 @@ custom:
include: all
exclude: none
render: true

change_log:
0.1.0: Don't need to increment, first version
45 changes: 45 additions & 0 deletions data/packages/commons_votes/versions/0.1.0/datapackage.yaml
Original file line number Diff line number Diff line change
@@ -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
Binary file not shown.
133 changes: 133 additions & 0 deletions data/packages/commons_votes/versions/0.1.0/divisions.resource.yaml
Original file line number Diff line number Diff line change
@@ -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
52 changes: 39 additions & 13 deletions data/raw/months/2023-12.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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"
}
]
Loading

0 comments on commit ca6c754

Please sign in to comment.