This repository contains a Jupyter Notebook that demonstrates how to create and visualize a knowledge graph using Python libraries such as pandas, networkx, and matplotlib.
To run the notebook, you need to have the following Python libraries installed:
- pandas
- networkx
- matplotlib
You can install the required libraries using the following command:
pip install pandas networkx matplotlib
Alternatively, if you are using Poetry, you can install the dependencies by running:
poetry install
The notebook kg_demo.ipynb contains the following sections:
- Import Required Libraries: Import the necessary libraries, including pandas, networkx, and matplotlib.
- Load Data: Load the IT-related data into a pandas DataFrame.
- Create Knowledge Graph: Use NetworkX to create a knowledge graph from the loaded data.
- Visualize Knowledge Graph: Use matplotlib to visualize the knowledge graph.
- Query Knowledge Graph: Demonstrate how to query the knowledge graph to extract useful information.
To run the notebook, follow these steps:
- Clone the repository:
git clone https://github.com/BodieCoding/kg-demo.git cd kg-demo
- Install the required dependencies:
or using Poetry:
pip install -r requirements.txt
poetry install
- Open the notebook:
jupyter notebook kg_demo.ipynb
- Run the cells in the notebook to see the knowledge graph in action.
This project is licensed under the MIT License. See the LICENSE file for details.
Bodie - [email protected]