...
The beta version of https://bitbucket.org/enroute-mobi/secretary-client/src/main/ can be downloaded.
Validate NeTEx XML schema according to the next NeTEx XSD
Info |
---|
A new version of the NeTEx XML schema is about to be released. To simplify the adoption of this new version and help to perform the required changes in the NeTEx files, Chouette Valid integrates both the current official XSD version and this next XSD version. |
...
master (used by default)
next (a copy of https://github.com/NeTEx-CEN/NeTEx/tree/next)
Validate NeTEx XML schema according to the latest NeTEx XSD
Chouette Valid uses the latest NeTEx XML schema current/stable version (aka master). The NeTEx XSD team has recently performed a notable improvement on order attribute: https://github.com/NeTEx-CEN/NeTEx/pull/657.
This change (and other minor updates) is now effective in the Chouette Valid XSD validation.
NeTEx files and code should be updated if the value zero is used in order attribute:
Code Block | ||
---|---|---|
| ||
<!-- Invalid -->
<PassengerStopAssignment id="..." version="any" order="0">
<DayTypeAssignment id="..." version="any" order="0">
<!-- Valid -->
<PassengerStopAssignment id="..." version="any" order="1">
<DayTypeAssignment id="..." version="any" order="1"> |
Manage Ruleset by API
In the future, the user will be able to manage its own rulesets. The first step is providing a management via the Chouette Valid API or the command line tool.
...
For example, the user can convert any NeTEx file into the beta file structure of NeTEx French Profile (see https://github.com/etalab/transport-profil-netex-fr/issues/121).
Create NeTEx file from GTFS with valid orders
As required by the current NeTEx XML schema (see https://enroute.atlassian.net/wiki/spaces/PUBLIC/pages/2595127297/Sprint+118#Validate-NeTEx-XML-schema-according-to-the-latest-NeTEx-XSD above), the NeTEx file created by a GTFS to NeTEx conversion uses positive integer for PassengerStopAssignment
, DayTypeAssignment
, etc. order attributes.
Convert GTFS Calendar using NeTEx UicOperatingPeriod
As required by the NeTEx French Profile (see https://normes.transport.data.gouv.fr/normes/netex/elements_communs/), a UicOperatingPeriod
NeTEx resource is used when a GTFS Calendar with date range is converted into a DayType.
The NeTEx UicOperatingPeriod
ValidDayBits
attribute is created by using the GTFS Calendar Date range and the associated Days Of Week:
Code Block | ||
---|---|---|
| ||
<UicOperatingPeriod id="..." version="any">
<FromDate>2030-01-01T00:00:00</FromDate>
<ToDate>2030-01-07T00:00:00</ToDate>
<ValidDayBits>1110111</ValidDayBits>
</UicOperatingPeriod> |