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.
Running Your First Queries
Now that you have the database set up, you can start running queries. Here’s a simple example to get you started:Next Steps
Now that you have the Quran Knowledge Graph up and running, you can:Explore Example Queries
Discover more sophisticated query examples
Learn About Products
Explore potential applications and use cases
Study Scholarly Approaches
Learn about different analytical methodologies
Contribute to Development
Set up your development environment to contribute