config/
: contains docker compose scriptcypher/
: contains cypher codedata/
: contains movie lens datasetdata_preprocessing.py
: data preprocessing python scriptrequirements.txt
: Python libraries usedutils.py
: contains utilities used in this project
- Create
data/
folder - Place the csv files downloaded from this link https://www.kaggle.com/rounakbanik/the-movies-dataset to data folder
To execute preprocessing over movie lens dataset execute the following command:
python data_preprocessing.py
Run the API using this command: python -m flask run --reload
POST /query HTTP/1.1
Host: localhost:5000
Content-Type: application/json
{
"query": "MATCH (m:Movie)-[:HAS_GENRE]->(g:Genre {name: 'Mystery'}) WHERE m.budget > 60000000 RETURN m"
}
Get similar movies
POST /jaccard/similarity HTTP/1.1
Host: localhost:5000
Content-Type: application/json
{
"title": "Cloud Atlas"
}