Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.
/ FIB-UPC-LP-python Public archive

Python project for the course of LP at the FIB, UPC. June of 2016

Notifications You must be signed in to change notification settings

vylion/FIB-UPC-LP-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FIB-UPC-LP-python-16

Python project for the course of LP at the FIB, UPC. June of 2016

The project consisted on:

  • Getting information about Bicing stations in Barcelona from the following server
  • Extract as much information as possible from the rdf file about restaurants in Barcelona and format it in a csv file
  • Be able to call the script with a query string to search among the restaurants' information
    • Disjunction (OR) queries are formated as a python list
    • Conjunction (AND) queries are formated as a tuple
  • The results must be presented in the form of a table in an html file, with all the information extracted on any restaurant that matches the query, as well as the Bicing stations under 1km of distance, ordered from closest to farthest, with empty bike parking lots, and also the Bicing stations with available bikes

Extracting the restaurants' data is done in the rdf2csv.py file. Reading the Bicing server, taking the information from the csv file, and putting everything in the form of a (rather ugly, I admit) table in an html file is done in the csv2html.py file.

About

Python project for the course of LP at the FIB, UPC. June of 2016

Topics

Resources

Stars

Watchers

Forks