Python (https://www.python.org/downloads/)
Neo4j and it's prerequisites like Java (https://neo4j.com/download/)
-
Clone the repo onto your machine.
-
Create and switch to a virual environment:
pip install virtualenv (if you already don't have virtualenv) virtualenv env source env/bin/activate (command may vary depending on the OSs)
-
Install python packages:
pip install -r requirements.txt
-
Run the code:
python main.py
-
Open Neo4j browser: http://localhost:7474/browser/
-
Enter the below command and execute it to see the Knowledge Graph:
Match(n) Return(n)
-
The generated Knowledge Graph should look like:
Note:
- The text used for demonstration is:
- To delete all nodes in your Neo4j (in case you are experimenting), explicitly call the function delete_all_nodes in graphPopulation.py