Home » railML newsgroups » railml.common » [railML3] Change pattern for tOtherEnumerationValue
[railML3] Change pattern for tOtherEnumerationValue [message #3557] Thu, 10 April 2025 16:56
Thomas Nygreen is currently offline  Thomas Nygreen
Messages: 94
Registered: March 2008
Member
Dear community!

The documentation of tOtherEnumerationValue (the 'other:*' enumeration extension), both in the schema and in the wiki has been insufficient, and led to some confusion. After discussion between the coordinators, we have also decided that the pattern of at least two "word characters" is not what we want. A "word character" is any unicode character except "punctuation", "separator" and "other" characters".[1] That includes a lot more than we need, and excludes the useful separators - and _. So in railML 3.4 we will change the pattern to 'other:[A-Za-z0-9-_]{2,}', meaning 'other:' followed by at least two characters, allowing only the letters A-Z and a-z, the digits 0-9 and the separators - and _.

We cannot change the pattern in the existing versions, but we have updated the wiki documentation [2] to clarify that only letters and digits are allowed, and added a best practice recommendation to only use the letters A-Z and a-z and the digits 0-9, to stay as close to the new pattern as possible. We will also update the schema documentation in the next service releases.

[1] https://www.w3.org/TR/xmlschema11-2/#cces-mce
[2] https://wiki3.railml.org/wiki/Dev:UsingAny#New_enumeration_v alue (also mirrored to wiki2)

Best regards
Thomas Nygreen


Thomas Nygreen – Common Schema Coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
Previous Topic: Vote for revision of ISO RailDax
Next Topic: [Ontology v0.6] wrong range for hasElement?
Goto Forum:
  


Current Time: Sun Jun 22 04:41:52 CEST 2025