source: osm/applications/editors/josm/plugins/opendata/resources/neptune/trident/trident_Location_schema.xsd

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

opendata: Initial Neptune files support

File size: 16.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!-- edited with XMLSpy v2007 sp2 (http://www.altova.com) by christophe duquesne (Dryade SARL) -->
3<!-- edited with XML Spy v4.0.1 U (http://www.xmlspy.com) by David Lellouche (RATP/CGF) -->
4<!-- File: trident_Location_schema.xsd -->
5<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.trident.org/schema/trident" xmlns:trd="http://www.trident.org/schema/trident" targetNamespace="http://www.trident.org/schema/trident" elementFormDefault="qualified" version="2.0">
6 <xsd:annotation>
7 <xsd:appinfo>trident.xsd v1.00 2002-10</xsd:appinfo>
8 <xsd:documentation xml:lang="en">
9TRIDENT exchange schema.
10Location referencing Description
11Copyright (c) 2001 TRIDENT consortium, All Rights Reserved.
12 </xsd:documentation>
13 </xsd:annotation>
14 <!-- included files (if any) -->
15 <xsd:include schemaLocation="trident_Global_schema.xsd"/>
16 <!-- ==============================================================
17 object declarations
18 ============================================================== -->
19 <!-- LOCATION ===================================================== -->
20 <xsd:complexType name="LogicalLocationType" abstract="true">
21 <xsd:annotation>
22 <xsd:documentation xml:lang="en">
23 General description of a logical location (point, area, link,network,line....)
24 This type is an abstract type
25 </xsd:documentation>
26 </xsd:annotation>
27 <xsd:complexContent>
28 <xsd:extension base="trd:TridentObjectType"/>
29 </xsd:complexContent>
30 </xsd:complexType>
31 <xsd:complexType name="LocationType" abstract="true">
32 <xsd:annotation>
33 <xsd:documentation xml:lang="en">
34 General description of a location (point, area, link)
35 This type is an abstract type
36 </xsd:documentation>
37 </xsd:annotation>
38 <xsd:complexContent>
39 <xsd:extension base="trd:LogicalLocationType"/>
40 </xsd:complexContent>
41 </xsd:complexType>
42 <!-- POINTS ===================================================== -->
43 <xsd:complexType name="AddressType">
44 <xsd:annotation>
45 <xsd:documentation xml:lang="en">
46 Full Description of an address
47 </xsd:documentation>
48 </xsd:annotation>
49 <xsd:sequence>
50 <xsd:element name="streetName" type="xsd:string" minOccurs="0"/>
51 <xsd:element name="countryCode" type="xsd:string" minOccurs="0"/>
52 <!-- REMARK : LanguageCode is a code from code list ISO 639-1988 -->
53 </xsd:sequence>
54 </xsd:complexType>
55 <xsd:complexType name="RoadAddressType">
56 <xsd:annotation>
57 <xsd:documentation xml:lang="en">
58 Full Description of an address
59 </xsd:documentation>
60 </xsd:annotation>
61 <xsd:complexContent>
62 <xsd:extension base="trd:AddressType">
63 <xsd:sequence>
64 <xsd:element name="number" type="xsd:string" minOccurs="0"/>
65 <xsd:element name="name" type="xsd:string" minOccurs="0"/>
66 </xsd:sequence>
67 </xsd:extension>
68 </xsd:complexContent>
69 </xsd:complexType>
70 <xsd:complexType name="PostalAddressType">
71 <xsd:annotation>
72 <xsd:documentation xml:lang="en">
73 Full Description of an address
74 </xsd:documentation>
75 </xsd:annotation>
76 <xsd:complexContent>
77 <xsd:extension base="trd:AddressType">
78 <xsd:sequence>
79 <xsd:element name="province" type="xsd:string" minOccurs="0"/>
80 <xsd:element name="region" type="xsd:string" minOccurs="0"/>
81 <xsd:element name="town" type="xsd:string" minOccurs="0"/>
82 <xsd:element name="roadNumber" type="xsd:string" minOccurs="0"/>
83 <xsd:element name="houseNumber" type="xsd:string" minOccurs="0"/>
84 <xsd:element name="postalCode" type="xsd:string"/>
85 </xsd:sequence>
86 </xsd:extension>
87 </xsd:complexContent>
88 </xsd:complexType>
89 <xsd:complexType name="PointOfInterestType">
90 <xsd:annotation>
91 <xsd:documentation xml:lang="en">
92 Description of a point of interest: this is provided if the point is at or near a major landmark or point of interest.
93 </xsd:documentation>
94 </xsd:annotation>
95 <xsd:sequence>
96 <xsd:element name="name" type="xsd:string" minOccurs="0"/>
97 <xsd:element name="type" type="trd:POITypeType" minOccurs="0"/>
98 </xsd:sequence>
99 </xsd:complexType>
100 <xsd:complexType name="WGS84PositionType">
101 <xsd:annotation>
102 <xsd:documentation xml:lang="en">
103 Position of a point in WGS 84 Coordinate.
104 </xsd:documentation>
105 </xsd:annotation>
106 <xsd:sequence>
107 <xsd:element name="Longitude" type="trd:LongitudeType"/>
108 <xsd:element name="Latitude" type="trd:LatitudeType"/>
109 </xsd:sequence>
110 </xsd:complexType>
111 <xsd:complexType name="ProjectedPointType">
112 <xsd:annotation>
113 <xsd:documentation xml:lang="en">
114 Position of a point in a projection system.
115 </xsd:documentation>
116 </xsd:annotation>
117 <xsd:sequence>
118 <xsd:element name="X" type="xsd:decimal"/>
119 <xsd:element name="Y" type="xsd:decimal"/>
120 <xsd:element name="projectionType" type="xsd:string" minOccurs="0"/>
121 </xsd:sequence>
122 </xsd:complexType>
123 <xsd:complexType name="ProprietaryIdentifierType">
124 <xsd:sequence>
125 <xsd:element name="id" type="xsd:string"/>
126 </xsd:sequence>
127 </xsd:complexType>
128 <xsd:complexType name="PointType" abstract="true">
129 <xsd:annotation>
130 <xsd:documentation xml:lang="en">
131 General point used to build any kind of point
132 </xsd:documentation>
133 </xsd:annotation>
134 <xsd:complexContent>
135 <xsd:extension base="trd:LocationType">
136 <xsd:sequence>
137 <xsd:element name="longitude" type="trd:LongitudeType"/>
138 <xsd:element name="latitude" type="trd:LatitudeType"/>
139 <xsd:element name="longLatType" type="LongLatTypeType"/>
140 <xsd:element name="address" type="trd:AddressType" minOccurs="0"/>
141 <xsd:element name="projectedPoint" type="trd:ProjectedPointType" minOccurs="0"/>
142 <xsd:element name="containedIn" type="trd:TridentIdType"/>
143 <!-- REMARK : The IsContainedBy element refers to Area via Id -->
144 </xsd:sequence>
145 </xsd:extension>
146 </xsd:complexContent>
147 </xsd:complexType>
148 <xsd:complexType name="PlaceType">
149 <xsd:annotation>
150 <xsd:documentation xml:lang="en">
151 StopPoint on a Route of a Line of a PT Network
152 </xsd:documentation>
153 </xsd:annotation>
154 <xsd:complexContent>
155 <xsd:extension base="trd:PointType">
156 <xsd:sequence>
157 <xsd:element name="name" type="xsd:string"/>
158 <xsd:element name="comment" type="xsd:string" minOccurs="0"/>
159 </xsd:sequence>
160 </xsd:extension>
161 </xsd:complexContent>
162 </xsd:complexType>
163 <xsd:complexType name="RoadPointType">
164 <xsd:annotation>
165 <xsd:documentation xml:lang="en">
166 General point used to build any kind of point
167 </xsd:documentation>
168 </xsd:annotation>
169 <xsd:complexContent>
170 <xsd:extension base="trd:PointType">
171 <xsd:sequence>
172 <xsd:element name="LanguageCode" type="xsd:string" minOccurs="0"/>
173 <xsd:element name="Name" type="xsd:string"/>
174 </xsd:sequence>
175 </xsd:extension>
176 </xsd:complexContent>
177 </xsd:complexType>
178 <xsd:complexType name="PTAccessPointType">
179 <xsd:annotation>
180 <xsd:documentation xml:lang="en">
181 The physical (spatial) possibility for a passenger
182 to access or leave the PT network.
183 </xsd:documentation>
184 </xsd:annotation>
185 <xsd:complexContent>
186 <xsd:extension base="trd:PointType">
187 <xsd:sequence>
188 <xsd:element name="name" type="xsd:string" minOccurs="0"/>
189 <xsd:element name="type" minOccurs="0">
190 <xsd:simpleType>
191 <xsd:restriction base="xsd:string">
192 <xsd:enumeration value="In"/>
193 <xsd:enumeration value="Out"/>
194 <xsd:enumeration value="InOut"/>
195 </xsd:restriction>
196 </xsd:simpleType>
197 </xsd:element>
198 <xsd:element name="openingTime" type="xsd:time" minOccurs="0"/>
199 <xsd:element name="closingTime" type="xsd:time" minOccurs="0"/>
200 <xsd:element name="mobilityRestrictedSuitability" type="xsd:boolean" minOccurs="0"/>
201 <xsd:element name="stairsAvailability" type="xsd:boolean" minOccurs="0"/>
202 <xsd:element name="liftAvailability" type="xsd:boolean" minOccurs="0"/>
203 <xsd:element name="comment" type="xsd:string" minOccurs="0"/>
204 </xsd:sequence>
205 </xsd:extension>
206 </xsd:complexContent>
207 </xsd:complexType>
208 <xsd:complexType name="NonPTAccessLinkendType">
209 <xsd:annotation>
210 <xsd:documentation xml:lang="en">
211An origin place not belonging to the PT network.
212 </xsd:documentation>
213 </xsd:annotation>
214 <xsd:complexContent>
215 <xsd:extension base="trd:PointType">
216 <xsd:sequence/>
217 </xsd:extension>
218 </xsd:complexContent>
219 </xsd:complexType>
220 <xsd:complexType name="StopPointType">
221 <xsd:annotation>
222 <xsd:documentation xml:lang="en">
223 StopPoint on a Route of a Line of a PT Network
224 </xsd:documentation>
225 </xsd:annotation>
226 <xsd:complexContent>
227 <xsd:extension base="trd:PointType">
228 <xsd:sequence>
229 <xsd:element name="name" type="xsd:string"/>
230 <xsd:element name="lineIdShortcut" type="trd:TridentIdType" minOccurs="0"/>
231 <xsd:element name="ptNetworkIdShortcut" type="trd:TridentIdType" minOccurs="0"/>
232 <xsd:element name="comment" type="xsd:string" minOccurs="0"/>
233 </xsd:sequence>
234 </xsd:extension>
235 </xsd:complexContent>
236 </xsd:complexType>
237 <xsd:complexType name="AirportStopPointType">
238 <xsd:annotation>
239 <xsd:documentation xml:lang="en">
240 An airport
241 </xsd:documentation>
242 </xsd:annotation>
243 <xsd:complexContent>
244 <xsd:extension base="trd:StopPointType">
245 <xsd:sequence>
246 <xsd:element name="terminalIdentifier" type="xsd:string" minOccurs="0"/>
247 <xsd:element name="gateIdentifier" type="xsd:string" minOccurs="0"/>
248 </xsd:sequence>
249 </xsd:extension>
250 </xsd:complexContent>
251 </xsd:complexType>
252 <xsd:complexType name="BusStopPointType">
253 <xsd:annotation>
254 <xsd:documentation xml:lang="en">
255 An bus sopt point
256 </xsd:documentation>
257 </xsd:annotation>
258 <xsd:complexContent>
259 <xsd:extension base="trd:StopPointType">
260 <xsd:sequence>
261 <xsd:element name="ptDirection" type="PTDirectionType" minOccurs="0"/>
262 <xsd:element name="streetName" type="xsd:string" minOccurs="0"/>
263 <xsd:element name="streetNumber" type="xsd:string" minOccurs="0"/>
264 <xsd:element name="platformIdentifier" type="xsd:string" minOccurs="0"/>
265 </xsd:sequence>
266 </xsd:extension>
267 </xsd:complexContent>
268 </xsd:complexType>
269 <xsd:complexType name="TramStopPointType">
270 <xsd:annotation>
271 <xsd:documentation xml:lang="en">
272 An TRAM stop point
273 </xsd:documentation>
274 </xsd:annotation>
275 <xsd:complexContent>
276 <xsd:extension base="trd:StopPointType">
277 <xsd:sequence>
278 <xsd:element name="streetName" type="xsd:string" minOccurs="0"/>
279 <xsd:element name="streetNumber" type="xsd:string" minOccurs="0"/>
280 <xsd:element name="ptDirection" type="PTDirectionType" minOccurs="0"/>
281 <xsd:element name="platformIdentifier" type="xsd:string" minOccurs="0"/>
282 </xsd:sequence>
283 </xsd:extension>
284 </xsd:complexContent>
285 </xsd:complexType>
286 <xsd:complexType name="MetroStopPointType">
287 <xsd:annotation>
288 <xsd:documentation xml:lang="en">
289 An metro stop point
290 </xsd:documentation>
291 </xsd:annotation>
292 <xsd:complexContent>
293 <xsd:extension base="trd:StopPointType">
294 <xsd:sequence>
295 <xsd:element name="lineName" type="xsd:string" minOccurs="0"/>
296 <xsd:element name="lineNumber" type="xsd:string" minOccurs="0"/>
297 <xsd:element name="platformIdentifier" type="xsd:string" minOccurs="0"/>
298 <xsd:element name="ptDirection" type="PTDirectionType" minOccurs="0"/>
299 </xsd:sequence>
300 </xsd:extension>
301 </xsd:complexContent>
302 </xsd:complexType>
303 <xsd:complexType name="RailwayStopPointType">
304 <xsd:annotation>
305 <xsd:documentation xml:lang="en">
306 An Railwaystop point
307 </xsd:documentation>
308 </xsd:annotation>
309 <xsd:complexContent>
310 <xsd:extension base="trd:StopPointType">
311 <xsd:sequence>
312 <xsd:element name="stationInternalDivision" type="xsd:string" minOccurs="0"/>
313 <xsd:element name="platformIdentifier" type="xsd:string" minOccurs="0"/>
314 </xsd:sequence>
315 </xsd:extension>
316 </xsd:complexContent>
317 </xsd:complexType>
318 <!-- LINKS ===================================================== -->
319 <xsd:complexType name="GeneralLinkType">
320 <xsd:annotation>
321 <xsd:documentation xml:lang="en">
322 A General Link Between two Points (or object inheriting
323from Point)
324 </xsd:documentation>
325 </xsd:annotation>
326 <xsd:complexContent>
327 <xsd:extension base="trd:LocationType">
328 <xsd:sequence>
329 <xsd:element name="name" type="xsd:string" minOccurs="0"/>
330 <xsd:element name="startOfLink" type="trd:TridentIdType"/>
331 <xsd:element name="endOfLink" type="trd:TridentIdType"/>
332 <xsd:element name="linkDistance" type="xsd:decimal" minOccurs="0"/>
333 </xsd:sequence>
334 </xsd:extension>
335 </xsd:complexContent>
336 </xsd:complexType>
337 <xsd:complexType name="ConnectionLinkType">
338 <xsd:annotation>
339 <xsd:documentation xml:lang="en">
340 The path between two places covered by any "personal" mean of transport
341 </xsd:documentation>
342 </xsd:annotation>
343 <xsd:complexContent>
344 <xsd:extension base="trd:GeneralLinkType">
345 <xsd:sequence>
346 <xsd:element name="linkType" type="trd:ConnectionLinkTypeType" minOccurs="0"/>
347 <xsd:element name="defaultDuration" type="xsd:duration" minOccurs="0"/>
348 <xsd:element name="frequentTravellerDuration" type="xsd:duration" minOccurs="0"/>
349 <xsd:element name="occasionalTravellerDuration" type="xsd:duration" minOccurs="0"/>
350 <xsd:element name="mobilityRestrictedTravellerDuration" type="xsd:duration" minOccurs="0"/>
351 <xsd:element name="mobilityRestrictedSuitability" type="xsd:boolean" minOccurs="0"/>
352 <xsd:element name="stairsAvailability" type="xsd:boolean" minOccurs="0"/>
353 <xsd:element name="liftAvailability" type="xsd:boolean" minOccurs="0"/>
354 <xsd:element name="comment" type="xsd:string" minOccurs="0"/>
355 </xsd:sequence>
356 </xsd:extension>
357 </xsd:complexContent>
358 </xsd:complexType>
359 <xsd:complexType name="PTAccessLinkType">
360 <xsd:annotation>
361 <xsd:documentation xml:lang="en">
362 Link between a StopPoint and an AccessPoint.
363 </xsd:documentation>
364 </xsd:annotation>
365 <xsd:complexContent>
366 <xsd:extension base="trd:ConnectionLinkType">
367 <xsd:sequence>
368 <xsd:element name="Comment" type="xsd:string" minOccurs="0"/>
369 </xsd:sequence>
370 </xsd:extension>
371 </xsd:complexContent>
372 </xsd:complexType>
373 <xsd:complexType name="NonPTAccessLinkType">
374 <xsd:annotation>
375 <xsd:documentation xml:lang="en">
376 Link between a StopPoint and an AccessPoint.
377 </xsd:documentation>
378 </xsd:annotation>
379 <xsd:complexContent>
380 <xsd:extension base="trd:ConnectionLinkType">
381 <xsd:sequence>
382 <xsd:element name="Comment" type="xsd:string" minOccurs="0"/>
383 </xsd:sequence>
384 </xsd:extension>
385 </xsd:complexContent>
386 </xsd:complexType>
387 <xsd:complexType name="PTLinkType">
388 <xsd:annotation>
389 <xsd:documentation xml:lang="en">
390 A Link between two StopPoints
391 </xsd:documentation>
392 </xsd:annotation>
393 <xsd:complexContent>
394 <xsd:extension base="trd:GeneralLinkType">
395 <xsd:sequence>
396 <xsd:element name="Comment" type="xsd:string" minOccurs="0"/>
397 </xsd:sequence>
398 </xsd:extension>
399 </xsd:complexContent>
400 </xsd:complexType>
401 <xsd:complexType name="CarType">
402 <xsd:annotation>
403 <xsd:documentation xml:lang="en">
404 The path between two places covered on the road network by a private means of transport (car, truck, etc).
405 </xsd:documentation>
406 </xsd:annotation>
407 <xsd:complexContent>
408 <xsd:extension base="trd:GeneralLinkType">
409 <xsd:sequence>
410 <xsd:element name="Comment" type="xsd:string" minOccurs="0"/>
411 </xsd:sequence>
412 </xsd:extension>
413 </xsd:complexContent>
414 </xsd:complexType>
415 <!-- AREA ===================================================== -->
416 <xsd:complexType name="AreaType">
417 <xsd:annotation>
418 <xsd:documentation xml:lang="en">
419 An area made up of a set of Points
420 </xsd:documentation>
421 </xsd:annotation>
422 <xsd:complexContent>
423 <xsd:extension base="trd:LocationType">
424 <xsd:sequence>
425 <xsd:element name="name" type="xsd:string" minOccurs="0"/>
426 <xsd:element name="contains" type="trd:TridentIdType" maxOccurs="unbounded"/>
427 <xsd:element name="boundaryPoint" type="trd:TridentIdType" minOccurs="0" maxOccurs="unbounded"/>
428 <xsd:element name="centroidOfArea" type="trd:TridentIdType" minOccurs="0"/>
429 <!-- REMARK : The following element refers to Points via Id -->
430 </xsd:sequence>
431 </xsd:extension>
432 </xsd:complexContent>
433 </xsd:complexType>
434 <!-- ALLERT C TYPE DEFINITIONS ================================= -->
435 <!--Non utile pour amivif-->
436</xsd:schema>
Note: See TracBrowser for help on using the repository browser.