{"id":33044419,"url":"https://github.com/Stephen-Gates/GTFS","last_synced_at":"2025-11-16T20:01:47.966Z","repository":{"id":89605186,"uuid":"67581317","full_name":"Stephen-Gates/GTFS","owner":"Stephen-Gates","description":"Public transport data in GTFS format with schemas, a data package and tests","archived":false,"fork":false,"pushed_at":"2018-03-19T09:22:25.000Z","size":2193,"stargazers_count":18,"open_issues_count":9,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-07T03:56:52.220Z","etag":null,"topics":["data-package","gtfs","json-table-schemas","open-data"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Stephen-Gates.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-09-07T07:07:09.000Z","updated_at":"2024-05-26T02:23:17.000Z","dependencies_parsed_at":"2024-01-16T00:20:56.250Z","dependency_job_id":"1cc941d4-f0c3-4736-8ee5-d16def5e3458","html_url":"https://github.com/Stephen-Gates/GTFS","commit_stats":{"total_commits":85,"total_committers":2,"mean_commits":42.5,"dds":"0.49411764705882355","last_synced_commit":"1c93790f18a5c55d58e849f7de845c80597df0b9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Stephen-Gates/GTFS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stephen-Gates%2FGTFS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stephen-Gates%2FGTFS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stephen-Gates%2FGTFS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stephen-Gates%2FGTFS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stephen-Gates","download_url":"https://codeload.github.com/Stephen-Gates/GTFS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stephen-Gates%2FGTFS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284767947,"owners_count":27060132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-package","gtfs","json-table-schemas","open-data"],"created_at":"2025-11-14T00:00:28.414Z","updated_at":"2025-11-16T20:01:47.961Z","avatar_url":"https://github.com/Stephen-Gates.png","language":"Python","funding_links":[],"categories":["Producing Data","Uncategorized"],"sub_categories":["GTFS","Uncategorized"],"readme":"# GTFS\n\nPublic transportation schedules and associated geographic information for South-East Queensland.\n\nThe data is a snapshot and not planned to be kept up-to-date. The main purpose of this repository is to develop a data package and schemas for this dataset.\n\n## Data\nThis data is the [General transit feed specification (GTFS) — South East Queensland](https://data.qld.gov.au/dataset/general-transit-feed-specification-gtfs-seq) data published by [Transport and Main Roads, Queensland Government](http://www.tmr.qld.gov.au/), licensed under [Creative Commons Attribution](https://creativecommons.org/licenses/by/3.0/au/) sourced on 07 September 2016.\n\nThe data follows the [GTFS specification](https://developers.google.com/transit/gtfs/reference/) and some of its [extensions](https://developers.google.com/transit/gtfs/reference/gtfs-extensions) that define a common format for public transportation schedules and associated geographic information. The specification allows some files to be optional. It also allows some columns in the files to be optional. This means that the datapackage.json file and schemas may not work for [other GTFS files](https://code.google.com/archive/p/googletransitdatafeed/wikis/PublicFeeds.wiki).\n\nThe [data](https://github.com/Stephen-Gates/GTFS/tree/master/data) is made up of a number of files.\n\nEach data file is defined by a [schema](https://github.com/Stephen-Gates/GTFS/tree/master/schemas). The schemas follow the [json table schema specification](http://specs.frictionlessdata.io/json-table-schema/).\n\nThese schemas will be combined into a [datapackage.json](https://github.com/Stephen-Gates/GTFS/blob/master/datapackage.json) file to fully describe the data collection. The datapackage.json file will follow the [data package specification](http://specs.frictionlessdata.io/data-packages/).\n\n## Preparation\nThe data was downloaded, unzipped, and then uploaded to GitHub.\n\nTwo data files (shapes.txt and trips.txt) were too large to load into GitHub. They were truncated and uploaded. They will be adequate to use for testing valid data.\n\n## Tests\nThe focus of the tests is to ensure the schemas are correct. There are already [GTFS data validation tools](https://developers.google.com/transit/gtfs/guides/tools) to test the data in more powerful ways than json table schemas allow.\n\nThe [tests](https://github.com/Stephen-Gates/GTFS/tree/master/tests) are invalid data that is used to ensure the schema detects all errors (e.g. incorrect [types](http://specs.frictionlessdata.io/json-table-schema/#field-types-and-formats) and violated [constraints](http://specs.frictionlessdata.io/json-table-schema/#field-constraints)).\n\n## Results\nThe [results](https://github.com/Stephen-Gates/GTFS/blob/master/results/results.md) can be verified using links to  [Good Tables](http://goodtables.okfnlabs.org). Tests include:\n- testing the valid data without a schema\n- testing the valid data with a schema\n- testing the invalid data with a schema\n\nGood Tables doesn't check all types of errors (yet). Somethings not checked include:\n- Foreign keys. (See Good Tables [#17](https://github.com/frictionlessdata/goodtables/issues/17),  [#8](https://github.com/frictionlessdata/goodtables/issues/8))\n- Some constraints (See Good Tables[#55](https://github.com/frictionlessdata/goodtables/issues/55))\n\n## Automatic Testing\nThe scripts and .travis.yml file are used to automatically test the data that is defined in datapackage.json. Whenever there is a change to this repository, it triggers [Travis](https://travis-ci.org/) to validate the data.  \n\nThe last automatic test returned [![datapackage validation](https://travis-ci.org/Stephen-Gates/GTFS.svg?branch=master)](https://travis-ci.org/Stephen-Gates/GTFS)\n\n## Schemas\nThe [schemas](https://github.com/Stephen-Gates/GTFS/tree/master/schemas) were created using [Data Packagist](http://datapackagist.openknowledge.io/). Using Data Packagist:\n\n- add some basic information about the data file (name, description, license, etc.)\n- upload the data file\n\nData Packagist will create a datapackage.json file for you. Download this file.\n\nGood Tables can only use a json table schema for validation ([see goodtables-web #65](https://github.com/frictionlessdata/goodtables-web/issues/65)). You can extract the json table schema from the datapackage.json file. It's this bit `{fields: [...]}`. Save this a separate file.\n\nEdit the schema file with a text editor (e.g. [ATOM](https://atom.io), [jsoneditoronline.org](http://www.jsoneditoronline.org)) and add constraints, refine types and formats, etc. You may like to use the [json table schema schema](https://raw.githubusercontent.com/frictionlessdata/schemas/master/json-table-schema.json) to improve your editing experience.\n\nSome constraints use regular expressions to define a pattern. Use a online tool to help create and test a regular expresion e.g. [regexr.com](http://regexr.com/) or [regex101](https://regex101.com/).\n\n## View the Data Package\nData packages are about providing machine-readable metadata for your data. You can [view a human-readable version of the data package](http://data.okfn.org/tools/view?url=https%3A%2F%2Fraw.githubusercontent.com%2FStephen-Gates%2FGTFS%2Fmaster%2Fdatapackage.json) data, and readme files using the [Data Package Viewer](http://data.okfn.org/tools/view). There are a couple of [issues](https://github.com/okfn/data.okfn.org-new/issues) with the viewer including providing an incorrect link to the metadata [data.okfn.org-new #9](https://github.com/okfn/data.okfn.org-new/issues).\n\n## License\nAll items in this repository, apart from the data, are licensed under [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStephen-Gates%2FGTFS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FStephen-Gates%2FGTFS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStephen-Gates%2FGTFS/lists"}