Home » railML newsgroups » railml.timetable » [railML2] Wording of semantic constraints TT:015 and TT:016
[railML2] Wording of semantic constraints TT:015 and TT:016 [message #3407] Mon, 09 December 2024 16:33 Go to next message
Milan Wölke is currently offline  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 Go to previous messageGo to next message
Christian Rößiger is currently offline  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 Go to previous messageGo to next message
Milan Wölke is currently offline  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 #3425 is a reply to message #3418] Fri, 10 January 2025 15:06 Go to previous messageGo to next message
David Lichti is currently offline  David Lichti
Messages: 60
Registered: December 2020
Member
A question that comes to my mind: What does 'must not contradict each other' mean? From our discussions, I think that this actually means 'must have identical values if they are present in both train parts'. This interpretation would allow to have an arrival time in the first train part, that is later than the departure time of the second train part.

Best regards

David
Re: [railML2] Wording of semantic constraints TT:015 and TT:016 [message #3451 is a reply to message #3425] Tue, 04 February 2025 09:32 Go to previous messageGo to next message
Christian Rößiger is currently offline  Christian Rößiger
Messages: 85
Registered: March 2015
Member
Hello David,

the sentence you quoted was intended by me as a kind of introduction. What I meant by '...must not contradict...' is explained in detail in the two bullet points below. The second point there also says '... having identical arrival and departure times'.

If there should be a requirement that the arrival of the first trainPart must be before the departure of the second, I would provide a separate SemCon for this, as this would affect a different type of consistency from my point of view. However, I am not sure whether such a SemCon makes sense from a technical point of view.

Best regards
Christian
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 Go to previous messageGo to next message
Christian Rößiger is currently offline  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 Go to previous messageGo to next message
Thomas Nygreen is currently offline  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 #3465 is a reply to message #3463] Thu, 13 February 2025 09:53 Go to previous messageGo to next message
Christian Rößiger is currently offline  Christian Rößiger
Messages: 85
Registered: March 2015
Member
Hello all,

Thomas Nygreen wrote on Wed, 12 February 2025 14:20
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).

I'm not so happy with splitting content across multiple SemCons when they relate to the same 'problem' and only differ in different implementations. In my opinion, the reader should first of all understand the purpose of a SemCon and only then receive further information about the possibilities of practical implementation. I would therefore rather keep it in one SemCon and try to make the existing wording clearer:

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 times (if given) and 
  - identical departure times (if given).
These rules apply to the arrival and departure times in each of the specified @scopes.

I am not yet completely satisfied with the division into 2 hierarchy levels, but I believe that it is now easier to recognise that the arrival does not have to be identical to the departure.

Best Regards
Christian
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 Go to previous message
Milan Wölke is currently offline  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
Previous Topic: [railML 3] Followup Section Description with Routing Paths
Next Topic: [railML2] Proposed semantic constraint for <specialService>
Goto Forum:
  


Current Time: Sun Nov 08 09:16:09 GMT+1 2026