Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a URI template parameter feed_version to indicate the version of the feed #106

Open
pietercolpaert opened this issue Mar 25, 2020 · 0 comments

Comments

@pietercolpaert
Copy link
Member

Different options to implement the identifier strategy for e.g., keeping a block ID persistent:

Using just local identifiers for e.g., a block id will give 2 problems:

  1. break federation, as multiple GTFS feeds get translated into Linked Connections and will reuse the same block IDs.
  2. When an updated GTFS feed gets published, the block ids might conflict with the earlier version.

Suggestion solution to introduce a global identifier

https://example.org/blocks/{block_id}

Solved the problem with federating over different source, but not yet the problem of making it work when an updated GTFS file gets translated to LC (unless for your GTFS feed, block ids are incremental over time and you can rely on this).

So we need to scope it to the specific GTFS feed and this brings us to another problem: how do you identify this specific GTFS feed or the fact it got translated to RDF here.

Suggestion for a version number:

  1. Rely on feed_version in feed_info.txt -- Design issue: don’t include patch version so that a block id stays the same when the minor and major version number didn’t change? (e.g., 1.2.0 → 1.2.1)
  2. When the GTFS feed’s version is not set, instead use a timestamp from the moment we started gtfs2lc

URI template for e.g., block then becomes:
https://example.org/blocks/{feed_version}/{block_id}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant