Linked Connections

Linked Connections

Mimicking algorithm: https://github.com/PoDiGG/podigg-lc

Linked Connections is a method for publishing transit data using a low-cost API. It does this by exposing data in JSON(-LD). This data describe transport connections between possible stops, sorted through time. This makes it possible to efficiently do route planning based on this information. More information: http://linkedconnections.org/

Setup

To use this data, you will need a MongoDB (>= 2.6) server and a GTFS file. You can find some Belgian GTFS files here: https://hello.irail.be/gtfs/

The next step is to convert the GTFS file(s) to Linked Connections. This can be done using this tool: https://github.com/rubensworks/gtfs2lc

Once the Linked Connections have been generated, they can be imported into a MongoDB server and the Linked Connections server can be started as described here: https://github.com/linkedconnections/server.js

The connections are now exposed using an HTTP API. They can for example be used using the LC's route planner: https://github.com/linkedconnections/client.js

Example

Each connection is made up of the following JSON(-LD) object:

{ "@type":"Connection", "arrivalTime":"2015-10-03T11:53:00.000Z", "arrivalStop":"8842036", "departureTime":"2015-10-03T11:50:00.000Z", "departureStop":"8844271", "trip":"7395", "route":"228", "@id":"5609c2e663f63e825828f8db" } Such a connection contains information about the arrival and departure times. The arrival stop and departure stops are references by stop id, the LC-client is able to dereference this id. A trip is the id for a single edge between two stops. A route is the id of the route a certain train goes over regularly, this consists of one or more trips.

An example dataset for October 2015 can be found here: view-source:http://belgianrail.linkedconnections.org/connections/?departureTime=2015-10-03T11%3A50

Information about enrichment step: https://github.com/rubensworks/gtfs2lc#enrichment-step

Ontologies: https://git.informatik.uni-leipzig.de/hobbit/workpackage1/blob/master/T1.2/transport_dataset_ontologies.txt

Example data fragment: http://hastebin.com/olotaludac.xml

Data and Resources

Additional Info

Field Value
External Description https://github.com/linkedconnections/server.js
Source
Version
Contact Ruben Taelman
Contact Email ruben.taelman@ugent.be
Benchmark Generation and Acquisition