-
Notifications
You must be signed in to change notification settings - Fork 1
/
datapackage.json
325 lines (325 loc) · 11.6 KB
/
datapackage.json
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
{
"name": "something-new-finances",
"title": "Something New Finances",
"description": "This dataset contains financial data for Something New, as machine-readable Open Data.",
"licenses": [
{
"id": "CC-BY-4.0",
"name": "Creative Commons Attribution 4.0 International License",
"url": "https://creativecommons.org/licenses/by/4.0/"
}
],
"publishers": [
{
"name": "Something New",
"web": "http://somethingnew.org.uk"
}
],
"maintainers": [
{
"name": "James Smith",
"web": "http://www.floppy.org.uk"
}
],
"links": [
{
"name": "Open Data Certificate",
"url": "https://certificates.theodi.org/datasets/2254/certificates/14550"
},
{
"name": "GitHub repository",
"url": "https://github.com/somethingnewuk/finances"
}
],
"resources": [
{
"path": "party.2486.csv",
"url": "https://somethingnewuk.github.io/finances/party.2486.csv",
"name": "National Party finances",
"dialect": {
"delimiter": ",",
"doublequote": false,
"lineterminator": "\n",
"quotechar": "\"",
"skipinitialspace": false,
"header": true
},
"schema": "finances",
"links": [
{
"name": "CSV Validation",
"url": "https://csvlint.io/validation/5900a6f66435390004000004"
}
]
},
{
"path": "parl.horsham.2017-06-08.csv",
"url": "https://somethingnewuk.github.io/finances/parl.horsham.2017-06-08.csv",
"name": "2017 Horsham campaign finances",
"dialect": {
"delimiter": ",",
"doublequote": false,
"lineterminator": "\n",
"quotechar": "\"",
"skipinitialspace": false,
"header": true
},
"schema": "finances",
"links": [
{
"name": "CSV Validation",
"url": ""
}
]
},
{
"path": "parl.ross-skye-and-lochaber.2017-06-08.csv",
"url": "https://somethingnewuk.github.io/finances/parl.ross-skye-and-lochaber.2017-06-08.csv",
"name": "2017 Ross, Skye and Lochaber campaign finances",
"dialect": {
"delimiter": ",",
"doublequote": false,
"lineterminator": "\n",
"quotechar": "\"",
"skipinitialspace": false,
"header": true
},
"schema": "finances",
"links": [
{
"name": "CSV Validation",
"url": ""
}
]
},
{
"path": "local.west-sussex.holbrook.2017-05-04.csv",
"url": "https://somethingnewuk.github.io/finances/local.west-sussex.holbrook.2017-05-04.csv",
"name": "2017 Holbrook (West Sussex County Council) campaign finances",
"dialect": {
"delimiter": ",",
"doublequote": false,
"lineterminator": "\n",
"quotechar": "\"",
"skipinitialspace": false,
"header": true
},
"schema": "finances",
"links": [
{
"name": "CSV Validation",
"url": ""
}
]
},
{
"path": "local.staffordshire.lichfield-city-north.2017-05-04.csv",
"url": "https://somethingnewuk.github.io/finances/local.staffordshire.lichfield-city-north.2017-05-04.csv",
"name": "2017 Lichfield (Staffordshire County Council) campaign finances",
"dialect": {
"delimiter": ",",
"doublequote": false,
"lineterminator": "\n",
"quotechar": "\"",
"skipinitialspace": false,
"header": true
},
"schema": "finances",
"links": [
{
"name": "CSV Validation",
"url": "https://csvlint.io/validation/5900a73b6435390004000005"
}
]
},
{
"path": "parl.horsham.2015-05-07.csv",
"url": "https://somethingnewuk.github.io/finances/parl.horsham.2015-05-07.csv",
"name": "2015 Horsham campaign finances",
"dialect": {
"delimiter": ",",
"doublequote": false,
"lineterminator": "\n",
"quotechar": "\"",
"skipinitialspace": false,
"header": true
},
"schema": "finances",
"links": [
{
"name": "CSV Validation",
"url": "https://csvlint.io/validation/5900a6e26530380004000000"
}
]
},
{
"path": "parl.south-west-surrey.2015-05-07.csv",
"url": "https://somethingnewuk.github.io/finances/parl.south-west-surrey.2015-05-07.csv",
"name": "2015 South West Surrey campaign finances",
"dialect": {
"delimiter": ",",
"doublequote": false,
"lineterminator": "\n",
"quotechar": "\"",
"skipinitialspace": false,
"header": true
},
"schema": "finances",
"links": [
{
"name": "CSV Validation",
"url": "https://csvlint.io/validation/5900a69d6435390004000003"
}
]
}
],
"schemas": {
"finances": {
"fields": [
{
"name": "donor",
"title": "Donor",
"description": "Who donated this item?",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#string",
"required": false
}
},
{
"name": "supplier",
"title": "Supplier",
"description": "The supplier of the product or service",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#string",
"required": false
}
},
{
"name": "supplier_uri",
"title": "Supplier URI",
"description": "URI to uniquely identify the supplier",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#anyURI",
"required": false
}
},
{
"name": "via",
"title": "Via",
"description": "For income, which payment processor was used?",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#string",
"required": false
}
},
{
"name": "currency",
"title": "Currency",
"description": "ISO 4217 currency code",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#string",
"required": true
}
},
{
"name": "non_gbp_value",
"title": "Non-GBP value",
"description": "If not GBP, what was charged in the original currency",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#float",
"required": false
}
},
{
"name": "value",
"title": "Value",
"description": "Item value in GBP, including taxes",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#float",
"required": true
}
},
{
"name": "fee",
"title": "Fee paid",
"description": "Any transaction fee paid to the provider in {via}",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#float",
"required": false
}
},
{
"name": "cash",
"title": "Cash Value",
"description": "The cash value of the item. Notional donations have zero cash value.",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#float",
"required": true
}
},
{
"name": "cash_balance",
"title": "Cash balance",
"description": "Cash balance; will not include notional donations.",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#float",
"required": true
}
},
{
"name": "date",
"title": "Date",
"description": "The date the cost was incurred, not when it was paid",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#date",
"required": true
}
},
{
"name": "description",
"title": "Description",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#string",
"required": false
}
},
{
"name": "unspsc_code",
"title": "UNSPSC code",
"description": "United Nations Standard Products and Services Code - http://www.unspsc.org/",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#string",
"required": true
}
},
{
"name": "transaction_reference",
"title": "Transaction reference",
"description": "Supplier's invoice number or ID",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#string",
"required": false
}
},
{
"name": "ec_category",
"title": "Electoral Commission spending category",
"description": "Spending category A-F as defined in http://www.electoralcommission.org.uk/__data/assets/pdf_file/0013/107104/form-ce-by-election-ca.pdf",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#string",
"required": false
}
},
{
"name": "ec_accounting_category",
"title": "Electoral Commission accounting category",
"description": "",
"constraints" : {
"type": "http://www.w3.org/2001/XMLSchema#string",
"required": false
}
}
]
}
}
}