Skip to content

BodieCoding/kg-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knowledge Graph Demo

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.

Requirements

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

Notebook Contents

The notebook kg_demo.ipynb contains the following sections:

  1. Import Required Libraries: Import the necessary libraries, including pandas, networkx, and matplotlib.
  2. Load Data: Load the IT-related data into a pandas DataFrame.
  3. Create Knowledge Graph: Use NetworkX to create a knowledge graph from the loaded data.
  4. Visualize Knowledge Graph: Use matplotlib to visualize the knowledge graph.
  5. Query Knowledge Graph: Demonstrate how to query the knowledge graph to extract useful information.

Running the Notebook

To run the notebook, follow these steps:

  1. Clone the repository:
    git clone https://github.com/BodieCoding/kg-demo.git
    cd kg-demo
    
  2. Install the required dependencies:
    pip install -r requirements.txt
    
    or using Poetry:
    poetry install
    
  3. Open the notebook:
    jupyter notebook kg_demo.ipynb
    
  4. Run the cells in the notebook to see the knowledge graph in action.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Bodie - [email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published