quran-md-data / schema /hadith.schema.json
Z User
phase3-6 continued: NOTICE.md + DATASET_CARD.md (attribution compliance); mutashabihat detector (71 pairs) wired into graph (23,521 edges); KB expanded to 192 verses (Surah 19+60 complete, Ibrahim blocks 2:124-141, 6:74-90) with 576 commentary units + 1,662 citations; surah names + page numbers backfilled from API with provenance; probe expanded (2 real / 3 labeled fake); PERMISSION_REQUESTS.md drafts
cbbb668
Raw History Blame Contribute Delete
2.94 kB
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "quran.md Hadith Schema v2",
"type": "object",
"required": [
"id",
"collection",
"number",
"text_ar",
"isnad",
"grading",
"linked_ayat",
"provenance"
],
"properties": {
"id": {
"type": "string"
},
"collection": {
"type": "string",
"description": "source id from manifest, e.g. hadith_al_kafi — one work per identity, never merged"
},
"number": {
"type": "string",
"description": "in-book numbering + edition; site IDs stored only as external refs"
},
"text_ar": {
"type": "string",
"description": "verbatim substring of stored raw; verify.py gate"
},
"isnad": {
"type": "array",
"items": {
"type": "string",
"description": "narrator ref (narrator id or unresolved candidate) in chain order"
}
},
"grading": {
"type": "array",
"description": "Never collapsed into one score — one entry per evaluator/criteria set",
"items": {
"type": "object",
"required": [
"evaluator",
"verdict",
"source"
],
"properties": {
"evaluator": {
"type": "string"
},
"verdict": {
"type": "string"
},
"reasoning": {
"type": "string"
},
"source": {
"type": "string",
"description": "work+volume+page of the grading statement"
}
}
}
},
"linked_ayat": {
"type": "array",
"items": {
"type": "object",
"required": [
"ref",
"link_type"
],
"properties": {
"ref": {
"type": "string",
"pattern": "^[0-9]+:[0-9]+$"
},
"link_type": {
"type": "string",
"enum": [
"mufassir_cited",
"commentary_subject",
"tafsir_quoted_verse",
"matn_quoted_verse",
"unresolved"
]
}
}
}
},
"consensus_level": {
"type": "string",
"enum": [
"agreed",
"majority",
"disputed",
"single_source"
]
},
"provenance": {
"type": "object",
"required": [
"edition",
"volume",
"page",
"source_sha256",
"retrieval_url",
"retrieval_date"
],
"properties": {
"edition": {
"type": "string"
},
"volume": {
"type": "string"
},
"page": {
"type": "string"
},
"source_sha256": {
"type": "string"
},
"retrieval_url": {
"type": "string"
},
"retrieval_date": {
"type": "string"
}
}
}
}
}