Skip to content

miksyr/football_event_graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Football match events in a graph database

This repo contains example processing code to convert .csv files into the appropriate format for importing into the neo4j graph database.

Data

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

How to use

  • 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

Example

graph_example

About

Processing on-pitch football events for use in neo4j graph database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •