Quickstart Guide
This guide will help you get started with the Quran Knowledge Graph quickly. You’ll learn how to install the necessary dependencies, set up the database, and run your first queries.Prerequisites
Before you begin, make sure you have the following installed:- Python 3.8 or higher
- pip (Python package installer)
- Git
Installation
1. Clone the Repository
2. Install Dependencies
- Kuzu (graph database)
- Pandas and NumPy (data processing)
- Transformers and PyTorch (for embeddings)
- Other utilities and visualization libraries
Setting Up the Database
1. Initialize the Database
- Create the database directory
- Define the schema (nodes and relationships)
- Set up indices for efficient queries
2. Import Data
- Download data from qul.tarteel.ai (if not already present)
- Process and transform the data
- Import it into the Kuzu graph database
- Generate embeddings for verses, words, and topics
The data import process may take some time, especially the embedding generation step.