{ "$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" } } } } }