Dev:Semantic Constraints: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
(Liste)
(syntax)
Line 6: Line 6:


Elements with approved semantic constraints are listed in [[:Category:Semantic constraints]]. On the element documentation pages, the semantic constraints can be found in a dedicated chapter below the syntactic constraints. Proposed semantic constraints are listed in [[:Category:Semantic constraints_proposed]]. A list of the introduction date of a semantic constraint can be found in the list below.
Elements with approved semantic constraints are listed in [[:Category:Semantic constraints]]. On the element documentation pages, the semantic constraints can be found in a dedicated chapter below the syntactic constraints. Proposed semantic constraints are listed in [[:Category:Semantic constraints_proposed]]. A list of the introduction date of a semantic constraint can be found in the list below.
{{note|Semantic constraints that have been '''proposed before the 10th of December 2018''' shall be considered as '''approved''' until decided otherwise.
{{note|Semantic constraints that have been '''proposed before the 10th of December 2018''' shall be considered as '''approved''' until decided otherwise.}}


Every application of {{rml}} has to be checked not only on XML conformity but also on the obedience of the semantic constraints.
Every application of {{rml}} has to be checked not only on XML conformity but also on the obedience of the semantic constraints.

Revision as of 15:40, 10 December 2018

Semantic constraints

XSD offers a variety of possibilities to define constraints. However, in some rare exceptions it is not possible to express an important rule in XSD. Rules that do not fit into XSD have to be expressed by words, semantically.

Semantic constraints are even important as XSD constraints. If they are ignored, security issues may arise.

Elements with approved semantic constraints are listed in Category:Semantic constraints. On the element documentation pages, the semantic constraints can be found in a dedicated chapter below the syntactic constraints. Proposed semantic constraints are listed in Category:Semantic constraints_proposed. A list of the introduction date of a semantic constraint can be found in the list below.

🗒️ Semantic constraints that have been proposed before the 10th of December 2018 shall be considered as approved until decided otherwise.


Every application of railML® has to be checked not only on XML conformity but also on the obedience of the semantic constraints.

How to introduce Semantic Constraints

Generally speaking, constraints should better be implemented syntactically in the schema. Please, follow the guideline for participating in the development process.

If you see need for a semantic constraint beyond the schema, please discuss it in the forum (link to the railML® website). If there is consent, you may decide to add a proposal in the element documentation using Template:SemconProposal. Please, add the proposal to the list below! If the proposal is accepted, it will implemented in the wiki using Template:Semcon.

Current Constraints

Element Proposal date Date of acception
<timetablePeriod> 2018-11-12
<specialService> 2018-11-12
<specialService> 2018-11-12
<operatingPeriodRef> 2018-11-12
<operatingPeriod> 2018-11-12
<operatingDay> 2018-11-12
<ocpTT> (first semantic constraint) 2018-10-25
<ocpTT> (second semantic constraint) 2018-10-25
<circulation> 2018-11-12
<blockPart> 2018-11-12
<operator> 2018-11-12
<state> 2018-11-12
<designator> 2018-11-12