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 Download schema/commentary_unit.schema.json from bravesigma/quran-md-data: direct link, hf CLI and curl.
- Browser
- Download file 4.23 kB
-
https://huggingface.co/datasets/bravesigma/quran-md-data/resolve/main/schema/commentary_unit.schema.json
- Command line
-
hf download hf://datasets/bravesigma/quran-md-data/schema/commentary_unit.schema.json
-
curl -L -o commentary_unit.schema.json https://huggingface.co/datasets/bravesigma/quran-md-data/resolve/main/schema/commentary_unit.schema.json
4.23 kB
| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "title": "quran.md Commentary Unit Schema v2", | |
| "description": "Tafsir ingested by span, never forced to one ayah. quote_ar must be a verbatim substring of the stored raw source file (verify.py gate).", | |
| "type": "object", | |
| "required": [ | |
| "id", | |
| "work", | |
| "tradition", | |
| "span", | |
| "span_roles", | |
| "section_type", | |
| "quote_ar", | |
| "provenance" | |
| ], | |
| "properties": { | |
| "id": { | |
| "type": "string", | |
| "pattern": "^cu_[0-9a-z_]+_[0-9]+_[0-9]+(_[0-9]+)?$" | |
| }, | |
| "work": { | |
| "type": "string", | |
| "description": "source id from sources/manifest.json" | |
| }, | |
| "tradition": { | |
| "type": "string", | |
| "enum": [ | |
| "imami", | |
| "sunni", | |
| "shared" | |
| ] | |
| }, | |
| "span": { | |
| "type": "object", | |
| "required": [ | |
| "start", | |
| "end" | |
| ], | |
| "properties": { | |
| "start": { | |
| "type": "string", | |
| "pattern": "^[0-9]+:[0-9]+$" | |
| }, | |
| "end": { | |
| "type": "string", | |
| "pattern": "^[0-9]+:[0-9]+$" | |
| } | |
| } | |
| }, | |
| "span_roles": { | |
| "type": "object", | |
| "description": "ayah ref -> role", | |
| "additionalProperties": { | |
| "type": "string", | |
| "enum": [ | |
| "primary", | |
| "contextual" | |
| ] | |
| } | |
| }, | |
| "section_type": { | |
| "type": "string", | |
| "enum": [ | |
| "bayan", | |
| "bahth_riwai", | |
| "bahth_lughawi", | |
| "bahth_kalami", | |
| "bahth_fiqhi", | |
| "isnad_chain", | |
| "general_exegesis", | |
| "translation_note" | |
| ], | |
| "description": "Al-Mizan-style sectioning (bayan / bahth riwa'i / other bahth); mapped per-work at ingest." | |
| }, | |
| "quote_ar": { | |
| "type": "string", | |
| "description": "VERBATIM substring of the stored raw source file; verify.py fails the build otherwise" | |
| }, | |
| "quote_location": { | |
| "type": "object", | |
| "required": [ | |
| "volume", | |
| "page", | |
| "char_start", | |
| "char_end", | |
| "source_id", | |
| "source_sha256" | |
| ], | |
| "properties": { | |
| "volume": { | |
| "type": "string" | |
| }, | |
| "page": { | |
| "type": "string" | |
| }, | |
| "char_start": { | |
| "type": "integer", | |
| "minimum": 0 | |
| }, | |
| "char_end": { | |
| "type": "integer", | |
| "minimum": 0 | |
| }, | |
| "source_id": { | |
| "type": "string" | |
| }, | |
| "source_sha256": { | |
| "type": "string" | |
| } | |
| } | |
| }, | |
| "summary": { | |
| "type": "object", | |
| "description": "Paraphrase — NEVER presented as a quote. Must carry generated_by.", | |
| "properties": { | |
| "text": { | |
| "type": "string" | |
| }, | |
| "generated_by": { | |
| "type": "string", | |
| "description": "e.g. 'llm:glm-4.7@2026-11-26' or 'human:name'" | |
| }, | |
| "human_reviewed": { | |
| "type": "boolean", | |
| "default": false | |
| } | |
| }, | |
| "required": [ | |
| "text", | |
| "generated_by" | |
| ] | |
| }, | |
| "attribution_flags": { | |
| "type": "array", | |
| "description": "e.g. transmission-debate flags for Tafsir al-Qummi; never treated as plain single-author text", | |
| "items": { | |
| "type": "string" | |
| } | |
| }, | |
| "ayah_citations": { | |
| "type": "array", | |
| "description": "Ayah refs cited by the mufassir inside this unit (parsed deterministically; feeds xref_edge exegetical)", | |
| "items": { | |
| "type": "string", | |
| "pattern": "^[0-9]+:[0-9]+$" | |
| } | |
| }, | |
| "provenance": { | |
| "type": "object", | |
| "required": [ | |
| "work", | |
| "author", | |
| "edition", | |
| "license", | |
| "retrieval_url", | |
| "retrieval_date", | |
| "source_sha256" | |
| ], | |
| "properties": { | |
| "work": { | |
| "type": "string" | |
| }, | |
| "author": { | |
| "type": "string" | |
| }, | |
| "edition": { | |
| "type": "string" | |
| }, | |
| "license": { | |
| "type": "string" | |
| }, | |
| "retrieval_url": { | |
| "type": "string" | |
| }, | |
| "retrieval_date": { | |
| "type": "string" | |
| }, | |
| "source_sha256": { | |
| "type": "string" | |
| } | |
| } | |
| } | |
| } | |
| } | |