-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetadata.yml
142 lines (135 loc) · 6.63 KB
/
metadata.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
title: Toronto Lobbyist Registry Database
description_html: |
<p>This database contains information about lobbyist activities in Toronto, including subject matters,
registrants, beneficiaries, firms, communications, and more.</p>
<p>Use this tool to explore relationships between lobbyists, their clients, and government officials.</p>
license: Open Government Licence – Toronto
license_url: https://open.toronto.ca/open-data-license/
source: Toronto Open Data
source_url: https://open.toronto.ca/dataset/lobbyist-registry/
repo: RamVasuthevan/TorontoLobbyistRegistry
repo_url: https://github.com/RamVasuthevan/TorontoLobbyistRegistry
about: Built by Ram Vasuthevan with ❤️ on the shoulders of giants
about_url: https://github.com/RamVasuthevan/TorontoLobbyistRegistry
databases:
lobbyist_registry:
tables:
subject_matters:
description: "Information about lobbying subject matters"
label_column: "sm_number"
facets:
- status
- type
columns:
sm_number: "Subject matter registration number (format SMnnnnn)"
status: "Status of subject matter registration e.g. active"
type: "Lobbyist type (e.g. voluntary, in-house, consultant)"
subject_matter: "Subject matter (e.g. grants/funding)"
particulars: "Decision(s) or issue(s) to be lobbied"
initial_approval_date: "Initial subject matter registration approval date"
effective_date: "Most recent subject matter registration approval date"
proposed_start_date: "Start of time period for lobbying on this subject matter"
proposed_end_date: "End of time period for lobbying on this subject matter"
registrants:
description: "Information about registered lobbyists"
label_column: "registration_number"
facets:
- status
- type
- previous_public_office_holder
columns:
registration_number: "Registrant's registration number (format nnnnnA)"
status: "Registrant's status"
effective_date: "Most recent registration approval date"
type: "Registrant's type i.e. voluntary, in-house, consultant"
prefix: "Registrant's name prefix (e.g. Mr, Mrs, Ms)"
first_name: "Registrant's first name"
middle_initials: "Registrant's middle initial(s)"
last_name: "Registrant's last name"
suffix: "Registrant's name suffix (e.g. Esq, BA, PhD)"
position_title: "Registrant's position title"
previous_public_office_holder: "Registrant had previous public office position with City of Toronto (Yes/No)"
previous_public_office_hold_position: "Previous COT public office position held by registrant"
previous_public_office_position_program_name: "Name of program that registrant's previous COT public office position belonged to"
previous_public_office_hold_last_date: "Last date of registrant's employment in previous COT public office position"
communications:
description: "Records of communications between lobbyists and public office holders"
facets:
- poh_type
- lobbyist_type
- lobbyist_previous_public_office_holder
columns:
poh_office: "Ward, office, division or agency of the public office holder"
poh_type: "Public office holder type"
poh_position: "Public office holder's position title"
poh_name: "Name of public office holder"
communication_method: "List of communication methods used"
communication_date: "Date of communication in yyyy-mm-dd format"
communication_group_id: "Identifier of group receiving communication"
lobbyist_number: "Lobbyist registration number"
lobbyist_type: "Lobbyist type i.e. voluntary, in-house, consultant"
lobbyist_prefix: "Lobbyist's name prefix (e.g. Mr, Mrs, Ms)"
lobbyist_first_name: "Lobbyist's first name"
lobbyist_middle_initials: "Lobbyist's middle initial(s)"
lobbyist_last_name: "Lobbyist's last name"
lobbyist_suffix: "Lobbyist's name suffix (e.g. Esq, BA, PhD)"
lobbyist_business: "Name of lobbyist's business"
lobbyist_position_title: "Lobbyist's position title"
beneficiaries:
description: "Organizations or individuals benefiting from lobbying activities"
label_column: "name"
facets:
- type
columns:
type: "Type of beneficiary (e.g. Client, Parent company, Subsidiary company)"
name: "Beneficiary organization name"
trade_name: "Other trade names used"
fiscal_start: "Fiscal year start date of beneficiary organization"
fiscal_end: "Fiscal year end date of beneficiary organization"
firms:
description: "Firms engaged in lobbying activities"
label_column: "name"
facets:
- type
- business_type
columns:
type: "Business/organization type (e.g. voluntary, in-house, consultant)"
name: "Business/organization name"
trade_name: "Other trade names used"
fiscal_start: "Fiscal year of the business/organization start date"
fiscal_end: "Fiscal year of the business/organization end date"
description: "Description of business activities"
business_type: "Business/organization type (e.g. corporation)"
grassroots:
description: "Information about grassroots lobbying campaigns"
columns:
community: "Type of group(s) asked to participate in campaign (e.g. public)"
start_date: "Campaign Period From date"
end_date: "Campaign Period To Date"
target: "Target group (e.g. councillors)"
meetings:
description: "Information about meetings involving lobbyists"
facets:
- committee
columns:
committee: "Name of committee holding the meeting"
desc: "Subject of meeting"
date: "Date of meeting in yyyy-mm-dd format"
queries:
unclean_data_registrant_not_poh_unclear:
sql: |
select
*
from
registrants
where
(
"previous_public_office_hold_position" is not null
and "previous_public_office_hold_position" != ""
)
and "previous_public_office_holder" = "No"
order by
registration_number desc
limit
101
description: "Shows registrants with previous_public_office_holder as no but there is data about the office that they held"