sahsimanevi commited on
Commit
4bd96cb
·
verified ·
1 Parent(s): e0f6399

Sync quranlab/hadith corpus (configs, metadata, card)

Browse files
LICENSES.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Licenses, Attribution & Removal (NOTICE) — quranlab/hadith
2
+
3
+ Binding terms are **per row** (`license`, `source`, `attribution`). Summary below.
4
+
5
+ ## Theology gate
6
+ Strictly **Ahl al-Sunnah wa'l-Jamāʿah**. Excluded by design: the Shia Four Books (al-Kāfī, Man lā yaḥḍuruhu al-Faqīh, Tahdhīb al-Aḥkām, al-Istibṣār) and other Shia/Ismāʿīlī collections; Ibāḍī (Musnad al-Rabīʿ b. Ḥabīb); Ahmadiyya/Qādiānī; Quranist/hadith-rejecter sources; hostile-orientalist grade framings.
7
+
8
+ ## Sources & tiers
9
+ - **Arabic matn (62,169 hadith across 9 collections):** public domain; digitisation from `mhashim6/Open-Hadith-Data`, ODbL-1.0 + DbCL-1.0. Attribution required.
10
+ - **Graded multilingual layer (next):** HadeethEnc.com (IslamHouse / Saudi MoIA) — verbatim, version-pinned, with grade + attribution; reproduced under their open-with-attribution terms.
11
+ - **Copyrighted translations (next):** included by reference + full attribution under **notice-and-takedown** (removal on rights-holder request via the HF Community tab).
12
+
13
+ ## Grade integrity
14
+ Grades are **grader-attributed, never asserted by QuranLab**; the matn layer is ungraded; collection-level status lives in the `collections` config, never auto-stamped per row.
15
+
16
+ ## Removal
17
+ Open the dataset's **Community (Discussions)** tab to request removal of any row.
README.md ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: mixed-per-row-pd-arabic-and-reference
4
+ pretty_name: "QuranLab — Hadith (Ahl al-Sunnah): the Nine Books"
5
+ language:
6
+ - ar
7
+ task_categories:
8
+ - text-retrieval
9
+ - text-classification
10
+ - text-generation
11
+ tags:
12
+ - hadith
13
+ - sunnah
14
+ - islam
15
+ - arabic
16
+ - ahl-al-sunnah
17
+ - bukhari
18
+ - muslim
19
+ - kutub-al-sittah
20
+ - hadith-grading
21
+ size_categories:
22
+ - 10K<n<100K
23
+ configs:
24
+ - config_name: index
25
+ default: true
26
+ data_files:
27
+ - split: train
28
+ path: "index/train-*.parquet"
29
+ - config_name: collections
30
+ data_files:
31
+ - split: train
32
+ path: "collections/train-*.parquet"
33
+ - config_name: bukhari-ar
34
+ data_files:
35
+ - split: train
36
+ path: "bukhari-ar/train-*.parquet"
37
+ - config_name: muslim-ar
38
+ data_files:
39
+ - split: train
40
+ path: "muslim-ar/train-*.parquet"
41
+ - config_name: abudawud-ar
42
+ data_files:
43
+ - split: train
44
+ path: "abudawud-ar/train-*.parquet"
45
+ - config_name: tirmidhi-ar
46
+ data_files:
47
+ - split: train
48
+ path: "tirmidhi-ar/train-*.parquet"
49
+ - config_name: nasai-ar
50
+ data_files:
51
+ - split: train
52
+ path: "nasai-ar/train-*.parquet"
53
+ - config_name: ibnmajah-ar
54
+ data_files:
55
+ - split: train
56
+ path: "ibnmajah-ar/train-*.parquet"
57
+ - config_name: malik-ar
58
+ data_files:
59
+ - split: train
60
+ path: "malik-ar/train-*.parquet"
61
+ - config_name: ahmad-ar
62
+ data_files:
63
+ - split: train
64
+ path: "ahmad-ar/train-*.parquet"
65
+ - config_name: darimi-ar
66
+ data_files:
67
+ - split: train
68
+ path: "darimi-ar/train-*.parquet"
69
+ ---
70
+
71
+ # Dataset Card for QuranLab — Hadith (Ahl al-Sunnah)
72
+
73
+ ![Theology: Ahl al-Sunnah](https://img.shields.io/badge/theology-Ahl%20al--Sunnah-2ea44f) ![Arabic matn: public domain](https://img.shields.io/badge/Arabic%20matn-public%20domain-4c6ef5) ![Collections: 9](https://img.shields.io/badge/collections-9-orange) ![Hadith: 62K+](https://img.shields.io/badge/hadith-62K%2B-blue)
74
+
75
+ A clean, verse-of-the-Sunnah **Ahl-al-Sunnah hadith corpus**: the canonical Sunni **Nine Books
76
+ (Kutub al-Tisʿa)** in Arabic, organised one **config per collection**, with honest per-row
77
+ provenance and licensing. This is the audio/text family's hadith modality — companion to
78
+ [**`quranlab/quran`**](https://huggingface.co/datasets/quranlab/quran) (Qurʾan text) and
79
+ [**`quranlab/quran-audio`**](https://huggingface.co/datasets/quranlab/quran-audio) (recitation).
80
+
81
+ **QuranLab is a volunteer, non-commercial, community-service project.** This dataset is offered
82
+ freely to students, researchers, and developers building tools for studying the Sunnah of the
83
+ Prophet ﷺ. It is strictly **Ahl al-Sunnah wa'l-Jamāʿah**: sources outside Sunni orthodoxy (the
84
+ Shia canon, Ibāḍī, Ahmadiyya, hadith-rejecter framings) are excluded by design.
85
+
86
+ ---
87
+
88
+ ## What's inside (v1)
89
+
90
+ The **Nine Books**, Arabic *matn*, public domain — sourced from the open
91
+ [`mhashim6/Open-Hadith-Data`](https://github.com/mhashim6/Open-Hadith-Data) (ODbL-1.0 / DbCL-1.0):
92
+
93
+ | collection (config) | name | author | type | hadith | status |
94
+ |---|---|---|---|---|---|
95
+ | `bukhari-ar` | Sahih al-Bukhari (صحيح البخاري) | Muhammad ibn Ismail al-Bukhari (d. 256 AH) | sahih | 7,008 | Sahih by Sunni consensus — the foremost of the two Sahihs (excludes muʿallaqāt/secondary reports, which are not all sahih). |
96
+ | `muslim-ar` | Sahih Muslim (صحيح مسلم) | Muslim ibn al-Hajjaj al-Naysaburi (d. 261 AH) | sahih | 5,362 | Sahih by Sunni consensus — the second of the two Sahihs. |
97
+ | `abudawud-ar` | Sunan Abi Dawud (سنن أبي داود) | Abu Dawud al-Sijistani (d. 275 AH) | sunan | 4,590 | One of the Four Sunan — contains sahih, hasan and daʿīf; grade per-hadith (see graded layer). |
98
+ | `tirmidhi-ar` | Jami' al-Tirmidhi (جامع الترمذي) | Muhammad ibn Isa al-Tirmidhi (d. 279 AH) | jami | 3,891 | One of the Four Sunan — al-Tirmidhi appends his own grading to many reports; mixed grades. |
99
+ | `nasai-ar` | Sunan an-Nasa'i (al-Mujtaba) (سنن النسائي (المجتبى)) | Ahmad ibn Shu'ayb al-Nasa'i (d. 303 AH) | sunan | 5,662 | One of the Four Sunan — the most stringent of the Sunan in narrator criticism; mixed grades. |
100
+ | `ibnmajah-ar` | Sunan Ibn Majah (سنن ابن ماجه) | Muhammad ibn Yazid Ibn Majah (d. 273 AH) | sunan | 4,332 | The sixth of the Six Books — contains a higher proportion of weak reports; grade per-hadith. |
101
+ | `malik-ar` | Muwatta Malik (موطأ مالك) | Malik ibn Anas (d. 179 AH) | muwatta | 1,594 | The earliest surviving Sunni collection (Yahya al-Laythi recension); hadith + athar of the people of Madinah. |
102
+ | `ahmad-ar` | Musnad Ahmad (مسند أحمد) | Ahmad ibn Hanbal (d. 241 AH) | musnad | 26,363 | The largest of the famous Musnads — arranged by Companion; mixed grades (see Shuʿayb al-Arnaʾūṭ grading). |
103
+ | `darimi-ar` | Sunan al-Darimi (سنن الدارمي) | Abd Allah ibn Abd al-Rahman al-Darimi (d. 255 AH) | sunan | 3,367 | Often counted as the ninth of the Nine Books; mixed grades. |
104
+
105
+ > **On grading — read this.** The Arabic *matn* layer here is intentionally **ungraded**: we never
106
+ > stamp a grade we do not have per hadith. The two Ṣaḥīḥs are ṣaḥīḥ by Sunni consensus (a
107
+ > *collection-level* note, recorded in the `collections` config, not on every row); the four Sunan,
108
+ > the Muwaṭṭaʾ, the Musnad and al-Dārimī contain ṣaḥīḥ, ḥasan **and** ḍaʿīf reports. Per-hadith,
109
+ > grader-attributed grading (e.g. al-Albānī, Shuʿayb al-Arnaʾūṭ, Ibn Ḥajar) arrives in a later
110
+ > graded/multilingual layer — never asserted by us.
111
+
112
+ ---
113
+
114
+ ## Quick start
115
+
116
+ ```python
117
+ from datasets import load_dataset
118
+
119
+ # Default: a slim cross-collection index of every hadith
120
+ index = load_dataset("quranlab/hadith")
121
+
122
+ # One full collection (Arabic matn)
123
+ bukhari = load_dataset("quranlab/hadith", "bukhari-ar", split="train")
124
+
125
+ # The collection registry (authors, types, counts, status notes)
126
+ collections = load_dataset("quranlab/hadith", "collections", split="train")
127
+ ```
128
+
129
+ Join to the Qurʾan corpus on `verse_key` where a hadith cites a verse (planned cross-reference
130
+ layer). The primary keys here are `hadith_key` (`"{collection}:{number}"`, citable) and `urn`
131
+ (a stable unique integer).
132
+
133
+ ---
134
+
135
+ ## Structure & fields
136
+
137
+ - **`index`** *(default)* — slim cross-collection index: `hadith_key, urn, seq, collection,
138
+ collection_type, hadith_number, language, n_chars, has_text`.
139
+ - **`collections`** — one row per collection: id, names (ar/en), author, death year (AH), type,
140
+ school, hadith count, and a collection-level `status_note`.
141
+ - **`{collection}-ar`** — one config per collection with the Arabic matn and full per-row
142
+ provenance: `hadith_key, urn, seq, collection, hadith_number, number_sort, language, text,
143
+ grade, grader, grade_source, is_muallaq, status, theological_status, source, source_url,
144
+ license, attribution, commercial_ok`.
145
+
146
+ `hadith_number` is a **string** (numbering follows the source edition); `urn` is the unique join
147
+ target; `seq` is a contiguous 1..N integrity spine within each collection.
148
+
149
+ ---
150
+
151
+ ## Scope, sources & licensing
152
+
153
+ - **Theology:** strictly **Ahl al-Sunnah**. Excluded by design (see the project's governance):
154
+ the Shia Four Books and other Shia/Ismāʿīlī collections, Ibāḍī (Musnad al-Rabīʿ), Ahmadiyya,
155
+ Quranist/hadith-rejecter sources, and hostile-orientalist grade framings.
156
+ - **Arabic matn (this release):** public domain; digitisation from `mhashim6/Open-Hadith-Data`
157
+ (ODbL-1.0 + DbCL-1.0). Attribution preserved per row.
158
+ - **Coming next (per-row, honest):** a graded multilingual layer from
159
+ [HadeethEnc.com](https://hadeethenc.com) (IslamHouse / Saudi Ministry of Islamic Affairs;
160
+ verbatim, ~70 languages, with grades and attributions), and copyrighted translations included
161
+ **by reference + attribution under notice-and-takedown** — exactly the posture of
162
+ `quranlab/quran`. Binding terms are stated **per row** (`license`, `source`, `attribution`).
163
+
164
+ **For rights holders.** To request removal of any row, please open the dataset's **Community
165
+ (Discussions)** tab; we act on such requests promptly.
166
+
167
+ ---
168
+
169
+ ## Acknowledgments
170
+
171
+ With gratitude to [`mhashim6/Open-Hadith-Data`](https://github.com/mhashim6/Open-Hadith-Data) for
172
+ the open Arabic matn, and to the scholars and institutions who have preserved and transmitted the
173
+ Sunnah across the centuries. Above all, this is offered seeking the pleasure of Allah.
174
+
175
+ ## Citation
176
+
177
+ ```bibtex
178
+ @misc{quranlab_hadith_2026,
179
+ title = {QuranLab --- Hadith (Ahl al-Sunnah): the Nine Books},
180
+ author = {{QuranLab}},
181
+ year = {2026},
182
+ publisher = {Hugging Face},
183
+ howpublished = {\url{https://huggingface.co/datasets/quranlab/hadith}}
184
+ }
185
+ ```
186
+
187
+ > *Offered freely as a service to the worldwide community of learners — that the Sunnah of the
188
+ > Prophet ﷺ be a little easier to study, build with, and share. May it be of benefit.*
abudawud-ar/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fddf99975266ebfdff28fb236b4d2feb1f050ef0f702fcc135b6274e09478197
3
+ size 1294782
ahmad-ar/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d422211baa3bb67571922d3e716e202bf10c2178fcdbe0499eeed0106cbdc70
3
+ size 6147025
bukhari-ar/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98c7e611c104df7d891506288aaba8fe7706891812bd27d6aaf2ddb4239c70d7
3
+ size 2016063
collections/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8928c8b4babd30099b2f8d0afaf411069a56edc0104c523ca8a095c16174d655
3
+ size 9477
darimi-ar/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0034148d2ae6c68c561cfb431a3cd353b960802ea0477e700dfcb57a43bc4da8
3
+ size 681342
ibnmajah-ar/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb56a44381d0a158716ea82ace97357e30e6302ca2b059a958d56d2a9e76b04b
3
+ size 944165
index/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6699e4c44adf64c6da32bc486da155066c51d1435e3d1bb3bcc26bf06163926b
3
+ size 1342932
malik-ar/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc6b42233abd707ee3bb7f18720165039b08f19983594dc2f76f2c32c97b6fe7
3
+ size 325911
metadata/collections.csv ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ collection_id,name_en,name_ar,author_en,author_ar,death_ah,type,school,n_hadith,languages,status_note,theological_status
2
+ bukhari,Sahih al-Bukhari,صحيح البخاري,Muhammad ibn Ismail al-Bukhari,محمد بن إسماعيل البخاري,256,sahih,—,7008,ar,"Sahih by Sunni consensus — the foremost of the two Sahihs (excludes muʿallaqāt/secondary reports, which are not all sahih).",ahl-al-sunnah
3
+ muslim,Sahih Muslim,صحيح مسلم,Muslim ibn al-Hajjaj al-Naysaburi,مسلم بن الحجاج النيسابوري,261,sahih,—,5362,ar,Sahih by Sunni consensus — the second of the two Sahihs.,ahl-al-sunnah
4
+ abudawud,Sunan Abi Dawud,سنن أبي داود,Abu Dawud al-Sijistani,أبو داود السجستاني,275,sunan,—,4590,ar,"One of the Four Sunan — contains sahih, hasan and daʿīf; grade per-hadith (see graded layer).",ahl-al-sunnah
5
+ tirmidhi,Jami' al-Tirmidhi,جامع الترمذي,Muhammad ibn Isa al-Tirmidhi,محمد بن عيسى الترمذي,279,jami,—,3891,ar,One of the Four Sunan — al-Tirmidhi appends his own grading to many reports; mixed grades.,ahl-al-sunnah
6
+ nasai,Sunan an-Nasa'i (al-Mujtaba),سنن النسائي (المجتبى),Ahmad ibn Shu'ayb al-Nasa'i,أحمد بن شعيب النسائي,303,sunan,—,5662,ar,One of the Four Sunan — the most stringent of the Sunan in narrator criticism; mixed grades.,ahl-al-sunnah
7
+ ibnmajah,Sunan Ibn Majah,سنن ابن ماجه,Muhammad ibn Yazid Ibn Majah,محمد بن يزيد ابن ماجه,273,sunan,—,4332,ar,The sixth of the Six Books — contains a higher proportion of weak reports; grade per-hadith.,ahl-al-sunnah
8
+ malik,Muwatta Malik,موطأ مالك,Malik ibn Anas,مالك بن أنس,179,muwatta,Maliki,1594,ar,The earliest surviving Sunni collection (Yahya al-Laythi recension); hadith + athar of the people of Madinah.,ahl-al-sunnah
9
+ ahmad,Musnad Ahmad,مسند أحمد,Ahmad ibn Hanbal,أحمد بن حنبل,241,musnad,Hanbali,26363,ar,The largest of the famous Musnads — arranged by Companion; mixed grades (see Shuʿayb al-Arnaʾūṭ grading).,ahl-al-sunnah
10
+ darimi,Sunan al-Darimi,سنن الدارمي,Abd Allah ibn Abd al-Rahman al-Darimi,عبد الله بن عبد الرحمن الدارمي,255,sunan,—,3367,ar,Often counted as the ninth of the Nine Books; mixed grades.,ahl-al-sunnah
muslim-ar/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74e72f677e12b10637748ecdde82186d2c16f2ca15328e6deb9e09ae86522dc7
3
+ size 1697476
nasai-ar/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7caa2d578a0088efbfd8b602c972b688eafffb28d5f8fde7b136b6440c80015
3
+ size 1209925
tirmidhi-ar/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a24c0509625ab9b3fa50ca8fd52087f8db4d70d11de1eba8dd3b115505b254ce
3
+ size 1306543