The idea of importing the CSV dump is based on a script by Tom Dickinson.
- Docker and docker-compose.
- Poetry package manager.
- Python 3.7 or higher (e.g., using pyenv).
- Create the folder
datawith the subfoldersneo4jandpostgres. - Download the ConceptNet assertions and save to
./data. - Copy
env-exampleto.envand adjust to your preferences. - Run
poetry installto create the virtual environment and install the dependencies. - Run
poetry run python -m knowledge_graph convertto transform the assertions into a format that Neo4j can understand. - Run
poetry run python -m knowledge_graph importto import the nodes and relationships into Neo4j. - Run
poetry run python -m knowledge_graph post-processto create indices for the most important attributes. - Run
docker-compose upto start the services.