Skip to main content

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

This will install all the necessary packages, including:
  • 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

This script will:
  • Create the database directory
  • Define the schema (nodes and relationships)
  • Set up indices for efficient queries

2. Import Data

This script will:
  • 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