| [railML2] Wording of semantic constraints TT:015 and TT:016 [message #3407] |
Mon, 09 December 2024 16:33  |
Milan Wölke
Messages: 240 Registered: April 2007
|
Senior Member |
|
|
Hello all,
During the currently ongoing implementation of railVIVID 2 which will also include semantic validation as part of its validation feature, our developer came across the above semantic constraints TT:015 and TT:016.
TT:015 states:
Quote:At the first <ocpTT> of a <trainPart> that is not the first one of the <trainPartSequence>, the attribute @arrival is optional. If it is set anyway, then, for consistency reasons, the value of @arrival of the regarding <ocpTT> must be identical for both this <trainPart> and the preceding one.
TT:016 states:
Quote:At the last <ocpTT> of a <trainPart> that is not the last one of the <trainPartSequence>, the attribute @departure is optional. If it is set anyway, then, for consistency reasons, the value of @departure of the regarding <ocpTT> must be identical for both this <trainPart> and the subsequent one.
I was reviewing these constraints after complaints of our developer that these were hard to understand and I have to agree that if you dont already know what they are talking about, it is hard to understand the meaning.
What this is talking about is that if you encode a train that consists of more than one <trainPartSequence> element, then the first <ocpTT> of each referenced <trainPart> that is not the first <ocpTT> of the train needs to make sure that if an @arrival is specified (which it may not as it is optional in the case) that it matches the arrival given in the last <ocpTT> of the preceding <trainPart> of that train.
We have the following minor change of wording that we would hope could improve the clarity of the semantic constraints:
TT:015:
Quote:At the first <ocpTT> of non-initial <trainPart>s of a <trainPartSequence> of a <train>, the attribute @arrival is optional. If it is set anyway, then, for consistency reasons, the value of @arrival of the matching <ocpTT> must be identical for both this <trainPart> and the preceding one.
TT:016:
Quote:At the last <ocpTT> of continued <trainPart>s of a <trainPartSequence> of a <train>, the attribute @departure is optional. If it is set anyway, then, for consistency reasons, the value of @departure of the matching <ocpTT> must be identical for both this <trainPart> and the following one.
Does this help in understanding the semantic constraint. Do you, after all my writing understand what this is all about? If not, what did you understand? How would you formulate the constraint so that it is easily understood.
Thanks in advance for your help.
Best regards, Milan
Milan Hoffmann – Timetable schema coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
|
|
|
|
| Re: [railML2] Wording of semantic constraints TT:015 and TT:016 [message #3415 is a reply to message #3407] |
Thu, 19 December 2024 13:09   |
Christian Rößiger
Messages: 85 Registered: March 2015
|
Member |
|
|
Hello Milan,
Am 09.12.2024 um 16:33 schrieb Milan Wölke:
> We have the following minor change of wording that we would
> hope could improve the clarity of the semantic constraints:
>
> TT:015:
> Quote:
>> At the first <ocpTT> of non-initial <trainPart>s of a
>> <trainPartSequence> of a <train>, the attribute @arrival
>> is optional. If it is set anyway, then, for consistency
>> reasons, the value of @arrival of the matching <ocpTT>
>> must be identical for both this <trainPart> and the
>> preceding one.
>
> TT:016:
> Quote:
>> At the last <ocpTT> of continued <trainPart>s of a
>> <trainPartSequence> of a <train>, the attribute @departure
>> is optional. If it is set anyway, then, for consistency
>> reasons, the value of @departure of the matching <ocpTT>
>> must be identical for both this <trainPart> and the
>> following one.
I think your suggestion is an improvement on the current situation.
Nevertheless, I have tried to find a completely different wording that
focuses more on the purpose of the SemCon:
"Arrival and departure times at the common operating point of two
consecutive trainParts of the same train must not contradict each other.
This can be implemented either
- by the first trainPart having only arrival times and the consecutive
trainPart only departure times at this operating point or
- by both trainParts having identical arrival and departure times. This
applies to the arrival and departure times in each of the specified
@scopes."
This Semcon would replace the two existing ones (TT:015/016).
What do you think about this proposal?
Best Regards
Christian
--
iRFP e. K. · Institut für Regional- und Fernverkehrsplanung
Hochschulstr. 45, 01069 Dresden
Tel. +49 351 4706819 · Fax. +49 351 4768190 · www.irfp.de
Registergericht: Amtsgericht Dresden, HRA 9347
|
|
|
|
| Re: [railML2] Wording of semantic constraints TT:015 and TT:016 [message #3418 is a reply to message #3415] |
Mon, 06 January 2025 09:51   |
Milan Wölke
Messages: 240 Registered: April 2007
|
Senior Member |
|
|
Hi Christian,
thanks for your proposal. I actually like your suggestion better, than even the improved existing T:015/TT:016. However I would take the last sentence (This applies to the arrival and departure times in each of the specified @scopes.) out of the enumeration of possibilities as it applies to both options.
What does the community think? Please let us know if this wording is an improvement and makes it easier to understand what we are trying to impose here.
Best regards, Milan
Milan Hoffmann – Timetable schema coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
|
|
|
|
|
|
|
|
| Re: [railML2] Wording of semantic constraints TT:015 and TT:016 [message #3452 is a reply to message #3415] |
Tue, 04 February 2025 09:36   |
Christian Rößiger
Messages: 85 Registered: March 2015
|
Member |
|
|
Hello Milan,
thank you for your reply, I agree that the sentence 'This applies to the arrival and departure times in each of the specified @scopes.' refers to both bullet points. I would therefore place it under the bullet point:
'Arrival and departure times at the common operating point of two consecutive trainParts of the same train must not contradict each other. This can be implemented either
- by the first trainPart having only arrival times and the consecutive trainPart only departure times at this operating point or
- by both trainParts having identical arrival and departure times.
These rules apply to the arrival and departure times in each of the specified @scopes.'
Best regards
Christian
[Updated on: Thu, 06 February 2025 15:55] Report message to a moderator
|
|
|
|
| Re: [railML2] Wording of semantic constraints TT:015 and TT:016 [message #3463 is a reply to message #3452] |
Wed, 12 February 2025 14:20   |
Thomas Nygreen
Messages: 137 Registered: March 2008
|
Senior Member |
|
|
Dear all,
I also prefer Christian's wording, but I agree with David's concern that it may be interpreted to imply a constraint on the relation between arrival and departure. So I would suggest to split Christian's suggestion into separate constraints for arrival (as new wording of TT:015) and departure (as new wording of TT:016).
Best regards,
Thomas
Thomas Nygreen – Common Schema Coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
|
|
|
|
|
|
| Re: [railML2] Wording of semantic constraints TT:015 and TT:016 [message #3466 is a reply to message #3465] |
Thu, 13 February 2025 16:29  |
Milan Wölke
Messages: 240 Registered: April 2007
|
Senior Member |
|
|
In todays timetable developer meeting we decided to follow the proposal of Thomas and update the existing semantic constraints as follows:
Quote:
TT:015:
Arrival times at the common operating point of two consecutive trainParts of the same train must not contradict each other. This can be implemented either
- by only the preceding trainPart having arrival times while the succeeding trainPart does not at this operating point or
- by both trainParts having identical arrival times.
These rules apply to the arrival times in each of the specified @scope's.
Quote:
TT:016:
Departure times at the common operating point of two consecutive trainPart's of the same train must not contradict each other. This can be implemented either
- by the preceding trainPart having no departure times and only the succeeding trainPart specifying them at this operating point or
- by both trainPart's having identical departure times.
These rules apply to the departure times in each of the specified scope's.
We hope that this will help making it easier to understand the intention of these two semcons.
Best regards, Milan
Milan Hoffmann – Timetable schema coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
|
|
|
|