# transmodelecosystem/netex architecture

> Architecture diagram of the GitHub repository transmodelecosystem/netex, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/transmodelecosystem/netex
- Repository: https://github.com/transmodelecosystem/netex

## Overview

NeTEx is a standards repository of XML schemas for exchanging public-transport network, timetable, fare, and related data. Producers encode scheduled data as NeTEx XML; consumers use the schemas to validate or interpret it. The README also documents publication and SIRI exchange formats, plus an inspection-oriented NX schema. The repository tree does not show the named root schemas, so schema nodes use the existing `xsd` directory. The sampled scripts provide schema-analysis and editing utilities; the graph does not imply a runtime pipeline between schema parts.

Main entry points: [`xsd`](https://github.com/transmodelecosystem/netex/tree/v2.0/xsd) (Publication schema), [`scripts/dependencygraph.py`](https://github.com/transmodelecosystem/netex/blob/v2.0/scripts/dependencygraph.py) (Dependency analyzer), [`scripts/nameofclass.py`](https://github.com/transmodelecosystem/netex/blob/v2.0/scripts/nameofclass.py) (Class-name generator), [`xsd/netex_service`](https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_service) (SIRI exchange)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_schema["Schema foundations"]
  node_framework["Shared framework"]
  node_geometry["Geometry types"]
end

subgraph group_domains["Transport data domains"]
  node_network["Network topology"]
  node_stops["Stops and access"]
  node_timetables["Scheduled timetables"]
  node_fares["Fare information"]
  node_alternative["Alternative modes"]
end

subgraph group_exchange["Exchange formats"]
  node_publication["Publication schema"]
  node_siri["SIRI exchange"]
  node_nx["NX browsing schema<br/>[NX.xsd]"]
end

subgraph group_tools["Schema utilities"]
  node_dependency["Dependency analyzer<br/>[dependencygraph.py]"]
  node_schema_analyzer["Schema analyzer<br/>[xsd_analyzer_v5.py]"]
  node_class_names["Class-name generator<br/>[nameofclass.py]"]
  node_ref_updates["Reference updater<br/>[analyse-refs-2.py]"]
end

node_producers(("Data producers"))
node_consumers(("Data consumers"))

node_producers -->|"encode data"| node_publication
node_publication -->|"validate data"| node_consumers
node_producers -->|"exchange data"| node_siri
node_siri -->|"serve exchange"| node_consumers
node_consumers -->|"inspect schemas"| node_nx
node_publication -->|"includes schemas"| node_framework
node_publication -->|"includes schemas"| node_network
node_publication -->|"includes schemas"| node_stops
node_publication -->|"includes schemas"| node_timetables
node_publication -->|"includes schemas"| node_fares
node_publication -->|"includes schemas"| node_alternative
node_dependency -.->|"analyzes schemas"| node_schema_analyzer
node_class_names -->|"builds graph"| node_dependency
node_class_names -->|"updates schema"| node_framework
node_ref_updates -->|"uses analyzer"| node_dependency

click node_publication "https://github.com/transmodelecosystem/netex/tree/v2.0/xsd"
click node_siri "https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_service"
click node_nx "https://github.com/transmodelecosystem/netex/blob/v2.0/xsd/NX.xsd"
click node_framework "https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_framework"
click node_geometry "https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/gml"
click node_network "https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_part_1/part1_networkDescription"
click node_stops "https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_part_1/part1_ifopt"
click node_timetables "https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_part_2"
click node_fares "https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_part_3/part3_fares"
click node_alternative "https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_part_5"
click node_dependency "https://github.com/transmodelecosystem/netex/blob/v2.0/scripts/dependencygraph.py"
click node_schema_analyzer "https://github.com/transmodelecosystem/netex/blob/v2.0/scripts/xsd_analyzer_v5.py"
click node_class_names "https://github.com/transmodelecosystem/netex/blob/v2.0/scripts/nameofclass.py"
click node_ref_updates "https://github.com/transmodelecosystem/netex/blob/v2.0/scripts/analyse-refs-2.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_framework,node_geometry toneBlue
class node_network,node_stops,node_timetables,node_fares,node_alternative toneAmber
class node_publication,node_siri,node_nx toneMint
class node_dependency,node_schema_analyzer,node_class_names,node_ref_updates toneRose
class node_producers,node_consumers toneIndigo
```

## Components

### Schema foundations

- [Shared framework](https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_framework): `xsd/netex_framework`
- [Geometry types](https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/gml): `xsd/gml`

### Transport data domains

- [Network topology](https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_part_1/part1_networkDescription): `xsd/netex_part_1/part1_networkDescription`
- [Stops and access](https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_part_1/part1_ifopt): `xsd/netex_part_1/part1_ifopt`
- [Scheduled timetables](https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_part_2): `xsd/netex_part_2`
- [Fare information](https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_part_3/part3_fares): `xsd/netex_part_3/part3_fares`
- [Alternative modes](https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_part_5): `xsd/netex_part_5`

### Exchange formats

- [Publication schema](https://github.com/transmodelecosystem/netex/tree/v2.0/xsd): `xsd`
- [SIRI exchange](https://github.com/transmodelecosystem/netex/tree/v2.0/xsd/netex_service): `xsd/netex_service`
- [NX browsing schema](https://github.com/transmodelecosystem/netex/blob/v2.0/xsd/NX.xsd): `xsd/NX.xsd`

### Schema utilities

- [Dependency analyzer](https://github.com/transmodelecosystem/netex/blob/v2.0/scripts/dependencygraph.py): `scripts/dependencygraph.py`
- [Schema analyzer](https://github.com/transmodelecosystem/netex/blob/v2.0/scripts/xsd_analyzer_v5.py): `scripts/xsd_analyzer_v5.py`
- [Class-name generator](https://github.com/transmodelecosystem/netex/blob/v2.0/scripts/nameofclass.py): `scripts/nameofclass.py`
- [Reference updater](https://github.com/transmodelecosystem/netex/blob/v2.0/scripts/analyse-refs-2.py): `scripts/analyse-refs-2.py`

### Other components

- **Data producers**
- **Data consumers**

## Connections

- Data producers → Publication schema: encode data (evidence: `README.md`)
- Publication schema → Data consumers: validate data (evidence: `README.md`)
- Data producers → SIRI exchange: exchange data (evidence: `README.md`)
- SIRI exchange → Data consumers: serve exchange (evidence: `README.md`)
- Data consumers → NX browsing schema: inspect schemas (evidence: `README.md`)
- Publication schema → Shared framework: includes schemas (evidence: `README.md`)
- Publication schema → Network topology: includes schemas (evidence: `README.md`)
- Publication schema → Stops and access: includes schemas (evidence: `README.md`)
- Publication schema → Scheduled timetables: includes schemas (evidence: `README.md`)
- Publication schema → Fare information: includes schemas (evidence: `README.md`)
- Publication schema → Alternative modes: includes schemas (evidence: `README.md`)
- Dependency analyzer → Schema analyzer: analyzes schemas
- Class-name generator → Dependency analyzer: builds graph (evidence: `scripts/nameofclass.py`)
- Class-name generator → Shared framework: updates schema (evidence: `scripts/nameofclass.py`)
- Reference updater → Dependency analyzer: uses analyzer (evidence: `scripts/analyse-refs-2.py`)
