source: osm/applications/editors/josm/plugins/opendata/resources/neptune/neptune.xsd@ 34509

Last change on this file since 34509 was 28018, checked in by donvip, 13 years ago

opendata: Initial Neptune files support

File size: 18.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!-- ========================================================================== -->
3<!-- -->
4<!-- CERTU -->
5<!-- -->
6<!-- projet chouette : Schema XSD -->
7<!-- -->
8<!-- neptune.xsd : Description XML du profil NEPTUNE -->
9<!-- -->
10<!-- Version : $Revision: 1.7 $ -->
11<!-- -->
12<!-- ========================================================================== -->
13<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
14xmlns="http://www.trident.org/schema/trident"
15xmlns:trd="http://www.trident.org/schema/trident"
16xmlns:siri="http://www.siri.org.uk/siri"
17xmlns:ifopt="http://www.ifopt.org.uk/acsb"
18targetNamespace="http://www.trident.org/schema/trident"
19elementFormDefault="qualified" version="1.00">
20
21 <xsd:annotation>
22 <xsd:documentation xml:lang="en">
23TRIDENT exchange schema.
24Request / Answer schema
25Copyright (c) 2001 TRIDENT consortium, All Rights Reserved.
26 </xsd:documentation>
27 </xsd:annotation>
28 <!--.....Dépendance sur SIRI pour les équipements...-->
29 <xsd:import namespace="http://www.ifopt.org.uk/acsb"
30 schemaLocation="./acsb/acsb_passengerMobility-v0.3.xsd"/>
31 <xsd:import namespace="http://www.siri.org.uk/siri"
32 schemaLocation="./siri/siri_facilities-v1.2.xsd"/>
33 <!--.....Inclusion des éléments TRIDENT nécessaires...-->
34
35 <xsd:include schemaLocation="./trident/trident_Global_schema.xsd"/>
36 <xsd:include schemaLocation="./trident/trident_Location_schema.xsd"/>
37 <xsd:include schemaLocation="./trident/trident_PT_schema.xsd"/>
38 <!-- **************************************************************** -->
39 <xsd:complexType name="ITLType">
40 <xsd:annotation>
41 <xsd:documentation>Interdiction de trafic local</xsd:documentation>
42 </xsd:annotation>
43 <xsd:sequence>
44 <xsd:element name="areaId" type="TridentIdType"/>
45 <xsd:element name="lineIdShortCut" type="TridentIdType" minOccurs="0"/>
46 <xsd:element name="name" type="xsd:string"/>
47 </xsd:sequence>
48 </xsd:complexType>
49 <xsd:complexType name="TimeSlotType">
50 <xsd:annotation>
51 <xsd:documentation>Type pour les fréquences horaire</xsd:documentation>
52 </xsd:annotation>
53 <xsd:complexContent>
54 <xsd:extension base="trd:TridentObjectType">
55 <xsd:sequence>
56 <xsd:element name="beginningSlotTime" type="xsd:time"/>
57 <xsd:element name="endSlotTime" type="xsd:time"/>
58 <xsd:element name="firstDepartureTimeInSlot" type="xsd:time"/>
59 <xsd:element name="lastDepartureTimeInSlot" type="xsd:time"/>
60 </xsd:sequence>
61 </xsd:extension>
62 </xsd:complexContent>
63 </xsd:complexType>
64 <xsd:complexType name="RouteExtension">
65 <xsd:annotation>
66 <xsd:documentation>Extension d'itinéraire qui en précise le sens, aller ou retour</xsd:documentation>
67 </xsd:annotation>
68 <xsd:sequence>
69 <xsd:element name="wayBack" type="xsd:string"/>
70 </xsd:sequence>
71 </xsd:complexType>
72 <xsd:complexType name="StopAreaExtension">
73 <xsd:annotation>
74 <xsd:documentation>Extension de zone d'arrêts qui précise notamment un code tarifaire et un identifiant fonctionnel</xsd:documentation>
75 </xsd:annotation>
76 <xsd:sequence>
77 <xsd:element name="areaType" type="ChouetteAreaType"/>
78 <xsd:element name="nearestTopicName" type="xsd:string" minOccurs="0"/>
79 <xsd:element name="fareCode" type="xsd:int" minOccurs="0"/>
80 <xsd:element name="registration" type="RegistrationType" minOccurs="0"/>
81 <xsd:element name="mobilityRestrictedSuitability" type="xsd:boolean" minOccurs="0"/>
82 <xsd:element name="accessibilitySuitabilityDetails" minOccurs="0">
83 <xsd:complexType>
84 <xsd:sequence maxOccurs="unbounded">
85 <xsd:group ref="ifopt:UserNeedGroup"/>
86 </xsd:sequence>
87 </xsd:complexType>
88 </xsd:element>
89 <xsd:element name="stairsAvailability" type="xsd:boolean" minOccurs="0"/>
90 <xsd:element name="liftAvailability" type="xsd:boolean" minOccurs="0"/>
91 </xsd:sequence>
92 </xsd:complexType>
93 <xsd:complexType name="ConnectionLinkExtensionType">
94 <xsd:sequence>
95 <xsd:element name="accessibilitySuitabilityDetails" minOccurs="0">
96 <xsd:complexType>
97 <xsd:sequence maxOccurs="unbounded">
98 <xsd:group ref="ifopt:UserNeedGroup"/>
99 </xsd:sequence>
100 </xsd:complexType>
101 </xsd:element>
102 </xsd:sequence>
103 </xsd:complexType>
104 <xsd:complexType name="LineExtensionType">
105 <xsd:annotation>
106 <xsd:documentation>Extension de ligne pour l'accessibilité aux PMR</xsd:documentation>
107 </xsd:annotation>
108 <xsd:sequence>
109 <xsd:element name="stableId" type="xsd:string" minOccurs="0">
110 <xsd:annotation>
111 <xsd:documentation>Identifier of the line whose value will remain unchanged for the all line life time </xsd:documentation>
112 </xsd:annotation>
113 </xsd:element>
114 <xsd:element name="mobilityRestrictedSuitability" type="xsd:boolean" minOccurs="0"/>
115 <xsd:element name="accessibilitySuitabilityDetails" minOccurs="0">
116 <xsd:complexType>
117 <xsd:sequence maxOccurs="unbounded">
118 <xsd:group ref="ifopt:UserNeedGroup"/>
119 </xsd:sequence>
120 </xsd:complexType>
121 </xsd:element>
122 </xsd:sequence>
123 </xsd:complexType>
124 <xsd:complexType name="ChouetteFacilityType">
125 <xsd:annotation>
126 <xsd:documentation>Description des equipement situés dans les zones d'arrêt ou les vehicules (via la ligne)</xsd:documentation>
127 </xsd:annotation>
128 <xsd:complexContent>
129 <xsd:extension base="trd:TridentObjectType">
130 <xsd:sequence>
131 <xsd:element name="facilityLocation" minOccurs="0">
132 <xsd:complexType>
133 <xsd:sequence>
134 <xsd:element name="longitude" type="trd:LongitudeType"/>
135 <xsd:element name="latitude" type="trd:LatitudeType"/>
136 <xsd:element name="longLatType" type="LongLatTypeType"/>
137 <xsd:element name="address" type="trd:AddressType" minOccurs="0"/>
138 <xsd:element name="projectedPoint" type="trd:ProjectedPointType" minOccurs="0"/>
139 <xsd:element name="containedIn" type="trd:TridentIdType"/>
140 <!-- REMARK : The IsContainedBy element refers to Area via Id -->
141 </xsd:sequence>
142 </xsd:complexType>
143 </xsd:element>
144 <xsd:choice>
145 <xsd:annotation>
146 <xsd:documentation>The facility has to be attached to a StopAres (Quay, BoardingPosition or Stop Place), a line (meaning vehicles operating this line), a connection link or a Stop Point on Route (stopPoint))</xsd:documentation>
147 </xsd:annotation>
148 <xsd:element name="stopAreaId" type="trd:TridentIdType"/>
149 <xsd:element name="lineId" type="trd:TridentIdType"/>
150 <xsd:element name="connectionLinkId" type="trd:TridentIdType"/>
151 <xsd:element name="stopPointId" type="trd:TridentIdType"/>
152 </xsd:choice>
153 <xsd:element name="facilityFeature" type="siri:AllFacilitiesFeatureStructure" maxOccurs="unbounded">
154 <xsd:annotation>
155 <xsd:documentation>Description of the feauture of the facility. Several features may be associated to a single facility.</xsd:documentation>
156 </xsd:annotation>
157 </xsd:element>
158 <xsd:element name="name" type="xsd:string" minOccurs="0">
159 <xsd:annotation>
160 <xsd:documentation>Name of the facility</xsd:documentation>
161 </xsd:annotation>
162 </xsd:element>
163 <xsd:element name="description" type="xsd:string" minOccurs="0">
164 <xsd:annotation>
165 <xsd:documentation>Textual description of the facility</xsd:documentation>
166 </xsd:annotation>
167 </xsd:element>
168 <xsd:element name="freeAccess" type="xsd:boolean" minOccurs="0">
169 <xsd:annotation>
170 <xsd:documentation>Is the access restricted or authorised to everybody</xsd:documentation>
171 </xsd:annotation>
172 </xsd:element>
173 <xsd:element name="comment" type="xsd:string" minOccurs="0"/>
174 </xsd:sequence>
175 </xsd:extension>
176 </xsd:complexContent>
177 </xsd:complexType>
178 <xsd:complexType name="ChouettePTNetworkType">
179 <xsd:annotation>
180 <xsd:documentation>La strucutre d'échange d'une ligne de transport.
181Cette strucuture contient la totalité des données qui décrivent la ligne.</xsd:documentation>
182 </xsd:annotation>
183 <xsd:sequence>
184 <xsd:element name="PTNetwork" type="trd:PTNetworkType">
185 <xsd:annotation>
186 <xsd:documentation>Le réseau de la ligne</xsd:documentation>
187 </xsd:annotation>
188 </xsd:element>
189 <xsd:element name="GroupOfLine" type="GroupOfLineType" minOccurs="0">
190 <xsd:annotation>
191 <xsd:documentation>Groupe de ligne auquel appartient la ligne décrite</xsd:documentation>
192 </xsd:annotation>
193 </xsd:element>
194 <xsd:element name="Company" type="trd:CompanyType" minOccurs="0" maxOccurs="unbounded">
195 <xsd:annotation>
196 <xsd:documentation>La compagnie de transport qui assure l'exploitation de la ligne.</xsd:documentation>
197 </xsd:annotation>
198 </xsd:element>
199 <xsd:element name="ChouetteArea">
200 <xsd:complexType>
201 <xsd:sequence>
202 <xsd:element name="StopArea" minOccurs="0" maxOccurs="unbounded">
203 <xsd:annotation>
204 <xsd:documentation>La liste des zones dons le type figure sur l'extension</xsd:documentation>
205 </xsd:annotation>
206 <xsd:complexType>
207 <xsd:complexContent>
208 <xsd:extension base="StopAreaType">
209 <xsd:sequence>
210 <xsd:element name="StopAreaExtension" type="StopAreaExtension" minOccurs="0"/>
211 </xsd:sequence>
212 </xsd:extension>
213 </xsd:complexContent>
214 </xsd:complexType>
215 </xsd:element>
216 <xsd:element name="AreaCentroid" minOccurs="0" maxOccurs="unbounded">
217 <xsd:annotation>
218 <xsd:documentation>Liste de position géographiques</xsd:documentation>
219 </xsd:annotation>
220 <xsd:complexType>
221 <xsd:complexContent>
222 <xsd:extension base="PlaceType"/>
223 </xsd:complexContent>
224 </xsd:complexType>
225 </xsd:element>
226 </xsd:sequence>
227 </xsd:complexType>
228 </xsd:element>
229 <xsd:element name="ConnectionLink" minOccurs="0" maxOccurs="unbounded">
230 <xsd:annotation>
231 <xsd:documentation>La liste de toutes les correspondances sur la ligne.
232Les correspondances relient un arrêt de la ligne avec un autre arrêt de cette même ligne ou d'une autre ligne.</xsd:documentation>
233 </xsd:annotation>
234 <xsd:complexType>
235 <xsd:complexContent>
236 <xsd:extension base="ConnectionLinkType">
237 <xsd:sequence>
238 <xsd:element name="ConnectionLinkExtension" type="ConnectionLinkExtensionType" minOccurs="0"/>
239 </xsd:sequence>
240 </xsd:extension>
241 </xsd:complexContent>
242 </xsd:complexType>
243 </xsd:element>
244 <xsd:element name="Timetable" type="TimetableType" minOccurs="0" maxOccurs="unbounded">
245 <xsd:annotation>
246 <xsd:documentation>La liste des tableaux de marche.</xsd:documentation>
247 </xsd:annotation>
248 </xsd:element>
249 <xsd:element name="TimeSlot" type="TimeSlotType" minOccurs="0" maxOccurs="unbounded"/>
250 <xsd:element name="ChouetteLineDescription">
251 <xsd:annotation>
252 <xsd:documentation>Structure qui regroupe les autres données de la ligne.
253</xsd:documentation>
254 </xsd:annotation>
255 <xsd:complexType>
256 <xsd:sequence>
257 <xsd:element name="Line">
258 <xsd:annotation>
259 <xsd:documentation>La ligne et ses références vers ses itinéraires et son réseau</xsd:documentation>
260 </xsd:annotation>
261 <xsd:complexType>
262 <xsd:complexContent>
263 <xsd:extension base="LineType">
264 <xsd:sequence>
265 <xsd:element name="LineExtension" type="LineExtensionType" minOccurs="0"/>
266 </xsd:sequence>
267 </xsd:extension>
268 </xsd:complexContent>
269 </xsd:complexType>
270 </xsd:element>
271 <xsd:element name="ChouetteRoute" maxOccurs="unbounded">
272 <xsd:annotation>
273 <xsd:documentation>La liste de tous les itinéraires de la ligne.</xsd:documentation>
274 </xsd:annotation>
275 <xsd:complexType>
276 <xsd:complexContent>
277 <xsd:extension base="RouteType">
278 <xsd:sequence>
279 <xsd:element name="RouteExtension" type="RouteExtension" minOccurs="0"/>
280 </xsd:sequence>
281 </xsd:extension>
282 </xsd:complexContent>
283 </xsd:complexType>
284 </xsd:element>
285 <xsd:element name="StopPoint" minOccurs="2" maxOccurs="unbounded">
286 <xsd:annotation>
287 <xsd:documentation>La liste de tous les arrêts parcourus par les tronçons des itinéraires de ligne.
288
289</xsd:documentation>
290 </xsd:annotation>
291 <xsd:complexType>
292 <xsd:complexContent>
293 <xsd:extension base="StopPointType"/>
294 </xsd:complexContent>
295 </xsd:complexType>
296 </xsd:element>
297 <xsd:element name="ITL" type="ITLType" minOccurs="0" maxOccurs="unbounded">
298 <xsd:annotation>
299 <xsd:documentation>Liste des interdictions de trafic local auxquelles doivent se conformer les voyageurs de la ligne</xsd:documentation>
300 </xsd:annotation>
301 </xsd:element>
302 <xsd:element name="PtLink" type="PTLinkType" maxOccurs="unbounded">
303 <xsd:annotation>
304 <xsd:documentation>La liste de tous les tronçons des itinéraires de la ligne.</xsd:documentation>
305 </xsd:annotation>
306 </xsd:element>
307 <xsd:element name="JourneyPattern" type="JourneyPatternType" minOccurs="0" maxOccurs="unbounded">
308 <xsd:annotation>
309 <xsd:documentation>La liste de toutes les missions des courses de la ligne.</xsd:documentation>
310 </xsd:annotation>
311 </xsd:element>
312 <xsd:element name="VehicleJourney" type="VehicleJourneyType" minOccurs="0" maxOccurs="unbounded">
313 <xsd:annotation>
314 <xsd:documentation>La liste de toutes les courses de la ligne qui sont effectives pour au moins l'un des tableaux de marche de la ligne.</xsd:documentation>
315 </xsd:annotation>
316 </xsd:element>
317 </xsd:sequence>
318 </xsd:complexType>
319 </xsd:element>
320 <xsd:element name="Facility" type="ChouetteFacilityType" minOccurs="0" maxOccurs="unbounded"/>
321 <xsd:element name="AccessPoint" type="PTAccessPointType" minOccurs="0" maxOccurs="unbounded"/>
322
323 <xsd:element name="AccessLink" minOccurs="0" maxOccurs="unbounded">
324 <xsd:annotation>
325 <xsd:documentation>La liste de toutes les correspondances sur la ligne.
326Les correspondances relient un arrêt de la ligne avec un autre arrêt de cette même ligne ou d'une autre ligne.</xsd:documentation>
327 </xsd:annotation>
328 <xsd:complexType>
329 <xsd:complexContent>
330 <xsd:extension base="PTAccessLinkType">
331 <xsd:sequence>
332 <xsd:element name="ConnectionLinkExtension" type="ConnectionLinkExtensionType" minOccurs="0"/>
333 </xsd:sequence>
334 </xsd:extension>
335 </xsd:complexContent>
336 </xsd:complexType>
337 </xsd:element>
338 </xsd:sequence>
339 </xsd:complexType>
340 <!-- Definition des instances -->
341 <xsd:element name="ChouettePTNetwork" type="ChouettePTNetworkType">
342 <xsd:keyref name="fk_stoppoint_journey" refer="pk_stoppoint">
343 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:JourneyPattern/trd:stopPointList"/>
344 <xsd:field xpath="."/>
345 </xsd:keyref>
346 <xsd:keyref name="fk_route_journey" refer="pk_route">
347 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:JourneyPattern/trd:routeId"/>
348 <xsd:field xpath="."/>
349 </xsd:keyref>
350 <xsd:keyref name="fk_journey_vehicle" refer="pk_journey_pattern">
351 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:VehicleJourney/trd:journeyPatternId"/>
352 <xsd:field xpath="."/>
353 </xsd:keyref>
354 <xsd:key name="pk_journey_pattern">
355 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:JourneyPattern"/>
356 <xsd:field xpath="trd:objectId"/>
357 </xsd:key>
358 <xsd:keyref name="fk_vehicle_timetable" refer="pk_vehicle">
359 <xsd:selector xpath=".//trd:Timetable/trd:vehicleJourneyId"/>
360 <xsd:field xpath="."/>
361 </xsd:keyref>
362 <xsd:keyref name="fk_vehicle_vehicleatstop" refer="pk_vehicle">
363 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:VehicleJourney/trd:vehicleJourneyAtStop/trd:vehicleJourneyId"/>
364 <xsd:field xpath="."/>
365 </xsd:keyref>
366 <xsd:keyref name="fk_stoppoint_vehicleatstop" refer="pk_stoppoint">
367 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:VehicleJourney/trd:vehicleJourneyAtStop/trd:stopPointId"/>
368 <xsd:field xpath="."/>
369 </xsd:keyref>
370 <xsd:keyref name="fk_route_vehicle" refer="pk_route">
371 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:VehicleJourney/trd:routeId"/>
372 <xsd:field xpath="."/>
373 </xsd:keyref>
374 <xsd:keyref name="fk_stoppoint_ptlink" refer="pk_stoppoint">
375 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:PtLink/trd:endOfLink|.//trd:ChouetteLineDescription/trd:PtLink/trd:startOfLink"/>
376 <xsd:field xpath="."/>
377 </xsd:keyref>
378 <xsd:key name="pk_vehicle">
379 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:VehicleJourney"/>
380 <xsd:field xpath="trd:objectId"/>
381 </xsd:key>
382 <xsd:key name="pk_stoppoint">
383 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:StopPoint"/>
384 <xsd:field xpath="trd:objectId"/>
385 </xsd:key>
386 <xsd:key name="pk_ptlink">
387 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:PtLink"/>
388 <xsd:field xpath="trd:objectId"/>
389 </xsd:key>
390 <xsd:keyref name="fk_stoparea_centroid" refer="pk_stoparea">
391 <xsd:selector xpath=".//trd:ChouetteArea/trd:AreaCentroid/trd:containedIn"/>
392 <xsd:field xpath="."/>
393 </xsd:keyref>
394 <xsd:keyref name="fk_stoparea_stoppoint" refer="pk_stoparea">
395 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:StopPoint/trd:containedIn"/>
396 <xsd:field xpath="."/>
397 </xsd:keyref>
398 <xsd:key name="pk_stoparea">
399 <xsd:selector xpath=".//trd:ChouetteArea/trd:StopArea"/>
400 <xsd:field xpath="trd:objectId"/>
401 </xsd:key>
402 <xsd:keyref name="fk_route_line" refer="pk_route">
403 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:Line/trd:routeId"/>
404 <xsd:field xpath="."/>
405 </xsd:keyref>
406 <xsd:key name="pk_route">
407 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:ChouetteRoute"/>
408 <xsd:field xpath="trd:objectId"/>
409 </xsd:key>
410 <xsd:keyref name="fk_line_ptnetwork" refer="pk_line">
411 <xsd:selector xpath=".//trd:PTNetwork"/>
412 <xsd:field xpath="trd:lineId"/>
413 </xsd:keyref>
414 <xsd:key name="pk_line">
415 <xsd:selector xpath=".//trd:ChouetteLineDescription/trd:Line"/>
416 <xsd:field xpath="trd:objectId"/>
417 </xsd:key>
418 <xsd:key name="pk_centroid">
419 <xsd:selector xpath=".//trd:ChouetteArea/trd:AreaCentroid"/>
420 <xsd:field xpath="trd:objectId"/>
421 </xsd:key>
422 <xsd:keyref name="fk_centroid_stoparea" refer="pk_centroid">
423 <xsd:selector xpath=".//trd:ChouetteArea/trd:StopArea/trd:centroidOfArea"/>
424 <xsd:field xpath="."/>
425 </xsd:keyref>
426 </xsd:element>
427 <xsd:simpleType name="ChouetteAreaType">
428 <xsd:restriction base="xsd:string">
429 <xsd:enumeration value="Quay"/>
430 <xsd:enumeration value="BoardingPosition"/>
431 <xsd:enumeration value="CommercialStopPoint"/>
432 <xsd:enumeration value="StopPlace"/>
433 <xsd:enumeration value="ITL"/>
434 </xsd:restriction>
435 </xsd:simpleType>
436 <xsd:complexType name="ChouetteRemoveLineType">
437 <xsd:sequence>
438 <xsd:element name="Line" type="LineType"/>
439 </xsd:sequence>
440 </xsd:complexType>
441 <xsd:element name="ChouetteRemoveLine" type="ChouetteRemoveLineType"/>
442</xsd:schema>
Note: See TracBrowser for help on using the repository browser.