| Schema Explorer: an open-source browser for railML XSDs, with version comparison [message #4253] |
Wed, 21 October 2026 23:00 |
Mathias Vanden Auweele
Messages: 181 Registered: February 2025 Location: Brussels
|
Senior Member |
|
|
Hi all,
I'd like to share a tool I've been building: **Schema Explorer**, an open-source viewer for XML Schemas that works well with railML 3.
- Code: https://github.com/Matdata-eu/schema-explorer
- Demo: https://matdata-eu.github.io/schema-explorer/
What it does
- Readable pages for every element and type, with documentation, attributes, cardinalities and allowed values, and links that follow references across the included/imported files.
- UML-like diagrams of inheritance and composition that you can expand interactively and export.
- Search across the whole schema set.
- **Version comparison:** a Compare mode in the viewer and a command-line `diff` that lists added, removed and changed types and rates each change as breaking or not. I tested it on railML 3.2 → 3.3.
It is a static website that runs entirely in your browser, so nothing is uploaded to a server.
Licence
Schema Explorer is released under the **Apache License 2.0**. The railML schemas themselves are licensed CC BY-NC-ND, so the public demo does **not** include them. You can open your own copy of the railML XSDs locally in the demo; the files stay on your machine.
A proposal for railML.org
I would be happy to support hosting this tool on the railML servers, to make it easier for the community to:
- browse the schemas of all supported railML versions, and
- inspect the differences between versions, and between a released version and a beta release.
If railML prefers, this can sit behind the member login. I can help with the setup, which is just static files plus a pre-built index per version.
For those working with ontologies: a sister tool, **Ontology Explorer** (https://matdata-eu.github.io/ontology-explorer/), offers the same kind of exploration for OWL/RDF ontologies.
Feedback, bug reports and feature requests are very welcome, here or as GitHub issues.
Best regards
Mathias Vanden Auweele
Railway data freelancer
https://matdata.eu
Brussels, Belgium
|
|
|
|