turbot-runner 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2229c474e1e419b9bc6f665f23a2fcc08ffc85c
4
- data.tar.gz: 0dea65843d3cbb38736dac5de99ddf0f360cde4f
3
+ metadata.gz: c98e56bdcb192b7a426e5c34536eac6344c36f9a
4
+ data.tar.gz: 653e5f08fae0bac7ec661ac7599929ad39282463
5
5
  SHA512:
6
- metadata.gz: 30f4b3241b3d21780add84ed119d904d4ce764433dfe3d4493d1c2771bc196deb04d2a3a4a19d4db5fa8839de158e1689cc0690151b1ad210a19bf44c248ffc3
7
- data.tar.gz: a9b9509032f3091ddfb01b53f08081f90cb2882c2498fe2525dae2ca7f46454fb12a83b7e47e9661be8778809b069dfedb345aeb5cb2b77f76e2c8d89e205946
6
+ metadata.gz: 0696e17a621be4ca42a054b09ffd1b8d5197915980dd201b84e7a0d18eb20c0562c4a0677ef51d5fd65b85045f1a6936f438244ae263632bf2685be51347a8ae
7
+ data.tar.gz: 25db7317299f35675f6a9b7fbf1aaa98145d9a4e6f57e6f1f04c3e436cbc8a4714c4a73511e5b5ef707e94de65fcb47f1d419a84b537a6bfbc63c21608fba786
@@ -1,3 +1,3 @@
1
1
  module TurbotRunner
2
- VERSION = '0.2.8'
2
+ VERSION = '0.2.9'
3
3
  end
@@ -4,114 +4,413 @@
4
4
  "description": "A gazette notice",
5
5
  "type": "object",
6
6
  "properties": {
7
- "issue": {
8
- "description": "The issue in which the notice is published",
9
- "$ref": "#/definitions/issue"
10
- },
11
- "document": {
12
- "$ref": "#/definitions/document"
13
- },
14
- "uid": {
15
- "description": "An internal, constructed, unique identifier",
16
- "type": "string"
17
- },
18
7
  "identifier": {
19
- "description": "The publisher's identifier for the notice",
8
+ "description": "The publisher's identifier for the notice, which may not be unique",
20
9
  "type": [
21
10
  "integer",
22
11
  "string"
23
12
  ]
24
13
  },
25
- "title": {
26
- "description": "The title of the notice",
27
- "type": "string"
28
- },
29
- "description": {
30
- "description": "A description of the notice",
14
+ "uid": {
15
+ "description": "An internal, constructed, unique identifier, which may be the same as `identifier`",
31
16
  "type": "string"
32
17
  },
33
- "body": {
34
- "description": "The content of the notice",
35
- "$ref": "#/definitions/body"
36
- },
37
18
  "date_published": {
38
19
  "description": "The date of publication of the notice",
39
20
  "type": "string",
40
21
  "format": "date"
41
22
  },
42
- "classification": {
43
- "description": "The type of the notice",
44
- "type": "array",
45
- "items": {
46
- "$ref": "#/definitions/classification"
47
- }
23
+ "summary": {
24
+ "description": "A brief summary of the notice's content",
25
+ "type": "string"
48
26
  },
49
27
  "subjects": {
50
- "description": "The entities that the notice is about",
28
+ "description": "The entities that the notice is primarily about",
51
29
  "type": "array",
52
30
  "items": {
53
31
  "$ref": "includes/entity.json"
54
32
  }
55
33
  },
56
34
  "about": {
57
- "description": "The subject matter of the notice",
35
+ "description": "The content of the notice",
58
36
  "type": "object",
59
- "properties": {
60
- "kind": {
61
- "description": "The class of subject matter",
62
- "type": "string"
37
+ "oneOf": [{
38
+ "properties": {
39
+ "type": {
40
+ "description": "The class of content",
41
+ "type": "string",
42
+ "enum": ["creation of subjects"]
43
+ },
44
+ "classification": {
45
+ "description": "The type of creation",
46
+ "type": "array",
47
+ "items": {
48
+ "$ref": "includes/classification.json"
49
+ }
50
+ },
51
+ "body": {
52
+ "description": "The unstructured prose content",
53
+ "$ref": "#/definitions/body"
54
+ },
55
+ "registration_date": {
56
+ "description": "The date of registration",
57
+ "type": "string",
58
+ "format": "date"
59
+ },
60
+ "activity_start_date": {
61
+ "description": "The date on which activity started",
62
+ "type": "string",
63
+ "format": "date"
64
+ },
65
+ "previous_owners": {
66
+ "description": "The previous owners of the locations",
67
+ "type": "array",
68
+ "items": {
69
+ "$ref": "includes/entity.json"
70
+ }
71
+ },
72
+ "previous_operators": {
73
+ "description": "The previous operators of the locations",
74
+ "type": "array",
75
+ "items": {
76
+ "$ref": "includes/entity.json"
77
+ }
78
+ },
79
+ "locations": {
80
+ "description": "Some locations of the subjects",
81
+ "type": "array",
82
+ "items": {
83
+ "$ref": "#/definitions/location"
84
+ }
85
+ }
63
86
  },
64
- "classification": {
65
- "description": "The type of subject matter",
66
- "type": "array",
67
- "items": {
68
- "$ref": "#/definitions/classification"
87
+ "additionalProperties": false,
88
+ "required": [
89
+ "type"
90
+ ]
91
+ }, {
92
+ "properties": {
93
+ "type": {
94
+ "description": "The class of content",
95
+ "type": "string",
96
+ "enum": ["registration of locations"]
97
+ },
98
+ "classification": {
99
+ "description": "The type of registration",
100
+ "type": "array",
101
+ "items": {
102
+ "$ref": "includes/classification.json"
103
+ }
104
+ },
105
+ "body": {
106
+ "description": "The unstructured prose content",
107
+ "$ref": "#/definitions/body"
108
+ },
109
+ "registration_date": {
110
+ "description": "The date on which the subjects are registered",
111
+ "type": "string",
112
+ "format": "date"
113
+ },
114
+ "activity_start_date": {
115
+ "description": "The date on which activity started",
116
+ "type": "string",
117
+ "format": "date"
118
+ },
119
+ "effective_date": {
120
+ "description": "The date from which the change is in effect",
121
+ "type": "string",
122
+ "format": "date"
123
+ },
124
+ "previous_owners": {
125
+ "description": "The previous owners of the locations",
126
+ "type": "array",
127
+ "items": {
128
+ "$ref": "includes/entity.json"
129
+ }
130
+ },
131
+ "previous_operators": {
132
+ "description": "The previous operators of the locations",
133
+ "type": "array",
134
+ "items": {
135
+ "$ref": "includes/entity.json"
136
+ }
137
+ },
138
+ "locations": {
139
+ "description": "Some locations of the subjects",
140
+ "type": "array",
141
+ "items": {
142
+ "$ref": "#/definitions/location"
143
+ }
69
144
  }
70
145
  },
71
- "body": {
72
- "description": "A description of the item",
73
- "$ref": "#/definitions/body"
74
- }
75
- }
146
+ "additionalProperties": false,
147
+ "required": [
148
+ "type"
149
+ ]
150
+ }, {
151
+ "properties": {
152
+ "type": {
153
+ "description": "The class of content",
154
+ "type": "string",
155
+ "enum": ["sale of locations"]
156
+ },
157
+ "classification": {
158
+ "description": "The type of sale",
159
+ "type": "array",
160
+ "items": {
161
+ "$ref": "includes/classification.json"
162
+ }
163
+ },
164
+ "body": {
165
+ "description": "The unstructured prose content",
166
+ "$ref": "#/definitions/body"
167
+ },
168
+ "registration_date": {
169
+ "description": "The date on which the subjects are registered",
170
+ "type": "string",
171
+ "format": "date"
172
+ },
173
+ "activity_start_date": {
174
+ "description": "The date on which activity started",
175
+ "type": "string",
176
+ "format": "date"
177
+ },
178
+ "effective_date": {
179
+ "description": "The date from which the change is in effect",
180
+ "type": "string",
181
+ "format": "date"
182
+ },
183
+ "publication": {
184
+ "description": "Another publication in which the notice is published",
185
+ "type": "object",
186
+ "properties": {
187
+ "title": {
188
+ "description": "The title of the publication",
189
+ "type": "string"
190
+ },
191
+ "date_published": {
192
+ "description": "The date of publication of the publication",
193
+ "type": "string",
194
+ "format": "date"
195
+ }
196
+ },
197
+ "additionalProperties": false,
198
+ "required": [
199
+ "title",
200
+ "date_published"
201
+ ]
202
+ },
203
+ "opposition": {
204
+ "type": "string"
205
+ },
206
+ "statement_of_accounts": {
207
+ "type": "string"
208
+ },
209
+ "previous_owners": {
210
+ "description": "The previous owners of the locations",
211
+ "type": "array",
212
+ "items": {
213
+ "$ref": "includes/entity.json"
214
+ }
215
+ },
216
+ "previous_operators": {
217
+ "description": "The previous operators of the locations",
218
+ "type": "array",
219
+ "items": {
220
+ "$ref": "includes/entity.json"
221
+ }
222
+ },
223
+ "locations": {
224
+ "description": "Some locations of the subjects",
225
+ "type": "array",
226
+ "items": {
227
+ "$ref": "#/definitions/location"
228
+ }
229
+ }
230
+ },
231
+ "additionalProperties": false,
232
+ "required": [
233
+ "type"
234
+ ]
235
+ }, {
236
+ "properties": {
237
+ "type": {
238
+ "description": "The class of content",
239
+ "type": "string",
240
+ "enum": ["judgment"]
241
+ },
242
+ "classification": {
243
+ "description": "The type of judgment",
244
+ "type": "array",
245
+ "items": {
246
+ "$ref": "includes/classification.json"
247
+ }
248
+ },
249
+ "body": {
250
+ "description": "The unstructured prose content",
251
+ "$ref": "#/definitions/body"
252
+ },
253
+ "date": {
254
+ "description": "The date of the judgment",
255
+ "type": "string",
256
+ "format": "date"
257
+ }
258
+ },
259
+ "additionalProperties": false,
260
+ "required": [
261
+ "type"
262
+ ]
263
+ }, {
264
+ "properties": {
265
+ "type": {
266
+ "description": "The class of content",
267
+ "type": "string",
268
+ "enum": ["other"]
269
+ },
270
+ "body": {
271
+ "description": "The unstructured prose content",
272
+ "$ref": "#/definitions/body"
273
+ },
274
+ "title": {
275
+ "description": "The title of the notice",
276
+ "type": "string"
277
+ }
278
+ },
279
+ "additionalProperties": false,
280
+ "required": [
281
+ "type",
282
+ "body"
283
+ ]
284
+ }, {
285
+ "properties": {
286
+ "type": {
287
+ "description": "The class of content",
288
+ "type": "string",
289
+ "enum": ["modification of subjects"]
290
+ },
291
+ "body": {
292
+ "description": "The unstructured prose content",
293
+ "$ref": "#/definitions/body"
294
+ },
295
+ "activity_start_date": {
296
+ "description": "The date on which activity started",
297
+ "type": "string",
298
+ "format": "date"
299
+ },
300
+ "effective_date": {
301
+ "description": "The date from which the change is in effect",
302
+ "type": "string",
303
+ "format": "date"
304
+ },
305
+ "previous_operators": {
306
+ "description": "The previous operators of the location",
307
+ "type": "array",
308
+ "items": {
309
+ "$ref": "includes/entity.json"
310
+ }
311
+ }
312
+ },
313
+ "additionalProperties": false,
314
+ "required": [
315
+ "type"
316
+ ]
317
+ }, {
318
+ "properties": {
319
+ "type": {
320
+ "description": "The class of content",
321
+ "type": "string",
322
+ "enum": ["striking off of subjects"]
323
+ },
324
+ "body": {
325
+ "description": "The unstructured prose content",
326
+ "$ref": "#/definitions/body"
327
+ },
328
+ "activity_end_date": {
329
+ "description": "The date on which activity ended",
330
+ "type": "string",
331
+ "format": "date"
332
+ }
333
+ },
334
+ "additionalProperties": false,
335
+ "required": [
336
+ "type"
337
+ ]
338
+ }, {
339
+ "properties": {
340
+ "type": {
341
+ "description": "The class of content",
342
+ "type": "string",
343
+ "enum": ["filing"]
344
+ },
345
+ "classification": {
346
+ "description": "The type of filing",
347
+ "type": "array",
348
+ "items": {
349
+ "$ref": "includes/classification.json"
350
+ }
351
+ },
352
+ "body": {
353
+ "description": "The unstructured prose content",
354
+ "$ref": "#/definitions/body"
355
+ },
356
+ "closing_date": {
357
+ "description": "The closing date of the filing",
358
+ "type": "string",
359
+ "format": "date"
360
+ }
361
+ },
362
+ "additionalProperties": false,
363
+ "required": [
364
+ "type"
365
+ ]
366
+ }]
76
367
  },
77
- "url": {
78
- "description": "The URL of the notice",
79
- "type": "string",
80
- "format": "uri"
368
+ "update_action": {
369
+ "description": "If this notice corrects or cancels an earlier notice, a description of the update",
370
+ "$ref": "#/definitions/update_action"
81
371
  },
82
- "media_type": {
83
- "description": "The media type of the URL resource",
84
- "type": "string"
372
+ "issue": {
373
+ "description": "The issue of the gazette in which the notice is published. An issue contains many notices.",
374
+ "$ref": "#/definitions/issue"
375
+ },
376
+ "document": {
377
+ "description": "The section of the issue in which the notice is published. An issue may be split into many documents, each containing many notices.",
378
+ "$ref": "#/definitions/document"
85
379
  },
86
380
  "creator": {
87
- "description": "The entity placing the notice",
381
+ "description": "The entity authoring the notice, for example a notary authoring a notice for a dissolution",
88
382
  "$ref": "includes/entity.json"
89
383
  },
90
384
  "publisher": {
91
- "description": "The publisher of the notice",
385
+ "description": "The publisher of the notice, for example a clerk entering the notice into the gazette",
92
386
  "$ref": "#/definitions/publisher"
93
387
  },
94
- "update_action": {
95
- "description": "Whether this notice corrects or cancels an earlier notice",
96
- "$ref": "#/definitions/update_action"
388
+ "url": {
389
+ "description": "The URL of the notice, at which a human may verify the data",
390
+ "type": "string",
391
+ "format": "uri"
392
+ },
393
+ "media_type": {
394
+ "description": "The media type of the URL resource",
395
+ "type": "string"
97
396
  },
98
397
  "source_url": {
99
- "description": "A URL where this fact may be verified",
398
+ "description": "The URL of the file from which the data was extracted by the scraper",
100
399
  "type": "string",
101
400
  "format": "uri"
102
401
  },
103
402
  "sample_date": {
104
- "description": "A date on which this fact is known to be true",
403
+ "description": "A date on which the data is known to be true",
105
404
  "type": "string",
106
405
  "format": "date"
107
406
  },
108
407
  "retrieved_at": {
109
- "description": "The time at which the notice was retrieved",
408
+ "description": "The time at which the source URL was requested",
110
409
  "type": "string",
111
410
  "format": "date-time"
112
411
  },
113
412
  "confidence": {
114
- "description": "The aggregator's confidence in the accuracy of the data",
413
+ "description": "The scraper's author's confidence in the accuracy of the data",
115
414
  "type": "string",
116
415
  "enum": [
117
416
  "HIGH",
@@ -120,7 +419,7 @@
120
419
  ]
121
420
  },
122
421
  "other_attributes": {
123
- "description": "Any other structured data from the notice ",
422
+ "description": "Any other structured data from the notice",
124
423
  "type": "object"
125
424
  }
126
425
  },
@@ -135,31 +434,51 @@
135
434
  "confidence"
136
435
  ],
137
436
  "definitions": {
138
- "publisher": {
139
- "title": "Publisher",
140
- "description": "A gazette publisher",
437
+ "issue": {
438
+ "title": "Issue",
439
+ "description": "An issue of a gazette",
141
440
  "type": "object",
142
441
  "properties": {
143
- "name": {
144
- "description": "The name of the publisher",
145
- "type": "string"
442
+ "publication": {
443
+ "description": "The gazette of which the issue is a part",
444
+ "$ref": "#/definitions/publication"
146
445
  },
147
446
  "identifier": {
148
- "description": "The identifier of the publisher",
447
+ "description": "The identifier of the issue",
448
+ "type": [
449
+ "string",
450
+ "integer"
451
+ ]
452
+ },
453
+ "title": {
454
+ "description": "The title of the issue",
455
+ "type": "string"
456
+ },
457
+ "edition_id": {
458
+ "description": "The identifier of the edition of which the issue is a part",
149
459
  "type": [
150
460
  "string",
151
461
  "integer"
152
462
  ]
153
463
  },
464
+ "page_range": {
465
+ "description": "The page range of the issue within the edition",
466
+ "type": "string",
467
+ "pattern": "^[0-9]*(-[0-9]*)?$"
468
+ },
154
469
  "url": {
155
- "description": "The URL of the publisher",
470
+ "description": "The URL of the issue",
156
471
  "type": "string",
157
472
  "format": "uri"
473
+ },
474
+ "media_type": {
475
+ "description": "The media type of the URL resource",
476
+ "type": "string"
158
477
  }
159
478
  },
160
479
  "additionalProperties": false,
161
480
  "required": [
162
- "name"
481
+ "publication"
163
482
  ]
164
483
  },
165
484
  "publication": {
@@ -183,6 +502,10 @@
183
502
  "description": "The URL of the gazette",
184
503
  "type": "string",
185
504
  "format": "uri"
505
+ },
506
+ "media_type": {
507
+ "description": "The media type of the URL resource",
508
+ "type": "string"
186
509
  }
187
510
  },
188
511
  "additionalProperties": false,
@@ -190,40 +513,24 @@
190
513
  "publisher"
191
514
  ]
192
515
  },
193
- "issue": {
194
- "title": "Issue",
195
- "description": "An issue of a gazette",
516
+ "publisher": {
517
+ "title": "Publisher",
518
+ "description": "A gazette publisher",
196
519
  "type": "object",
197
520
  "properties": {
198
- "publication": {
199
- "description": "The gazette of which the issue is a part",
200
- "$ref": "#/definitions/publication"
201
- },
202
- "identifier": {
203
- "description": "The identifier of the issue",
204
- "type": [
205
- "string",
206
- "integer"
207
- ]
208
- },
209
- "title": {
210
- "description": "The title of the issue",
521
+ "name": {
522
+ "description": "The name of the publisher",
211
523
  "type": "string"
212
524
  },
213
- "edition_id": {
214
- "description": "The identifier of the edition of which the issue is a part",
525
+ "identifier": {
526
+ "description": "The identifier of the publisher",
215
527
  "type": [
216
- "string",
217
- "integer"
528
+ "integer",
529
+ "string"
218
530
  ]
219
531
  },
220
- "page_range": {
221
- "description": "The page range of the issue",
222
- "type": "string",
223
- "pattern": "^[0-9]*(-[0-9]*)?$"
224
- },
225
532
  "url": {
226
- "description": "The URL of the issue",
533
+ "description": "The URL of the publisher",
227
534
  "type": "string",
228
535
  "format": "uri"
229
536
  },
@@ -234,7 +541,7 @@
234
541
  },
235
542
  "additionalProperties": false,
236
543
  "required": [
237
- "publication"
544
+ "name"
238
545
  ]
239
546
  },
240
547
  "document": {
@@ -243,7 +550,7 @@
243
550
  "type": "object",
244
551
  "properties": {
245
552
  "page_range": {
246
- "description": "The page range of the document",
553
+ "description": "The page range of the document within the issue",
247
554
  "type": "string",
248
555
  "pattern": "^[0-9]*(-[0-9]*)?$"
249
556
  },
@@ -262,24 +569,38 @@
262
569
  "url"
263
570
  ]
264
571
  },
265
- "classification": {
266
- "title": "Classification",
267
- "description": "A classification",
572
+ "location": {
573
+ "title": "Location",
574
+ "description": "A business location",
268
575
  "type": "object",
269
576
  "properties": {
270
- "scheme": {
271
- "description": "The scheme of the classification",
577
+ "type": {
578
+ "description": "The type of location",
579
+ "type": "string",
580
+ "enum": [
581
+ "primary",
582
+ "secondary",
583
+ "other"
584
+ ]
585
+ },
586
+ "name": {
587
+ "description": "The name of the location",
272
588
  "type": "string"
273
589
  },
274
- "value": {
275
- "description": "The classification",
590
+ "activity": {
591
+ "description": "The business activity at the location",
592
+ "type": "string"
593
+ },
594
+ "address": {
595
+ "description": "The address of the location",
596
+ "$ref": "includes/address.json"
597
+ },
598
+ "origin": {
599
+ "description": "The origin of the location as an asset",
276
600
  "type": "string"
277
601
  }
278
602
  },
279
- "additionalProperties": false,
280
- "required": [
281
- "value"
282
- ]
603
+ "additionalProperties": false
283
604
  },
284
605
  "body": {
285
606
  "title": "Body",
@@ -294,6 +615,8 @@
294
615
  "description": "The media type of the content",
295
616
  "type": "string",
296
617
  "enum": [
618
+ "application/pdf",
619
+ "application/xml",
297
620
  "text/plain",
298
621
  "text/html"
299
622
  ]
@@ -319,7 +642,50 @@
319
642
  },
320
643
  "object": {
321
644
  "description": "The object that was changed",
322
- "type": "object"
645
+ "type": "object",
646
+ "properties": {
647
+ "identifier": {
648
+ "description": "The publisher's identifier for the notice, which may not be unique",
649
+ "type": [
650
+ "integer",
651
+ "string"
652
+ ]
653
+ },
654
+ "date_published": {
655
+ "description": "The date of publication of the notice",
656
+ "type": "string",
657
+ "format": "date"
658
+ },
659
+ "issue": {
660
+ "description": "The issue of the gazette in which the notice is published. An issue contains many notices.",
661
+ "type": "object",
662
+ "properties": {
663
+ "identifier": {
664
+ "description": "The identifier of the issue",
665
+ "type": [
666
+ "string",
667
+ "integer"
668
+ ]
669
+ },
670
+ "edition_id": {
671
+ "description": "The identifier of the edition of which the issue is a part",
672
+ "type": [
673
+ "string",
674
+ "integer"
675
+ ]
676
+ }
677
+ },
678
+ "additionalProperties": false,
679
+ "required": [
680
+ "identifier"
681
+ ]
682
+ }
683
+ },
684
+ "additionalProperties": false,
685
+ "required": [
686
+ "issue",
687
+ "identifier"
688
+ ]
323
689
  }
324
690
  },
325
691
  "additionalProperties": false,
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "title": "Classification",
4
+ "description": "A classification from a code list",
5
+ "type": "object",
6
+ "properties": {
7
+ "code_scheme_id": {
8
+ "description": "The scheme of the classification",
9
+ "type": "string"
10
+ },
11
+ "code": {
12
+ "description": "The classification",
13
+ "type": "string"
14
+ },
15
+ "name": {
16
+ "description": "A title or description of the classification, especially if the value is a code",
17
+ "type": "string"
18
+ }
19
+ },
20
+ "additionalProperties": false,
21
+ "required": [
22
+ "code",
23
+ "code_scheme_id"
24
+ ]
25
+ }
@@ -30,7 +30,8 @@
30
30
  },
31
31
  "date": {
32
32
  "description": "The date on which the payment was made",
33
- "type": "date"
33
+ "type": "string",
34
+ "format": "date"
34
35
  },
35
36
  "transaction_number": {
36
37
  "description": "The unique identifier for the transaction, scoped to this bot",
@@ -44,14 +45,14 @@
44
45
  "description": "A url from which more details can be seen (may be the same as the source_url)",
45
46
  "type": [
46
47
  "string",
47
- null
48
+ "null"
48
49
  ]
49
50
  },
50
51
  "description": {
51
52
  "description": "The description of the transaction as given in the raw data",
52
53
  "type": [
53
54
  "string",
54
- null
55
+ "null"
55
56
  ]
56
57
  },
57
58
  "expense_type": {
@@ -66,7 +67,7 @@
66
67
  "description": "category (in words) of the expenditure",
67
68
  "type": [
68
69
  "string",
69
- null
70
+ "null"
70
71
  ]
71
72
  },
72
73
  "entity_name": {
@@ -77,21 +78,21 @@
77
78
  "description": "A unique URL (ideally a dereferencable URI) for the government entity",
78
79
  "type": [
79
80
  "string",
80
- null
81
+ "null"
81
82
  ]
82
83
  },
83
84
  "department_name": {
84
85
  "description": "The name of the government department which the entity belongs to (if relevant), e.g. Department of Health",
85
86
  "type": [
86
87
  "string",
87
- null
88
+ "null"
88
89
  ]
89
90
  },
90
91
  "csv_line_number": {
91
92
  "description": "If the source for the data is a CSV file, you can optionally include the line number of the CSV from which this data was retrieved",
92
93
  "type": [
93
94
  "string",
94
- null
95
+ "null"
95
96
  ]
96
97
  }
97
98
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-04/schema#",
3
- "description": "An industry code from a standard code list (e.g. NAICS 2007 or NACE 2)",
3
+ "description": "An industry code from a standard code list (e.g. NAICS 2007 or NACE 2). This schema is a sub-schema of Classification.",
4
4
  "type": "object",
5
5
  "properties": {
6
6
  "name": {
@@ -35,7 +35,7 @@
35
35
  "description": "Licence number or code (can be null)",
36
36
  "type": [
37
37
  "string",
38
- null
38
+ "null"
39
39
  ]
40
40
  },
41
41
  "jurisdiction_classification": {
@@ -54,6 +54,10 @@
54
54
  "items": {
55
55
  "$ref": "alternative_name.json"
56
56
  }
57
+ },
58
+ "nationality": {
59
+ "description": "The person's nationality",
60
+ "type": "string"
57
61
  }
58
62
  },
59
63
  "required": [
@@ -2,9 +2,6 @@
2
2
  "$schema": "http://json-schema.org/draft-04/schema#",
3
3
  "type": "object",
4
4
  "description": "A parcel of shares in a company",
5
- "required": [
6
-
7
- ],
8
5
  "properties": {
9
6
  "number_of_shares": {
10
7
  "description": "Number of shares, if known",
@@ -18,13 +15,13 @@
18
15
  },
19
16
  "percentage_of_shares_min": {
20
17
  "description": "Minimum percentage of shares (if for example a band of percentage is given)",
21
- "type": ["number",null],
18
+ "type": ["number","null"],
22
19
  "maximum": 100,
23
20
  "minimum": 0
24
21
  },
25
22
  "percentage_of_shares_max": {
26
23
  "description": "Maximum percentage of shares (if for example a band of percentage is given)",
27
- "type": ["number",null],
24
+ "type": ["number","null"],
28
25
  "maximum": 100,
29
26
  "minimum": 0
30
27
  },
@@ -36,13 +33,13 @@
36
33
  },
37
34
  "voting_percentage_min": {
38
35
  "description": "Minimum percentage of votes (if for example a band of votes is given)",
39
- "type": ["number",null],
36
+ "type": ["number","null"],
40
37
  "maximum": 100,
41
38
  "minimum": 0
42
39
  },
43
40
  "voting_percentage_max": {
44
41
  "description": "Maximum percentage of votes (if for example a band of votes is given)",
45
- "type": ["number",null],
42
+ "type": ["number","null"],
46
43
  "maximum": 100,
47
44
  "minimum": 0
48
45
  },
@@ -43,7 +43,8 @@
43
43
  },
44
44
  "date": {
45
45
  "description": "The date on which the payment was made",
46
- "type": "date"
46
+ "type": "string",
47
+ "format": "date"
47
48
  },
48
49
  "transaction_number": {
49
50
  "description": "The unique identifier for the transaction, scoped to this bot",
@@ -57,14 +58,14 @@
57
58
  "description": "A url from which more details can be seen (may be the same as the source_url)",
58
59
  "type": [
59
60
  "string",
60
- null
61
+ "null"
61
62
  ]
62
63
  },
63
64
  "description": {
64
65
  "description": "The description of the transaction as given in the raw data",
65
66
  "type": [
66
67
  "string",
67
- null
68
+ "null"
68
69
  ]
69
70
  },
70
71
  "expense_type": {
@@ -79,7 +80,7 @@
79
80
  "description": "category (in words) of the expenditure",
80
81
  "type": [
81
82
  "string",
82
- null
83
+ "null"
83
84
  ]
84
85
  },
85
86
  "entity_name": {
@@ -90,21 +91,21 @@
90
91
  "description": "A unique URL (ideally a dereferencable URI) for the government entity",
91
92
  "type": [
92
93
  "string",
93
- null
94
+ "null"
94
95
  ]
95
96
  },
96
97
  "department_name": {
97
98
  "description": "The name of the government department which the entity belongs to (if relevant), e.g. Department of Health",
98
99
  "type": [
99
100
  "string",
100
- null
101
+ "null"
101
102
  ]
102
103
  },
103
104
  "csv_line_number": {
104
105
  "description": "If the source for the data is a CSV file, you can optionally include the line number of the CSV from which this data was retrieved",
105
106
  "type": [
106
107
  "string",
107
- null
108
+ "null"
108
109
  ]
109
110
  }
110
111
  },
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbot-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenCorporates
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2016-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -64,6 +64,7 @@ files:
64
64
  - schema/schemas/includes/accounts_element.json
65
65
  - schema/schemas/includes/address.json
66
66
  - schema/schemas/includes/alternative_name.json
67
+ - schema/schemas/includes/classification.json
67
68
  - schema/schemas/includes/company-for-nesting.json
68
69
  - schema/schemas/includes/company.json
69
70
  - schema/schemas/includes/entity.json
@@ -171,3 +172,4 @@ signing_key:
171
172
  specification_version: 4
172
173
  summary: Utilities for running bots with Turbot
173
174
  test_files: []
175
+ has_rdoc: