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,196 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+ <xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:locx="http://datex2.eu/schema/3/locationExtension" version="3.7" targetNamespace="http://datex2.eu/schema/3/locationExtension" xmlns:fac="http://datex2.eu/schema/3/facilities" xmlns:com="http://datex2.eu/schema/3/common" xmlns:xs="http://www.w3.org/2001/XMLSchema">
3
+ <xs:import namespace="http://datex2.eu/schema/3/common" schemaLocation="DATEXII_3_Common.xsd" />
4
+ <xs:import namespace="http://datex2.eu/schema/3/facilities" schemaLocation="DATEXII_3_Facilities.xsd" />
5
+ <xs:complexType name="_AddressLineTypeEnum">
6
+ <xs:simpleContent>
7
+ <xs:extension base="locx:AddressLineTypeEnum">
8
+ <xs:attribute name="_extendedValue" type="xs:string" />
9
+ </xs:extension>
10
+ </xs:simpleContent>
11
+ </xs:complexType>
12
+ <xs:complexType name="_HouseNumberSideEnum">
13
+ <xs:simpleContent>
14
+ <xs:extension base="locx:HouseNumberSideEnum">
15
+ <xs:attribute name="_extendedValue" type="xs:string" />
16
+ </xs:extension>
17
+ </xs:simpleContent>
18
+ </xs:complexType>
19
+ <xs:complexType name="Address">
20
+ <xs:annotation>
21
+ <xs:documentation>A street oriented addressing structure supporting delivery</xs:documentation>
22
+ </xs:annotation>
23
+ <xs:sequence>
24
+ <xs:element name="postcode" type="com:String" minOccurs="0" maxOccurs="1">
25
+ <xs:annotation>
26
+ <xs:documentation>Postcode or postal code for the address.</xs:documentation>
27
+ </xs:annotation>
28
+ </xs:element>
29
+ <xs:element name="city" type="com:MultilingualString" minOccurs="0" maxOccurs="1">
30
+ <xs:annotation>
31
+ <xs:documentation>Postal city name of the address.</xs:documentation>
32
+ </xs:annotation>
33
+ </xs:element>
34
+ <xs:element name="countryCode" type="com:CountryCode" minOccurs="0" maxOccurs="1">
35
+ <xs:annotation>
36
+ <xs:documentation>EN ISO 3166-1 two-character country code.</xs:documentation>
37
+ </xs:annotation>
38
+ </xs:element>
39
+ <xs:element name="addressLine" type="locx:AddressLine" minOccurs="0" maxOccurs="unbounded" />
40
+ <xs:element name="_addressExtension" type="com:_ExtensionType" minOccurs="0" />
41
+ </xs:sequence>
42
+ </xs:complexType>
43
+ <xs:complexType name="AddressLine">
44
+ <xs:annotation>
45
+ <xs:documentation>A class defining information concerning one line of a postal address.</xs:documentation>
46
+ </xs:annotation>
47
+ <xs:sequence>
48
+ <xs:element name="type" type="locx:_AddressLineTypeEnum" minOccurs="1" maxOccurs="1">
49
+ <xs:annotation>
50
+ <xs:documentation>The type for the address line element</xs:documentation>
51
+ </xs:annotation>
52
+ </xs:element>
53
+ <xs:element name="text" type="com:MultilingualString" minOccurs="1" maxOccurs="1">
54
+ <xs:annotation>
55
+ <xs:documentation>Free-text description for the address line element</xs:documentation>
56
+ </xs:annotation>
57
+ </xs:element>
58
+ <xs:element name="_addressLineExtension" type="com:_ExtensionType" minOccurs="0" />
59
+ </xs:sequence>
60
+ <xs:attribute name="order" type="com:NonNegativeInteger" use="required">
61
+ <xs:annotation>
62
+ <xs:documentation>The sequence order that the address line element should be displayed in</xs:documentation>
63
+ </xs:annotation>
64
+ </xs:attribute>
65
+ </xs:complexType>
66
+ <xs:simpleType name="AddressLineTypeEnum">
67
+ <xs:annotation>
68
+ <xs:documentation>A list of supported address line types.</xs:documentation>
69
+ </xs:annotation>
70
+ <xs:restriction base="xs:string">
71
+ <xs:enumeration value="apartment">
72
+ <xs:annotation>
73
+ <xs:documentation>Element indicating a discrete element of a building forming the address</xs:documentation>
74
+ </xs:annotation>
75
+ </xs:enumeration>
76
+ <xs:enumeration value="building">
77
+ <xs:annotation>
78
+ <xs:documentation>Element identifying the number or name and type of the edifice or construction relevant for the address [derived from ISO19160-4]</xs:documentation>
79
+ </xs:annotation>
80
+ </xs:enumeration>
81
+ <xs:enumeration value="poBox">
82
+ <xs:annotation>
83
+ <xs:documentation>A postal delivery location identifier, not necessarily a physical location.</xs:documentation>
84
+ </xs:annotation>
85
+ </xs:enumeration>
86
+ <xs:enumeration value="unit">
87
+ <xs:annotation>
88
+ <xs:documentation>An element representing a section of a building or organisation.</xs:documentation>
89
+ </xs:annotation>
90
+ </xs:enumeration>
91
+ <xs:enumeration value="region">
92
+ <xs:annotation>
93
+ <xs:documentation>Element indicating the name of the area within or adjacent to the town in which delivery address is.</xs:documentation>
94
+ </xs:annotation>
95
+ </xs:enumeration>
96
+ <xs:enumeration value="town">
97
+ <xs:annotation>
98
+ <xs:documentation>Element indicating the name of the populated place in which a delivery point is located, or near to or via which the delivery point is accessed. [Source: ISO19160-4]</xs:documentation>
99
+ </xs:annotation>
100
+ </xs:enumeration>
101
+ <xs:enumeration value="districtTerritory">
102
+ <xs:annotation>
103
+ <xs:documentation>Element specifying the geographic or administrative area of the country for the address [Source: 19160-4]</xs:documentation>
104
+ </xs:annotation>
105
+ </xs:enumeration>
106
+ <xs:enumeration value="floor">
107
+ <xs:annotation>
108
+ <xs:documentation>Element indicating the floor or level on which a delivery point is located in a multi-storey building [Source:ISO19160-4]</xs:documentation>
109
+ </xs:annotation>
110
+ </xs:enumeration>
111
+ <xs:enumeration value="street">
112
+ <xs:annotation>
113
+ <xs:documentation>Element indicating road or street identifier or name </xs:documentation>
114
+ </xs:annotation>
115
+ </xs:enumeration>
116
+ <xs:enumeration value="houseNumber">
117
+ <xs:annotation>
118
+ <xs:documentation>Element indicating a house number</xs:documentation>
119
+ </xs:annotation>
120
+ </xs:enumeration>
121
+ <xs:enumeration value="generalTextLine">
122
+ <xs:annotation>
123
+ <xs:documentation>A non-predefined text line for general purpose.</xs:documentation>
124
+ </xs:annotation>
125
+ </xs:enumeration>
126
+ <xs:enumeration value="_extended" />
127
+ </xs:restriction>
128
+ </xs:simpleType>
129
+ <xs:complexType name="FacilityLocation">
130
+ <xs:annotation>
131
+ <xs:documentation>A location for which a time zone and an address can be specified</xs:documentation>
132
+ </xs:annotation>
133
+ <xs:sequence>
134
+ <xs:element name="timeZone" type="fac:TimeZone" minOccurs="0" maxOccurs="1">
135
+ <xs:annotation>
136
+ <xs:documentation>The time zone the facility is located in.</xs:documentation>
137
+ </xs:annotation>
138
+ </xs:element>
139
+ <xs:element name="address" type="locx:Address" minOccurs="0">
140
+ <xs:annotation>
141
+ <xs:documentation>An address specification following ISO 19160-4.</xs:documentation>
142
+ </xs:annotation>
143
+ </xs:element>
144
+ </xs:sequence>
145
+ </xs:complexType>
146
+ <xs:simpleType name="HouseNumberSideEnum">
147
+ <xs:annotation>
148
+ <xs:documentation>Specifies the side of the house number (even, odd).</xs:documentation>
149
+ </xs:annotation>
150
+ <xs:restriction base="xs:string">
151
+ <xs:enumeration value="odd">
152
+ <xs:annotation>
153
+ <xs:documentation>Correspond to the street side with odd house numbers.</xs:documentation>
154
+ </xs:annotation>
155
+ </xs:enumeration>
156
+ <xs:enumeration value="even">
157
+ <xs:annotation>
158
+ <xs:documentation>Correspond to the street side with even house numbers.</xs:documentation>
159
+ </xs:annotation>
160
+ </xs:enumeration>
161
+ <xs:enumeration value="_extended" />
162
+ </xs:restriction>
163
+ </xs:simpleType>
164
+ <xs:simpleType name="NamedAreaCode">
165
+ <xs:annotation>
166
+ <xs:documentation>Type for a short numeric or alphanumeric code identifying an area.</xs:documentation>
167
+ </xs:annotation>
168
+ <xs:restriction base="com:String">
169
+ <xs:maxLength value="8" />
170
+ </xs:restriction>
171
+ </xs:simpleType>
172
+ <xs:complexType name="NamedAreaExtended">
173
+ <xs:annotation>
174
+ <xs:documentation>A named area with an additional code (that is not an ISO subdivision code)</xs:documentation>
175
+ </xs:annotation>
176
+ <xs:sequence>
177
+ <xs:element name="namedAreaCode" type="locx:NamedAreaCode" minOccurs="1" maxOccurs="1">
178
+ <xs:annotation>
179
+ <xs:documentation>Code for the named area, such a postal code or other code assigned for administration.</xs:documentation>
180
+ </xs:annotation>
181
+ </xs:element>
182
+ </xs:sequence>
183
+ </xs:complexType>
184
+ <xs:complexType name="SupplementaryPositionalDescriptionExtended">
185
+ <xs:annotation>
186
+ <xs:documentation>Extension of class SupplementaryPositionalDescription.</xs:documentation>
187
+ </xs:annotation>
188
+ <xs:sequence>
189
+ <xs:element name="houseNumberSide" type="locx:_HouseNumberSideEnum" minOccurs="0" maxOccurs="1">
190
+ <xs:annotation>
191
+ <xs:documentation>Side of the street corresponding of the type of number address.</xs:documentation>
192
+ </xs:annotation>
193
+ </xs:element>
194
+ </xs:sequence>
195
+ </xs:complexType>
196
+ </xs:schema>