Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicolewhite/neo4j-flights
A Neo4j database of flights.
https://github.com/nicolewhite/neo4j-flights
Last synced: 2 months ago
JSON representation
A Neo4j database of flights.
- Host: GitHub
- URL: https://github.com/nicolewhite/neo4j-flights
- Owner: nicolewhite
- License: mit
- Created: 2014-10-13T19:04:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-29T16:58:00.000Z (over 8 years ago)
- Last Synced: 2024-11-02T01:50:31.451Z (2 months ago)
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 29
- Watchers: 5
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
flight_graph
=============A Neo4j graph database of flight data.
## Create the DB
Data is located [here](http://www.transtats.bts.gov/DL_SelectFields.asp?Table_ID=236&DB_Short_Name=On-Time). Select the pre-zipped checkbox and download. Unzip the file. Make sure you're pointing to the correct file name at line 8 of `import.py`.
Also download the lookup tables for `UniqueCarrier` and `OriginAirportID`. Save these as `.csv`, not `.csv-`. They should be called `L_UNIQUE_CARRIERS.csv` and `L_AIRPORT_ID.csv`.
```
python import_all.py --neo4j_username=neo4j --neo4j_password=
```## Setup
To run the scripts above, you will need to install the following python packages if you don't have them installed already.
### Option 1: virtualenv
```
$ virtualenv --system-site-packages env-test
$ source env-test/bin/activate
(env-test) $ pip install -r requirements.txt
```### Option 2: pip install
```
pip install py2neo
pip install unicodecsv
```## Query
Watch Intro to Cypher with this dataset [here](https://www.youtube.com/watch?v=VdivJqlPzCI). Queries are located in `queries`.