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,186 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$defs": {
4
+ "Address": {
5
+ "title": "Address",
6
+ "description": "A street oriented addressing structure supporting delivery",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "postcode": {
11
+ "title": "postcode",
12
+ "description": "Postcode or postal code for the address.",
13
+ "$ref": "DATEXII_3_Common.json#/$defs/String"
14
+ },
15
+ "city": {
16
+ "title": "city",
17
+ "description": "Postal city name of the address.",
18
+ "$ref": "DATEXII_3_Common.json#/$defs/MultilingualString"
19
+ },
20
+ "countryCode": {
21
+ "title": "countryCode",
22
+ "description": "EN ISO 3166-1 two-character country code.",
23
+ "$ref": "DATEXII_3_Common.json#/$defs/CountryCode"
24
+ },
25
+ "addressLine": {
26
+ "title": "addressLine",
27
+ "type": "array",
28
+ "items": {
29
+ "$ref": "DATEXII_3_LocationExtension.json#/$defs/AddressLine"
30
+ },
31
+ "minItems": 0
32
+ },
33
+ "locxAddressExtensionG": {
34
+ "title": "locxAddressExtensionG",
35
+ "$ref": "DATEXII_3_Common.json#/$defs/ExtensionTypeG"
36
+ }
37
+ }
38
+ },
39
+ "AddressLine": {
40
+ "title": "AddressLine",
41
+ "description": "A class defining information concerning one line of a postal address.",
42
+ "type": "object",
43
+ "additionalProperties": false,
44
+ "properties": {
45
+ "order": {
46
+ "title": "order",
47
+ "description": "The sequence order that the address line element should be displayed in",
48
+ "$ref": "DATEXII_3_Common.json#/$defs/NonNegativeInteger"
49
+ },
50
+ "type": {
51
+ "title": "type",
52
+ "description": "The type for the address line element",
53
+ "$ref": "DATEXII_3_LocationExtension.json#/$defs/AddressLineTypeEnumG"
54
+ },
55
+ "text": {
56
+ "title": "text",
57
+ "description": "Free-text description for the address line element",
58
+ "$ref": "DATEXII_3_Common.json#/$defs/MultilingualString"
59
+ },
60
+ "locxAddressLineExtensionG": {
61
+ "title": "locxAddressLineExtensionG",
62
+ "$ref": "DATEXII_3_Common.json#/$defs/ExtensionTypeG"
63
+ }
64
+ },
65
+ "required": [
66
+ "order",
67
+ "text",
68
+ "type"
69
+ ]
70
+ },
71
+ "AddressLineTypeEnum": {
72
+ "title": "AddressLineTypeEnum",
73
+ "description": "A list of supported address line types.",
74
+ "type": "string",
75
+ "enum": [
76
+ "apartment",
77
+ "building",
78
+ "poBox",
79
+ "unit",
80
+ "region",
81
+ "town",
82
+ "districtTerritory",
83
+ "floor",
84
+ "street",
85
+ "houseNumber",
86
+ "generalTextLine",
87
+ "extendedG"
88
+ ]
89
+ },
90
+ "AddressLineTypeEnumG": {
91
+ "title": "AddressLineTypeEnumG",
92
+ "type": "object",
93
+ "additionalProperties": false,
94
+ "properties": {
95
+ "value": {
96
+ "$ref": "DATEXII_3_LocationExtension.json#/$defs/AddressLineTypeEnum"
97
+ },
98
+ "extendedValueG": {
99
+ "type": "string"
100
+ }
101
+ },
102
+ "required": [
103
+ "value"
104
+ ]
105
+ },
106
+ "FacilityLocation": {
107
+ "title": "FacilityLocation",
108
+ "description": "A location for which a time zone and an address can be specified",
109
+ "type": "object",
110
+ "additionalProperties": false,
111
+ "properties": {
112
+ "timeZone": {
113
+ "title": "timeZone",
114
+ "description": "The time zone the facility is located in.",
115
+ "$ref": "DATEXII_3_Facilities.json#/$defs/TimeZone"
116
+ },
117
+ "address": {
118
+ "title": "address",
119
+ "description": "An address specification following ISO 19160-4.",
120
+ "$ref": "DATEXII_3_LocationExtension.json#/$defs/Address"
121
+ }
122
+ }
123
+ },
124
+ "HouseNumberSideEnum": {
125
+ "title": "HouseNumberSideEnum",
126
+ "description": "Specifies the side of the house number (even, odd).",
127
+ "type": "string",
128
+ "enum": [
129
+ "even",
130
+ "odd",
131
+ "extendedG"
132
+ ]
133
+ },
134
+ "HouseNumberSideEnumG": {
135
+ "title": "HouseNumberSideEnumG",
136
+ "type": "object",
137
+ "additionalProperties": false,
138
+ "properties": {
139
+ "value": {
140
+ "$ref": "DATEXII_3_LocationExtension.json#/$defs/HouseNumberSideEnum"
141
+ },
142
+ "extendedValueG": {
143
+ "type": "string"
144
+ }
145
+ },
146
+ "required": [
147
+ "value"
148
+ ]
149
+ },
150
+ "NamedAreaCode": {
151
+ "title": "NamedAreaCode",
152
+ "description": "Type for a short numeric or alphanumeric code identifying an area.",
153
+ "$ref": "DATEXII_3_Common.json#/$defs/String",
154
+ "maxLength": 8
155
+ },
156
+ "NamedAreaExtended": {
157
+ "title": "NamedAreaExtended",
158
+ "description": "A named area with an additional code (that is not an ISO subdivision code)",
159
+ "type": "object",
160
+ "additionalProperties": false,
161
+ "properties": {
162
+ "namedAreaCode": {
163
+ "title": "namedAreaCode",
164
+ "description": "Code for the named area, such a postal code or other code assigned for administration.",
165
+ "$ref": "DATEXII_3_LocationExtension.json#/$defs/NamedAreaCode"
166
+ }
167
+ },
168
+ "required": [
169
+ "namedAreaCode"
170
+ ]
171
+ },
172
+ "SupplementaryPositionalDescriptionExtended": {
173
+ "title": "SupplementaryPositionalDescriptionExtended",
174
+ "description": "Extension of class SupplementaryPositionalDescription.",
175
+ "type": "object",
176
+ "additionalProperties": false,
177
+ "properties": {
178
+ "houseNumberSide": {
179
+ "title": "houseNumberSide",
180
+ "description": "Side of the street corresponding of the type of number address.",
181
+ "$ref": "DATEXII_3_LocationExtension.json#/$defs/HouseNumberSideEnumG"
182
+ }
183
+ }
184
+ }
185
+ }
186
+ }