-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add examples and enable validation (#115)
* Set OJP version to 1.1-dev in order to make sure the breaking changes of renaming Location => Place and others are made clear... * Examples are OJP-1.0 files which have been adapted for 1.1-dev * Use "./siri_model/siri_all-v2.0.xsd" for siri namespace everywhere as xmllint and Xerces-J only allow one <import> per target namespace * Import ifopt namespace before siri, otherwise xmllint fails because the first found ifopt import statement in SIRI does not refer to "./ifopt/ifopt_allStopPlace-v0.3.xsd" * Add "xml/xml.xsd" referenced by "./siri_utility/siri_types-v2.0.xsd" using https://www.w3.org/2005/08/xml.xsd
- Loading branch information
1 parent
23c2d68
commit 9187b3d
Showing
22 changed files
with
8,635 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
examples/switzerland/PlaceInformation_001_Stop_PlaceRef_Request.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<OJP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.siri.org.uk/siri" xmlns:ojp="http://www.vdv.de/ojp" version="1.1-dev" xsi:schemaLocation="http://www.siri.org.uk/siri ../../OJP.xsd"> | ||
<OJPRequest> | ||
<ServiceRequest> | ||
<RequestTimestamp>2020-01-19T12:00:00Z</RequestTimestamp> | ||
<RequestorRef>IRMA</RequestorRef> | ||
<ojp:OJPPlaceInformationRequest> | ||
<RequestTimestamp>2020-01-19T12:00:00Z</RequestTimestamp> | ||
<MessageIdentifier>4711</MessageIdentifier> | ||
<ojp:PlaceRef> | ||
<StopPointRef>8530813</StopPointRef> | ||
<ojp:Name> | ||
<ojp:Text>Zürich Kreuzplatz</ojp:Text> | ||
</ojp:Name> | ||
</ojp:PlaceRef> | ||
<ojp:Restrictions> | ||
<ojp:Type>stop</ojp:Type> | ||
<ojp:IncludePtModes>true</ojp:IncludePtModes> | ||
</ojp:Restrictions> | ||
</ojp:OJPPlaceInformationRequest> | ||
</ServiceRequest> | ||
</OJPRequest> | ||
</OJP> |
48 changes: 48 additions & 0 deletions
48
examples/switzerland/PlaceInformation_001_Stop_PlaceRef_Response.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<siri:OJP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:siri="http://www.siri.org.uk/siri" xmlns:ojp="http://www.vdv.de/ojp" version="1.1-dev" xsi:schemaLocation="http://www.siri.org.uk/siri ../../OJP.xsd"> | ||
<siri:OJPResponse> | ||
<siri:ServiceDelivery> | ||
<siri:ResponseTimestamp>2020-10-01T17:54:38Z</siri:ResponseTimestamp> | ||
<siri:ProducerRef>OJPCH_Prod</siri:ProducerRef> | ||
<siri:Status>true</siri:Status> | ||
<ojp:OJPPlaceInformationDelivery> | ||
<siri:ResponseTimestamp>2020-10-01T17:54:38Z</siri:ResponseTimestamp> | ||
<siri:RequestMessageRef>4711</siri:RequestMessageRef> | ||
<siri:Status>true</siri:Status> | ||
<ojp:CalcTime>20</ojp:CalcTime> | ||
<ojp:PlaceResult> | ||
<ojp:Place> | ||
<ojp:StopPlace> | ||
<ojp:StopPlaceRef>8530813</ojp:StopPlaceRef> | ||
<ojp:StopPlaceName> | ||
<ojp:Text>Zürich Kreuzplatz</ojp:Text> | ||
</ojp:StopPlaceName> | ||
<ojp:TopographicPlaceRef>23026261:27</ojp:TopographicPlaceRef> | ||
</ojp:StopPlace> | ||
<ojp:Name> | ||
<ojp:Text xml:lang="de">Zürich</ojp:Text> | ||
</ojp:Name> | ||
<ojp:GeoPosition> | ||
<siri:Longitude>8.55408</siri:Longitude> | ||
<siri:Latitude>47.36488</siri:Latitude> | ||
</ojp:GeoPosition> | ||
</ojp:Place> | ||
<ojp:Complete>true</ojp:Complete> | ||
<ojp:Probability>1</ojp:Probability> | ||
<ojp:Mode> | ||
<ojp:PtMode>rail</ojp:PtMode> | ||
<siri:RailSubmode>unknown</siri:RailSubmode> | ||
</ojp:Mode> | ||
<ojp:Mode> | ||
<ojp:PtMode>tram</ojp:PtMode> | ||
<siri:TramSubmode>cityTram</siri:TramSubmode> | ||
</ojp:Mode> | ||
<ojp:Mode> | ||
<ojp:PtMode>bus</ojp:PtMode> | ||
<siri:BusSubmode>localBusService</siri:BusSubmode> | ||
</ojp:Mode> | ||
</ojp:PlaceResult> | ||
</ojp:OJPPlaceInformationDelivery> | ||
</siri:ServiceDelivery> | ||
</siri:OJPResponse> | ||
</siri:OJP> |
20 changes: 20 additions & 0 deletions
20
examples/switzerland/PlaceInformation_002_Stop_InitialInput_Request.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<OJP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.siri.org.uk/siri" xmlns:ojp="http://www.vdv.de/ojp" version="1.1-dev" xsi:schemaLocation="http://www.siri.org.uk/siri ../../OJP.xsd"> | ||
<OJPRequest> | ||
<ServiceRequest> | ||
<RequestTimestamp>2020-01-19T12:00:00Z</RequestTimestamp> | ||
<RequestorRef>IRMA</RequestorRef> | ||
<ojp:OJPPlaceInformationRequest> | ||
<RequestTimestamp>2020-01-19T12:00:00Z</RequestTimestamp> | ||
<MessageIdentifier>4712</MessageIdentifier> | ||
<ojp:InitialInput> | ||
<ojp:Name>Bern</ojp:Name> | ||
</ojp:InitialInput> | ||
<ojp:Restrictions> | ||
<ojp:Type>stop</ojp:Type> | ||
<ojp:IncludePtModes>true</ojp:IncludePtModes> | ||
</ojp:Restrictions> | ||
</ojp:OJPPlaceInformationRequest> | ||
</ServiceRequest> | ||
</OJPRequest> | ||
</OJP> |
Oops, something went wrong.