mlouward / Lyon-Velov-RDF

Live data about Lyon bicycle-sharing system using RDF and web semantic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lyon Vélo'V Real-time data

TODO:
  • Add a docker image to do the setup programatically
    • Not possible with stains/jena-fuseki docker image (needs authentication with random password else can't update dataset)
  • Change Flask to debug False

Instructions


  1. Launch a Fuseki server with a dataset called ds

Default port should be 3030: .\fuseki-server.bat --update --mem /ds

  1. Install python libraries

pip install -r requirements.txt

  1. Load static data into the triplestore

Run python jsontordf.py in folder ./load_graph

  1. Launch the Python server in folder ./server_flask

python server.py

  1. Go to localhost:5000

You can see the list of bike stations and their information, as well as the current weather Clicking on a station on the map will show:

  • Station location on the map
  • Station Name
  • Station Address
  • Number of available bikes
  • Number of parking spots
  • Time of last update

The information is updated when refreshing the page

About

Live data about Lyon bicycle-sharing system using RDF and web semantic


Languages

Language:Python 52.5%Language:JavaScript 24.5%Language:CSS 8.6%Language:HTML 7.8%Language:Dockerfile 6.6%