{"id":25654429,"url":"https://github.com/enzet/wikidata-transport-parser","last_synced_at":"2025-07-14T20:35:02.649Z","repository":{"id":88840865,"uuid":"537349043","full_name":"enzet/wikidata-transport-parser","owner":"enzet","description":"Wikidata transport systems parser","archived":false,"fork":false,"pushed_at":"2025-05-27T20:24:51.000Z","size":50,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-27T21:30:20.891Z","etag":null,"topics":["parser","python","transport","transportation-network","wikidata"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enzet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-16T07:19:55.000Z","updated_at":"2025-05-27T20:24:54.000Z","dependencies_parsed_at":"2023-03-25T19:18:46.238Z","dependency_job_id":null,"html_url":"https://github.com/enzet/wikidata-transport-parser","commit_stats":null,"previous_names":["enzet/wikidata-transport-parser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/enzet/wikidata-transport-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzet%2Fwikidata-transport-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzet%2Fwikidata-transport-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzet%2Fwikidata-transport-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzet%2Fwikidata-transport-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enzet","download_url":"https://codeload.github.com/enzet/wikidata-transport-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enzet%2Fwikidata-transport-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265344863,"owners_count":23750568,"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","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":["parser","python","transport","transportation-network","wikidata"],"created_at":"2025-02-23T20:41:34.733Z","updated_at":"2025-07-14T20:35:02.638Z","avatar_url":"https://github.com/enzet.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Transport Network Parser for Wikidata\n\nA [Wikidata](https://wikidata.org) parser for transport networks.\n\n## Installation\n\nRequirements: Python 3.9 or higher.\n\n```shell\npip install .\n```\n\n## Wikidata Parsing\n\nThe algorithm takes as input a Wikidata identifier of an arbitrary transport\nstation and a Wikidata identifier of the transport system. The algorithm will\nrecursively parse the network structure.\n\n## Example Run\n\nTo parse the Prague metro system, you need to specify the system's Wikidata item\n([Q190271](https://www.wikidata.org/wiki/Q190271) for Prague Metro) and\nany station's Wikidata item\n([Q1877386](https://www.wikidata.org/wiki/Q1877386) for Florenc metro station).\n\n```shell\nmetro --system 190271 --station 1877386\n```\n\n## Output\n\nThe result will be saved in the `out/metro.json` file with the following structure:\n\n```json\n{\n    \"id\": \"\u003cTEXT IDENTIFIER\u003e\",\n    \"stations\": [\"\u003cSTATION STRUCTURE\u003e\"],\n    \"lines\": [\"\u003cLINE STRUCTURE\u003e\"]\n}\n```\n\n### Station Structure\n\n```json\n{\n    \"id\": \"\u003cLINE IDENTIFIER\u003e/\u003cSTATION SHORT IDENTIFIER\u003e\",\n    \"line\": \"\u003cLINE IDENTIFIER\u003e\",\n    \"names\": {\n        \"\u003cLANGUAGE\u003e\": \"\u003cNAME\u003e\"\n    },\n    \"open_time\": \"\",\n    \"geo_positions\": [\"\u003cLATITUDE\u003e\", \"\u003cLONGITUDE\u003e\"],\n    \"connections\": [\n        {\n            \"to\": \"\u003cOTHER STATION IDENTIFIER\u003e\",\n            \"type\": \"\u003cCONNECTION TYPE\u003e\"\n        }\n    ],\n    \"site_links\": [\n        {\n            \"\u003cSITE\u003e\": \"\u003cPAGE NAME\u003e\"\n        }\n    ]\n}\n```\n\n### Line Structure\n\n```json\n{\n    \"id\": \"\u003cLINE IDENTIFIER\u003e/\u003cSTATION SHORT IDENTIFIER\u003e\",\n    \"names\": {\n        \"\u003cLANGUAGE\u003e\": \"\u003cNAME\u003e\"\n    },\n    \"color\": \"\u003cLINE COLOR\u003e\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzet%2Fwikidata-transport-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenzet%2Fwikidata-transport-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzet%2Fwikidata-transport-parser/lists"}