Dataset Viewer
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
id: int64
surah_id: int64
ayah_number: int64
text_uthmani: string
text_simple: string
juz: int64
hizb: int64
rub: int64
page: int64
manzil: int64
text_indopak: string
surah_name_en: string
surah_name_ar: string
to
{'surah_id': Value('int32'), 'surah_name_ar': Value('string'), 'surah_name_en': Value('string'), 'ayah_number': Value('int32'), 'text_uthmani': Value('string'), 'text_simple': Value('string'), 'juz': Value('int32'), 'hizb': Value('int32'), 'page': Value('int32')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
return get_rows(
^^^^^^^^^
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2690, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2227, in __iter__
for key, pa_table in self._iter_arrow():
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2251, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 494, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 384, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 289, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 124, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
id: int64
surah_id: int64
ayah_number: int64
text_uthmani: string
text_simple: string
juz: int64
hizb: int64
rub: int64
page: int64
manzil: int64
text_indopak: string
surah_name_en: string
surah_name_ar: string
to
{'surah_id': Value('int32'), 'surah_name_ar': Value('string'), 'surah_name_en': Value('string'), 'ayah_number': Value('int32'), 'text_uthmani': Value('string'), 'text_simple': Value('string'), 'juz': Value('int32'), 'hizb': Value('int32'), 'page': Value('int32')}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Tibyan Quran Complete Dataset
Complete Quran dataset with 114 surahs and 6,236 ayahs in Uthmani Arabic script, with metadata and multiple text formats.
Data Fields
| Field | Type | Description |
|---|---|---|
surah_id |
int | Surah number (1-114) |
surah_name_ar |
string | Arabic name of the surah |
surah_name_en |
string | English name of the surah |
ayah_number |
int | Verse number within surah |
text_uthmani |
string | Uthmani script (official) |
text_simple |
string | Simplified Arabic |
juz |
int | Juz (part) number (1-30) |
hizb |
int | Hizb number (1-60) |
page |
int | Page number in standard Quran |
text_indopak |
string | Indo-Pak script variant |
Data Structure
surahs.json
Metadata for all 114 chapters including names, verse counts, and revelation info.
ayahs.json
All 6,236 verses with complete text and location metadata.
quran.json
Combined dataset with surah names merged into ayah records for easy access.
quran.db
Original SQLite database with relational schema (surahs, ayahs, translations).
Usage
Load from Hugging Face Hub
from datasets import load_dataset
# Load dataset
ds = load_dataset("kandil90/tibyan-quran-complete")
# Access ayahs
ayahs = ds["train"]
print(f"Total ayahs: {len(ayahs)}")
# Get first ayah
print(ayahs[0]["text_uthmani"])
# Filter by surah
surah_1 = [a for a in ayahs if a["surah_id"] == 1]
print(f"Al-Fatiha has {len(surah_1)} ayahs")
Load from JSON
import json
with open("quran.json", "r", encoding="utf-8") as f:
ayahs = json.load(f)
# Get Al-Baqarah (Surah 2)
al_baqarah = [a for a in ayahs if a["surah_id"] == 2]
print(f"Al-Baqarah has {len(al_baqarah)} ayahs")
Load from SQLite
import sqlite3
conn = sqlite3.connect("quran.db")
cursor = conn.cursor()
# Get all surahs
cursor.execute("SELECT name_ar, name_en FROM surahs ORDER BY id")
surahs = cursor.fetchall()
for name_ar, name_en in surahs:
print(f"{name_ar} ({name_en})")
conn.close()
Data Collection Process
- Extracted from Quran.com API v4
- Stored in SQLite database with relational schema
- Exported to JSON for ML compatibility
- Validated against official Quran text
Potential Uses
- Quran search and retrieval
- Islamic question-answering systems
- Arabic NLP research
- Tafsir (exegesis) alignment
- Islamic educational tools
Citation
@misc{tibyan_quran_2026,
author = {Tibyan Project},
title = {Tibyan Quran Complete Dataset},
year = {2026},
publisher = {Hugging Face Hub},
url = {https://huggingface.co/datasets/kandil90/tibyan-quran-complete}
}
License
MIT License - Free to use for research and commercial purposes.
- Downloads last month
- 29