A playground for movie recommendation engines.
- Ruby 1.9.3-p429
- PostgreSQL 9.3+
- Maven
- Install on Mac OSX:
brew install maven
- Install on Mac OSX:
Here's how you build the graph with pre-made CSV files of the graph, ready for
batch-import
(No need for PostgreSQL):
bundle install
git submodule update --init
rake neo4j:install
./scripts/import_csv.sh
- Download from IMDB their database aka Plain Text Data Files
- Here's a gist I wrote that handles the download from IMDB
- Run IMDBPy on the "Plain Text Data Files" to create a PostgreSQL database
- Example:
imdbpy2sql.py -d /Users/itay/Development/movieawesome/imdbdb -u 'postgres://awesome:1234@localhost/imdb'
- Run
rake export:neo4j_csv
to convert the movie data from PostgreSQL to Neo4jexport.rake
defines the graph and exports it to CSV files, so at the moment this is where the graph can be customised - Import the CSV files to neo4j using batch-import
- Example:
mvn test-compile exec:java -Dexec.mainClass="org.neo4j.batchimport.Importer" -Dexec.args="sample/batch.properties graph.db movie_nodes.csv,person_nodes.csv,genre_nodes.csv movie_person_relationships.csv,movie_genre_relationships.csv" -X