Schema source

opra_cancelledDatedVehicleJourney_version.xsd

OpRa/xsd/opra_indicators/opra_cancelledDatedVehicleJourney_version.xsdView on GitHub

<?xml version="1.0" encoding="UTF-8"?>
<!--Created with Liquid Studio (https://www.liquid-technologies.com)-->
<xsd:schema xmlns:netex="http://www.netex.org.uk/netex" xmlns="https://transmodel-cen.eu/opra/1.0" xmlns:siri="http://www.siri.org.uk/siri" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="https://transmodel-cen.eu/opra/1.0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" id="opra_cancelledDatedVehicleJourney_version">
	<!-- SIRI Imports-->
	<xsd:import namespace="http://www.siri.org.uk/siri" schemaLocation="../opra_imports/opra_siri_imports.xsd"/>
	<!-- NeTEX Imports-->
	<xsd:import namespace="http://www.netex.org.uk/netex" schemaLocation="../opra_imports/opra_netex_imports.xsd"/>
	<!-- OpRa includes-->
	<xsd:include schemaLocation="../opra_framework/opra_frames/opra_indicatorFrame_version.xsd"/>
	<xsd:include schemaLocation="../opra_framework/opra_genericFramework/opra_GeneralLogEntry_version.xsd"/>
	<xsd:include schemaLocation="../opra_framework/opra_reusableComponents/opra_filtering_support.xsd"/>
	<xsd:include schemaLocation="../opra_framework/opra_reusableComponents/opra_durationDistribution_support.xsd"/>
	<!--
	<xsd:include schemaLocation="../opra_framework/opra_reusableComponents/opra_statistics_support.xsd"/>
	-->
	<xsd:annotation>
		<xsd:appinfo>
			<Metadata xmlns="https://transmodel-cen.eu/opra/1.0">
				<Aggregation>main schema</Aggregation>
				<Audience>e-service developers</Audience>
				<Coverage>Europe</Coverage>
				<Creator>First Drafted for version 1.0 CEN TC278 WG3 SG10 - OpRa -  Editor CEN Opra Project Team</Creator>
				<Date>
					<Created>2024-11-29</Created>
				</Date>
				<Description>
					<p>OpRa - Operational Raw Data</p>
				</Description>
				<Format>
					<MediaType>text/xml</MediaType>
					<Syntax>http://www.w3.org/2001/XMLSchema</Syntax>
					<Description>XML schema, W3C Recommendation 2001</Description>
				</Format>
				<Identifier>{https://transmodel-cen.eu/opra/1.0/xsd/opra_lateDatedVehicleJourney_version.xsd</Identifier>
				<Language>[ISO 639-2/B] ENG</Language>
				<Rights>Unclassified
				</Rights>
				<Source>
					<ul>
						<li>Created for OpRa</li>
					</ul>
				</Source>
				<Status>Initial Version</Status>
				<Subject>
					<Category>Arts, recreation and travel, Tourism, Travel (tourism), Transport,
Air transport, Airports,
Ports and maritime transport, Ferries (marine),
Public transport, Bus services, Coach services, Bus stops and stations,
Rail transport, Railway stations and track, Train services, Underground trains,
Business and industry, Transport, Air transport , Ports and maritime transport, Public transport,
Rail transport, Roads and Road transport
</Category>
					<Project>CEN TC278 WG3 SG10.</Project>
				</Subject>
				<Title>Opra Operation Raw Data Exchange</Title>
				<Type>Standard</Type>
			</Metadata>
		</xsd:appinfo>
		<xsd:documentation>OpRa CancelledDatedVehicleJourney</xsd:documentation>
	</xsd:annotation>
	<xsd:group name="CancelledDatedVehicleJourneyScopeGroup">
		<xsd:annotation>
			<xsd:documentation>Dynamic (may change between states) elements for a CancelledDatedVehicleJourney (as a LOG ENTRY)</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="siri:SituationRef" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Reference to a SITUATION providing further information about the CANCELLED DATED VEHICLE JOURNEY.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:group ref="SimpleControlActionRefGroup" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>A loose reference (not defined in the data exchange) to the CONTROL ACTION that cancelled the journey.</xsd:documentation>
				</xsd:annotation>
			</xsd:group>
		</xsd:sequence>
	</xsd:group>
	<xsd:simpleType name="CancelledDatedVehicleJourneyCountIdType">
		<xsd:annotation>
			<xsd:documentation>Identifier type for CANCELLED DATED VEHICLE JOURNEY COUNT.</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="LoggableObjectIdType"/>
	</xsd:simpleType>
	<xsd:element name="CancelledDatedVehicleJourneyCountRef" type="CancelledDatedVehicleJourneyCountRefStructure">
		<xsd:annotation>
			<xsd:documentation>Reference to a CANCELLED DATED VEHICLE JOURNEY COUNT.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="CancelledDatedVehicleJourneyCountRefStructure">
		<xsd:annotation>
			<xsd:documentation>Type of reference to a CANCELLED DATED VEHICLE JOURNEY COUNT.</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:restriction base="LoggableObjectRefStructure">
				<xsd:attribute name="ref" type="CancelledDatedVehicleJourneyCountIdType" use="required"/>
			</xsd:restriction>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- ======================================================================= -->
	<xsd:element name="CancelledDatedVehicleJourneyCount" substitutionGroup="AbstractIndicator">
		<xsd:annotation>
			<xsd:documentation>Implementation of a CANCELLED DATED VEHICLE JOURNEY COUNT.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:restriction base="CancelledDatedVehicleJourneyCount_VersionStructure">
					<xsd:sequence>
						<xsd:sequence>
							<xsd:group ref="netex:EntityInVersionGroup" minOccurs="0"/>
						</xsd:sequence>
						<xsd:sequence>
							<xsd:group ref="netex:DataManagedObjectGroup"/>
						</xsd:sequence>
						<xsd:sequence>
							<xsd:group ref="CancelledDatedVehicleJourneyCountGroup"/>
						</xsd:sequence>
					</xsd:sequence>
					<xsd:attribute name="id" type="CancelledDatedVehicleJourneyCountIdType"/>
				</xsd:restriction>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:complexType name="CancelledDatedVehicleJourneyCount_VersionStructure">
		<xsd:annotation>
			<xsd:documentation>Type for a LOGGABLE OBJECT designed for recording CANCELLED DATED VEHICLE JOURNEY information.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="Indicator_VersionStructure">
				<xsd:sequence>
					<xsd:group ref="CancelledDatedVehicleJourneyCountGroup"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:group name="CancelledDatedVehicleJourneyCountGroup">
		<xsd:annotation>
			<xsd:documentation>Elements for the CANCELLED DATED VEHICLE JOURNEY COUNT defined by generic PT SCOPE context and additional specific context.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:group ref="CalendarAwarePtScopeGroup"/>
			<xsd:group ref="FleetScopeGroup"/>
			<xsd:group ref="CancelledDatedVehicleJourneyScopeGroup"/>
			<xsd:element name="entries" type="CancelledDatedVehicleJourneyEntryRefs_RelStructure" minOccurs="0"/>
			<xsd:group ref="OccurrenceStatisticsGroup"/>
		</xsd:sequence>
	</xsd:group>
	<xsd:complexType name="CancelledDatedVehicleJourneyCounts_RelStructure">
		<xsd:annotation>
			<xsd:documentation>A collection of one or more CancelledDatedVehicleJourneys.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="CancelledDatedVehicleJourneyCount" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>LOGGABLE OBJECT designed for recording DATED VEHICLE JOURNEY information.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:simpleType name="CancelledDatedVehicleJourneyEntryIdType">
		<xsd:restriction base="netex:LogEntryIdType"/>
	</xsd:simpleType>
	<xsd:element name="CancelledDatedVehicleJourneyEntryRef" type="CancelledDatedVehicleJourneyEntryRefStructure">
		<xsd:annotation>
			<xsd:documentation>Reference to a CANCELLED DATED VEHICLE JOURNEY ENTRY.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="CancelledDatedVehicleJourneyEntryRefStructure">
		<xsd:annotation>
			<xsd:documentation>Type for a reference to a CANCELLED DATED VEHICLE JOURNEY ENTRY.</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:restriction base="netex:LogEntryRefStructure">
				<xsd:attribute name="ref" type="CancelledDatedVehicleJourneyEntryIdType" use="required"/>
			</xsd:restriction>
		</xsd:simpleContent>
	</xsd:complexType>
	<xsd:element name="CancelledDatedVehicleJourneyEntryRefs" type="CancelledDatedVehicleJourneyEntryRefs_RelStructure"/>
	<xsd:complexType name="CancelledDatedVehicleJourneyEntryRefs_RelStructure">
		<xsd:annotation>
			<xsd:documentation>Collection of references to CANCELLED DATED VEHICLE JOURNEY ENTRIes.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="CancelledDatedVehicleJourneyEntryRef" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>A reference to a CANCELLED DATED VEHICLE JOURNEY ENTRY.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="CancelledDatedVehicleJourneyEntry" substitutionGroup="AbstractIndicatorLogEntry">
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:restriction base="CancelledDatedVehicleJourneyEntry_Structure">
					<xsd:sequence>
						<xsd:sequence>
							<xsd:group ref="netex:EntityInVersionGroup" minOccurs="0"/>
						</xsd:sequence>
						<xsd:sequence>
							<xsd:group ref="netex:DataManagedObjectGroup"/>
						</xsd:sequence>
						<xsd:sequence>
							<xsd:group ref="netex:LogEntryGroup"/>
						</xsd:sequence>
						<xsd:sequence>
							<xsd:group ref="CancelledDatedVehicleJourneyEntryGroup"/>
						</xsd:sequence>
					</xsd:sequence>
					<xsd:attribute name="id" type="CancelledDatedVehicleJourneyEntryIdType"/>
				</xsd:restriction>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>
	<xsd:complexType name="CancelledDatedVehicleJourneyEntry_Structure">
		<xsd:complexContent>
			<xsd:extension base="IndicatorLogEntry_VersionStructure">
				<xsd:group ref="CancelledDatedVehicleJourneyEntryGroup"/>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:group name="CancelledDatedVehicleJourneyEntryGroup">
		<xsd:annotation>
			<xsd:documentation>Elements for a CancelledDatedVehicleJourneyEntry.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:group ref="CalendarAwarePtScopeGroup"/>
			<xsd:group ref="FleetScopeGroup"/>
			<xsd:group ref="CancelledDatedVehicleJourneyScopeGroup"/>
			<xsd:element name="operationalEvents" type="SimpleEventRefs_RelStructure" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The collection of EVENTs that led to the cancellation.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ReplacementJourneyCreated" type="xsd:boolean" default="false" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Whether a replacement journey was created is an addition to the planning data sent. Default is 'false': i.e. not an additional journey.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:group>
	<xsd:complexType name="CancelledDatedVehicleJourneyEntries_RelStructure">
		<xsd:annotation>
			<xsd:documentation>A collection of one or more CancelledDatedVehicleJourneyEntry instances.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="CancelledDatedVehicleJourneyEntry" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Represents cancellation of a journey.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>