Script and dump file to fill a neo4j database with artists, movements and relationships betweens thems in Neo4j.
Clone the repository as always but add the option --recursive to clone Neovis.js too
- install all pip requirements especified in requirements
- set the variables inside sript.py dburl, user, pasw with the db url, the user and password to connect to the database.
- make sure there is a palette.json file with an array full with hex colors
- run
python script.py
- If the script fails with an error sayind movements_palette[index] out of range you have to, delete palette.json run palette.py again but with the range used inside the for to something grater (wikidata keeps adding art movements)
- if there is an error when fetching the artists you will have to clear the database (run the query
MATCH(n) DETACH DELETE n
) and re run the script.
- build the neovis.js project in here as specified in their github Neovis.js
- go inside graphs.html and modify this values to your user and password for your Neo4j db
neo4j: {
serverUrl: "bolt://localhost:7687",
serverUser: "user",
serverPassword: "password"
}
- open graph.html in any browser.
https://drive.google.com/file/d/1FiDuAp95SjBQzIjRe1L_jFMUD6ZVzZLW/view?usp=sharing
- Genaro Nadile
- Gabriel Corujo