This repo contains example processing code to convert .csv files into the appropriate format for importing into the neo4j graph database.
The example data contains the on-pitch events for football matches as
described here; https://www.kaggle.com/secareanualin/football-events.
The data is remapped to ensure unique nodeIds and relationship types.
TODO: description of graph connectivity
- install Neo4j 4.1.3 (https://neo4j.com/docs/operations-manual/current/installation/)
- install requirements.txt
- cd football_event_graph/scripts
- python process_files_for_neo4j_import.py <matchMetadataFilepath> <matchEventsFilepath> <processedFileSaveDir>
- ./build_new_database.sh <processedFileSaveDir>
- ./start_neo4j.sh(requires Docker)
- database should then be running on localhost:7474
