-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.yml
698 lines (698 loc) · 18 KB
/
schema.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
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
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
buckets:
accidents:
collections:
accident_type:
data:
attachment:
enabled: false
required: false
cache_expires: 0
displayFields:
- key
- title
id: accident_type
schema:
properties:
igvp_subject:
description: Some internal heading of the police
title: IGVP Subject
type: string
key:
title: Key
type: integer
measures:
description: A list of appropriate measures when this category occurs
title: Measured
type: string
meta_category:
description: Higher level category
title: Meta Category
type: string
most_serious_consequence:
description: Usually describes criteria that need to be fulfilled
for qualify as this category.
title: Most serious consequence
type: string
title:
description: A brief description of the category.
title: Title
type: string
title_brief:
description: A label which makes sense to display later in the editor
title: Brief title
type: string
type: object
sort: key
uiSchema:
content:
ui:widget: textarea
ui:order:
- key
- title
- most_serious_consequence
- igvp_subject
- measures
- meta_category
- title_brief
permissions:
read:
- account:admin
- system.Authenticated
- system.Everyone
record:create:
- account:admin
write:
- account:admin
accident_cause:
data:
attachment:
enabled: false
required: false
cache_expires: 0
displayFields:
- key
- description
id: accident_cause
schema:
properties:
category:
title: Category
type: string
description:
title: Description
type: string
key:
title: Key
type: integer
subcategory:
title: Subcategory
type: string
type: object
sort: -last_modified
uiSchema:
content:
ui:widget: textarea
ui:order:
- key
- subcategory
- category
- description
permissions:
write:
- account:admin
accident_kind:
data:
attachment:
enabled: false
required: false
cache_expires: 0
displayFields:
- title
id: accident_kind
schema:
properties:
description:
title: Description
type: string
key:
title: Key
type: integer
title:
title: Title
type: string
type: object
sort: -last_modified
uiSchema:
content:
ui:widget: textarea
ui:order:
- title
- key
- description
permissions:
write:
- account:admin
accident_category:
data:
attachment:
enabled: false
required: false
cache_expires: 0
displayFields:
- title
id: accident_category
schema:
properties:
code:
title: Code
type: string
color:
title: Color
type: string
description:
title: Description
type: string
key:
title: Key
type: integer
title:
title: Title
type: string
type: object
sort: -last_modified
uiSchema:
content:
ui:widget: textarea
ui:order:
- title
- key
- description
- color
- code
permissions:
write:
- account:admin
accidents_raw:
data:
attachment:
enabled: false
required: false
cache_expires: 0
displayFields:
- source_file
- source_row_number
- place
- place_near
id: accidents_raw
schema:
properties:
accident_category:
type:
- integer
- 'null'
accident_type:
type:
- integer
- 'null'
alcoholized:
type:
- string
- 'null'
bicycle:
type:
- integer
- 'null'
car:
type:
- integer
- 'null'
cause_02:
type:
- string
- 'null'
cause_1_4:
type:
- integer
- 'null'
cause_2:
type:
- integer
- 'null'
cause_3:
type:
- integer
- 'null'
cause_other:
type:
- integer
- 'null'
date:
format: date
pattern: ^([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))$
type:
- string
- 'null'
day_of_week:
type:
- string
- 'null'
deaths:
type:
- integer
- 'null'
extra_urban:
type:
- string
- 'null'
helmet:
type:
- string
- 'null'
hit_and_run:
type:
- string
- 'null'
import_timestamp:
type: string
light_conditions:
type:
- string
- 'null'
lorry:
type:
- integer
- 'null'
moped:
type:
- integer
- 'null'
motorcycle:
type:
- integer
- 'null'
number_of_participants:
type:
- integer
- 'null'
omnibus:
type:
- integer
- 'null'
other_road_user:
type:
- integer
- 'null'
participants_01:
type:
- integer
- 'null'
participants_01_registration:
type:
- string
- 'null'
participants_02:
type:
- integer
- 'null'
participants_02_registration:
type:
- string
- 'null'
participants_18_24:
type:
- integer
- 'null'
participants_age_01:
type:
- integer
- 'null'
participants_age_02:
type:
- integer
- 'null'
participants_child:
type:
- string
- 'null'
participants_senior:
type:
- integer
- 'null'
pedestrian:
type:
- integer
- 'null'
place:
type:
- string
- 'null'
place_near:
type:
- string
- 'null'
road_condition:
type:
- string
- 'null'
seriously_injured:
type:
- integer
- 'null'
slightly_injured:
type:
- integer
- 'null'
small_moped:
type:
- integer
- 'null'
source_file:
type: string
source_file_hash:
type: string
source_row_number:
minimum: 1
type: integer
time_of_day:
format: time
pattern: ^(?:[01]\d|2[0123]):(?:[012345]\d):(?:[012345]\d)|^(?![\s\S])$
type:
- string
- 'null'
urban:
type:
- string
- 'null'
required:
- source_file
- import_timestamp
- source_file_hash
- source_row_number
type: object
sort: source_file
uiSchema:
accident_category:
ui:readonly: true
accident_type:
ui:readonly: true
alcoholized:
ui:readonly: true
bicycle:
ui:readonly: true
car:
ui:readonly: true
cause_02:
ui:readonly: true
cause_1_4:
ui:readonly: true
cause_2:
ui:readonly: true
cause_3:
ui:readonly: true
cause_other:
ui:readonly: true
date:
ui:readonly: true
ui:widget: text
day_of_week:
ui:readonly: true
deaths:
ui:readonly: true
extra_urban:
ui:readonly: true
helmet:
ui:readonly: true
hit_and_run:
ui:readonly: true
import_timestamp:
ui:readonly: true
light_conditions:
ui:readonly: true
lorry:
ui:readonly: true
moped:
ui:readonly: true
motorcycle:
ui:readonly: true
number_of_participants:
ui:readonly: true
omnibus:
ui:readonly: true
other_road_user:
ui:readonly: true
participants_01:
ui:readonly: true
participants_01_registration:
ui:readonly: true
participants_02:
ui:readonly: true
participants_02_registration:
ui:readonly: true
participants_18_24:
ui:readonly: true
participants_age_01:
ui:readonly: true
participants_age_02:
ui:readonly: true
participants_child:
ui:readonly: true
participants_senior:
ui:readonly: true
pedestrian:
ui:readonly: true
place:
ui:readonly: true
place_near:
ui:readonly: true
road_condition:
ui:readonly: true
seriously_injured:
ui:readonly: true
slightly_injured:
ui:readonly: true
small_moped:
ui:readonly: true
source_file:
ui:readonly: true
source_file_hash:
ui:readonly: true
source_row_number:
ui:readonly: true
time_of_day:
ui:readonly: true
ui:widget: text
ui:order:
- source_file
- source_row_number
- place
- place_near
- day_of_week
- date
- time_of_day
- accident_category
- hit_and_run
- urban
- extra_urban
- deaths
- seriously_injured
- slightly_injured
- number_of_participants
- pedestrian
- bicycle
- helmet
- small_moped
- moped
- motorcycle
- car
- lorry
- omnibus
- other_road_user
- participants_01
- participants_01_registration
- participants_02
- participants_02_registration
- alcoholized
- accident_type
- cause_1_4
- cause_2
- cause_3
- cause_other
- cause_02
- light_conditions
- road_condition
- participants_child
- participants_18_24
- participants_senior
- participants_age_01
- participants_age_02
- source_file_hash
- import_timestamp
urban:
ui:readonly: true
permissions:
read:
- account:admin
- system.Authenticated
- system.Everyone
record:create:
- account:admin
write:
- account:admin
geometries:
data:
attachment:
enabled: false
required: false
cache_expires: 0
displayFields:
- accident_id
- used_geocoder
- comment
- lat
- lon
id: geometries
schema:
properties:
accident_id:
type: string
comment:
type: string
geocoded_timestamp:
type: string
lat:
maximum: 52.5
minimum: 51.5
type: number
lon:
maximum: 7.9
minimum: 7.2
type: number
used_geocoder:
type: string
used_query:
type: string
required:
- lat
- lon
- geocoded_timestamp
- accident_id
type: object
sort: -accident_id
uiSchema:
content:
ui:widget: textarea
ui:order:
- accident_id
- used_geocoder
- comment
- lat
- lon
- geocoded_timestamp
- used_query
permissions:
read:
- account:admin
- system.Authenticated
- system.Everyone
record:create:
- account:admin
write:
- account:admin
geometries_corrections:
data:
attachment:
enabled: false
required: false
cache_expires: 0
displayFields:
- bogus
- timestamp
- accident_id
- geometry_id
id: geometries_corrections
schema:
properties:
accident_id:
type: string
bogus:
type: boolean
comment:
type: string
geometry_id:
type: string
lat:
maximum: 52.5
minimum: 51.5
type:
- number
- 'null'
lon:
maximum: 7.9
minimum: 7.2
type:
- number
- 'null'
timestamp:
type: string
type: object
sort: -last_modified
uiSchema:
content:
ui:widget: textarea
ui:order:
- accident_id
- geometry_id
- lat
- lon
- comment
- bogus
- timestamp
permissions:
read:
- account:Anonym
- account:admin
- system.Authenticated
- system.Everyone
record:create:
- account:Anonym
- account:admin
- system.Authenticated
write:
- account:admin
traffic_involvement:
data:
attachment:
enabled: false
required: false
cache_expires: 0
displayFields:
- key
- title
id: traffic_involvement
schema:
properties:
category:
description: A category this road user belongs to. Does not correspond
to accident categories.
title: Category
type: string
description:
description: A description of the road user.
title: Description
type: string
key:
title: Key
type: integer
title:
description: Short title
title: Title
type: string
type: object
sort: key
uiSchema:
content:
ui:widget: textarea
ui:order:
- key
- title
- description
- category
permissions:
read:
- account:admin
- system.Authenticated
- system.Everyone
record:create:
- account:admin
write:
- account:admin
data:
id: accidents
groups: {}
permissions:
read:
- account:admin
- system.Authenticated
- system.Everyone
write:
- account:admin