Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into main
  • Loading branch information
ajparsons committed Nov 25, 2024
2 parents 89be0e8 + e15f1b7 commit 6a48ad1
Show file tree
Hide file tree
Showing 116 changed files with 448,956 additions and 31 deletions.
16 changes: 8 additions & 8 deletions data/packages/parliamentary_motions/agreements.resource.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: Agreements
description: dataset of agreements extracted from parliamentary debates
custom:
row_count: 3234
row_count: 3673
path: agreements.parquet
name: agreements
profile: data-resource
Expand All @@ -16,19 +16,19 @@ schema:
description: unique identifier for the agreement - debate gid plus paragraph pid
constraints:
unique: true
example: uk.org.publicwhip/debate/2019-01-08b.277.4.2
example: uk.org.publicwhip/debate/2019-01-07c.121.0.8
- name: date
type: string
description: date of the debate
constraints:
unique: false
example: '2019-01-08'
example: '2019-01-07'
- name: major_heading_id
type: string
description: ID of the major heading (if relevant)
constraints:
unique: false
example: uk.org.publicwhip/debate/2019-01-08b.211.0
example: uk.org.publicwhip/debate/2019-01-07c.137.1
- name: minor_heading_id
type: string
description: ID of the minor heading (if relevant)
Expand All @@ -40,7 +40,7 @@ schema:
description: ID of the speech containing the agreement
constraints:
unique: false
example: uk.org.publicwhip/debate/2019-01-08b.277.4
example: uk.org.publicwhip/debate/2019-01-07c.121.0
- name: paragraph_pid
type: string
description: paragraph ID of the agreement
Expand All @@ -62,13 +62,13 @@ schema:
description: Title of the motion
constraints:
unique: false
example: ''
example: 20 YEARS OF DEVOLUTION
- name: motion_gid
type: string
description: ID of the motion
constraints:
unique: true
example: uk.org.publicwhip/debate/2019-01-08b.277.4.3
example: uk.org.publicwhip/debate/2019-01-07c.114.0.2
- name: chamber
type: string
description: Chamber in which the agreement was made
Expand All @@ -77,4 +77,4 @@ schema:
enum:
- house-of-commons
example: house-of-commons
hash: 13aa74d2792ce8e82708d4dcb4bab4dd
hash: ae2ef83fb9ac5ef5bd85ff4ffa08af2d
26 changes: 11 additions & 15 deletions data/packages/parliamentary_motions/datapackage.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
name: parliamentary_motions
title: Parliamentary motions
description : |
Motions and agreements extracted from parliamentary debates
description: "Motions and agreements extracted from parliamentary debates\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: mySociety
path: https://mysociety.org
role: author


- title: mySociety
path: https://mysociety.org
role: author
custom:
build: "parl_motion_detector.process:move_to_package"
build: parl_motion_detector.process:move_to_package
tests:
- test_parliamentary_motions
- test_parliamentary_motions
dataset_order: 0
download_options:
gate: default
Expand All @@ -43,4 +38,5 @@ custom:
include: all
exclude: none
render: true

change_log:
0.1.0: Don't need to increment, first version
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: Division Links
description: Lookup between GID for a division and the relevant motion
custom:
row_count: 1094
row_count: 1290
path: division-links.parquet
name: division-links
profile: data-resource
Expand Down Expand Up @@ -31,4 +31,4 @@ schema:
enum:
- house-of-commons
example: house-of-commons
hash: 4f802b3551fbc111caa68a36d6d2eddc
hash: ad282a9481d69f6613b7fa9b5a050080
12 changes: 6 additions & 6 deletions data/packages/parliamentary_motions/motions.resource.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: Motions
description: Motions extracted from parliamentary debates
custom:
row_count: 4328
row_count: 4963
path: motions.parquet
name: motions
profile: data-resource
Expand All @@ -16,25 +16,25 @@ schema:
description: unique identifier for the motion - debate gid plus paragraph pid
constraints:
unique: true
example: uk.org.publicwhip/debate/2019-01-08b.212.3.1
example: uk.org.publicwhip/debate/2019-01-07c.114.0.2
- name: speech_id
type: string
description: ID of the speech containing the motion (or the first entry)
constraints:
unique: false
example: uk.org.publicwhip/debate/2019-01-08b.212.3
example: uk.org.publicwhip/debate/2019-01-07c.114.0
- name: date
type: string
description: date of the debate
constraints:
unique: false
example: '2019-01-08'
example: '2019-01-07'
- name: motion_title
type: string
description: Title of the motion
constraints:
unique: false
example: ''
example: 18. Pensions (lifetime allowance charge and annual allowance)
- name: motion_text
type: string
description: Text of the motion
Expand All @@ -51,4 +51,4 @@ schema:
enum:
- house-of-commons
example: house-of-commons
hash: 933981b426e92431d3f5171e08d055d9
hash: dc57c5d10f9d501543f3190412fe3208
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
title: Agreements
description: dataset of agreements extracted from parliamentary debates
custom:
row_count: 3673
path: agreements.parquet
name: agreements
profile: data-resource
scheme: file
format: parquet
hashing: md5
encoding: utf-8
schema:
fields:
- name: gid
type: string
description: unique identifier for the agreement - debate gid plus paragraph pid
constraints:
unique: true
example: uk.org.publicwhip/debate/2019-01-07c.121.0.8
- name: date
type: string
description: date of the debate
constraints:
unique: false
example: '2019-01-07'
- name: major_heading_id
type: string
description: ID of the major heading (if relevant)
constraints:
unique: false
example: uk.org.publicwhip/debate/2019-01-07c.137.1
- name: minor_heading_id
type: string
description: ID of the minor heading (if relevant)
constraints:
unique: false
example: ''
- name: speech_id
type: string
description: ID of the speech containing the agreement
constraints:
unique: false
example: uk.org.publicwhip/debate/2019-01-07c.121.0
- name: paragraph_pid
type: string
description: paragraph ID of the agreement
constraints:
unique: false
example: a100.1/12
- name: agreed_text
type: string
description: Text that contains the agreement
constraints:
unique: false
example: '(2) That a further day not later than 5 August be allotted for the consideration
of the following Estimate for financial year 2021-22: Foreign, Commonwealth
and Development Office, insofar as it relates to the spending of the Foreign,
Commonwealth and Development Office on Official Development Assistance and the
British Council.—(David Rutley.) Question agreed to.'
- name: motion_title
type: string
description: Title of the motion
constraints:
unique: false
example: 20 YEARS OF DEVOLUTION
- name: motion_gid
type: string
description: ID of the motion
constraints:
unique: true
example: uk.org.publicwhip/debate/2019-01-07c.114.0.2
- name: chamber
type: string
description: Chamber in which the agreement was made
constraints:
unique: false
enum:
- house-of-commons
example: house-of-commons
hash: ae2ef83fb9ac5ef5bd85ff4ffa08af2d
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: parliamentary_motions
title: Parliamentary motions
description: "Motions and agreements extracted from parliamentary debates\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: mySociety
path: https://mysociety.org
role: author
custom:
build: parl_motion_detector.process:move_to_package
tests:
- test_parliamentary_motions
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
title: Division Links
description: Lookup between GID for a division and the relevant motion
custom:
row_count: 1290
path: division-links.parquet
name: division-links
profile: data-resource
scheme: file
format: parquet
hashing: md5
encoding: utf-8
schema:
fields:
- name: division_gid
type: string
description: GID of the division
constraints:
unique: true
example: uk.org.publicwhip/debate/2019-01-08b.243.1
- name: motion_gid
type: string
description: GID of the motion
constraints:
unique: true
example: uk.org.publicwhip/debate/2019-01-08b.212.3.1
- name: chamber
type: string
description: Chamber in which the motion was made
constraints:
unique: false
enum:
- house-of-commons
example: house-of-commons
hash: ad282a9481d69f6613b7fa9b5a050080
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
title: Motions
description: Motions extracted from parliamentary debates
custom:
row_count: 4963
path: motions.parquet
name: motions
profile: data-resource
scheme: file
format: parquet
hashing: md5
encoding: utf-8
schema:
fields:
- name: gid
type: string
description: unique identifier for the motion - debate gid plus paragraph pid
constraints:
unique: true
example: uk.org.publicwhip/debate/2019-01-07c.114.0.2
- name: speech_id
type: string
description: ID of the speech containing the motion (or the first entry)
constraints:
unique: false
example: uk.org.publicwhip/debate/2019-01-07c.114.0
- name: date
type: string
description: date of the debate
constraints:
unique: false
example: '2019-01-07'
- name: motion_title
type: string
description: Title of the motion
constraints:
unique: false
example: 18. Pensions (lifetime allowance charge and annual allowance)
- name: motion_text
type: string
description: Text of the motion
constraints:
unique: false
example: "After Clause 46 - Register of members: information to be included and\
\ powers to obtain it\nQuestion put, That amendment (a) to Lords amendment 23\
\ be made."
- name: chamber
type: string
description: Chamber in which the motion was made
constraints:
unique: false
enum:
- house-of-commons
example: house-of-commons
hash: dc57c5d10f9d501543f3190412fe3208
Loading

0 comments on commit 6a48ad1

Please sign in to comment.