@segha/catalog 2.1.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/CHANGELOG.md +179 -0
  2. package/README.md +83 -0
  3. package/en/Note.ts +2 -0
  4. package/en/Wikipedia/index.ts +18 -0
  5. package/en/Wikipedia/types.ts +10 -0
  6. package/en/index.ts +1 -0
  7. package/es/Article/index.ts +19 -23
  8. package/es/Article/types.ts +1 -4
  9. package/es/Book/index.ts +23 -27
  10. package/es/Book/types.ts +1 -4
  11. package/es/Clothing/index.ts +29 -14
  12. package/es/Clothing/types.ts +1 -3
  13. package/es/Core/Area.ts +66 -0
  14. package/es/Core/Common.ts +43 -0
  15. package/es/Core/Format.ts +28 -0
  16. package/es/Core/Rating.ts +33 -0
  17. package/es/Core/Resource.ts +18 -0
  18. package/es/Core/Source.ts +37 -0
  19. package/es/Core/Subtype.ts +8 -0
  20. package/es/Core/Type.ts +36 -0
  21. package/es/Core/index.ts +9 -0
  22. package/es/DataTypes/Color.ts +22 -0
  23. package/es/DataTypes/Date.ts +45 -0
  24. package/es/DataTypes/Icon.ts +7 -0
  25. package/es/DataTypes/Image.ts +9 -0
  26. package/es/DataTypes/Language.ts +11 -0
  27. package/es/DataTypes/Status.ts +8 -0
  28. package/es/DataTypes/Wikilink.ts +16 -0
  29. package/es/DataTypes/index.ts +7 -0
  30. package/es/EncyclopediaEntry/index.ts +30 -0
  31. package/es/EncyclopediaEntry/types.ts +8 -0
  32. package/es/Movie/MovieExternalId.ts +7 -0
  33. package/es/Movie/index.ts +25 -28
  34. package/es/Movie/types.ts +1 -4
  35. package/es/Note.ts +6 -0
  36. package/es/Painting/index.ts +23 -0
  37. package/es/Painting/types.ts +6 -0
  38. package/es/Video/index.ts +35 -0
  39. package/es/Video/types.ts +9 -0
  40. package/es/index.ts +3 -0
  41. package/es/types.ts +3 -0
  42. package/json-schemas/ArticleSchema.json +0 -1
  43. package/json-schemas/BookSchema.json +0 -1
  44. package/json-schemas/CatalogArticleSchema.json +0 -1
  45. package/json-schemas/CatalogBookSchema.json +0 -1
  46. package/json-schemas/CatalogClothingSchema.json +0 -1
  47. package/json-schemas/CatalogMovieSchema.json +0 -1
  48. package/json-schemas/{es/CatalogArticleSchema.json → CatalogWikipediaSchema.json} +6 -7
  49. package/json-schemas/ClothingSchema.json +0 -2
  50. package/json-schemas/DetailedArticleSchema.json +0 -1
  51. package/json-schemas/DetailedBookSchema.json +0 -1
  52. package/json-schemas/DetailedClothingSchema.json +0 -2
  53. package/json-schemas/DetailedMovieSchema.json +0 -1
  54. package/json-schemas/{es/Article/DetailedArticleSchema.json → DetailedWikipediaSchema.json} +9 -10
  55. package/json-schemas/MetaArticleSchema.json +0 -1
  56. package/json-schemas/MetaBookSchema.json +0 -1
  57. package/json-schemas/MetaClothingSchema.json +0 -1
  58. package/json-schemas/MetaMovieSchema.json +0 -1
  59. package/json-schemas/{es/Book/MetaBookSchema.json → MetaWikipediaSchema.json} +11 -12
  60. package/json-schemas/MovieSchema.json +0 -1
  61. package/json-schemas/NoteSchema.json +106 -5
  62. package/json-schemas/WikipediaSchema.json +107 -0
  63. package/json-schemas/common/Palette.json +14 -0
  64. package/json-schemas/common/Scheme.json +11 -0
  65. package/json-schemas/common/index.json +32 -0
  66. package/json-schemas/en/Article/ArticleSchema.json +0 -1
  67. package/json-schemas/en/Article/CatalogArticleSchema.json +0 -1
  68. package/json-schemas/en/Article/DetailedArticleSchema.json +0 -1
  69. package/json-schemas/en/Article/MetaArticleSchema.json +0 -1
  70. package/json-schemas/en/Article/index.json +0 -4
  71. package/json-schemas/en/ArticleSchema.json +0 -1
  72. package/json-schemas/en/Book/BookSchema.json +0 -1
  73. package/json-schemas/en/Book/CatalogBookSchema.json +0 -1
  74. package/json-schemas/en/Book/DetailedBookSchema.json +0 -1
  75. package/json-schemas/en/Book/MetaBookSchema.json +0 -1
  76. package/json-schemas/en/Book/index.json +0 -4
  77. package/json-schemas/en/BookSchema.json +0 -1
  78. package/json-schemas/en/CatalogArticleSchema.json +0 -1
  79. package/json-schemas/en/CatalogBookSchema.json +0 -1
  80. package/json-schemas/en/CatalogClothingSchema.json +0 -1
  81. package/json-schemas/en/CatalogMovieSchema.json +0 -1
  82. package/json-schemas/{es/Article/CatalogArticleSchema.json → en/CatalogWikipediaSchema.json} +6 -7
  83. package/json-schemas/en/Clothing/CatalogClothingSchema.json +0 -1
  84. package/json-schemas/en/Clothing/ClothingSchema.json +0 -2
  85. package/json-schemas/en/Clothing/DetailedClothingSchema.json +0 -2
  86. package/json-schemas/en/Clothing/MetaClothingSchema.json +0 -1
  87. package/json-schemas/en/Clothing/index.json +0 -6
  88. package/json-schemas/en/ClothingSchema.json +0 -2
  89. package/json-schemas/en/DetailedArticleSchema.json +0 -1
  90. package/json-schemas/en/DetailedBookSchema.json +0 -1
  91. package/json-schemas/en/DetailedClothingSchema.json +0 -2
  92. package/json-schemas/en/DetailedMovieSchema.json +0 -1
  93. package/json-schemas/{es/DetailedArticleSchema.json → en/DetailedWikipediaSchema.json} +9 -10
  94. package/json-schemas/en/MetaArticleSchema.json +0 -1
  95. package/json-schemas/en/MetaBookSchema.json +0 -1
  96. package/json-schemas/en/MetaClothingSchema.json +0 -1
  97. package/json-schemas/en/MetaMovieSchema.json +0 -1
  98. package/json-schemas/{es/MetaBookSchema.json → en/MetaWikipediaSchema.json} +11 -12
  99. package/json-schemas/en/Movie/CatalogMovieSchema.json +0 -1
  100. package/json-schemas/en/Movie/DetailedMovieSchema.json +0 -1
  101. package/json-schemas/en/Movie/MetaMovieSchema.json +0 -1
  102. package/json-schemas/en/Movie/MovieSchema.json +0 -1
  103. package/json-schemas/en/Movie/index.json +0 -4
  104. package/json-schemas/en/MovieSchema.json +0 -1
  105. package/json-schemas/en/NoteSchema.json +106 -5
  106. package/json-schemas/en/Wikipedia/CatalogWikipediaSchema.json +34 -0
  107. package/json-schemas/en/Wikipedia/DetailedWikipediaSchema.json +41 -0
  108. package/json-schemas/{es/Article/MetaArticleSchema.json → en/Wikipedia/MetaWikipediaSchema.json} +14 -10
  109. package/json-schemas/en/Wikipedia/WikipediaSchema.json +107 -0
  110. package/json-schemas/en/Wikipedia/index.json +239 -0
  111. package/json-schemas/en/WikipediaSchema.json +107 -0
  112. package/json-schemas/en/index.json +338 -23
  113. package/json-schemas/es/Article/ArticleSchema.json +202 -61
  114. package/json-schemas/es/Article/index.json +196 -178
  115. package/json-schemas/es/ArticleSchema.json +202 -61
  116. package/json-schemas/es/Book/BookSchema.json +240 -80
  117. package/json-schemas/es/Book/index.json +226 -210
  118. package/json-schemas/es/BookSchema.json +240 -80
  119. package/json-schemas/es/CatalogClothingSchema.json +1 -1
  120. package/json-schemas/es/Clothing/CatalogClothingSchema.json +1 -1
  121. package/json-schemas/es/Clothing/ClothingSchema.json +173 -46
  122. package/json-schemas/es/Clothing/index.json +174 -163
  123. package/json-schemas/es/ClothingSchema.json +173 -46
  124. package/json-schemas/es/Core/Articles.json +6 -0
  125. package/json-schemas/es/Core/Atrocious.json +6 -0
  126. package/json-schemas/es/Core/Bad.json +6 -0
  127. package/json-schemas/es/Core/Books.json +6 -0
  128. package/json-schemas/es/Core/Capabilities.json +6 -0
  129. package/json-schemas/es/Core/Chronicles.json +6 -0
  130. package/json-schemas/es/Core/Clothes.json +6 -0
  131. package/json-schemas/es/Core/CommonSchema.json +165 -0
  132. package/json-schemas/es/Core/Creativity.json +6 -0
  133. package/json-schemas/es/Core/EncyclopediaEntries.json +6 -0
  134. package/json-schemas/es/Core/Energy.json +6 -0
  135. package/json-schemas/es/Core/Entities.json +6 -0
  136. package/json-schemas/es/Core/Evil.json +6 -0
  137. package/json-schemas/es/Core/Excellent.json +6 -0
  138. package/json-schemas/es/Core/Exercise.json +6 -0
  139. package/json-schemas/es/Core/Exploration.json +6 -0
  140. package/json-schemas/es/Core/Extracts.json +6 -0
  141. package/json-schemas/es/Core/Finances.json +6 -0
  142. package/json-schemas/es/Core/Food.json +6 -0
  143. package/json-schemas/es/Core/Format.json +13 -0
  144. package/json-schemas/es/Core/Good.json +6 -0
  145. package/json-schemas/es/Core/Health.json +6 -0
  146. package/json-schemas/es/Core/Home.json +6 -0
  147. package/json-schemas/es/Core/Knowledge.json +6 -0
  148. package/json-schemas/es/Core/Links.json +6 -0
  149. package/json-schemas/es/Core/MentalHealth.json +6 -0
  150. package/json-schemas/es/Core/Movies.json +6 -0
  151. package/json-schemas/es/Core/Paintings.json +6 -0
  152. package/json-schemas/es/Core/Passable.json +6 -0
  153. package/json-schemas/es/Core/Perfect.json +6 -0
  154. package/json-schemas/es/Core/Productivity.json +6 -0
  155. package/json-schemas/es/Core/Publications.json +6 -0
  156. package/json-schemas/es/Core/Rating.json +41 -0
  157. package/json-schemas/es/Core/ResourceSchema.json +171 -0
  158. package/json-schemas/es/Core/Resources.json +6 -0
  159. package/json-schemas/es/Core/ResourcesSubtype.json +11 -0
  160. package/json-schemas/es/Core/Scenarios.json +6 -0
  161. package/json-schemas/es/Core/SourceSchema.json +209 -0
  162. package/json-schemas/es/Core/Sources.json +6 -0
  163. package/json-schemas/es/Core/SourcesFormat.json +16 -0
  164. package/json-schemas/es/Core/StructuredThinking.json +6 -0
  165. package/json-schemas/es/Core/Subtype.json +8 -0
  166. package/json-schemas/es/Core/Type.json +15 -0
  167. package/json-schemas/es/Core/Videos.json +6 -0
  168. package/json-schemas/es/Core/Work.json +6 -0
  169. package/json-schemas/es/Core/index.json +939 -0
  170. package/json-schemas/es/DataTypes/Blue.json +6 -0
  171. package/json-schemas/es/DataTypes/Color.json +6 -0
  172. package/json-schemas/es/DataTypes/Consolidated.json +5 -0
  173. package/json-schemas/es/DataTypes/Date.json +21 -0
  174. package/json-schemas/es/DataTypes/DateTime.json +6 -0
  175. package/json-schemas/es/DataTypes/DateTimeOffset.json +6 -0
  176. package/json-schemas/es/DataTypes/Embedding.json +6 -0
  177. package/json-schemas/es/DataTypes/FullDate.json +6 -0
  178. package/json-schemas/es/DataTypes/Hex.json +6 -0
  179. package/json-schemas/es/DataTypes/Icon.json +6 -0
  180. package/json-schemas/es/DataTypes/Image.json +15 -0
  181. package/json-schemas/es/DataTypes/InProgress.json +5 -0
  182. package/json-schemas/es/DataTypes/Language.json +6 -0
  183. package/json-schemas/es/DataTypes/LanguageTag.json +6 -0
  184. package/json-schemas/es/DataTypes/Month.json +6 -0
  185. package/json-schemas/es/DataTypes/Orange.json +6 -0
  186. package/json-schemas/es/DataTypes/OrdinalDate.json +6 -0
  187. package/json-schemas/es/DataTypes/Pending.json +5 -0
  188. package/json-schemas/es/DataTypes/Read.json +5 -0
  189. package/json-schemas/es/DataTypes/Seen.json +5 -0
  190. package/json-schemas/es/DataTypes/Time.json +6 -0
  191. package/json-schemas/es/DataTypes/Watched.json +5 -0
  192. package/json-schemas/es/DataTypes/Week.json +6 -0
  193. package/json-schemas/es/DataTypes/WeekWithWeekDay.json +6 -0
  194. package/json-schemas/es/DataTypes/Wikilink.json +6 -0
  195. package/json-schemas/es/DataTypes/WikilinkOrEmbedding.json +6 -0
  196. package/json-schemas/es/DataTypes/Year.json +6 -0
  197. package/json-schemas/es/DataTypes/Yellow.json +6 -0
  198. package/json-schemas/es/DataTypes/index.json +193 -0
  199. package/json-schemas/es/EncyclopediaEntry/EncyclopediaEntrySchema.json +252 -0
  200. package/json-schemas/es/EncyclopediaEntry/WikipediaEntrySchema.json +257 -0
  201. package/json-schemas/es/EncyclopediaEntry/index.json +516 -0
  202. package/json-schemas/es/EncyclopediaEntrySchema.json +252 -0
  203. package/json-schemas/es/Movie/MovieExternalId.json +5 -0
  204. package/json-schemas/es/Movie/MovieSchema.json +233 -80
  205. package/json-schemas/es/Movie/index.json +224 -214
  206. package/json-schemas/es/MovieSchema.json +233 -80
  207. package/json-schemas/es/NoteSchema.json +1540 -248
  208. package/json-schemas/es/Painting/PaintingSchema.json +232 -0
  209. package/json-schemas/es/Painting/index.json +239 -0
  210. package/json-schemas/es/PaintingSchema.json +232 -0
  211. package/json-schemas/es/Video/VideoSchema.json +230 -0
  212. package/json-schemas/es/Video/VimeoSchema.json +221 -0
  213. package/json-schemas/es/Video/YoutubeSchema.json +221 -0
  214. package/json-schemas/es/Video/index.json +679 -0
  215. package/json-schemas/es/VideoSchema.json +230 -0
  216. package/json-schemas/es/VimeoSchema.json +221 -0
  217. package/json-schemas/es/WikipediaEntrySchema.json +257 -0
  218. package/json-schemas/es/YoutubeSchema.json +221 -0
  219. package/json-schemas/es/index.json +3655 -967
  220. package/json-schemas/index.json +338 -23
  221. package/package.json +10 -4
  222. package/es/Areas.ts +0 -24
  223. package/json-schemas/es/Book/CatalogBookSchema.json +0 -44
  224. package/json-schemas/es/Book/DetailedBookSchema.json +0 -49
  225. package/json-schemas/es/CatalogBookSchema.json +0 -44
  226. package/json-schemas/es/CatalogMovieSchema.json +0 -49
  227. package/json-schemas/es/Clothing/DetailedClothingSchema.json +0 -75
  228. package/json-schemas/es/Clothing/MetaClothingSchema.json +0 -41
  229. package/json-schemas/es/DetailedBookSchema.json +0 -49
  230. package/json-schemas/es/DetailedClothingSchema.json +0 -75
  231. package/json-schemas/es/DetailedMovieSchema.json +0 -48
  232. package/json-schemas/es/MetaArticleSchema.json +0 -46
  233. package/json-schemas/es/MetaClothingSchema.json +0 -41
  234. package/json-schemas/es/MetaMovieSchema.json +0 -51
  235. package/json-schemas/es/Movie/CatalogMovieSchema.json +0 -49
  236. package/json-schemas/es/Movie/DetailedMovieSchema.json +0 -48
  237. package/json-schemas/es/Movie/MetaMovieSchema.json +0 -51
  238. /package/json-schemas/es/{Area.json → Core/Area.json} +0 -0
  239. /package/json-schemas/es/{Areas.json → Core/Areas.json} +0 -0
  240. /package/json-schemas/es/{FirstLevelArea.json → Core/FirstLevelArea.json} +0 -0
@@ -4,17 +4,17 @@
4
4
  "properties": {
5
5
  "type": {
6
6
  "type": "string",
7
- "const": "[[Fuentes]]"
7
+ "const": "[[Sources]]"
8
8
  },
9
9
  "format": {
10
10
  "type": "string",
11
- "const": "[[Artículos]]"
11
+ "const": "[[Encyclopedia Entries]]"
12
12
  },
13
13
  "areas": {
14
14
  "type": "array",
15
15
  "items": {
16
16
  "type": "string",
17
- "const": "[[Conocimiento]]"
17
+ "const": "[[Knowledge]]"
18
18
  }
19
19
  },
20
20
  "color": {
@@ -22,15 +22,20 @@
22
22
  "const": "#3171B2"
23
23
  },
24
24
  "icon": {
25
- "type": "string",
26
- "const": "newspaper"
25
+ "default": "wikipedia",
26
+ "description": "Lucide icon.",
27
+ "type": "string"
27
28
  },
28
29
  "banner": {
29
30
  "type": "string"
30
31
  },
31
32
  "url": {
32
33
  "type": "string",
33
- "description": "URL del artículo"
34
+ "description": "URL of the article"
35
+ },
36
+ "platform": {
37
+ "type": "string",
38
+ "const": "Wikipedia"
34
39
  }
35
40
  },
36
41
  "required": [
@@ -38,9 +43,8 @@
38
43
  "format",
39
44
  "areas",
40
45
  "color",
41
- "icon",
42
- "url"
46
+ "url",
47
+ "platform"
43
48
  ],
44
- "additionalProperties": false,
45
- "description": "Artículo: Metadatos de Nota"
49
+ "description": "Wikipedia entry: Metadata of Note"
46
50
  }
@@ -0,0 +1,107 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "title": {
6
+ "type": "string",
7
+ "description": "Title of the Wikipedia entry"
8
+ },
9
+ "description": {
10
+ "description": "Description",
11
+ "type": "string"
12
+ },
13
+ "excerpt": {
14
+ "description": "Extract of the article",
15
+ "type": "string"
16
+ },
17
+ "author": {
18
+ "type": "array",
19
+ "items": {
20
+ "type": "string"
21
+ },
22
+ "description": "Authors"
23
+ },
24
+ "published": {
25
+ "description": "Year of publication",
26
+ "type": "string"
27
+ },
28
+ "status": {
29
+ "type": "string",
30
+ "enum": [
31
+ "Pending",
32
+ "In Progress",
33
+ "Read",
34
+ "Consolidated"
35
+ ],
36
+ "description": "Reading status"
37
+ },
38
+ "projects": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "string"
42
+ },
43
+ "description": "Projects"
44
+ },
45
+ "topics": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string"
49
+ },
50
+ "description": "Topics"
51
+ },
52
+ "rating": {
53
+ "type": "number",
54
+ "description": "Rating of the article"
55
+ },
56
+ "type": {
57
+ "type": "string",
58
+ "const": "[[Sources]]"
59
+ },
60
+ "format": {
61
+ "type": "string",
62
+ "const": "[[Encyclopedia Entries]]"
63
+ },
64
+ "areas": {
65
+ "type": "array",
66
+ "items": {
67
+ "type": "string",
68
+ "const": "[[Knowledge]]"
69
+ }
70
+ },
71
+ "color": {
72
+ "type": "string",
73
+ "const": "#3171B2"
74
+ },
75
+ "icon": {
76
+ "default": "wikipedia",
77
+ "description": "Lucide icon.",
78
+ "type": "string"
79
+ },
80
+ "banner": {
81
+ "type": "string"
82
+ },
83
+ "url": {
84
+ "type": "string",
85
+ "description": "URL of the article"
86
+ },
87
+ "platform": {
88
+ "type": "string",
89
+ "const": "Wikipedia"
90
+ }
91
+ },
92
+ "required": [
93
+ "title",
94
+ "author",
95
+ "status",
96
+ "projects",
97
+ "topics",
98
+ "rating",
99
+ "type",
100
+ "format",
101
+ "areas",
102
+ "color",
103
+ "url",
104
+ "platform"
105
+ ],
106
+ "description": "Wikipedia entry"
107
+ }
@@ -0,0 +1,239 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "@segha/catalog/en/Wikipedia",
4
+ "description": "Schemas for Petroglyph Catalog",
5
+ "$defs": {
6
+ "CatalogWikipediaSchema": {
7
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8
+ "type": "object",
9
+ "properties": {
10
+ "title": {
11
+ "type": "string",
12
+ "description": "Title of the Wikipedia entry"
13
+ },
14
+ "description": {
15
+ "description": "Description",
16
+ "type": "string"
17
+ },
18
+ "excerpt": {
19
+ "description": "Extract of the article",
20
+ "type": "string"
21
+ },
22
+ "author": {
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string"
26
+ },
27
+ "description": "Authors"
28
+ },
29
+ "published": {
30
+ "description": "Year of publication",
31
+ "type": "string"
32
+ }
33
+ },
34
+ "required": [
35
+ "title",
36
+ "author"
37
+ ],
38
+ "description": "Wikipedia entry: Data obtainable from cataloging"
39
+ },
40
+ "DetailedWikipediaSchema": {
41
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
42
+ "type": "object",
43
+ "properties": {
44
+ "status": {
45
+ "type": "string",
46
+ "enum": [
47
+ "Pending",
48
+ "In Progress",
49
+ "Read",
50
+ "Consolidated"
51
+ ],
52
+ "description": "Reading status"
53
+ },
54
+ "projects": {
55
+ "type": "array",
56
+ "items": {
57
+ "type": "string"
58
+ },
59
+ "description": "Projects"
60
+ },
61
+ "topics": {
62
+ "type": "array",
63
+ "items": {
64
+ "type": "string"
65
+ },
66
+ "description": "Topics"
67
+ },
68
+ "rating": {
69
+ "type": "number",
70
+ "description": "Rating of the article"
71
+ }
72
+ },
73
+ "required": [
74
+ "status",
75
+ "projects",
76
+ "topics",
77
+ "rating"
78
+ ],
79
+ "description": "Wikipedia entry: Additional data"
80
+ },
81
+ "MetaWikipediaSchema": {
82
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
83
+ "type": "object",
84
+ "properties": {
85
+ "type": {
86
+ "type": "string",
87
+ "const": "[[Sources]]"
88
+ },
89
+ "format": {
90
+ "type": "string",
91
+ "const": "[[Encyclopedia Entries]]"
92
+ },
93
+ "areas": {
94
+ "type": "array",
95
+ "items": {
96
+ "type": "string",
97
+ "const": "[[Knowledge]]"
98
+ }
99
+ },
100
+ "color": {
101
+ "type": "string",
102
+ "const": "#3171B2"
103
+ },
104
+ "icon": {
105
+ "default": "wikipedia",
106
+ "description": "Lucide icon.",
107
+ "type": "string"
108
+ },
109
+ "banner": {
110
+ "type": "string"
111
+ },
112
+ "url": {
113
+ "type": "string",
114
+ "description": "URL of the article"
115
+ },
116
+ "platform": {
117
+ "type": "string",
118
+ "const": "Wikipedia"
119
+ }
120
+ },
121
+ "required": [
122
+ "type",
123
+ "format",
124
+ "areas",
125
+ "color",
126
+ "url",
127
+ "platform"
128
+ ],
129
+ "description": "Wikipedia entry: Metadata of Note"
130
+ },
131
+ "WikipediaSchema": {
132
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
133
+ "type": "object",
134
+ "properties": {
135
+ "title": {
136
+ "type": "string",
137
+ "description": "Title of the Wikipedia entry"
138
+ },
139
+ "description": {
140
+ "description": "Description",
141
+ "type": "string"
142
+ },
143
+ "excerpt": {
144
+ "description": "Extract of the article",
145
+ "type": "string"
146
+ },
147
+ "author": {
148
+ "type": "array",
149
+ "items": {
150
+ "type": "string"
151
+ },
152
+ "description": "Authors"
153
+ },
154
+ "published": {
155
+ "description": "Year of publication",
156
+ "type": "string"
157
+ },
158
+ "status": {
159
+ "type": "string",
160
+ "enum": [
161
+ "Pending",
162
+ "In Progress",
163
+ "Read",
164
+ "Consolidated"
165
+ ],
166
+ "description": "Reading status"
167
+ },
168
+ "projects": {
169
+ "type": "array",
170
+ "items": {
171
+ "type": "string"
172
+ },
173
+ "description": "Projects"
174
+ },
175
+ "topics": {
176
+ "type": "array",
177
+ "items": {
178
+ "type": "string"
179
+ },
180
+ "description": "Topics"
181
+ },
182
+ "rating": {
183
+ "type": "number",
184
+ "description": "Rating of the article"
185
+ },
186
+ "type": {
187
+ "type": "string",
188
+ "const": "[[Sources]]"
189
+ },
190
+ "format": {
191
+ "type": "string",
192
+ "const": "[[Encyclopedia Entries]]"
193
+ },
194
+ "areas": {
195
+ "type": "array",
196
+ "items": {
197
+ "type": "string",
198
+ "const": "[[Knowledge]]"
199
+ }
200
+ },
201
+ "color": {
202
+ "type": "string",
203
+ "const": "#3171B2"
204
+ },
205
+ "icon": {
206
+ "default": "wikipedia",
207
+ "description": "Lucide icon.",
208
+ "type": "string"
209
+ },
210
+ "banner": {
211
+ "type": "string"
212
+ },
213
+ "url": {
214
+ "type": "string",
215
+ "description": "URL of the article"
216
+ },
217
+ "platform": {
218
+ "type": "string",
219
+ "const": "Wikipedia"
220
+ }
221
+ },
222
+ "required": [
223
+ "title",
224
+ "author",
225
+ "status",
226
+ "projects",
227
+ "topics",
228
+ "rating",
229
+ "type",
230
+ "format",
231
+ "areas",
232
+ "color",
233
+ "url",
234
+ "platform"
235
+ ],
236
+ "description": "Wikipedia entry"
237
+ }
238
+ }
239
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "title": {
6
+ "type": "string",
7
+ "description": "Title of the Wikipedia entry"
8
+ },
9
+ "description": {
10
+ "description": "Description",
11
+ "type": "string"
12
+ },
13
+ "excerpt": {
14
+ "description": "Extract of the article",
15
+ "type": "string"
16
+ },
17
+ "author": {
18
+ "type": "array",
19
+ "items": {
20
+ "type": "string"
21
+ },
22
+ "description": "Authors"
23
+ },
24
+ "published": {
25
+ "description": "Year of publication",
26
+ "type": "string"
27
+ },
28
+ "status": {
29
+ "type": "string",
30
+ "enum": [
31
+ "Pending",
32
+ "In Progress",
33
+ "Read",
34
+ "Consolidated"
35
+ ],
36
+ "description": "Reading status"
37
+ },
38
+ "projects": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "string"
42
+ },
43
+ "description": "Projects"
44
+ },
45
+ "topics": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string"
49
+ },
50
+ "description": "Topics"
51
+ },
52
+ "rating": {
53
+ "type": "number",
54
+ "description": "Rating of the article"
55
+ },
56
+ "type": {
57
+ "type": "string",
58
+ "const": "[[Sources]]"
59
+ },
60
+ "format": {
61
+ "type": "string",
62
+ "const": "[[Encyclopedia Entries]]"
63
+ },
64
+ "areas": {
65
+ "type": "array",
66
+ "items": {
67
+ "type": "string",
68
+ "const": "[[Knowledge]]"
69
+ }
70
+ },
71
+ "color": {
72
+ "type": "string",
73
+ "const": "#3171B2"
74
+ },
75
+ "icon": {
76
+ "default": "wikipedia",
77
+ "description": "Lucide icon.",
78
+ "type": "string"
79
+ },
80
+ "banner": {
81
+ "type": "string"
82
+ },
83
+ "url": {
84
+ "type": "string",
85
+ "description": "URL of the article"
86
+ },
87
+ "platform": {
88
+ "type": "string",
89
+ "const": "Wikipedia"
90
+ }
91
+ },
92
+ "required": [
93
+ "title",
94
+ "author",
95
+ "status",
96
+ "projects",
97
+ "topics",
98
+ "rating",
99
+ "type",
100
+ "format",
101
+ "areas",
102
+ "color",
103
+ "url",
104
+ "platform"
105
+ ],
106
+ "description": "Wikipedia entry"
107
+ }