File size: 6,231 Bytes
d9b9522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://noblejackal.com/schemas/geo-framework-book-v1.json",
  "title": "NobleJackal GEO Framework publication",
  "description": "Schema for each versioned GEO Framework language edition, its human and machine publication surfaces, integrity record and normative boundaries.",
  "type": "object",
  "required": [
    "schemaVersion",
    "id",
    "canonical",
    "title",
    "language",
    "version",
    "status",
    "author",
    "archiveRecord",
    "normativeBoundary",
    "integrity",
    "access",
    "chapters"
  ],
  "properties": {
    "schemaVersion": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$" },
    "id": { "type": "string", "format": "uri" },
    "canonical": { "type": "string", "format": "uri" },
    "machineBase": { "type": "string", "format": "uri" },
    "title": { "type": "string", "minLength": 1 },
    "subtitle": { "type": "string", "minLength": 1 },
    "language": { "enum": ["en", "tr", "de", "es", "ru", "ar"] },
    "htmlLocale": { "enum": ["en", "tr", "de", "es", "ru", "ar"] },
    "direction": { "enum": ["ltr", "rtl"] },
    "version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$" },
    "status": { "enum": ["publication-locked-turkish-master", "publication-locked-language-edition"] },
    "publicationDate": { "type": "string", "format": "date" },
    "author": {
      "type": "object",
      "required": ["publishedName", "identity", "profile"],
      "properties": {
        "publishedName": { "type": "string" },
        "identity": { "type": "string" },
        "profile": { "type": "string", "format": "uri" }
      },
      "additionalProperties": false
    },
    "publisher": {
      "type": "object",
      "required": ["name", "url", "profile"],
      "properties": {
        "name": { "type": "string" },
        "url": { "type": "string", "format": "uri" },
        "profile": { "type": "string", "format": "uri" }
      },
      "additionalProperties": false
    },
    "rights": { "type": "string" },
    "archiveRecord": { "$ref": "#/$defs/archiveRecord" },
    "normativeBoundary": {
      "type": "object",
      "required": ["standardProposal", "externallyValidated", "accredited", "certificationProgramActive", "statement"],
      "properties": {
        "standardProposal": { "const": true },
        "externallyValidated": { "const": false },
        "accredited": { "const": false },
        "certificationProgramActive": { "const": false },
        "statement": { "type": "string", "minLength": 1 }
      },
      "additionalProperties": false
    },
    "integrity": {
      "type": "object",
      "required": ["algorithm", "canonicalMarkdown", "lockedReleaseDocx"],
      "properties": {
        "algorithm": { "const": "SHA-256" },
        "canonicalMarkdown": { "$ref": "#/$defs/sha256" },
        "lockedReleaseDocx": {
          "anyOf": [
            { "$ref": "#/$defs/sha256" },
            { "type": "null" }
          ]
        }
      },
      "additionalProperties": false
    },
    "access": {
      "type": "object",
      "required": ["human", "markdown", "json", "manifest", "citation", "docx"],
      "properties": {
        "human": { "type": "string", "format": "uri" },
        "markdown": { "type": "string", "format": "uri" },
        "json": { "type": "string", "format": "uri" },
        "manifest": { "type": "string", "format": "uri" },
        "citation": { "type": "string", "format": "uri" },
        "docx": {
          "anyOf": [
            { "type": "string", "format": "uri" },
            { "type": "null" }
          ]
        }
      },
      "additionalProperties": false
    },
    "languageAlternates": {
      "type": "object",
      "required": ["en", "tr", "de", "es", "ru", "ar", "x-default"],
      "additionalProperties": { "type": "string", "format": "uri" }
    },
    "frontMatter": { "$ref": "#/$defs/contentPart" },
    "chapters": {
      "type": "array",
      "minItems": 10,
      "maxItems": 10,
      "items": {
        "allOf": [
          { "$ref": "#/$defs/contentPart" },
          {
            "type": "object",
            "required": ["number", "roman", "slug", "title", "part", "description"],
            "properties": {
              "number": { "type": "integer", "minimum": 1, "maximum": 10 },
              "roman": { "type": "string" },
              "slug": { "type": "string", "pattern": "^[a-z0-9-]+$" },
              "title": { "type": "string" },
              "part": { "type": "string" },
              "description": { "type": "string" }
            }
          }
        ]
      }
    },
    "backMatter": { "$ref": "#/$defs/contentPart" }
  },
  "$defs": {
    "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
    "archiveRecord": {
      "type": "object",
      "required": ["repository", "language", "repositoryLanguage", "version", "repositoryVersion", "doi", "conceptDoi", "doiUrl", "conceptDoiUrl", "recordUrl", "pdfUrl", "officialWebEdition"],
      "properties": {
        "repository": { "const": "Zenodo" },
        "language": { "enum": ["en", "tr", "de", "es", "ru", "ar"] },
        "repositoryLanguage": { "enum": ["eng", "tur", "deu", "spa", "rus", "ara"] },
        "version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$" },
        "repositoryVersion": { "type": ["string", "null"] },
        "doi": { "type": "string", "pattern": "^10\\.5281/zenodo\\.[0-9]+$" },
        "conceptDoi": { "type": "string", "pattern": "^10\\.5281/zenodo\\.[0-9]+$" },
        "doiUrl": { "type": "string", "format": "uri" },
        "conceptDoiUrl": { "type": "string", "format": "uri" },
        "recordUrl": { "type": "string", "format": "uri" },
        "pdfUrl": { "type": "string", "format": "uri" },
        "officialWebEdition": { "type": "string", "format": "uri" }
      },
      "additionalProperties": false
    },
    "contentPart": {
      "type": "object",
      "required": ["canonical", "wordCount", "markdown"],
      "properties": {
        "canonical": { "type": "string", "format": "uri" },
        "wordCount": { "type": "integer", "minimum": 1 },
        "markdown": { "type": "string", "minLength": 1 }
      }
    }
  }
}