Comments (3)
☝️ Yes. Or even better, this: #127 (which could be easily used to generate the above)
Thanks @e-lo for pointing that out. That ticket, and especially the comments on that ticket, are very related to what I'm proposing here. What I'm proposing is a bit stronger and has a different goal though, so I'd like to treat it as a separate issue.
I believe #127 is suggesting that the GTFS spec include, as an additional derived element or resource, a machine readable file for the specific purpose of generating source code to hold in-memory representations of GTFS data. In the present PR, I'm considering source code generation as a nice potential side effect but not the core purpose. I'm also proposing that we focus attention on the entity-relationship model itself, not the file that represents it, and give this model a very central role in GTFS, both technically and organizationally.
Regarding the problem statement that you and @dedavance listed in comments on that other issue in
#127 (comment) and
#127 (comment)
I generally agree, but with the following emphases and differences in the context of the present issue:
A) Data model as definitive or canonical source. In a comment on the other issue you said:
#127 (comment)
I'm also interested in if the community would be amenable to using this type of definition as the canonical GTFS definition such that we can generate Markdown/HTML from the programatic definition in JSON rather than visa-versa.
This is exactly what I'm talking about. The key idea being that the model is the source of truth, not just another derived artifact to be manually maintained in the spec. And to the extent that something like for example protobuf definition files can't be generated or patched directly from the entity-relationship model language, they should be derived by hand using the most mechanical or automatic process possible. Anything that emerges as non-obvious in this derivation should be clarified in the data model as the source of truth, not in the downstream artifacts.
B) The data model is equally central to GTFS, GTFS-RT, GTFS change proposals, and GTFS-RT change proposals.
Proposals and discussions in all these places would primarily or at least initially concern changes to the data model, and which aggregates within that model are serialized as files or messages.
C) I'm suggesting that the governance and amendment process (currently under discussion in #413) be modified to take this into account. For example, an initial change proposal might consist of only a use case description and a patch to the data model. People would discuss and vote on only the data model change first, before anyone invested time in the minutiae of serialization into text files. Everyone would be looking at and discussing a single visual image. The rest of the process would need to be tweaked accordingly, this is just the initial idea.
I think GTFS has reached a size and complexity, both technically and in community structure, where its maintenance and viability may depend on this kind of formalization.
I'm starting to feel like this is almost a precondition for me to even participate in the change process. It is genuinely exhausting to reverse-engineer what personal data model each person has in their heads when reading each comment, and to try to describe fragments of that data model in text over and over, trying to determine whether one's own model matches others. Frequently I get the impression we are proceeding in the absence of even a mental data model, so the long-term coherence and stability of the spec will rely on the sheer chance of someone showing up at the right moment to infer and verify this shifting ghost of an idea.
from transit.
☝️ Yes. Or even better, this: #127 (which could be easily used to generate the above)
from transit.
By the way, I fully understand and appreciate that GTFS was created as the an antidote to “model entire world with angle brackets before implementing” traditional standardization processes like those of TCIP or NeTEx. People wanted to be able to create a stop without nesting XML 5 layers deep. But "formally defined data model" does not mean complex or unwieldy or excessive (as evidenced by DBML above).
GTFS started out as a CSV dump of a relational database at TriMet. People with some experience working with databases or data modeling tend to sense that and treat it as a relational model when discussing extensions. I think it benefits greatly from acknowledging that underlying structure.
At this point, the core of that specification has existed largely unchanged for a decade, and is used and directly or indirectly by millions of people. It’s no longer a handful of files from which every reader intuitively perceives the source structure.
from transit.
Related Issues (20)
- Why is it recommeded that short term service modifications are excluded from GTFS? HOT 4
- [GTFS-Fares v2] Non-sequential Legs Transfer HOT 2
- stops.zone_id conditional requirement with presence of route-based fare_rules? HOT 3
- Integration of carpooling lines HOT 5
- Clarification on language code data standards used in translations.txt HOT 2
- [Governance] Phase 2: Enhancing Voting and Reviews HOT 16
- Clarifying constraints on pathways.stair_count HOT 3
- Missing functionality to define "conceptual grouping of stops/stations" in existing GTFS HOT 14
- Refinement of GTFS Terminology: Transitioning from "Schedule" to "Static" HOT 20
- Make UTF-8 the mandatory GTFS encoding HOT 6
- GTFS Fares 2.0: Manage fare change HOT 2
- Moving Realtime Best Practices into the Spec: Phasing Plan
- [DRT] After the adoption of GTFS-Flex, stops.txt should no longer be a required file. HOT 1
- Using StopTimeEvent.uncertainty for non-timepoints HOT 4
- Addition of vehicles.txt to GTFS static HOT 1
- Make Shapes a recommended file in GTFS HOT 10
- Make bikes_allowed a recommended field in GTFS HOT 6
- Global trip id HOT 4
- The recommended discussion
- Proposed Best Practice: always including trip_id in TripDescriptor for SCHEDULED trips HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transit.