Example
TAP-SKDUPD-example2.1-Classic_train.xml
standards/tap_tsi/TAP-SKDUPD-example2.1-Classic_train.xml
Element names link to their declarations.
<?xml version="1.0" encoding="UTF-8"?>
<PublicationDelivery xmlns="http://www.netex.org.uk/netex" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:siri="http://www.siri.org.uk/siri" version="1.0" xsi:schemaLocation="http://www.netex.org.uk/netex ../../../xsd/NeTEx_publication.xsd">
<!-- P SKDUPD Timetable Data Example
=============
This Example shows examples of encoding TAPTSI Timetable SKDUPD files .
SKDUPD_example_Classic_train
Data is taken from Example export csv export files and from slides for the TapTSi examples.
The following is the EDIFACT tag stream used as input.
PRD+1:13:2:9:::Classic train+0010'
RFR+AVI:1'
POP+273:2022-03-28/2022-06-18::11111101111110111111011111101111110111111011111101111110111111011111101111110111111'
POR+001002326+*0657+'
POR+001000010+0702*0703+'
POR+001000018+0712*0714+'
POR+001000100+0749*0751+'
POR+001000480+0819*0823+'
POR+001000495+0907*0909+'
POR+001000499+0924*0925+'
POR+001000603+0937*0940+'
POR+001000507+1006*1007+'
POR+001000510+1020*1022+'
POR+001000966+1044*1045+'
POR+001000453+1103*1104+'
POR+001000460+1141+'
ODI+001002326*001000460+1*13'
PDT++:::63:::'
ODI+001002326*001000460+1*13'
ASD+11'
ODI+001002326*001000460+1*13'
ASD+27'
ODI+001002326*001000460+1*13'
SER+4'
ODI+001002326*001000460+1*13'
SER+48'
ODI+001002326*001000460+1*13'
SER+5'
ODI+001002326*001000460+1*13'
SER+9'
The following is the root data transformed to a csv SKPUPD_TRAIN table
ID Service_number Reservation Tariff Service_Mode Service_Name Service_Provider not_used Reservation_system First_day Last_day Operation_days Second_service_number
1 1 13 2 9 Classic train 0010 2022-03-28 2022-06-18 11111101111110111111011111101111110111111011111101111110111111011111101111110111111
(C) 2022 Data4PT
-->
<PublicationTimestamp>2022-02-15T09:30:46.0Z</PublicationTimestamp>
<ParticipantRef>SYS001</ParticipantRef>
<!-- ======WHAT WAS REQUESTED ========== -->
<PublicationRequest version="1.0">
<RequestTimestamp>2022-02-15T09:30:46.0Z</RequestTimestamp>
<ParticipantRef>SYS002</ParticipantRef>
</PublicationRequest>
<PublicationRefreshInterval>P3M</PublicationRefreshInterval>
<dataObjects>
<!--- =============== RESULTS =========== -->
<CompositeFrame version="any" id="SKDUPD_example_1_Classic_train" responsibilitySetRef="0010">
<Name>Example of encoding Simple SKDUPD Classic Train example in NeTEx</Name>
<!--- ======= CODESPACEs======== -->
<codespaces>
<Codespace id="op_cs">
<Xmlns>op</Xmlns>
<XmlnsUrl>http://www.operator.fi/</XmlnsUrl>
<Description>Operator's data</Description>
</Codespace>
<Codespace id="uic_cs">
<Xmlns>uic</Xmlns>
<XmlnsUrl>http://www.uic.org/</XmlnsUrl>
<Description>UIC data</Description>
</Codespace>
</codespaces>
<!--- =======FRAME DEFAULTS======== -->
<FrameDefaults>
<DefaultCodespaceRef ref="op_cs"/>
</FrameDefaults>
<frames>
<ResourceFrame version="any" id="RF1">
<dataSources>
<DataSource id="uic:0060" version="any"/>
</dataSources>
</ResourceFrame>
<!-- Narrative: The SERVICE CALENDAR FRAME provides a container to organise the operational dates -->
<ServiceCalendarFrame id="uic:SKDUPD_example_1_Classic_train" version="any">
<operatingPeriods>
<UicOperatingPeriod id="uic:SKDUPD_example_1_Classic_train" version="any">
<!-- POP+273:2022-03-28/2022-06-18::11111101111110111111011111101111110111111011111101111110111111011111101111110111111' -->
<FromDate>2022-03-28T00:00:00</FromDate>
<ToDate>2022-06-18T23:59:59</ToDate>
<ValidDayBits>11111101111110111111011111101111110111111011111101111110111111011111101111110111111</ValidDayBits>
</UicOperatingPeriod>
</operatingPeriods>
</ServiceCalendarFrame>
<ServiceFrame version="any" id="uic:SKDUPD_example_1_Classic_train">
<!--- comment: THESE STOP DECLARATIONS COULD BE EXTERNAL as in a TSDUPD location , they are here so as to be able to define names
to make the example easier to follow and to show how data can be cross validated for referential integrity -->
<Name>Location / Station SKDUPD_Classic Train example in NeTex. Declaration of stops </Name>
<scheduledStopPoints>
<ScheduledStopPoint version="any" id="uic:001002326">
<Name lang="fi">Helsinki</Name>
<StopType>railStation</StopType>
<CountryRef ref="fi"/>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="uic:001000010">
<Name lang="fi">Pasil</Name>
<StopType>railStation</StopType>
<CountryRef ref="fi"/>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="uic:001000018">
<Name lang="fi">Tikkurila</Name>
<StopType>railStation</StopType>
<CountryRef ref="fi"/>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="uic:001000100">
<Name lang="fi">Lahti</Name>
<StopType>railStation</StopType>
<CountryRef ref="fi"/>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="uic:001000480">
<Name lang="fi">Kouvola</Name>
<StopType>railStation</StopType>
<CountryRef ref="fi"/>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="uic:001000495">
<Name lang="fi">Lapeenranta</Name>
<StopType>railStation</StopType>
<CountryRef ref="fi"/>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="uic:001000499">
<Name lang="fi">Joutseno</Name>
<StopType>railStation</StopType>
<CountryRef ref="fi"/>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="uic:001000603">
<Name lang="fi">Station Imatra</Name>
<StopType>railStation</StopType>
<CountryRef ref="fi"/>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="uic:001000507">
<Name lang="fi">Simpele</Name>
<StopType>railStation</StopType>
<CountryRef ref="fi"/>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="uic:001000510">
<Name lang="fi">Parikkala</Name>
<StopType>railStation</StopType>
<CountryRef ref="fi"/>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="uic:001000966">
<Name lang="fi">Kehsalahti</Name>
<StopType>railStation</StopType>
<CountryRef ref="fi"/>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="uic:001000453">
<Name lang="fi">Kitee</Name>
<StopType>railStation</StopType>
</ScheduledStopPoint>
<ScheduledStopPoint version="any" id="uic:001000460">
<Name lang="fi">Joensu</Name>
<StopType>railStation</StopType>
<CountryRef ref="fi"/>
</ScheduledStopPoint>
</scheduledStopPoints>
</ServiceFrame>
<TimetableFrame version="any" id="SKDUPD_example_1_Classic_train">
<Name>Uic Example of a very simple train timetable</Name>
<VehicleModes>rail</VehicleModes>
<vehicleJourneys>
<ServiceJourney version="any" id="1" changed="2022-01-26T09:51:00" dataSourceRef="uic:0060">
<!-- PRD+1:13:2:9:::Classic train+0010' -->
<!-- SKPUPD_TRAIN
ID Service_number Reservation Tariff Service_Mode Service_Name Service_Provider not_used Reservation_system First_day Last_day Operation_days Second_service_number
1 1 13 2 9 Classic train 0010 2022-03-28 2022-06-18 11111101111110111111011111101111110111111011111101111110111111011111101111110111111 -->
<Name>Classic Train</Name>
<TransportMode>rail</TransportMode>
<TransportSubmode>
<RailSubmode>longDistance</RailSubmode>
</TransportSubmode>
<!-- PDT++:::63:::' -->
<TypeOfProductCategoryRef versionRef="EXTERNAL" ref="63">Intercity</TypeOfProductCategoryRef>
<TypeOfServiceRef versionRef="EXTERNAL" ref="9">Intercity</TypeOfServiceRef>
<!-- TapTsi B.4.7009 9 Intercity -->
<DepartureTime>06:57:00</DepartureTime>
<!-- POP+273:2022-03-28/2022-06-18::11111101111110111111011111101111110111111011111101111110111111011111101111110111111' -->
<dayTypes>
<DayTypeRef ref="uic:SKDUPD_example_1_Classic_train"/>
</dayTypes>
<OperatorRef versionRef="EXTERNAL" ref="uic:0010">VR</OperatorRef>
<trainNumbers>
<TrainNumberRef version="any" ref="1"/>
</trainNumbers>
<parts>
<JourneyPart version="any" id="1@001002326+001000460-1">
<!-- ODI+001002326*001000460+1*13' -->
<ParentJourneyRef version="any" ref="1"/>
<MainPartRef version="any" ref="1@001002326+001000460-1"/>
<FromStopPointRef version="any" ref="uic:001002326"/>
<ToStopPointRef version="any" ref="uic:001000460"/>
<StartTime>06:57:00</StartTime>
<EndTime>11:41:00</EndTime>
<PurposeOfJourneyPartitionRef versionRef="EXTERNAL" ref="facilities"/>
<facilities>
<!-- SKDUPD_ODI
ID FromStopNumber ToStopNumber ASD_or_SER Reservation_in_equipment Equipment Tariff_in_equipment
1 1 13 63
1 1 13 S11
1 1 13 S27
1 1 13 F4
1 1 13 F48
1 1 13 F5
1 1 13 F9 -->
<ServiceFacilitySet version="any" id="1@63">
<!-- PDT++:::63:::' -->
<TypeOfFacilityRef versionRef="EXTERNAL" ref="63"/>
<accommodations>
<Accommodation version="any" id="1@63">
<FareClass>secondClass</FareClass>
<!-- 63 TafTsi B.4.9039: 63 Second-class, couchette, four-bed, C4 -->
<AccommodationFacility>couchette</AccommodationFacility>
<!-- T2 TafTsi B.4.9039: 2 First-class sleepers -->
<CouchetteFacility>C4</CouchetteFacility>
</Accommodation>
</accommodations>
</ServiceFacilitySet>
<ServiceFacilitySet version="any" id="1@S11">
<!-- ASD+11' -->
<TypeOfFacilityRef versionRef="EXTERNAL" ref="S11"/>
<accommodations>
<Accommodation version="any" id="1@S11">
<FareClass>firstClass</FareClass>
<!-- S11 TafTsi B.4.9039: 11 First-class sleeper, single -->
<AccommodationFacility>singleSleeper</AccommodationFacility>
<!-- 2 TafTsi B.4.9039: 2 First-class sleepers -->
</Accommodation>
</accommodations>
</ServiceFacilitySet>
<ServiceFacilitySet version="any" id="1@S27">
<!-- ASD+27' -->
<TypeOfFacilityRef versionRef="EXTERNAL" ref="S27"/>
<AssistanceFacilityList>wheelchairAssistance</AssistanceFacilityList>
<MobilityFacilityList>onboardAssistance</MobilityFacilityList>
<!-- S27 TafTSI B4.7161: 27 Disabled Services for disabled persons -->
</ServiceFacilitySet>
<ServiceFacilitySet version="any" id="1@F4">
<!-- SER+4'-->
<TypeOfFacilityRef versionRef="EXTERNAL" ref="F4"/>
<FareClasses>firstClass</FareClasses>
<!-- F4 TafTsi B.4.9039: 4 First-class seats -->
</ServiceFacilitySet>
<ServiceFacilitySet version="any" id="1@F48">
<!-- SER+48' -->
<TypeOfFacilityRef versionRef="EXTERNAL" ref="F48"/>
<AccommodationFacilityList>familyCarriage</AccommodationFacilityList>
<!-- F48 TafTsi B.4.9039: 48 Family compartment -->
</ServiceFacilitySet>
<ServiceFacilitySet version="any" id="1@F5">
<!-- SER+5'-->
<TypeOfFacilityRef versionRef="EXTERNAL" ref="F5"/>
<FareClasses>secondClass</FareClasses>
<!-- F5 TafTsi B.4.9039: 5 Second-class seats -->
</ServiceFacilitySet>
<ServiceFacilitySet version="any" id="1@F9">
<!-- SER+9' -->
<TypeOfFacilityRef versionRef="EXTERNAL" ref="F9"/>
<CateringFacilityList>restaurant</CateringFacilityList>
<!-- F9 TafTsi B.4.9039: 9 Restaurant-->
</ServiceFacilitySet>
<ServiceFacilitySet version="any" id="1@R13">
<!-- PRD+1:13:2:9:::Classic train+0010' -->
<TypeOfFacilityRef versionRef="EXTERNAL" ref="R13"/>
<ServiceReservationFacilityList>reservationsCompulsory</ServiceReservationFacilityList>
<!-- R13 TafTsi B.4.7037I mapping 13 Reservation compulsory -->
</ServiceFacilitySet>
</facilities>
</JourneyPart>
</parts>
<calls>
<!-- SKPUPD_POR
ID Stop_number UIC Arrival_time Arrival_offset Departure_time Departure_offset Platform_arrival Platform_departure Stop_property Traffic_restriction Distance
1 1 001002326 0657
1 2 001000010 0702 0703
1 3 001000018 0712 0714
1 4 001000100 0749 0751
1 5 001000480 0819 0823
1 6 001000495 0907 0909
1 7 001000499 0924 0925
1 8 001000603 0937 0940
1 9 001000507 1006 1007
1 10 001000510 1020 1022
1 11 001000966 1044 1045
1 12 001000453 1103 1104
1 13 001000460 1141 -->
<Call version="any" id="1-1">
<!-- POR+001002326+*0657+' -->
<ScheduledStopPointRef version="any" ref="uic:001002326">Helsinki</ScheduledStopPointRef>
<Arrival>
<ForAlighting>false</ForAlighting>
</Arrival>
<Departure>
<Time>06:57:00</Time>
</Departure>
</Call>
<Call version="any" id="1-2">
<!-- POR+001000010+0702*0703+' -->
<ScheduledStopPointRef version="any" ref="uic:001000010">Pasil</ScheduledStopPointRef>
<Arrival>
<Time>07:02:00</Time>
</Arrival>
<Departure>
<Time>07:03:00</Time>
</Departure>
</Call>
<Call version="any" id="1-3">
<!-- POR+001000018+0712*0714+' -->
<ScheduledStopPointRef version="any" ref="uic:001000018">Tikkurila</ScheduledStopPointRef>
<Arrival>
<Time>07:12:00</Time>
</Arrival>
<Departure>
<Time>07:14:00</Time>
</Departure>
</Call>
<Call version="any" id="1-4">
<!-- POR+001000100+0749*0751+' -->
<ScheduledStopPointRef version="any" ref="uic:001000100">Lahti</ScheduledStopPointRef>
<Arrival>
<Time>07:49:00</Time>
</Arrival>
<Departure>
<Time>07:51:00</Time>
</Departure>
</Call>
<Call version="any" id="1-5">
<!-- POR+001000480+0819*0823+' -->
<ScheduledStopPointRef version="any" ref="uic:001000480">Kouvola</ScheduledStopPointRef>
<Arrival>
<Time>08:19:00</Time>
</Arrival>
<Departure>
<Time>08:23:00</Time>
</Departure>
</Call>
<Call version="any" id="1-6">
<!-- POR+001000495+0907*0909+' -->
<ScheduledStopPointRef version="any" ref="uic:001000495">Lapeenranta</ScheduledStopPointRef>
<Arrival>
<Time>09:07:00</Time>
</Arrival>
<Departure>
<Time>09:09:00</Time>
</Departure>
</Call>
<Call version="any" id="1-7">
<!-- POR+001000499+0924*0925+' -->
<ScheduledStopPointRef version="any" ref="uic:001000499">Joutseno</ScheduledStopPointRef>
<Arrival>
<Time>09:24:00</Time>
</Arrival>
<Departure>
<Time>09:25:00</Time>
</Departure>
</Call>
<Call version="any" id="1-8">
<!-- POR+001000603+0937*0940+' -->
<ScheduledStopPointRef version="any" ref="uic:001000603">Imatra</ScheduledStopPointRef>
<Arrival>
<Time>09:37:00</Time>
</Arrival>
<Departure>
<Time>09:40:00</Time>
</Departure>
</Call>
<Call version="any" id="1-9">
<!-- POR+001000507+1006*1007+' -->
<ScheduledStopPointRef version="any" ref="uic:001000507">Simpele</ScheduledStopPointRef>
<Arrival>
<Time>10:06:00</Time>
</Arrival>
<Departure>
<Time>10:07:00</Time>
</Departure>
</Call>
<Call version="any" id="1-10">
<!-- POR+001000510+1020*1022+' -->
<ScheduledStopPointRef version="any" ref="uic:001000510">Parikkala</ScheduledStopPointRef>
<Arrival>
<Time>10:20:00</Time>
</Arrival>
<Departure>
<Time>10:22:00</Time>
</Departure>
</Call>
<Call version="any" id="1-11">
<!-- POR+001000966+1044*1045+' -->
<ScheduledStopPointRef version="any" ref="uic:001000966">Kehsalahti</ScheduledStopPointRef>
<Arrival>
<Time>10:44:00</Time>
</Arrival>
<Departure>
<Time>10:45:00</Time>
</Departure>
</Call>
<Call version="any" id="1-12">
<ScheduledStopPointRef version="any" ref="uic:001000453">Kitee</ScheduledStopPointRef>
<!-- POR+001000453+1103*1104+' -->
<Arrival>
<Time>11:03:00</Time>
</Arrival>
<Departure>
<Time>11:04:00</Time>
</Departure>
</Call>
<Call version="any" id="1-13">
<!-- POR+001000460+1141+' -->
<ScheduledStopPointRef version="any" ref="uic:001000460">Joensu</ScheduledStopPointRef>
<Arrival>
<Time>11:41:00</Time>
</Arrival>
<Departure>
<ForBoarding>false</ForBoarding>
</Departure>
</Call>
</calls>
<facilities>
<!-- FRom SKPUPD_TRAIN -->
<ServiceFacilitySet version="any" id="1@reservation">
<TypeOfFacilityRef versionRef="EXTERNAL" ref="R13"/>
<ServiceReservationFacilityList>noReservationsPossible</ServiceReservationFacilityList>
<!-- R13 TafTsi B.4.7037: 13 Reservation compulsory -->
<UicProductCharacteristicList>allInclusivePrice</UicProductCharacteristicList>
<!-- Tariff 2: Taf TSI B4.7139: 2 (Global price) All inclusive tariff -->
</ServiceFacilitySet>
</facilities>
</ServiceJourney>
</vehicleJourneys>
<trainNumbers>
<TrainNumber version="any" id="1">
<ForAdvertisement>13</ForAdvertisement>
<ForProduction>1</ForProduction>
</TrainNumber>
</trainNumbers>
</TimetableFrame>
</frames>
</CompositeFrame>
<!-- == COACH GROUP == -->
</dataObjects>
</PublicationDelivery>