diff --git a/OJP.xsd b/OJP.xsd index ea455566d..0cea51697 100644 --- a/OJP.xsd +++ b/OJP.xsd @@ -1,52 +1,52 @@ - - - - - - - - Root element for OJP messages based on SIRI message exchange protocol. - - - - - - - - - - - - - - - - OJP Request - Groups individual functional requests. - - - - - Type for OJP Request - Groups individual functional requests. - - - - - - - - - OJP Request - Groups individual functional responses. - - - - - Type for OJP Response - Groups individual functional responses. - - - - - + + + + + + + + Root element for OJP messages based on SIRI message exchange protocol. + + + + + + + + + + + + + + + + OJP Request - Groups individual functional requests. + + + + + Type for OJP Request - Groups individual functional requests. + + + + + + + + + OJP Request - Groups individual functional responses. + + + + + Type for OJP Response - Groups individual functional responses. + + + + + diff --git a/OJP_Common.xsd b/OJP_Common.xsd index 100860cad..64c4aa4e6 100644 --- a/OJP_Common.xsd +++ b/OJP_Common.xsd @@ -1,343 +1,342 @@ - - - - - - - - ========================================= General ================================================ - - - - Structured error messages - - - - - Code of the error situation. - - - - - Description of the error situation. - - - - - - - Code within scope of a private referential system - - - - - Code of the foreign referential system. - - - - - Object code within this private/foreign system. - - - - - - ========================================= Participants ============================================= - - - - Reference to a Participant ([equivalent of PARTICIPANT in SIRI] IT system that is participating in a communication with other participant(s)) - - - - ========================================= Operators ============================================= - - - - Reference to an Operator ([TMv6] company providing public transport services.) - - - - - Filter for in/exclusion of transport operators. - - - - - Whether operators in list are to include or exclude from search. Default is exclude. - - - - - - - ========================================= Lines ====================================== - - - - Filter for in/exclusion of lines (and directions). - - - - - Reference a GROUP of DIRECTIONs of the ROUTEs belonging to the same LINE created for the purpose of filtering and organising timetables.. - - - - - Whether lines in list are to include or exclude from search. Default is exclude. - - - - - - - - Identifier of a Journey - - - - - - Reference to a Journey - - - - - - - - Reference to a Journey - - - - - Reference to a DATED VEHICLE JOURNEY (Reference to a journey on a specific operating day) - - - - - - - - - - Reference to a vehicle for a specific point in time. - - - - - - Time stamp when the vehicle is operating. In most use cases equal to "now". - - - - - - - - Sharing service loan and return scheme. - - - - - - - - - - Usage parameters of a sharing service. - - - - - Typical time a user will need to check in and unlock the vehicle. - - - - - Typical time a user will need to lock the vehicle and check out. - - - - - - - Service that provides shared vehicles. - - - - - - Public name of the service. - - - - - Type of the sharing scheme. - - - - - - Link to web page providing more details on service. - - - - - - - - identifier of ORGANISATION with ownership as the RESPONSIBILITY ROLE - - - - - - Reference to an ORGANISATION with ownership as the RESPONSIBILITY ROLE - - - - - - - - Reference to an ORGANISATION with ownership as the RESPONSIBILITY ROLE - - - - - - Identifier of an Operating Day - - - - - - Reference to an Operating Day - - - - - - - - Reference to an Operating Day - - - - - [TMv6] day of public transport operation of which the characteristics are defined in a specific SERVICE CALENDAR and which may last more than 24 hours. - - - - - Start date of period. - - - - - End date of period. - - - - - Bit pattern for operating days between start date and end date. The length of the pattern is equal to the number of days from start date to end date. A bit value of "1" indicates that an event actually happens on the day that is represented by the bit position. - - - - - - - Coded as bit pattern - - - - - Bit string definition of operating days. - - - - - Textual description of the operation days, e.g. "monday to friday" or "not on holidays". - - - - - - - [a specialisation of TIME BAND in TMv6] aggregation of TIME BAND and DAY OF WEEK (Time period on a weekday). - - - - - [a specialisation of DAY OF WEEK in TMv6] enumeration of individual the seven DAYs OF WEEK, along with public holidays - - - - - Start time of period. - - - - - Time duration of period. - - - - - - - [a specialisation of DAY OF WEEK in TMv6] enumeration of individual the seven DAYs OF WEEK, along with public holidays - - - - - - - - - - - - - - ==================================== General Attributes ============================================= - - - - Structured attribute classification with associated text. - - - - - Text of the attribute to be shown to the user. - - - - - Internal code of the attribute. Can be used for detection of double occurrences. - - - - - - Defines whether the attribute has to be shown to the user. - - - - - Importance of the attribute. - - - - - URL to additional information on this general attribute. If available, the whole attribute text has to be used as the marked link. - - - - + + + + + + + ========================================= General ================================================ + + + + Structured error messages + + + + + Code of the error situation. + + + + + Description of the error situation. + + + + + + + Code within scope of a private referential system + + + + + Code of the foreign referential system. + + + + + Object code within this private/foreign system. + + + + + + ========================================= Participants ============================================= + + + + Reference to a Participant ([equivalent of PARTICIPANT in SIRI] IT system that is participating in a communication with other participant(s)) + + + + ========================================= Operators ============================================= + + + + Reference to an Operator ([TMv6] company providing public transport services.) + + + + + Filter for in/exclusion of transport operators. + + + + + Whether operators in list are to include or exclude from search. Default is exclude. + + + + + + + ========================================= Lines ====================================== + + + + Filter for in/exclusion of lines (and directions). + + + + + Reference a GROUP of DIRECTIONs of the ROUTEs belonging to the same LINE created for the purpose of filtering and organising timetables.. + + + + + Whether lines in list are to include or exclude from search. Default is exclude. + + + + + + + + Identifier of a Journey + + + + + + Reference to a Journey + + + + + + + + Reference to a Journey + + + + + Reference to a DATED VEHICLE JOURNEY (Reference to a journey on a specific operating day) + + + + + + + + + + Reference to a vehicle for a specific point in time. + + + + + + Time stamp when the vehicle is operating. In most use cases equal to "now". + + + + + + + + Sharing service loan and return scheme. + + + + + + + + + + Usage parameters of a sharing service. + + + + + Typical time a user will need to check in and unlock the vehicle. + + + + + Typical time a user will need to lock the vehicle and check out. + + + + + + + Service that provides shared vehicles. + + + + + + Public name of the service. + + + + + Type of the sharing scheme. + + + + + + Link to web page providing more details on service. + + + + + + + + identifier of ORGANISATION with ownership as the RESPONSIBILITY ROLE + + + + + + Reference to an ORGANISATION with ownership as the RESPONSIBILITY ROLE + + + + + + + + Reference to an ORGANISATION with ownership as the RESPONSIBILITY ROLE + + + + + + Identifier of an Operating Day + + + + + + Reference to an Operating Day + + + + + + + + Reference to an Operating Day + + + + + [TMv6] day of public transport operation of which the characteristics are defined in a specific SERVICE CALENDAR and which may last more than 24 hours. + + + + + Start date of period. + + + + + End date of period. + + + + + Bit pattern for operating days between start date and end date. The length of the pattern is equal to the number of days from start date to end date. A bit value of "1" indicates that an event actually happens on the day that is represented by the bit position. + + + + + + + Coded as bit pattern + + + + + Bit string definition of operating days. + + + + + Textual description of the operation days, e.g. "monday to friday" or "not on holidays". + + + + + + + [a specialisation of TIME BAND in TMv6] aggregation of TIME BAND and DAY OF WEEK (Time period on a weekday). + + + + + [a specialisation of DAY OF WEEK in TMv6] enumeration of individual the seven DAYs OF WEEK, along with public holidays + + + + + Start time of period. + + + + + Time duration of period. + + + + + + + [a specialisation of DAY OF WEEK in TMv6] enumeration of individual the seven DAYs OF WEEK, along with public holidays + + + + + + + + + + + + + + ==================================== General Attributes ============================================= + + + + Structured attribute classification with associated text. + + + + + Text of the attribute to be shown to the user. + + + + + Internal code of the attribute. Can be used for detection of double occurrences. + + + + + + Defines whether the attribute has to be shown to the user. + + + + + Importance of the attribute. + + + + + URL to additional information on this general attribute. If available, the whole attribute text has to be used as the marked link. + + + + diff --git a/OJP_Fare.xsd b/OJP_Fare.xsd index c8f0f8dd0..f8dcdb190 100644 --- a/OJP_Fare.xsd +++ b/OJP_Fare.xsd @@ -1,267 +1,267 @@ - - - - - - - - ====================================================Request definitions==================================================== - - - - - Fare request structure. - - - - - - A request for stop-related Fare information. - - - - - A request for general/static Fare information. - - - - - A request to calculate the Fare information of a single trip - - - - - A request to calculate aggregated Fare information of multiple single trips - - - - - - Parameter to filter the response contents. - - - - - - - Fare request element. - - - - - - - - - Sub-request: stop-related fare information. - - - - - - Date for which to retrieve Fare information. - - - - - - - General Fare information. May depend on date. - - - - - Date for which to retrieve Fare information. - - - - - - - - Structure of a Single Trip Fare Request. - - - - - A complete trip from origin to destination - - - - - - - Structure of a Multi Trip Fare Request. - - - - - Multiple complete trips from multiple origins and multiple destination - - - - - - ====================================================Response definitions==================================================== - - - - Fare response element. - - - - - - - - - - - - Fare result choice element. - - - - - - - Fare response structure. - - - - - Error messages related to the request as a whole. - - - - - - - - Wrapper element for Fare results. - - - - - ID of this result. - - - - - - Stop-related Fare information. - - - - - Static Fare information. - - - - - Fare and FareProducts for a given trip. - - - - - Fare and FareProducts for multiple trips. - - - - - - - - Stop-related Fare information. - - - - - One or more lists of Fare zones that belong to a Fare authority/area. - - - - - - - - General Fare information. - - - - - [related to FARE PRODUCT in TM and NeTEx] different FARE PRODUCTs that may be available with related information. - - - - - URL to information page on the web. - - - - - - - - Element that connects FareProducts to trips. A TripFareProduct is a FAREPRODUCT covering a part or the whole of a TRIP from boarding the first public transport vehicle to alighting from the last public transport vehicle (corresponds to a package of PREASSIGNED FARE PRODUCTs) - - - - - - Identifies the "valid from" trip. - - - - - Identifies the "valid from" tripLeg. If missing, then valid from the first leg. - - - - - Identifies the "valid to" trip. - - - - - Identifies the "valid to" tripLeg. If missing, then valid to the last leg. - - - - - - - Structure of a Multi Trip Fare Request result - - - - - Result-specific error messages. - - - - - Non-empty list of trip references in the corresponding MultiTripFareRequestStructure - - - - - Zero, one or more FareProducts that are valid for the referenced trips / part of trips. - - - - - The set of passed zones. - - - - - URL to Fare information pages on the web. - - - - + + + + + + + + ====================================================Request definitions==================================================== + + + + + Fare request structure. + + + + + + A request for stop-related Fare information. + + + + + A request for general/static Fare information. + + + + + A request to calculate the Fare information of a single trip + + + + + A request to calculate aggregated Fare information of multiple single trips + + + + + + Parameter to filter the response contents. + + + + + + + Fare request element. + + + + + + + + + Sub-request: stop-related fare information. + + + + + + Date for which to retrieve Fare information. + + + + + + + General Fare information. May depend on date. + + + + + Date for which to retrieve Fare information. + + + + + + + + Structure of a Single Trip Fare Request. + + + + + A complete trip from origin to destination + + + + + + + Structure of a Multi Trip Fare Request. + + + + + Multiple complete trips from multiple origins and multiple destination + + + + + + ====================================================Response definitions==================================================== + + + + Fare response element. + + + + + + + + + + + + Fare result choice element. + + + + + + + Fare response structure. + + + + + Error messages related to the request as a whole. + + + + + + + + Wrapper element for Fare results. + + + + + ID of this result. + + + + + + Stop-related Fare information. + + + + + Static Fare information. + + + + + Fare and FareProducts for a given trip. + + + + + Fare and FareProducts for multiple trips. + + + + + + + + Stop-related Fare information. + + + + + One or more lists of Fare zones that belong to a Fare authority/area. + + + + + + + + General Fare information. + + + + + [related to FARE PRODUCT in TM and NeTEx] different FARE PRODUCTs that may be available with related information. + + + + + URL to information page on the web. + + + + + + + + Element that connects FareProducts to trips. A TripFareProduct is a FAREPRODUCT covering a part or the whole of a TRIP from boarding the first public transport vehicle to alighting from the last public transport vehicle (corresponds to a package of PREASSIGNED FARE PRODUCTs) + + + + + + Identifies the "valid from" trip. + + + + + Identifies the "valid from" tripLeg. If missing, then valid from the first leg. + + + + + Identifies the "valid to" trip. + + + + + Identifies the "valid to" tripLeg. If missing, then valid to the last leg. + + + + + + + Structure of a Multi Trip Fare Request result + + + + + Result-specific error messages. + + + + + Non-empty list of trip references in the corresponding MultiTripFareRequestStructure + + + + + Zero, one or more FareProducts that are valid for the referenced trips / part of trips. + + + + + The set of passed zones. + + + + + URL to Fare information pages on the web. + + + + diff --git a/OJP_ModesSupport.xsd b/OJP_ModesSupport.xsd index 9c3f58385..80f347808 100644 --- a/OJP_ModesSupport.xsd +++ b/OJP_ModesSupport.xsd @@ -1,172 +1,172 @@ - - - - - - ========================================= Individual Modes ============================ - - - - modes which an individual powers themselves (such as walk, cycle) - - - - - - - - - - - - - - [a category of MODE in TMv6] MODEs offered by private individuals - - - - - - - - Individual modes and their usage limits as stated by the passenger - - - - - - Maximum distance in meters. If given, it restricts the maximum distance of routes with the given mode. - - - - - Maximum duration. If given, it restricts the maximum time of routes with the given mode. - - - - - Minimum distance in meters. If given, it restricts the minimum distance of routes with the given mode. - - - - - Minimum duration. If given, it restricts the minimum time of routes with the given mode. - - - - - Relative speed in percent. If given slows the standard speed (below 100) or fasten it (above 100). - - - - - - - Types of cmodes that run at any time without a timetable. - - - - - - - - - ========================================= Interchange Modes ============================ - - - - MODEs dedicated to peform TRANSFERs - - - - - - - - - - - - - - - - - ========================================= Public Transport Modes ============================ - - - - [a specialisation of MODE in TMv6] an extended range of VEHICLE MODEs, aggregating them with some SUBMODEs - - - - - - Name of the mode. - - - - - Short name or acronym of the mode. - - - - - Additional text that further describes the mode. - - - - - - - Elements for a Transport Mode - - - - - Categorisation of mode - - - - - - - - - List of public transport modes ([from SIRI] mode of public transport service, corresponds to VEHICLE MODE) to include or exclude. - - - - - Whether modes in list are to include or exclude from search. Default is exclude. - - - - - List of PT Transport modes to include/exclude. - - - - - - - - List of private mobility offers to include or exclude. - - - - - Whether modes in list are to include or exclude from search. Default is exclude. - - - - - List of private mobility offers to include/exclude. - - - - + + + + + + ========================================= Individual Modes ============================ + + + + modes which an individual powers themselves (such as walk, cycle) + + + + + + + + + + + + + + [a category of MODE in TMv6] MODEs offered by private individuals + + + + + + + + Individual modes and their usage limits as stated by the passenger + + + + + + Maximum distance in meters. If given, it restricts the maximum distance of routes with the given mode. + + + + + Maximum duration. If given, it restricts the maximum time of routes with the given mode. + + + + + Minimum distance in meters. If given, it restricts the minimum distance of routes with the given mode. + + + + + Minimum duration. If given, it restricts the minimum time of routes with the given mode. + + + + + Relative speed in percent. If given slows the standard speed (below 100) or fasten it (above 100). + + + + + + + Types of cmodes that run at any time without a timetable. + + + + + + + + + ========================================= Interchange Modes ============================ + + + + MODEs dedicated to peform TRANSFERs + + + + + + + + + + + + + + + + + ========================================= Public Transport Modes ============================ + + + + [a specialisation of MODE in TMv6] an extended range of VEHICLE MODEs, aggregating them with some SUBMODEs + + + + + + Name of the mode. + + + + + Short name or acronym of the mode. + + + + + Additional text that further describes the mode. + + + + + + + Elements for a Transport Mode + + + + + Categorisation of mode + + + + + + + + + List of public transport modes ([from SIRI] mode of public transport service, corresponds to VEHICLE MODE) to include or exclude. + + + + + Whether modes in list are to include or exclude from search. Default is exclude. + + + + + List of PT Transport modes to include/exclude. + + + + + + + + List of private mobility offers to include or exclude. + + + + + Whether modes in list are to include or exclude from search. Default is exclude. + + + + + List of private mobility offers to include/exclude. + + + + diff --git a/OJP_Requests.xsd b/OJP_Requests.xsd index 60b55707f..6db574b66 100644 --- a/OJP_Requests.xsd +++ b/OJP_Requests.xsd @@ -1,206 +1,206 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OJP_SituationSupport.xsd b/OJP_SituationSupport.xsd index a5c2d3250..532974b25 100644 --- a/OJP_SituationSupport.xsd +++ b/OJP_SituationSupport.xsd @@ -1,31 +1,31 @@ - - - - Wrapper type for SIRI PtSituationsElementStructure - - - - - SIRI situation details. - - - - - - - - Reference to situation message. Message details might be found in response context or through other communication channels. - - - - - Reference structure for situation message. Situation details might be found in response context or through other communication channels. - - - - - + + + + Wrapper type for SIRI PtSituationsElementStructure + + + + + SIRI situation details. + + + + + + + + Reference to situation message. Message details might be found in response context or through other communication channels. + + + + + Reference structure for situation message. Situation details might be found in response context or through other communication channels. + + + + + diff --git a/siri/siri_all_framework-v2.0.xsd b/siri/siri_all_framework-v2.0.xsd index dbc9c58ab..f8de9a976 100644 --- a/siri/siri_all_framework-v2.0.xsd +++ b/siri/siri_all_framework-v2.0.xsd @@ -4,9 +4,15 @@ --> - - - - - + + + + + + + + + + + diff --git a/xml/xml.xsd b/xml/xml.xsd new file mode 100644 index 000000000..c2e273b50 --- /dev/null +++ b/xml/xml.xsd @@ -0,0 +1,137 @@ + + + + + See http://www.w3.org/XML/1998/namespace.html and + http://www.w3.org/TR/REC-xml for information about this namespace. + + This schema document describes the XML namespace, in a form + suitable for import by other schema documents. + + Note that local names in this namespace are intended to be defined + only by the World Wide Web Consortium or its subgroups. The + following names are currently defined in this namespace and should + not be used with conflicting semantics by any Working Group, + specification, or document instance: + + base (as an attribute name): denotes an attribute whose value + provides a URI to be used as the base for interpreting any + relative URIs in the scope of the element on which it + appears; its value is inherited. This name is reserved + by virtue of its definition in the XML Base specification. + + id (as an attribute name): denotes an attribute whose value + should be interpreted as if declared to be of type ID. + The xml:id specification is not yet a W3C Recommendation, + but this attribute is included here to facilitate experimentation + with the mechanisms it proposes. Note that it is _not_ included + in the specialAttrs attribute group. + + lang (as an attribute name): denotes an attribute whose value + is a language code for the natural language of the content of + any element; its value is inherited. This name is reserved + by virtue of its definition in the XML specification. + + space (as an attribute name): denotes an attribute whose + value is a keyword indicating what whitespace processing + discipline is intended for the content of the element; its + value is inherited. This name is reserved by virtue of its + definition in the XML specification. + + Father (in any context at all): denotes Jon Bosak, the chair of + the original XML Working Group. This name is reserved by + the following decision of the W3C XML Plenary and + XML Coordination groups: + + In appreciation for his vision, leadership and dedication + the W3C XML Plenary on this 10th day of February, 2000 + reserves for Jon Bosak in perpetuity the XML name + xml:Father + + + + This schema defines attributes and an attribute group + suitable for use by + schemas wishing to allow xml:base, xml:lang, xml:space or xml:id + attributes on elements they define. + + To enable this, such a schema must import this schema + for the XML namespace, e.g. as follows: + <schema . . .> + . . . + <import namespace="http://www.w3.org/XML/1998/namespace" + schemaLocation="http://www.w3.org/2005/08/xml.xsd"/> + + Subsequently, qualified reference to any of the attributes + or the group defined below will have the desired effect, e.g. + + <type . . .> + . . . + <attributeGroup ref="xml:specialAttrs"/> + + will define a type which will schema-validate an instance + element with any of those attributes + + + In keeping with the XML Schema WG's standard versioning + policy, this schema document will persist at + http://www.w3.org/2005/08/xml.xsd. + At the date of issue it can also be found at + http://www.w3.org/2001/xml.xsd. + The schema document at that URI may however change in the future, + in order to remain compatible with the latest version of XML Schema + itself, or with the XML namespace itself. In other words, if the XML + Schema or XML namespaces change, the version of this document at + http://www.w3.org/2001/xml.xsd will change + accordingly; the version at + http://www.w3.org/2005/08/xml.xsd will not change. + + + + + Attempting to install the relevant ISO 2- and 3-letter + codes as the enumerated possible values is probably never + going to be a realistic possibility. See + RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry + at http://www.iana.org/assignments/lang-tag-apps.htm for + further information. + + The union allows for the 'un-declaration' of xml:lang with + the empty string. + + + + + + + + + + + + + + + + + + + + + + See http://www.w3.org/TR/xmlbase/ for + information about this attribute. + + + + + See http://www.w3.org/TR/xml-id/ for + information about this attribute. + + + + + + + +