{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://noblejackal.com/schemas/huggingface-publication-record-v1.schema.json", "title": "NobleJackal Machine-Readable Publication Record", "description": "Stable record envelope for multilingual NobleJackal book and protocol corpora.", "type": "object", "additionalProperties": false, "required": [ "schema_version", "record_id", "work_id", "version", "language", "language_name", "direction", "record_type", "sequence", "chapter_number", "item_number", "title", "subtitle", "canonical_url", "doi", "doi_url", "license", "author", "publisher", "source_ids", "source_word_count", "source_document_sha256", "structured_json", "character_count", "text", "record_sha256" ], "properties": { "schema_version": { "const": "1.0.0" }, "record_id": { "type": "string", "minLength": 1 }, "work_id": { "type": "string", "minLength": 1 }, "version": { "type": "string", "minLength": 1 }, "language": { "enum": [ "en", "tr", "de", "es", "ru", "ar" ] }, "language_name": { "type": "string", "minLength": 1 }, "direction": { "enum": [ "ltr", "rtl" ] }, "record_type": { "enum": [ "front_matter", "founder_statement", "chapter", "chapter_overview", "anti_pattern", "back_matter" ] }, "sequence": { "type": "integer", "minimum": 1 }, "chapter_number": { "type": [ "integer", "null" ], "minimum": 0 }, "item_number": { "type": [ "integer", "null" ], "minimum": 1 }, "title": { "type": "string", "minLength": 1 }, "subtitle": { "type": [ "string", "null" ] }, "canonical_url": { "type": "string", "format": "uri" }, "doi": { "type": "string", "pattern": "^10\\.5281/zenodo\\.[0-9]+$" }, "doi_url": { "type": "string", "format": "uri" }, "license": { "const": "CC-BY-4.0" }, "author": { "type": "string", "minLength": 1 }, "publisher": { "const": "NobleJackal" }, "source_ids": { "type": "array", "items": { "type": "string" } }, "source_word_count": { "type": [ "integer", "null" ], "minimum": 0 }, "source_document_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "structured_json": { "type": "string", "minLength": 2 }, "character_count": { "type": "integer", "minimum": 1 }, "text": { "type": "string", "minLength": 1 }, "record_sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" } } }