Link NeTEx declarations to Transmodel 6.2 concepts #2
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/2/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Requested by Moof · project thread
What
Adds a
--transmodeloption that links NeTEx elements and types to the Transmodel 6.2 concept they implement, on https://transmodel-cen.eu/model6.2/. A "Transmodel concept STOP PLACE ↗" line appears under the heading of each matching page.How it matches
StopPlace→ STOP PLACE,TypeOfLine→ TYPE OF LINE._VersionStructure,_ValueStructure,_VersionedChildStructure, …), and…Viewelements match the concept they view.Timeband→ TIME BAND,TrainElement→ TRAIN ELEMENT TYPE, …).Pointare left alone.--transmodel-namespaceoverrides this.Catalog
src/prettyxsd/data/transmodel-6.2.json(93 KB) maps the 1,503 Transmodel 6.2 classes and enumerations to their pages. It was built by the newscripts/update_transmodel_catalog.py, which reads the Enterprise Architect export's index and fetches every page title (the site needs a browser-like User-Agent). The site build itself stays offline.Result on NeTEx
NX.xsd1,433 pages linked (728 elements, 705 types), covering 716 distinct Transmodel concepts.
Also
--transmodeladded to its prettyxsd calls to turn this on.Tests
uv run python -m unittest discover -s tests: 42 tests pass, including three new ones for name matching, namespace scoping and the rendered link.🤖 Generated with Claude Code
https://claude.ai/code/session_01AmFvj38A6ceghEnxPGvprJ