datex2-xml2json 0.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. datex2_xml2json/__init__.py +0 -0
  2. datex2_xml2json/json_validator.py +36 -0
  3. datex2_xml2json/merge.py +39 -0
  4. datex2_xml2json/schema/Baustellen-4-00-00.sch +7 -0
  5. datex2_xml2json/schema/DATEXIISchema_2_2_0.xsd +4707 -0
  6. datex2_xml2json/schema/DATEXIISchema_2_2_3.xsd +6783 -0
  7. datex2_xml2json/schema/DATEXII_3.7_Profile/.DS_Store +0 -0
  8. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_AfirEnergyInfrastructure.json +2455 -0
  9. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_AfirFacilities.json +2809 -0
  10. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_Common.json +3651 -0
  11. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_CommonExtension.json +919 -0
  12. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_ControlledZone.json +1070 -0
  13. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_D2Payload.json +11 -0
  14. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_EnergyInfrastructure.json +1924 -0
  15. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_Facilities.json +2858 -0
  16. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_FaultAndStatus.json +1415 -0
  17. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_LocationExtension.json +186 -0
  18. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_LocationReferencing.json +4847 -0
  19. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_Parking.json +5314 -0
  20. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_ReroutingManagementEnhanced.json +1160 -0
  21. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_RoadTrafficData.json +1938 -0
  22. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_Situation.json +8040 -0
  23. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_TrafficManagementPlan.json +2358 -0
  24. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_TrafficRegulation.json +3377 -0
  25. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_UrbanExtensions.json +194 -0
  26. datex2_xml2json/schema/DATEXII_3.7_Profile/DATEXII_3_Vms.json +2544 -0
  27. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/.DS_Store +0 -0
  28. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_AfirEnergyInfrastructure.xsd +2102 -0
  29. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_AfirFacilities.xsd +2060 -0
  30. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_Common.xsd +4152 -0
  31. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_CommonExtension.xsd +1102 -0
  32. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_ControlledZone.xsd +601 -0
  33. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_D2Payload.xsd +280 -0
  34. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_EnergyInfrastructure.xsd +1761 -0
  35. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_Facilities.xsd +2037 -0
  36. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_FaultAndStatus.xsd +1076 -0
  37. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_LocationExtension.xsd +196 -0
  38. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_LocationReferencing.xsd +4132 -0
  39. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_Parking.xsd +4025 -0
  40. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_ReroutingManagementEnhanced.xsd +997 -0
  41. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_RoadTrafficData.xsd +1273 -0
  42. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_Situation.xsd +5777 -0
  43. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_TrafficManagementPlan.xsd +1184 -0
  44. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_TrafficRegulation.xsd +2611 -0
  45. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_UrbanExtensions.xsd +148 -0
  46. datex2_xml2json/schema/DATEXII_3.7_Profile/xml/DATEXII_3_Vms.xsd +2290 -0
  47. datex2_xml2json/schema/MDM_BaustellenInfoDigitalRoadworksProfile_04-03-00.xsd +2401 -0
  48. datex2_xml2json/schema/MDM_Datenmodell_Baustellen_04-00-00.xsd +3232 -0
  49. datex2_xml2json/schema/cifs_schema.json +161 -0
  50. datex2_xml2json/transform/.DS_Store +0 -0
  51. datex2_xml2json/transform/__init__.py +13 -0
  52. datex2_xml2json/transform/base.py +79 -0
  53. datex2_xml2json/transform/cifs_transformer.py +275 -0
  54. datex2_xml2json/transform/geojson_geometry_transformer.py +159 -0
  55. datex2_xml2json/transform/geoparquet_transformer.py +160 -0
  56. datex2_xml2json/transform/jsonata_transformer.py +100 -0
  57. datex2_xml2json/transform/roads_regio_transformer.py +88 -0
  58. datex2_xml2json/transform/source_setter.py +42 -0
  59. datex2_xml2json/transform/transformation_rules.py +526 -0
  60. datex2_xml2json/transformer.py +197 -0
  61. datex2_xml2json/util.py +141 -0
  62. datex2_xml2json-0.0.1.dist-info/METADATA +176 -0
  63. datex2_xml2json-0.0.1.dist-info/RECORD +65 -0
  64. datex2_xml2json-0.0.1.dist-info/WHEEL +4 -0
  65. datex2_xml2json-0.0.1.dist-info/licenses/LICENSE.md +179 -0
@@ -0,0 +1,194 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$defs": {
4
+ "AccidentExtendedUrban": {
5
+ "title": "AccidentExtendedUrban",
6
+ "description": "Extension to accident class.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "groupOfNonVehicularRoadUsersInvolved": {
11
+ "title": "groupOfNonVehicularRoadUsersInvolved",
12
+ "type": "array",
13
+ "items": {
14
+ "$ref": "DATEXII_3_UrbanExtensions.json#/$defs/GroupOfNonVehicularRoadUsersInvolved"
15
+ },
16
+ "minItems": 0
17
+ }
18
+ }
19
+ },
20
+ "ClassifiedDelay": {
21
+ "title": "ClassifiedDelay",
22
+ "description": "A delay valid for vehicles with specific characteristics.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "properties": {
26
+ "delays": {
27
+ "title": "delays",
28
+ "$ref": "DATEXII_3_Situation.json#/$defs/Delays"
29
+ },
30
+ "vehicleCharacteristics": {
31
+ "title": "vehicleCharacteristics",
32
+ "$ref": "DATEXII_3_Common.json#/$defs/VehicleCharacteristics"
33
+ },
34
+ "ubxClassifiedDelayExtensionG": {
35
+ "title": "ubxClassifiedDelayExtensionG",
36
+ "$ref": "DATEXII_3_Common.json#/$defs/ExtensionTypeG"
37
+ }
38
+ },
39
+ "required": [
40
+ "vehicleCharacteristics",
41
+ "delays"
42
+ ]
43
+ },
44
+ "GroupOfNonVehicularRoadUsersInvolved": {
45
+ "title": "GroupOfNonVehicularRoadUsersInvolved",
46
+ "description": "Group of involved road users who are not users of vehicles (e.g. pedestrians).",
47
+ "type": "object",
48
+ "additionalProperties": false,
49
+ "properties": {
50
+ "numberOfNonVehicularRoadUsers": {
51
+ "title": "numberOfNonVehicularRoadUsers",
52
+ "description": "The number of non-vehicular road users.",
53
+ "$ref": "DATEXII_3_Common.json#/$defs/NonNegativeInteger"
54
+ },
55
+ "injuryStatusType": {
56
+ "title": "injuryStatusType",
57
+ "description": "The injury status of road users who are not users of vehicles involved.",
58
+ "$ref": "DATEXII_3_Situation.json#/$defs/InjuryStatusTypeEnumG"
59
+ },
60
+ "nonVehicularRoadUsers": {
61
+ "title": "nonVehicularRoadUsers",
62
+ "$ref": "DATEXII_3_UrbanExtensions.json#/$defs/NonVehicularRoadUsers"
63
+ },
64
+ "ubxGroupOfNonVehicularRoadUsersInvolvedExtensionG": {
65
+ "title": "ubxGroupOfNonVehicularRoadUsersInvolvedExtensionG",
66
+ "$ref": "DATEXII_3_Common.json#/$defs/ExtensionTypeG"
67
+ }
68
+ }
69
+ },
70
+ "ImpactExtendedUrban": {
71
+ "title": "ImpactExtendedUrban",
72
+ "description": "Extension for impact class.",
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "properties": {
76
+ "classifiedDelay": {
77
+ "title": "classifiedDelay",
78
+ "type": "array",
79
+ "items": {
80
+ "$ref": "DATEXII_3_UrbanExtensions.json#/$defs/ClassifiedDelay"
81
+ },
82
+ "minItems": 0
83
+ }
84
+ }
85
+ },
86
+ "NetworkManagementExtendedUrban": {
87
+ "title": "NetworkManagementExtendedUrban",
88
+ "description": "Extension for network management.",
89
+ "type": "object",
90
+ "additionalProperties": false,
91
+ "properties": {
92
+ "forNonMotorisedRoadUsers": {
93
+ "title": "forNonMotorisedRoadUsers",
94
+ "$ref": "DATEXII_3_UrbanExtensions.json#/$defs/NonVehicularRoadUsers"
95
+ }
96
+ }
97
+ },
98
+ "NonVehicularRoadUsers": {
99
+ "title": "NonVehicularRoadUsers",
100
+ "description": "Road users who are not users of vehicles (e.g. pedestrians)",
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "properties": {
104
+ "nonVehicularRoadUser": {
105
+ "title": "nonVehicularRoadUser",
106
+ "description": "A road user that does not use a vehicle.",
107
+ "type": "array",
108
+ "items": {
109
+ "$ref": "DATEXII_3_UrbanExtensions.json#/$defs/NonVehicularRoadUserTypeEnumG"
110
+ },
111
+ "minItems": 1
112
+ },
113
+ "ubxNonVehicularRoadUsersExtensionG": {
114
+ "title": "ubxNonVehicularRoadUsersExtensionG",
115
+ "$ref": "DATEXII_3_Common.json#/$defs/ExtensionTypeG"
116
+ }
117
+ },
118
+ "required": [
119
+ "nonVehicularRoadUser"
120
+ ]
121
+ },
122
+ "NonVehicularRoadUserTypeEnum": {
123
+ "title": "NonVehicularRoadUserTypeEnum",
124
+ "description": "Road users that do not use a vehicle.",
125
+ "type": "string",
126
+ "enum": [
127
+ "pedestrian",
128
+ "skater",
129
+ "animalUnderGuidance",
130
+ "other",
131
+ "extendedG"
132
+ ]
133
+ },
134
+ "NonVehicularRoadUserTypeEnumG": {
135
+ "title": "NonVehicularRoadUserTypeEnumG",
136
+ "type": "object",
137
+ "additionalProperties": false,
138
+ "properties": {
139
+ "value": {
140
+ "$ref": "DATEXII_3_UrbanExtensions.json#/$defs/NonVehicularRoadUserTypeEnum"
141
+ },
142
+ "extendedValueG": {
143
+ "type": "string"
144
+ }
145
+ },
146
+ "required": [
147
+ "value"
148
+ ]
149
+ },
150
+ "StreetWorks": {
151
+ "title": "StreetWorks",
152
+ "description": "Non-highway related infrastructure or maintenance works on or close to the road.",
153
+ "type": "object",
154
+ "additionalProperties": false,
155
+ "properties": {
156
+ "streetWorksType": {
157
+ "title": "streetWorksType",
158
+ "description": "The type of the non-highway related infrastructure or maintenance works on or close to the road.",
159
+ "$ref": "DATEXII_3_UrbanExtensions.json#/$defs/StreetWorksTypeEnumG"
160
+ }
161
+ },
162
+ "required": [
163
+ "streetWorksType"
164
+ ]
165
+ },
166
+ "StreetWorksTypeEnum": {
167
+ "title": "StreetWorksTypeEnum",
168
+ "description": "Types of non-highway related infrastructure or maintenance works on or close to the road.",
169
+ "type": "string",
170
+ "enum": [
171
+ "buildingWork",
172
+ "trenchingWork",
173
+ "utilityWork",
174
+ "extendedG"
175
+ ]
176
+ },
177
+ "StreetWorksTypeEnumG": {
178
+ "title": "StreetWorksTypeEnumG",
179
+ "type": "object",
180
+ "additionalProperties": false,
181
+ "properties": {
182
+ "value": {
183
+ "$ref": "DATEXII_3_UrbanExtensions.json#/$defs/StreetWorksTypeEnum"
184
+ },
185
+ "extendedValueG": {
186
+ "type": "string"
187
+ }
188
+ },
189
+ "required": [
190
+ "value"
191
+ ]
192
+ }
193
+ }
194
+ }