siri-xsd 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +47 -0
  5. data/README.md +23 -0
  6. data/bitbucket-pipelines.yml +18 -0
  7. data/exe/siri-xsd-validate +42 -0
  8. data/lib/siri/xsd/validator.rb +62 -0
  9. data/lib/siri/xsd/version.rb +5 -0
  10. data/lib/siri/xsd.rb +10 -0
  11. data/siri-xsd.gemspec +35 -0
  12. data/vendor/xsd/acsb/acsb_accessibility.xsd +138 -0
  13. data/vendor/xsd/acsb/acsb_all.xsd +11 -0
  14. data/vendor/xsd/acsb/acsb_limitations.xsd +141 -0
  15. data/vendor/xsd/acsb/acsb_passengerMobility.xsd +212 -0
  16. data/vendor/xsd/datex2/DATEXIISchema.xsd +3713 -0
  17. data/vendor/xsd/datex2/DATEXIISchemaWithDefinitions.xsd +11538 -0
  18. data/vendor/xsd/gml/basicTypes.xsd +267 -0
  19. data/vendor/xsd/gml/geometryBasic0d1d-extract.xsd +271 -0
  20. data/vendor/xsd/gml/gmlBase-extract.xsd +168 -0
  21. data/vendor/xsd/gml/gmlBasic2d-extract.xsd +120 -0
  22. data/vendor/xsd/gml/gml_extract_all_objects.xsd +12 -0
  23. data/vendor/xsd/ifopt/ifopt_administration.xsd +254 -0
  24. data/vendor/xsd/ifopt/ifopt_allStopPlace.xsd +33 -0
  25. data/vendor/xsd/ifopt/ifopt_checkpoint.xsd +222 -0
  26. data/vendor/xsd/ifopt/ifopt_countries.xsd +1320 -0
  27. data/vendor/xsd/ifopt/ifopt_equipment.xsd +207 -0
  28. data/vendor/xsd/ifopt/ifopt_location.xsd +281 -0
  29. data/vendor/xsd/ifopt/ifopt_modes.xsd +84 -0
  30. data/vendor/xsd/ifopt/ifopt_modification.xsd +173 -0
  31. data/vendor/xsd/ifopt/ifopt_path.xsd +164 -0
  32. data/vendor/xsd/ifopt/ifopt_stop.xsd +403 -0
  33. data/vendor/xsd/ifopt/ifopt_time.xsd +131 -0
  34. data/vendor/xsd/ifopt/ifopt_types.xsd +96 -0
  35. data/vendor/xsd/siri/siri_all_framework.xsd +12 -0
  36. data/vendor/xsd/siri/siri_base.xsd +315 -0
  37. data/vendor/xsd/siri/siri_common_services.xsd +900 -0
  38. data/vendor/xsd/siri/siri_request_errorConditions.xsd +590 -0
  39. data/vendor/xsd/siri/siri_request_support.xsd +210 -0
  40. data/vendor/xsd/siri/siri_requests.xsd +1072 -0
  41. data/vendor/xsd/siri.xsd +531 -0
  42. data/vendor/xsd/siriSg.xsd +149 -0
  43. data/vendor/xsd/siri_all_functionalServices.xsd +95 -0
  44. data/vendor/xsd/siri_connectionMonitoring_service.xsd +731 -0
  45. data/vendor/xsd/siri_connectionTimetable_service.xsd +485 -0
  46. data/vendor/xsd/siri_discovery.xsd +898 -0
  47. data/vendor/xsd/siri_estimatedTimetable_service.xsd +490 -0
  48. data/vendor/xsd/siri_facilityMonitoring_service.xsd +493 -0
  49. data/vendor/xsd/siri_generalMessage_service.xsd +483 -0
  50. data/vendor/xsd/siri_model/siri_all.xsd +13 -0
  51. data/vendor/xsd/siri_model/siri_all_journeyModel.xsd +21 -0
  52. data/vendor/xsd/siri_model/siri_all_model.xsd +13 -0
  53. data/vendor/xsd/siri_model/siri_all_situation.xsd +17 -0
  54. data/vendor/xsd/siri_model/siri_datedVehicleJourney.xsd +702 -0
  55. data/vendor/xsd/siri_model/siri_estimatedVehicleJourney.xsd +472 -0
  56. data/vendor/xsd/siri_model/siri_facilities.xsd +517 -0
  57. data/vendor/xsd/siri_model/siri_facility.xsd +760 -0
  58. data/vendor/xsd/siri_model/siri_feature_support.xsd +145 -0
  59. data/vendor/xsd/siri_model/siri_interchangeJourney.xsd +88 -0
  60. data/vendor/xsd/siri_model/siri_journey.xsd +1903 -0
  61. data/vendor/xsd/siri_model/siri_journey_support.xsd +1022 -0
  62. data/vendor/xsd/siri_model/siri_modelPermissions.xsd +338 -0
  63. data/vendor/xsd/siri_model/siri_modes.xsd +686 -0
  64. data/vendor/xsd/siri_model/siri_monitoredVehicleJourney.xsd +638 -0
  65. data/vendor/xsd/siri_model/siri_operator_support.xsd +87 -0
  66. data/vendor/xsd/siri_model/siri_reference.xsd +844 -0
  67. data/vendor/xsd/siri_model/siri_situation.xsd +1545 -0
  68. data/vendor/xsd/siri_model/siri_situationActions.xsd +755 -0
  69. data/vendor/xsd/siri_model/siri_situationAffects.xsd +1533 -0
  70. data/vendor/xsd/siri_model/siri_situationClassifiers.xsd +430 -0
  71. data/vendor/xsd/siri_model/siri_situationIdentity.xsd +247 -0
  72. data/vendor/xsd/siri_model/siri_situationReasons.xsd +1370 -0
  73. data/vendor/xsd/siri_model/siri_situationServiceTypes.xsd +639 -0
  74. data/vendor/xsd/siri_model/siri_targetedVehicleJourney.xsd +136 -0
  75. data/vendor/xsd/siri_model/siri_time.xsd +356 -0
  76. data/vendor/xsd/siri_model_discovery/siri_connectionLink.xsd +115 -0
  77. data/vendor/xsd/siri_model_discovery/siri_feature.xsd +158 -0
  78. data/vendor/xsd/siri_model_discovery/siri_infoChannel.xsd +99 -0
  79. data/vendor/xsd/siri_model_discovery/siri_line.xsd +241 -0
  80. data/vendor/xsd/siri_model_discovery/siri_stopPoint.xsd +158 -0
  81. data/vendor/xsd/siri_productionTimetable_service.xsd +514 -0
  82. data/vendor/xsd/siri_situationExchange_service.xsd +785 -0
  83. data/vendor/xsd/siri_stopMonitoring_service.xsd +1052 -0
  84. data/vendor/xsd/siri_stopTimetable_service.xsd +463 -0
  85. data/vendor/xsd/siri_utility/siri_all_utility.xsd +14 -0
  86. data/vendor/xsd/siri_utility/siri_location.xsd +270 -0
  87. data/vendor/xsd/siri_utility/siri_participant.xsd +79 -0
  88. data/vendor/xsd/siri_utility/siri_permissions.xsd +135 -0
  89. data/vendor/xsd/siri_utility/siri_types.xsd +166 -0
  90. data/vendor/xsd/siri_utility/siri_utility.xsd +301 -0
  91. data/vendor/xsd/siri_vehicleMonitoring_service.xsd +702 -0
  92. data/vendor/xsd/siri_wsConsumer-Document.wsdl +177 -0
  93. data/vendor/xsd/siri_wsConsumer-WSDL2.wsdl +96 -0
  94. data/vendor/xsd/siri_wsConsumer.wsdl +200 -0
  95. data/vendor/xsd/siri_wsProducer-Document.wsdl +558 -0
  96. data/vendor/xsd/siri_wsProducer-WSDL2.wsdl +229 -0
  97. data/vendor/xsd/siri_wsProducer.wsdl +629 -0
  98. data/vendor/xsd/soap.xsd +118 -0
  99. data/vendor/xsd/wsdl_model/siri-wsdl.xsd +8 -0
  100. data/vendor/xsd/wsdl_model/siri_wsConsumer-Framework.xsd +98 -0
  101. data/vendor/xsd/wsdl_model/siri_wsConsumer-Services.xsd +155 -0
  102. data/vendor/xsd/wsdl_model/siri_wsProducer-DiscoveryCapability.xsd +123 -0
  103. data/vendor/xsd/wsdl_model/siri_wsProducer-Framework.xsd +138 -0
  104. data/vendor/xsd/wsdl_model/siri_wsProducer-Services.xsd +263 -0
  105. data/vendor/xsd/xml/2008/09/xsd.xsl +997 -0
  106. data/vendor/xsd/xml/2009/01/XMLSchema.xsd +286 -0
  107. metadata +222 -0
@@ -0,0 +1,158 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.siri.org.uk/siri" targetNamespace="http://www.siri.org.uk/siri" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1" id="siri_feature">
3
+ <xsd:annotation>
4
+ <xsd:appinfo>
5
+ <Metadata xmlns="http://www.govtalk.gov.uk/CM/gms-xs">
6
+ <Aggregation>main schema</Aggregation>
7
+ <Audience>e-service developers</Audience>
8
+ <Contributor>CEN TC278 WG3 SG7 Team</Contributor>
9
+ <Coverage>Europe</Coverage>
10
+ <Creator>Drafted for version 1.0 CEN TC278 WG3 SG7 Editor Nicholas Knowles, Kizoom. mailto:schemer@siri.org.uk</Creator>
11
+ <Date>
12
+ <Created>2012-03-23</Created>
13
+ </Date>
14
+ <Date>
15
+ <Modified>2008-11-17</Modified>
16
+ <!-- Revise to support substitution groups
17
+ Correct Type on VEHICLE features delivery structure -->
18
+ </Date>
19
+ <Date>
20
+ <Modified>2012-03-23</Modified>
21
+ <!-- SIRI v2.0
22
+ Factored out from siri_discovery
23
+ Make Product category icon optional -->
24
+ </Date>
25
+ <Description>
26
+ <p>SIRI is a European CEN technical standard for the exchange of real-time information.</p>
27
+ <p>This subschema describes soem code value models used by different SIRI functional services
28
+ <ul><li>SERVICE FEATURE discovery</li><li>TYPE OF PRODUCT CATEGORY Discovery</li></ul>
29
+ </p>
30
+ </Description>
31
+ <Format>
32
+ <MediaType>text/xml</MediaType>
33
+ <Syntax>http://www.w3.org/2001/XMLSchema</Syntax>
34
+ <Description>XML schema, W3C Recommendation 2001</Description>
35
+ </Format>
36
+ <Identifier>{http://www.siri.org.uk/schema/2.0/xsd/}siri_discovery.xsd</Identifier>
37
+ <Language>[ISO 639-2/B] ENG</Language>
38
+ <Publisher>Kizoom, 109-123 Clifton Street, London EC4A 4LD </Publisher>
39
+ <Relation>
40
+ <Requires>http://www.siri.org.uk/schema/2.0/xsd/siri/siri_requests.xsd</Requires>
41
+ <Requires>http://www.siri.org.uk/schema/2.0/xsd/siri_utility/siri_reference.xsd</Requires>
42
+ </Relation>
43
+ <Rights><!--Unclassified-->
44
+ <Copyright>CEN, VDV, RTIG 2004-2021</Copyright>
45
+ </Rights>
46
+ <Source>
47
+ <ul>
48
+ <li>Discovery services Derived from the NaPTAN standard .</li>
49
+ </ul>
50
+ </Source>
51
+ <Status>Version 2.1</Status>
52
+ <Subject>
53
+ <Category>Arts, recreation and travel, Tourism, Travel (tourism), Transport,
54
+ Air transport, Airports,
55
+ Ports and maritime transport, Ferries (marine),
56
+ Public transport, Bus services, Coach services, Bus stops and stations,
57
+ Rail transport, Railway stations and track, Train services, Underground trains,
58
+ Business and industry, Transport, Air transport, Ports and maritime transport, Public transport,
59
+ Rail transport, Roads and road transport
60
+ </Category>
61
+ <Project>CEN TC278 WG3 SG7</Project>
62
+ </Subject>
63
+ <Title>SIRI_DS XML schema. Service Interface for Real-time Information. Discovery subschema. </Title>
64
+ <Type>Standard</Type>
65
+ </Metadata>
66
+ </xsd:appinfo>
67
+ <xsd:documentation>SIRI subschema with view of classifiers for use in Discovery service</xsd:documentation>
68
+ </xsd:annotation>
69
+ <!-- ======================================================================= -->
70
+ <xsd:include schemaLocation="../siri_model/siri_feature_support.xsd"/>
71
+ <xsd:include schemaLocation="../siri_utility/siri_types.xsd"/>
72
+ <!-- ======================================================================= -->
73
+ <!-- ======================================================================= -->
74
+ <!-- ==== PRODUCT CATE GOIRY =================================================== -->
75
+ <xsd:element name="ProductCategory" type="ProductCategoryStructure">
76
+ <xsd:annotation>
77
+ <xsd:documentation>Category for classification of a journey as a Product </xsd:documentation>
78
+ </xsd:annotation>
79
+ </xsd:element>
80
+ <xsd:complexType name="ProductCategoryStructure">
81
+ <xsd:annotation>
82
+ <xsd:documentation>Type for TYPE OF PRODUCT CATEGORY description.</xsd:documentation>
83
+ </xsd:annotation>
84
+ <xsd:sequence>
85
+ <xsd:element name="ProductCategoryCode" type="ProductCategoryCodeType">
86
+ <xsd:annotation>
87
+ <xsd:documentation>Identifier of TYPE OF PRODUCT CATEGORY classification. SIRI provides a recommended set of values covering most usages, intended to be TPEG compatible. See the SIRI facilities packaged.</xsd:documentation>
88
+ </xsd:annotation>
89
+ </xsd:element>
90
+ <xsd:element name="Name" type="NaturalLanguageStringStructure" maxOccurs="unbounded">
91
+ <xsd:annotation>
92
+ <xsd:documentation>Name of classification (Unbounded since SIRI 2.0)</xsd:documentation>
93
+ </xsd:annotation>
94
+ </xsd:element>
95
+ <xsd:element name="Icon" type="xsd:anyURI" minOccurs="0">
96
+ <xsd:annotation>
97
+ <xsd:documentation>Icon used to represent TYPE OF PRODUCT CATEGORY.</xsd:documentation>
98
+ </xsd:annotation>
99
+ </xsd:element>
100
+ </xsd:sequence>
101
+ </xsd:complexType>
102
+ <!-- =====SERVICE FEATURE =========================================== -->
103
+ <xsd:element name="ServiceFeature" type="ServiceFeatureStructure">
104
+ <xsd:annotation>
105
+ <xsd:documentation>Service Feature description. </xsd:documentation>
106
+ </xsd:annotation>
107
+ </xsd:element>
108
+ <xsd:complexType name="ServiceFeatureStructure">
109
+ <xsd:annotation>
110
+ <xsd:documentation>Type for Service Feature description.</xsd:documentation>
111
+ </xsd:annotation>
112
+ <xsd:sequence>
113
+ <xsd:element name="ServiceFeatureCode" type="ServiceFeatureCodeType">
114
+ <xsd:annotation>
115
+ <xsd:documentation>Identifier of classification. SIRI provides a recommended set of values covering most usages, intended to be TPEG compatible. See the SIRI facilities packaged.</xsd:documentation>
116
+ </xsd:annotation>
117
+ </xsd:element>
118
+ <xsd:element name="Name" type="NaturalLanguageStringStructure" maxOccurs="unbounded">
119
+ <xsd:annotation>
120
+ <xsd:documentation>Name of classification. (Unbounded since SIRI 2.0)</xsd:documentation>
121
+ </xsd:annotation>
122
+ </xsd:element>
123
+ <xsd:element name="Icon" type="xsd:anyURI">
124
+ <xsd:annotation>
125
+ <xsd:documentation>Icon associated with feature.</xsd:documentation>
126
+ </xsd:annotation>
127
+ </xsd:element>
128
+ </xsd:sequence>
129
+ </xsd:complexType>
130
+ <!-- ====VEHICLE FEATURE =========================================== -->
131
+ <xsd:element name="VehicleFeature" type="VehicleFeaturesStructure">
132
+ <xsd:annotation>
133
+ <xsd:documentation>Vehicle Feature description.</xsd:documentation>
134
+ </xsd:annotation>
135
+ </xsd:element>
136
+ <xsd:complexType name="VehicleFeaturesStructure">
137
+ <xsd:annotation>
138
+ <xsd:documentation>Type for description of feature of VEHICLE.</xsd:documentation>
139
+ </xsd:annotation>
140
+ <xsd:sequence>
141
+ <xsd:element name="VehicleFeatureCode" type="VehicleFeatureCodeType">
142
+ <xsd:annotation>
143
+ <xsd:documentation>Identifier of feature of VEHICLE. SIRI provides a recommended set of values covering most usages, intended to be TPEG compatible. See the SIRI facilities packaged.</xsd:documentation>
144
+ </xsd:annotation>
145
+ </xsd:element>
146
+ <xsd:element name="Name" type="NaturalLanguageStringStructure" maxOccurs="unbounded">
147
+ <xsd:annotation>
148
+ <xsd:documentation>Name of feature of VEHICLE. (Unbounded since SIRI 2.0)</xsd:documentation>
149
+ </xsd:annotation>
150
+ </xsd:element>
151
+ <xsd:element name="Icon" type="xsd:anyURI">
152
+ <xsd:annotation>
153
+ <xsd:documentation>Icon used to represent feature of VEHICLE.</xsd:documentation>
154
+ </xsd:annotation>
155
+ </xsd:element>
156
+ </xsd:sequence>
157
+ </xsd:complexType>
158
+ </xsd:schema>
@@ -0,0 +1,99 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.siri.org.uk/siri" targetNamespace="http://www.siri.org.uk/siri" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1" id="siri_infroChannel">
3
+ <xsd:annotation>
4
+ <xsd:appinfo>
5
+ <Metadata xmlns="http://www.govtalk.gov.uk/CM/gms-xs">
6
+ <Aggregation>main schema</Aggregation>
7
+ <Audience>e-service developers</Audience>
8
+ <Contributor>CEN TC278 WG3 SG7 Team</Contributor>
9
+ <Coverage>Europe</Coverage>
10
+ <Creator>Drafted for version 1.0 CEN TC278 WG3 SG7 Editor Nicholas Knowles, Kizoom. mailto:schemer@siri.org.uk</Creator>
11
+ <Date>
12
+ <Created>2012-03-23</Created>
13
+ </Date>
14
+ <Date>
15
+ <Modified>2008-11-17</Modified>
16
+ <!-- Revise to support substitution groups
17
+ Correct Type on VEHICLE features delivery structure -->
18
+ </Date>
19
+ <Date>
20
+ <Modified>2012-03-23</Modified>
21
+ <!-- SIRI v2.0
22
+ Factored out from siri_discovery -->
23
+ </Date>
24
+ <Description>
25
+ <p>SIRI is a European CEN technical standard for the exchange of real-time information.</p>
26
+ <p>This subschema describes soem code value models used by different SIRI functional services
27
+ <ul><li>Service Feature discovery</li><li>TYPE OF PRODUCT CATEGORY Discovery</li></ul>
28
+ </p>
29
+ </Description>
30
+ <Format>
31
+ <MediaType>text/xml</MediaType>
32
+ <Syntax>http://www.w3.org/2001/XMLSchema</Syntax>
33
+ <Description>XML schema, W3C Recommendation 2001</Description>
34
+ </Format>
35
+ <Identifier>{http://www.siri.org.uk/schema/2.0/xsd/}siri_discovery.xsd</Identifier>
36
+ <Language>[ISO 639-2/B] ENG</Language>
37
+ <Publisher>Kizoom, 109-123 Clifton Street, London EC4A 4LD </Publisher>
38
+ <Relation>
39
+ <Requires>http://www.siri.org.uk/schema/2.0/xsd/siri/siri_requests.xsd</Requires>
40
+ <Requires>http://www.siri.org.uk/schema/2.0/xsd/siri_utility/siri_reference.xsd</Requires>
41
+ </Relation>
42
+ <Rights><!--Unclassified-->
43
+ <Copyright>CEN, VDV, RTIG 2004-2021</Copyright>
44
+ </Rights>
45
+ <Source>
46
+ <ul>
47
+ <li>Discovery services Derived from the NaPTAN standard .</li>
48
+ </ul>
49
+ </Source>
50
+ <Status>Version 2.1</Status>
51
+ <Subject>
52
+ <Category>Arts, recreation and travel, Tourism, Travel (tourism), Transport,
53
+ Air transport, Airports,
54
+ Ports and maritime transport, Ferries (marine),
55
+ Public transport, Bus services, Coach services, Bus stops and stations,
56
+ Rail transport, Railway stations and track, Train services, Underground trains,
57
+ Business and industry, Transport, Air transport, Ports and maritime transport, Public transport,
58
+ Rail transport, Roads and road transport
59
+ </Category>
60
+ <Project>CEN TC278 WG3 SG7</Project>
61
+ </Subject>
62
+ <Title>SIRI_DS XML schema. Service Interface for Real-time Information. Discovery subschema. </Title>
63
+ <Type>Standard</Type>
64
+ </Metadata>
65
+ </xsd:appinfo>
66
+ <xsd:documentation>SIRI subschema with view of Info channel for use in Discovery service</xsd:documentation>
67
+ </xsd:annotation>
68
+ <!-- ======================================================================= -->
69
+ <xsd:include schemaLocation="../siri_model/siri_reference.xsd"/>
70
+ <!-- === INFO Channel============================================== -->
71
+ <xsd:element name="InfoChannel" type="InfoChannelStructure">
72
+ <xsd:annotation>
73
+ <xsd:documentation>Info Channel supported by Producer service.</xsd:documentation>
74
+ </xsd:annotation>
75
+ </xsd:element>
76
+ <xsd:complexType name="InfoChannelStructure">
77
+ <xsd:annotation>
78
+ <xsd:documentation>Type for Info Channels description.</xsd:documentation>
79
+ </xsd:annotation>
80
+ <xsd:sequence>
81
+ <xsd:element name="InfoChannelCode" type="InfoChannelCodeType">
82
+ <xsd:annotation>
83
+ <xsd:documentation>Identifier of classification.</xsd:documentation>
84
+ </xsd:annotation>
85
+ </xsd:element>
86
+ <xsd:element name="Name" type="NaturalLanguageStringStructure">
87
+ <xsd:annotation>
88
+ <xsd:documentation>Name of Info Channel.</xsd:documentation>
89
+ </xsd:annotation>
90
+ </xsd:element>
91
+ <xsd:element name="Icon" type="xsd:anyURI">
92
+ <xsd:annotation>
93
+ <xsd:documentation>Icon associated with Info Channel.</xsd:documentation>
94
+ </xsd:annotation>
95
+ </xsd:element>
96
+ </xsd:sequence>
97
+ </xsd:complexType>
98
+ <!-- ======================================================================= -->
99
+ </xsd:schema>
@@ -0,0 +1,241 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.siri.org.uk/siri" xmlns:ifopt="http://www.ifopt.org.uk/ifopt" targetNamespace="http://www.siri.org.uk/siri" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1" id="siri_stopPoint">
3
+ <xsd:annotation>
4
+ <xsd:appinfo>
5
+ <Metadata xmlns="http://www.govtalk.gov.uk/CM/gms-xs">
6
+ <Aggregation>main schema</Aggregation>
7
+ <Audience>e-service developers</Audience>
8
+ <Contributor>CEN TC278 WG3 SG7 Team</Contributor>
9
+ <Coverage>Europe</Coverage>
10
+ <Creator>Drafted for version 1.0 CEN TC278 WG3 SG7 Editor Nicholas Knowles, Kizoom. mailto:schemer@siri.org.uk</Creator>
11
+ <Date>
12
+ <Created>2012-03-23</Created>
13
+ </Date>
14
+ <Date>
15
+ <Modified>2008-11-17</Modified>
16
+ <!-- Revise to support substitution groups
17
+ Correct Type on VEHICLE features delivery structure -->
18
+ </Date>
19
+ <Date>
20
+ <Modified>2012-03-23</Modified>
21
+ <!-- SIRI v2.0
22
+ Factored out from siri_discovery -->
23
+ </Date>
24
+ <Date>
25
+ <Modified>2012-05-10</Modified>
26
+ <!-- SIRI v2.0
27
+ [MTA] Add stops and line shape
28
+ [General] Add Extensiosn tag to Lines response -->
29
+ </Date>
30
+ <Date>
31
+ <Modified>2012-06-12</Modified>
32
+ <!-- SIRI v2.0
33
+ [MTA] Add Direction to Line destination -->
34
+ </Date>
35
+ <Description>
36
+ <p>SIRI is a European CEN technical standard for the exchange of real-time information.</p>
37
+ <p>This subschema describes soem code value models used by different SIRI functional services
38
+ <ul><li>Service Feature discovery</li><li>TYPE OF PRODUCT CATEGORY Discovery</li></ul>
39
+ </p>
40
+ </Description>
41
+ <Format>
42
+ <MediaType>text/xml</MediaType>
43
+ <Syntax>http://www.w3.org/2001/XMLSchema</Syntax>
44
+ <Description>XML schema, W3C Recommendation 2001</Description>
45
+ </Format>
46
+ <Identifier>{http://www.siri.org.uk/schema/2.0/xsd/}siri_discovery.xsd</Identifier>
47
+ <Language>[ISO 639-2/B] ENG</Language>
48
+ <Publisher>Kizoom, 109-123 Clifton Street, London EC4A 4LD </Publisher>
49
+ <Relation>
50
+ <Requires>http://www.siri.org.uk/schema/2.0/xsd/siri/siri_requests.xsd</Requires>
51
+ <Requires>http://www.siri.org.uk/schema/2.0/xsd/siri_utility/siri_reference.xsd</Requires>
52
+ </Relation>
53
+ <Rights><!--Unclassified-->
54
+ <Copyright>CEN, VDV, RTIG 2004-2021</Copyright>
55
+ </Rights>
56
+ <Source>
57
+ <ul>
58
+ <li>Discovery services Derived from the NaPTAN standard .</li>
59
+ </ul>
60
+ </Source>
61
+ <Status>Version 2.1</Status>
62
+ <Subject>
63
+ <Category>Arts, recreation and travel, Tourism, Travel (tourism), Transport,
64
+ Air transport, Airports,
65
+ Ports and maritime transport, Ferries (marine),
66
+ Public transport, Bus services, Coach services, Bus stops and stations,
67
+ Rail transport, Railway stations and track, Train services, Underground trains,
68
+ Business and industry, Transport, Air transport, Ports and maritime transport, Public transport,
69
+ Rail transport, Roads and road transport
70
+ </Category>
71
+ <Project>CEN TC278 WG3 SG7</Project>
72
+ </Subject>
73
+ <Title>SIRI_DS XML schema. Service Interface for Real-time Information. Stop Discovery subschema. </Title>
74
+ <Type>Standard</Type>
75
+ </Metadata>
76
+ </xsd:appinfo>
77
+ <xsd:documentation>SIRI subschema with view of LINE for use in Discovery service</xsd:documentation>
78
+ </xsd:annotation>
79
+ <!-- ======================================================================= -->
80
+ <xsd:include schemaLocation="../siri_model/siri_journey.xsd"/>
81
+ <xsd:import namespace="http://www.ifopt.org.uk/ifopt" schemaLocation="../ifopt/ifopt_stop.xsd"/>
82
+ <xsd:import namespace="http://www.ifopt.org.uk/ifopt" schemaLocation="../ifopt/ifopt_location.xsd"/>
83
+ <xsd:include schemaLocation="siri_stopPoint.xsd"/>
84
+ <!-- ======================================================================= -->
85
+ <!-- === LINE =================================================== -->
86
+ <xsd:element name="AnnotatedLineRef" type="AnnotatedLineStructure">
87
+ <xsd:annotation>
88
+ <xsd:documentation>Information about LINEs covered by server.</xsd:documentation>
89
+ </xsd:annotation>
90
+ </xsd:element>
91
+ <xsd:complexType name="AnnotatedLineStructure">
92
+ <xsd:annotation>
93
+ <xsd:documentation>Summary information about a LINE type.</xsd:documentation>
94
+ </xsd:annotation>
95
+ <xsd:sequence>
96
+ <xsd:element name="LineRef" type="LineRefStructure">
97
+ <xsd:annotation>
98
+ <xsd:documentation>Identifier of LINE.</xsd:documentation>
99
+ </xsd:annotation>
100
+ </xsd:element>
101
+ <xsd:element name="LineName" type="NaturalLanguageStringStructure" maxOccurs="unbounded">
102
+ <xsd:annotation>
103
+ <xsd:documentation>Name of LINE. (Unbounded since SIRI 2.0)</xsd:documentation>
104
+ </xsd:annotation>
105
+ </xsd:element>
106
+ <xsd:element name="Monitored" type="xsd:boolean" default="true" minOccurs="0">
107
+ <xsd:annotation>
108
+ <xsd:documentation>Whether the LINE has real-time info. Default is 'true'.</xsd:documentation>
109
+ </xsd:annotation>
110
+ </xsd:element>
111
+ <xsd:element name="Destinations" minOccurs="0">
112
+ <xsd:annotation>
113
+ <xsd:documentation>DESTINATIONs to which the LINE runs. Detail level is 'normal'</xsd:documentation>
114
+ </xsd:annotation>
115
+ <xsd:complexType>
116
+ <xsd:sequence>
117
+ <xsd:element ref="Destination" maxOccurs="unbounded"/>
118
+ </xsd:sequence>
119
+ </xsd:complexType>
120
+ </xsd:element>
121
+ <xsd:element name="Directions" minOccurs="0">
122
+ <xsd:annotation>
123
+ <xsd:documentation>DIRECTIONs and Stops for the LINE. 'normal'</xsd:documentation>
124
+ </xsd:annotation>
125
+ <xsd:complexType>
126
+ <xsd:sequence>
127
+ <xsd:element name="Direction" type="RouteDirectionStructure" maxOccurs="unbounded">
128
+ <xsd:annotation>
129
+ <xsd:documentation>Directions of Route</xsd:documentation>
130
+ </xsd:annotation>
131
+ </xsd:element>
132
+ </xsd:sequence>
133
+ </xsd:complexType>
134
+ </xsd:element>
135
+ <xsd:element ref="Extensions" minOccurs="0"/>
136
+ </xsd:sequence>
137
+ </xsd:complexType>
138
+ <!-- ======================================================================= -->
139
+ <xsd:complexType name="RouteDirectionStructure">
140
+ <xsd:annotation>
141
+ <xsd:documentation>Summary information about a Direction of a Line</xsd:documentation>
142
+ </xsd:annotation>
143
+ <xsd:complexContent>
144
+ <xsd:extension base="DirectionStructure">
145
+ <xsd:sequence>
146
+ <xsd:element name="JourneyPatterns" minOccurs="0">
147
+ <xsd:annotation>
148
+ <xsd:documentation>JourneyPatterns in Direction of route (+SIRI 2.0)</xsd:documentation>
149
+ </xsd:annotation>
150
+ <xsd:complexType>
151
+ <xsd:sequence>
152
+ <xsd:element name="JourneyPattern" maxOccurs="unbounded">
153
+ <xsd:annotation>
154
+ <xsd:documentation>JourneyPattern. (+SIRI 2.0)</xsd:documentation>
155
+ </xsd:annotation>
156
+ <xsd:complexType>
157
+ <xsd:sequence>
158
+ <xsd:element ref="JourneyPatternRef" minOccurs="0"/>
159
+ <xsd:element name="Name" type="NaturalLanguageStringStructure" minOccurs="0" maxOccurs="unbounded">
160
+ <xsd:annotation>
161
+ <xsd:documentation>Name Of Journety Pattern (SIRI 2.0)</xsd:documentation>
162
+ </xsd:annotation>
163
+ </xsd:element>
164
+ <xsd:element name="StopsInPattern" minOccurs="0">
165
+ <xsd:annotation>
166
+ <xsd:documentation>Ordered collection of STOP POINTs the LINE and direction . Detail level is 'stops'. +SIRI v2.0 </xsd:documentation>
167
+ </xsd:annotation>
168
+ <xsd:complexType>
169
+ <xsd:sequence>
170
+ <xsd:element name="StopPointInPattern" type="StopPointInPatternStructure" minOccurs="2" maxOccurs="unbounded">
171
+ <xsd:annotation>
172
+ <xsd:documentation>Stop within Route of LINE. Detail level is 'stop' +SIRI v2.0 </xsd:documentation>
173
+ </xsd:annotation>
174
+ </xsd:element>
175
+ </xsd:sequence>
176
+ </xsd:complexType>
177
+ </xsd:element>
178
+ </xsd:sequence>
179
+ </xsd:complexType>
180
+ </xsd:element>
181
+ </xsd:sequence>
182
+ </xsd:complexType>
183
+ </xsd:element>
184
+ <xsd:element ref="Extensions" minOccurs="0"/>
185
+ </xsd:sequence>
186
+ </xsd:extension>
187
+ </xsd:complexContent>
188
+ </xsd:complexType>
189
+ <xsd:complexType name="StopPointInPatternStructure">
190
+ <xsd:annotation>
191
+ <xsd:documentation>Summary information about a stop within line </xsd:documentation>
192
+ </xsd:annotation>
193
+ <xsd:complexContent>
194
+ <xsd:extension base="AnnotatedStopPointStructure">
195
+ <xsd:sequence>
196
+ <xsd:element name="Order" type="xsd:positiveInteger">
197
+ <xsd:annotation>
198
+ <xsd:documentation>Order of STOP POINT in route +SIRI v2.0 </xsd:documentation>
199
+ </xsd:annotation>
200
+ </xsd:element>
201
+ <xsd:element name="OnwardLinkShape" type="LineShapeStructure" minOccurs="0">
202
+ <xsd:annotation>
203
+ <xsd:documentation>Plot of points from this stop to next Stop. Detail level is 'full'. +SIRI v2.0 </xsd:documentation>
204
+ </xsd:annotation>
205
+ </xsd:element>
206
+ <xsd:element name="LinkProjectionToNextStopPoint" type="ifopt:LinkProjectionStructure" minOccurs="0">
207
+ <xsd:annotation>
208
+ <xsd:documentation>GIs projection of Link to the next provided StopPoint. NB Line here means Geometry Polyline, not Transmodel Transport Line.</xsd:documentation>
209
+ </xsd:annotation>
210
+ </xsd:element>
211
+ <xsd:element ref="Extensions" minOccurs="0"/>
212
+ </xsd:sequence>
213
+ </xsd:extension>
214
+ </xsd:complexContent>
215
+ </xsd:complexType>
216
+ <!-- === DESTINATION ======================================================= -->
217
+ <xsd:element name="Destination" type="AnnotatedDestinationStructure">
218
+ <xsd:annotation>
219
+ <xsd:documentation>Description of a DESTINATION.</xsd:documentation>
220
+ </xsd:annotation>
221
+ </xsd:element>
222
+ <xsd:complexType name="AnnotatedDestinationStructure">
223
+ <xsd:annotation>
224
+ <xsd:documentation>Type for DESTINATION and place name.</xsd:documentation>
225
+ </xsd:annotation>
226
+ <xsd:sequence>
227
+ <xsd:element name="DestinationRef" type="DestinationRefStructure"/>
228
+ <xsd:element name="PlaceName" type="NaturalLanguageStringStructure" maxOccurs="unbounded">
229
+ <xsd:annotation>
230
+ <xsd:documentation>Name of destination TOPOGRAPHIC PLACE. (Unbounded since SIRI 2.0)</xsd:documentation>
231
+ </xsd:annotation>
232
+ </xsd:element>
233
+ <xsd:element name="DirectionRef" type="DirectionRefStructure" minOccurs="0">
234
+ <xsd:annotation>
235
+ <xsd:documentation>Direction in which destination lies. relatoive to currernt stop SIRI 2.0 </xsd:documentation>
236
+ </xsd:annotation>
237
+ </xsd:element>
238
+ </xsd:sequence>
239
+ </xsd:complexType>
240
+ <!-- ======================================================================= -->
241
+ </xsd:schema>
@@ -0,0 +1,158 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.siri.org.uk/siri" targetNamespace="http://www.siri.org.uk/siri" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1" id="siri_feature">
3
+ <xsd:annotation>
4
+ <xsd:appinfo>
5
+ <Metadata xmlns="http://www.govtalk.gov.uk/CM/gms-xs">
6
+ <Aggregation>main schema</Aggregation>
7
+ <Audience>e-service developers</Audience>
8
+ <Contributor>CEN TC278 WG3 SG7 Team</Contributor>
9
+ <Coverage>Europe</Coverage>
10
+ <Creator>Drafted for version 1.0 CEN TC278 WG3 SG7 Editor Nicholas Knowles, Kizoom. mailto:schemer@siri.org.uk</Creator>
11
+ <Date>
12
+ <Created>2012-03-23</Created>
13
+ </Date>
14
+ <Date>
15
+ <Modified>2008-11-17</Modified>
16
+ <!-- Revise to support substitution groups
17
+ Correct Type on VEHICLE features delivery structure -->
18
+ </Date>
19
+ <Date>
20
+ <Modified>2012-03-23</Modified>
21
+ <!-- SIRI v2.0
22
+ Factored out from siri_discovery
23
+ Add Location, Add StopLine Direction -->
24
+ </Date>
25
+ <Date>
26
+ <Modified>2012-06-12</Modified>
27
+ <!-- SIRI v2.0
28
+ Factored out from siri_discovery
29
+ Add StopLine Direction -->
30
+ </Date>
31
+ <Description>
32
+ <p>SIRI is a European CEN technical standard for the exchange of real-time information.</p>
33
+ <p>This subschema describes soem code value models used by different SIRI functional services
34
+ <ul><li>Service Feature discovery</li><li>TYPE OF PRODUCT CATEGORY Discovery</li></ul>
35
+ </p>
36
+ </Description>
37
+ <Format>
38
+ <MediaType>text/xml</MediaType>
39
+ <Syntax>http://www.w3.org/2001/XMLSchema</Syntax>
40
+ <Description>XML schema, W3C Recommendation 2001</Description>
41
+ </Format>
42
+ <Identifier>{http://www.siri.org.uk/schema/2.0/xsd/}siri_discovery.xsd</Identifier>
43
+ <Language>[ISO 639-2/B] ENG</Language>
44
+ <Publisher>Kizoom, 109-123 Clifton Street, London EC4A 4LD </Publisher>
45
+ <Relation>
46
+ <Requires>http://www.siri.org.uk/schema/2.0/xsd/siri/siri_requests.xsd</Requires>
47
+ <Requires>http://www.siri.org.uk/schema/2.0/xsd/siri_utility/siri_reference.xsd</Requires>
48
+ </Relation>
49
+ <Rights><!--Unclassified-->
50
+ <Copyright>CEN, VDV, RTIG 2004-2021</Copyright>
51
+ </Rights>
52
+ <Source>
53
+ <ul>
54
+ <li>Discovery services Derived from the NaPTAN standard .</li>
55
+ </ul>
56
+ </Source>
57
+ <Status>Version 2.1</Status>
58
+ <Subject>
59
+ <Category>Arts, recreation and travel, Tourism, Travel (tourism), Transport,
60
+ Air transport, Airports,
61
+ Ports and maritime transport, Ferries (marine),
62
+ Public transport, Bus services, Coach services, Bus stops and stations,
63
+ Rail transport, Railway stations and track, Train services, Underground trains,
64
+ Business and industry, Transport, Air transport, Ports and maritime transport, Public transport,
65
+ Rail transport, Roads and road transport
66
+ </Category>
67
+ <Project>CEN TC278 WG3 SG7</Project>
68
+ </Subject>
69
+ <Title>SIRI_DS XML schema. Service Interface for Real-time Information. Discovery subschema. </Title>
70
+ <Type>Standard</Type>
71
+ </Metadata>
72
+ </xsd:appinfo>
73
+ <xsd:documentation>SIRI subschema with view of SCHEDUELD STOP POINT for use in Stop Discovery service</xsd:documentation>
74
+ </xsd:annotation>
75
+ <!-- ======================================================================= -->
76
+ <xsd:include schemaLocation="siri_feature.xsd"/>
77
+ <xsd:include schemaLocation="../siri_model/siri_reference.xsd"/>
78
+ <xsd:include schemaLocation="../siri_utility/siri_location.xsd"/>
79
+ <!-- === VIEW of SCHEDULED STOP POINT============================================== -->
80
+ <xsd:element name="AnnotatedStopPointRef" type="AnnotatedStopPointStructure">
81
+ <xsd:annotation>
82
+ <xsd:documentation>SCHEDULED STOP POINT definition.</xsd:documentation>
83
+ </xsd:annotation>
84
+ </xsd:element>
85
+ <xsd:complexType name="AnnotatedStopPointStructure">
86
+ <xsd:annotation>
87
+ <xsd:documentation>View of a SCHEDULED STOP POINT description.</xsd:documentation>
88
+ </xsd:annotation>
89
+ <xsd:sequence>
90
+ <xsd:element name="StopPointRef" type="StopPointRefStructure">
91
+ <xsd:annotation>
92
+ <xsd:documentation>Identifer of the stop. </xsd:documentation>
93
+ </xsd:annotation>
94
+ </xsd:element>
95
+ <xsd:element ref="TimingPoint" minOccurs="0"/>
96
+ <xsd:element name="Monitored" type="xsd:boolean" default="true" minOccurs="0">
97
+ <xsd:annotation>
98
+ <xsd:documentation>Whether real-time data is available for the stop. Default is 'true'. Detail level is 'normal'.</xsd:documentation>
99
+ </xsd:annotation>
100
+ </xsd:element>
101
+ <xsd:element name="StopName" type="NaturalLanguageStringStructure" minOccurs="0" maxOccurs="unbounded">
102
+ <xsd:annotation>
103
+ <xsd:documentation>Name of SCHEDULED STOP POINT. Detail level is 'normal'. (Unbounded since SIRI 2.0)</xsd:documentation>
104
+ </xsd:annotation>
105
+ </xsd:element>
106
+ <xsd:element name="StopAreaRef" type="StopAreaRefStructure" minOccurs="0">
107
+ <xsd:annotation>
108
+ <xsd:documentation>Identifer of the sSTOP AREA to which SCHEDULED STOP POINT belongs. +SIRI.v2.0 </xsd:documentation>
109
+ </xsd:annotation>
110
+ </xsd:element>
111
+ <xsd:element name="Features" minOccurs="0">
112
+ <xsd:annotation>
113
+ <xsd:documentation>Service features of stop. Detail level is 'full'</xsd:documentation>
114
+ </xsd:annotation>
115
+ <xsd:complexType>
116
+ <xsd:choice maxOccurs="unbounded">
117
+ <xsd:element name="ServiceFeature" type="ServiceFeatureStructure" minOccurs="1" maxOccurs="1">
118
+ <xsd:annotation>
119
+ <xsd:documentation>Description of Service features of stop.</xsd:documentation>
120
+ </xsd:annotation>
121
+ </xsd:element>
122
+ <xsd:element ref="ServiceFeatureRef" minOccurs="1" maxOccurs="1"/>
123
+ </xsd:choice>
124
+ </xsd:complexType>
125
+ </xsd:element>
126
+ <xsd:element name="Lines" minOccurs="0">
127
+ <xsd:annotation>
128
+ <xsd:documentation>LINEs that use stop. Detail level is 'full'</xsd:documentation>
129
+ </xsd:annotation>
130
+ <xsd:complexType>
131
+ <xsd:choice maxOccurs="unbounded">
132
+ <xsd:element name="LineRef" type="LineRefStructure" maxOccurs="1">
133
+ <xsd:annotation>
134
+ <xsd:documentation>Reference to a LINE that calls at stop.</xsd:documentation>
135
+ </xsd:annotation>
136
+ </xsd:element>
137
+ <xsd:element name="LineDirection" type="LineDirectionStructure">
138
+ <xsd:annotation>
139
+ <xsd:documentation>Reference to a LINE that calls at stop. and its direction +SIRI V2.0</xsd:documentation>
140
+ </xsd:annotation>
141
+ </xsd:element>
142
+ </xsd:choice>
143
+ </xsd:complexType>
144
+ </xsd:element>
145
+ <xsd:element name="Location" type="LocationStructure" minOccurs="0">
146
+ <xsd:annotation>
147
+ <xsd:documentation>Coordinates to use to show stop as a poitn on map. Detail level is 'normal'.+SIRI.v2.0 </xsd:documentation>
148
+ </xsd:annotation>
149
+ </xsd:element>
150
+ <xsd:element name="Url" type="xsd:anyURI" minOccurs="0">
151
+ <xsd:annotation>
152
+ <xsd:documentation>Web page associated with Stop. Detail level is 'full'+SIRI.v2.0 </xsd:documentation>
153
+ </xsd:annotation>
154
+ </xsd:element>
155
+ </xsd:sequence>
156
+ </xsd:complexType>
157
+ <!-- ======================================================================= -->
158
+ </xsd:schema>