Re: request for an attribute for the Infrastructure Manager of a line [message #313 is a reply to message #309] |
Sat, 23 June 2012 10:22 |
Christian Rahmig
Messages: 151 Registered: January 2011
|
Senior Member |
|
|
Hello Dirk,
> in RailML 2.0, we used the attributes <trackGroups>.<line>.uicNumber and
> <trackGroups>.<line>.lineNumber to uniqely describe a railway line of
> infrastructure. In RailML 2.1, there is the new attribute
> <trackGroups>.<line>.code as the only possibility for an external
> primary key of a line.
>
> In practice, the Infrastructure Managers give their lines numbers or
> names/abbreviations but so far there is no international unique key for
> a line. Therefore, it is necessary to add the In-frastructure Manager’s
> key to the primary key of a line.
+1
> If we would put both into ‘code’, e. g. code=’80.6363’ or ‘DB.6363’,
> this would mean to ‘scan’ the code when importing infrastructure or a
> timetable. It is one of the agreed principles of RailML to avoid known
> ‘scanning’ of strings due to all the problems which comes along (for
> instance to force a unique separating character between IM code and line
> number). Therefore, we (iRFP) cannot import RailML 2.1 because we refuse
> to scan the ‘code’.
>
> I think we should introduce attributes
> - clearly to define the Infrastructure Manager of a line separated
> from ‘code’,
> - to define the key (number or abbreviation) of the line at this IM
> which may be ‘code’.
I propose the following implementation for railML 2.2, which can be also
found in the trac ticket [1]:
The new attribute 'uicNumber', which contains the UIC country code, will
be added to complex type 'tLine':
<xs:attribute name="uicNumber" type="rail:tTwoDigits" />
For defining the number of the line (without the UIC Country Code),
please use the generic attribute 'code'.
The ID of the infrastructure manager will be stored in the new attribute
'imNumber' in complex type 'tLine':
<xs:attribute name="imNumber" type="xs:string" />
Any questions and comments appreciated...
Regards
[1] https://trac.assembla.com/railML/ticket/152
--
Christian Rahmig
railML.infrastructure coordinator
|
|
|