@frictionless-ts/metadata 1.0.1

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 (312) hide show
  1. package/README.md +3 -0
  2. package/build/assets/dialect-1.0.json +58 -0
  3. package/build/assets/dialect-2.0.json +98 -0
  4. package/build/assets/package-1.0.json +1517 -0
  5. package/build/assets/package-2.0.json +2168 -0
  6. package/build/assets/resource-1.0.json +1353 -0
  7. package/build/assets/resource-2.0.json +1987 -0
  8. package/build/assets/schema-1.0.json +1126 -0
  9. package/build/assets/schema-2.0.json +1715 -0
  10. package/build/descriptor/Descriptor.d.ts +2 -0
  11. package/build/descriptor/Descriptor.js +4 -0
  12. package/build/descriptor/index.d.ts +6 -0
  13. package/build/descriptor/index.js +6 -0
  14. package/build/descriptor/load.d.ts +8 -0
  15. package/build/descriptor/load.js +36 -0
  16. package/build/descriptor/load.spec.d.ts +1 -0
  17. package/build/descriptor/load.spec.js +44 -0
  18. package/build/descriptor/process/parse.d.ts +2 -0
  19. package/build/descriptor/process/parse.js +8 -0
  20. package/build/descriptor/process/stringify.d.ts +2 -0
  21. package/build/descriptor/process/stringify.js +4 -0
  22. package/build/descriptor/save.d.ts +9 -0
  23. package/build/descriptor/save.js +19 -0
  24. package/build/descriptor/save.spec.d.ts +1 -0
  25. package/build/descriptor/save.spec.js +99 -0
  26. package/build/dialect/Dialect.d.ts +89 -0
  27. package/build/dialect/Dialect.js +2 -0
  28. package/build/dialect/assert.d.ts +6 -0
  29. package/build/dialect/assert.js +12 -0
  30. package/build/dialect/assert.spec.d.ts +1 -0
  31. package/build/dialect/assert.spec.js +22 -0
  32. package/build/dialect/convert/fromDescriptor.d.ts +2 -0
  33. package/build/dialect/convert/fromDescriptor.js +20 -0
  34. package/build/dialect/convert/toDescriptor.d.ts +3 -0
  35. package/build/dialect/convert/toDescriptor.js +5 -0
  36. package/build/dialect/index.d.ts +8 -0
  37. package/build/dialect/index.js +8 -0
  38. package/build/dialect/load.d.ts +5 -0
  39. package/build/dialect/load.js +12 -0
  40. package/build/dialect/load.spec.d.ts +1 -0
  41. package/build/dialect/load.spec.js +18 -0
  42. package/build/dialect/resolve.d.ts +2 -0
  43. package/build/dialect/resolve.js +11 -0
  44. package/build/dialect/save.d.ts +9 -0
  45. package/build/dialect/save.js +16 -0
  46. package/build/dialect/save.spec.d.ts +1 -0
  47. package/build/dialect/save.spec.js +52 -0
  48. package/build/dialect/validate.d.ts +10 -0
  49. package/build/dialect/validate.js +25 -0
  50. package/build/dialect/validate.spec.d.ts +1 -0
  51. package/build/dialect/validate.spec.js +28 -0
  52. package/build/error/Bound.d.ts +4 -0
  53. package/build/error/Bound.js +2 -0
  54. package/build/error/Error.d.ts +3 -0
  55. package/build/error/Error.js +2 -0
  56. package/build/error/Unbound.d.ts +6 -0
  57. package/build/error/Unbound.js +2 -0
  58. package/build/error/index.d.ts +16 -0
  59. package/build/error/index.js +2 -0
  60. package/build/error/types/Base.d.ts +3 -0
  61. package/build/error/types/Base.js +2 -0
  62. package/build/error/types/Bytes.d.ts +6 -0
  63. package/build/error/types/Bytes.js +2 -0
  64. package/build/error/types/Cell.d.ts +56 -0
  65. package/build/error/types/Cell.js +2 -0
  66. package/build/error/types/Data.d.ts +5 -0
  67. package/build/error/types/Data.js +2 -0
  68. package/build/error/types/Document.d.ts +7 -0
  69. package/build/error/types/Document.js +2 -0
  70. package/build/error/types/Encoding.d.ts +6 -0
  71. package/build/error/types/Encoding.js +2 -0
  72. package/build/error/types/Field.d.ts +15 -0
  73. package/build/error/types/Field.js +2 -0
  74. package/build/error/types/Fields.d.ts +11 -0
  75. package/build/error/types/Fields.js +2 -0
  76. package/build/error/types/File.d.ts +4 -0
  77. package/build/error/types/File.js +2 -0
  78. package/build/error/types/ForeignKey.d.ts +7 -0
  79. package/build/error/types/ForeignKey.js +2 -0
  80. package/build/error/types/Hash.d.ts +6 -0
  81. package/build/error/types/Hash.js +2 -0
  82. package/build/error/types/Metadata.d.ts +9 -0
  83. package/build/error/types/Metadata.js +2 -0
  84. package/build/error/types/Row.d.ts +9 -0
  85. package/build/error/types/Row.js +2 -0
  86. package/build/error/types/Table.d.ts +6 -0
  87. package/build/error/types/Table.js +2 -0
  88. package/build/field/Field.d.ts +5 -0
  89. package/build/field/Field.js +2 -0
  90. package/build/field/Type.d.ts +2 -0
  91. package/build/field/Type.js +2 -0
  92. package/build/field/convert/fromDescriptor.d.ts +2 -0
  93. package/build/field/convert/fromDescriptor.js +61 -0
  94. package/build/field/convert/fromDescriptor.spec.d.ts +1 -0
  95. package/build/field/convert/fromDescriptor.spec.js +241 -0
  96. package/build/field/convert/toDescriptor.d.ts +3 -0
  97. package/build/field/convert/toDescriptor.js +5 -0
  98. package/build/field/convert/toDescriptor.spec.d.ts +1 -0
  99. package/build/field/convert/toDescriptor.spec.js +291 -0
  100. package/build/field/index.d.ts +5 -0
  101. package/build/field/index.js +3 -0
  102. package/build/field/types/Any.d.ts +20 -0
  103. package/build/field/types/Any.js +2 -0
  104. package/build/field/types/Array.d.ts +32 -0
  105. package/build/field/types/Array.js +2 -0
  106. package/build/field/types/Base.d.ts +60 -0
  107. package/build/field/types/Base.js +2 -0
  108. package/build/field/types/Boolean.d.ts +28 -0
  109. package/build/field/types/Boolean.js +2 -0
  110. package/build/field/types/Date.d.ts +43 -0
  111. package/build/field/types/Date.js +2 -0
  112. package/build/field/types/Datetime.d.ts +43 -0
  113. package/build/field/types/Datetime.js +2 -0
  114. package/build/field/types/Duration.d.ts +28 -0
  115. package/build/field/types/Duration.js +2 -0
  116. package/build/field/types/Geojson.d.ts +30 -0
  117. package/build/field/types/Geojson.js +2 -0
  118. package/build/field/types/Geopoint.d.ts +27 -0
  119. package/build/field/types/Geopoint.js +2 -0
  120. package/build/field/types/Integer.d.ts +57 -0
  121. package/build/field/types/Integer.js +2 -0
  122. package/build/field/types/List.d.ts +36 -0
  123. package/build/field/types/List.js +2 -0
  124. package/build/field/types/Number.d.ts +48 -0
  125. package/build/field/types/Number.js +2 -0
  126. package/build/field/types/Object.d.ts +32 -0
  127. package/build/field/types/Object.js +2 -0
  128. package/build/field/types/String.d.ts +51 -0
  129. package/build/field/types/String.js +2 -0
  130. package/build/field/types/Time.d.ts +43 -0
  131. package/build/field/types/Time.js +2 -0
  132. package/build/field/types/Year.d.ts +36 -0
  133. package/build/field/types/Year.js +2 -0
  134. package/build/field/types/Yearmonth.d.ts +36 -0
  135. package/build/field/types/Yearmonth.js +2 -0
  136. package/build/field/types/index.d.ts +16 -0
  137. package/build/field/types/index.js +17 -0
  138. package/build/index.d.ts +112 -0
  139. package/build/index.js +32 -0
  140. package/build/json/Schema.d.ts +2 -0
  141. package/build/json/Schema.js +2 -0
  142. package/build/json/Value.d.ts +1 -0
  143. package/build/json/Value.js +2 -0
  144. package/build/json/ajv.d.ts +2 -0
  145. package/build/json/ajv.js +10 -0
  146. package/build/json/assert.d.ts +2 -0
  147. package/build/json/assert.js +10 -0
  148. package/build/json/cache.d.ts +2 -0
  149. package/build/json/cache.js +5 -0
  150. package/build/json/index.d.ts +5 -0
  151. package/build/json/index.js +4 -0
  152. package/build/json/inspect/schema.d.ts +4 -0
  153. package/build/json/inspect/schema.js +10 -0
  154. package/build/json/inspect/schema.spec.d.ts +1 -0
  155. package/build/json/inspect/schema.spec.js +132 -0
  156. package/build/json/inspect/value.d.ts +11 -0
  157. package/build/json/inspect/value.js +21 -0
  158. package/build/json/inspect/value.spec.d.ts +1 -0
  159. package/build/json/inspect/value.spec.js +121 -0
  160. package/build/json/load.d.ts +3 -0
  161. package/build/json/load.js +13 -0
  162. package/build/json/resolve.d.ts +2 -0
  163. package/build/json/resolve.js +11 -0
  164. package/build/metadata/Metadata.d.ts +3 -0
  165. package/build/metadata/Metadata.js +2 -0
  166. package/build/metadata/index.d.ts +1 -0
  167. package/build/metadata/index.js +2 -0
  168. package/build/package/Contributor.d.ts +21 -0
  169. package/build/package/Contributor.js +2 -0
  170. package/build/package/Package.d.ts +64 -0
  171. package/build/package/Package.js +2 -0
  172. package/build/package/assert.d.ts +8 -0
  173. package/build/package/assert.js +12 -0
  174. package/build/package/assert.spec.d.ts +1 -0
  175. package/build/package/assert.spec.js +26 -0
  176. package/build/package/convert/fromDescriptor.d.ts +4 -0
  177. package/build/package/convert/fromDescriptor.js +36 -0
  178. package/build/package/convert/toDescriptor.d.ts +5 -0
  179. package/build/package/convert/toDescriptor.js +7 -0
  180. package/build/package/index.d.ts +8 -0
  181. package/build/package/index.js +7 -0
  182. package/build/package/load.d.ts +5 -0
  183. package/build/package/load.js +14 -0
  184. package/build/package/load.spec.d.ts +1 -0
  185. package/build/package/load.spec.js +28 -0
  186. package/build/package/save.d.ts +9 -0
  187. package/build/package/save.js +18 -0
  188. package/build/package/save.spec.d.ts +1 -0
  189. package/build/package/save.spec.js +311 -0
  190. package/build/package/validate.d.ts +12 -0
  191. package/build/package/validate.js +27 -0
  192. package/build/package/validate.spec.d.ts +1 -0
  193. package/build/package/validate.spec.js +41 -0
  194. package/build/path/basepath.d.ts +2 -0
  195. package/build/path/basepath.js +25 -0
  196. package/build/path/basepath.spec.d.ts +1 -0
  197. package/build/path/basepath.spec.js +55 -0
  198. package/build/path/denormalize.d.ts +3 -0
  199. package/build/path/denormalize.js +29 -0
  200. package/build/path/denormalize.spec.d.ts +1 -0
  201. package/build/path/denormalize.spec.js +45 -0
  202. package/build/path/index.d.ts +5 -0
  203. package/build/path/index.js +6 -0
  204. package/build/path/normalize.d.ts +6 -0
  205. package/build/path/normalize.js +54 -0
  206. package/build/path/normalize.spec.d.ts +1 -0
  207. package/build/path/normalize.spec.js +71 -0
  208. package/build/path/path.d.ts +5 -0
  209. package/build/path/path.js +48 -0
  210. package/build/path/path.spec.d.ts +1 -0
  211. package/build/path/path.spec.js +111 -0
  212. package/build/platform/index.d.ts +1 -0
  213. package/build/platform/index.js +2 -0
  214. package/build/platform/node.d.ts +130 -0
  215. package/build/platform/node.js +10 -0
  216. package/build/platform/node.spec.d.ts +1 -0
  217. package/build/platform/node.spec.js +16 -0
  218. package/build/profile/@minify.d.ts +1 -0
  219. package/build/profile/@minify.js +58 -0
  220. package/build/profile/Profile.d.ts +9 -0
  221. package/build/profile/Profile.js +2 -0
  222. package/build/profile/assert.d.ts +6 -0
  223. package/build/profile/assert.js +36 -0
  224. package/build/profile/assert.spec.d.ts +1 -0
  225. package/build/profile/assert.spec.js +115 -0
  226. package/build/profile/index.d.ts +2 -0
  227. package/build/profile/index.js +2 -0
  228. package/build/profile/load.d.ts +4 -0
  229. package/build/profile/load.js +12 -0
  230. package/build/profile/registry.d.ts +2 -0
  231. package/build/profile/registry.js +83 -0
  232. package/build/profile/resolve.d.ts +2 -0
  233. package/build/profile/resolve.js +8 -0
  234. package/build/profile/validate.d.ts +9 -0
  235. package/build/profile/validate.js +12 -0
  236. package/build/report/Report.d.ts +5 -0
  237. package/build/report/Report.js +2 -0
  238. package/build/report/create.d.ts +7 -0
  239. package/build/report/create.js +6 -0
  240. package/build/report/index.d.ts +2 -0
  241. package/build/report/index.js +2 -0
  242. package/build/resource/License.d.ts +18 -0
  243. package/build/resource/License.js +2 -0
  244. package/build/resource/Resource.d.ts +93 -0
  245. package/build/resource/Resource.js +2 -0
  246. package/build/resource/Source.d.ts +17 -0
  247. package/build/resource/Source.js +2 -0
  248. package/build/resource/assert.d.ts +8 -0
  249. package/build/resource/assert.js +12 -0
  250. package/build/resource/assert.spec.d.ts +1 -0
  251. package/build/resource/assert.spec.js +23 -0
  252. package/build/resource/convert/fromDescriptor.d.ts +4 -0
  253. package/build/resource/convert/fromDescriptor.js +69 -0
  254. package/build/resource/convert/toDescriptor.d.ts +5 -0
  255. package/build/resource/convert/toDescriptor.js +36 -0
  256. package/build/resource/helpers.d.ts +2 -0
  257. package/build/resource/helpers.js +6 -0
  258. package/build/resource/index.d.ts +11 -0
  259. package/build/resource/index.js +9 -0
  260. package/build/resource/infer.d.ts +3 -0
  261. package/build/resource/infer.js +35 -0
  262. package/build/resource/infer.spec.d.ts +1 -0
  263. package/build/resource/infer.spec.js +103 -0
  264. package/build/resource/load.d.ts +5 -0
  265. package/build/resource/load.js +14 -0
  266. package/build/resource/load.spec.d.ts +1 -0
  267. package/build/resource/load.spec.js +22 -0
  268. package/build/resource/save.d.ts +9 -0
  269. package/build/resource/save.js +18 -0
  270. package/build/resource/save.spec.d.ts +1 -0
  271. package/build/resource/save.spec.js +170 -0
  272. package/build/resource/validate.d.ts +13 -0
  273. package/build/resource/validate.js +57 -0
  274. package/build/resource/validate.spec.d.ts +1 -0
  275. package/build/resource/validate.spec.js +30 -0
  276. package/build/schema/ForeignKey.d.ts +23 -0
  277. package/build/schema/ForeignKey.js +2 -0
  278. package/build/schema/Schema.d.ts +56 -0
  279. package/build/schema/Schema.js +2 -0
  280. package/build/schema/assert.d.ts +6 -0
  281. package/build/schema/assert.js +12 -0
  282. package/build/schema/assert.spec.d.ts +1 -0
  283. package/build/schema/assert.spec.js +34 -0
  284. package/build/schema/convert/fromDescriptor.d.ts +2 -0
  285. package/build/schema/convert/fromDescriptor.js +70 -0
  286. package/build/schema/convert/fromJsonSchema.d.ts +3 -0
  287. package/build/schema/convert/fromJsonSchema.js +105 -0
  288. package/build/schema/convert/fromJsonSchema.spec.d.ts +1 -0
  289. package/build/schema/convert/fromJsonSchema.spec.js +156 -0
  290. package/build/schema/convert/toDescriptor.d.ts +3 -0
  291. package/build/schema/convert/toDescriptor.js +5 -0
  292. package/build/schema/convert/toJsonSchema.d.ts +3 -0
  293. package/build/schema/convert/toJsonSchema.js +173 -0
  294. package/build/schema/convert/toJsonSchema.spec.d.ts +1 -0
  295. package/build/schema/convert/toJsonSchema.spec.js +403 -0
  296. package/build/schema/index.d.ts +11 -0
  297. package/build/schema/index.js +10 -0
  298. package/build/schema/load.d.ts +5 -0
  299. package/build/schema/load.js +12 -0
  300. package/build/schema/load.spec.d.ts +1 -0
  301. package/build/schema/load.spec.js +55 -0
  302. package/build/schema/resolve.d.ts +2 -0
  303. package/build/schema/resolve.js +11 -0
  304. package/build/schema/save.d.ts +9 -0
  305. package/build/schema/save.js +16 -0
  306. package/build/schema/save.spec.d.ts +1 -0
  307. package/build/schema/save.spec.js +58 -0
  308. package/build/schema/validate.d.ts +10 -0
  309. package/build/schema/validate.js +25 -0
  310. package/build/schema/validate.spec.d.ts +1 -0
  311. package/build/schema/validate.spec.js +41 -0
  312. package/package.json +37 -0
@@ -0,0 +1,2168 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Data Package",
4
+ "type": "object",
5
+ "required": ["resources"],
6
+ "properties": {
7
+ "$schema": {
8
+ "default": "https://datapackage.org/profiles/1.0/datapackage.json",
9
+ "propertyOrder": 10,
10
+ "title": "Profile",
11
+ "type": "string"
12
+ },
13
+ "name": {
14
+ "propertyOrder": 20,
15
+ "title": "Name",
16
+ "type": "string"
17
+ },
18
+ "id": {
19
+ "propertyOrder": 30,
20
+ "title": "ID",
21
+ "type": "string"
22
+ },
23
+ "title": {
24
+ "propertyOrder": 40,
25
+ "title": "Title",
26
+ "type": "string"
27
+ },
28
+ "description": {
29
+ "propertyOrder": 50,
30
+ "format": "textarea",
31
+ "title": "Description",
32
+ "type": "string"
33
+ },
34
+ "homepage": {
35
+ "propertyOrder": 60,
36
+ "title": "Home Page",
37
+ "type": "string",
38
+ "format": "uri"
39
+ },
40
+ "version": {
41
+ "propertyOrder": 65,
42
+ "title": "Version",
43
+ "type": "string"
44
+ },
45
+ "created": {
46
+ "propertyOrder": 70,
47
+ "title": "Created",
48
+ "type": "string",
49
+ "format": "date-time"
50
+ },
51
+ "contributors": {
52
+ "propertyOrder": 80,
53
+ "title": "Contributors",
54
+ "type": "array",
55
+ "minItems": 1,
56
+ "items": {
57
+ "title": "Contributor",
58
+ "properties": {
59
+ "title": {
60
+ "title": "Title",
61
+ "type": "string"
62
+ },
63
+ "path": {
64
+ "title": "Path",
65
+ "type": "string",
66
+ "pattern": "^((?=[^./~])(?!file:)((?!\\/\\.\\.\\/)(?!\\\\)(?!:\\/\\/).)*|(http|ftp)s?:\\/\\/.*)$"
67
+ },
68
+ "email": {
69
+ "title": "Email",
70
+ "type": "string",
71
+ "format": "email"
72
+ },
73
+ "givenName": {
74
+ "type": "string"
75
+ },
76
+ "familyName": {
77
+ "type": "string"
78
+ },
79
+ "organization": {
80
+ "title": "Organization",
81
+ "type": "string"
82
+ },
83
+ "roles": {
84
+ "type": "array",
85
+ "minItems": 1,
86
+ "items": {
87
+ "type": "string"
88
+ }
89
+ }
90
+ },
91
+ "minProperties": 1
92
+ }
93
+ },
94
+ "keywords": {
95
+ "propertyOrder": 90,
96
+ "title": "Keywords",
97
+ "type": "array",
98
+ "minItems": 1,
99
+ "items": {
100
+ "type": "string"
101
+ }
102
+ },
103
+ "image": {
104
+ "propertyOrder": 100,
105
+ "title": "Image",
106
+ "type": "string"
107
+ },
108
+ "licenses": {
109
+ "propertyOrder": 110,
110
+ "title": "Licenses",
111
+ "type": "array",
112
+ "minItems": 1,
113
+ "items": {
114
+ "title": "License",
115
+ "type": "object",
116
+ "anyOf": [
117
+ {
118
+ "required": ["name"]
119
+ },
120
+ {
121
+ "required": ["path"]
122
+ }
123
+ ],
124
+ "properties": {
125
+ "name": {
126
+ "title": "Open Definition license identifier",
127
+ "type": "string",
128
+ "pattern": "^([-a-zA-Z0-9._])+$"
129
+ },
130
+ "path": {
131
+ "title": "Path",
132
+ "type": "string",
133
+ "pattern": "^((?=[^./~])(?!file:)((?!\\/\\.\\.\\/)(?!\\\\)(?!:\\/\\/).)*|(http|ftp)s?:\\/\\/.*)$"
134
+ },
135
+ "title": {
136
+ "title": "Title",
137
+ "type": "string"
138
+ }
139
+ }
140
+ }
141
+ },
142
+ "resources": {
143
+ "propertyOrder": 120,
144
+ "title": "Data Resources",
145
+ "type": "array",
146
+ "minItems": 1,
147
+ "items": {
148
+ "title": "Data Resource",
149
+ "type": "object",
150
+ "oneOf": [
151
+ {
152
+ "required": ["name", "data"]
153
+ },
154
+ {
155
+ "required": ["name", "path"]
156
+ }
157
+ ],
158
+ "properties": {
159
+ "$schema": {
160
+ "default": "https://datapackage.org/profiles/1.0/dataresource.json",
161
+ "propertyOrder": 10,
162
+ "title": "Profile",
163
+ "type": "string"
164
+ },
165
+ "name": {
166
+ "propertyOrder": 20,
167
+ "title": "Name",
168
+ "type": "string"
169
+ },
170
+ "path": {
171
+ "propertyOrder": 30,
172
+ "title": "Path",
173
+ "oneOf": [
174
+ {
175
+ "title": "Path",
176
+ "type": "string"
177
+ },
178
+ {
179
+ "type": "array",
180
+ "minItems": 1,
181
+ "items": {
182
+ "title": "Path",
183
+ "type": "string"
184
+ }
185
+ }
186
+ ]
187
+ },
188
+ "data": {
189
+ "propertyOrder": 230,
190
+ "title": "Data"
191
+ },
192
+ "type": {
193
+ "propertyOrder": 235,
194
+ "type": "string",
195
+ "enum": ["table"]
196
+ },
197
+ "title": {
198
+ "title": "Title",
199
+ "type": "string",
200
+ "propertyOrder": 50
201
+ },
202
+ "description": {
203
+ "propertyOrder": 60,
204
+ "format": "textarea",
205
+ "title": "Description",
206
+ "type": "string"
207
+ },
208
+ "homepage": {
209
+ "propertyOrder": 70,
210
+ "title": "Home Page",
211
+ "type": "string",
212
+ "format": "uri"
213
+ },
214
+ "sources": {
215
+ "propertyOrder": 140,
216
+ "options": {
217
+ "hidden": true
218
+ },
219
+ "title": "Sources",
220
+ "type": "array",
221
+ "minItems": 0,
222
+ "items": {
223
+ "title": "Source",
224
+ "type": "object",
225
+ "minProperties": 1,
226
+ "properties": {
227
+ "title": {
228
+ "title": "Title",
229
+ "type": "string"
230
+ },
231
+ "path": {
232
+ "title": "Path",
233
+ "type": "string",
234
+ "pattern": "^((?=[^./~])(?!file:)((?!\\/\\.\\.\\/)(?!\\\\)(?!:\\/\\/).)*|(http|ftp)s?:\\/\\/.*)$"
235
+ },
236
+ "email": {
237
+ "title": "Email",
238
+ "type": "string",
239
+ "format": "email"
240
+ },
241
+ "version": {
242
+ "type": "string"
243
+ }
244
+ }
245
+ }
246
+ },
247
+ "licenses": {
248
+ "propertyOrder": 150,
249
+ "options": {
250
+ "hidden": true
251
+ },
252
+ "title": "Licenses",
253
+ "type": "array",
254
+ "minItems": 1,
255
+ "items": {
256
+ "title": "License",
257
+ "type": "object",
258
+ "anyOf": [
259
+ {
260
+ "required": ["name"]
261
+ },
262
+ {
263
+ "required": ["path"]
264
+ }
265
+ ],
266
+ "properties": {
267
+ "name": {
268
+ "title": "Open Definition license identifier",
269
+ "type": "string",
270
+ "pattern": "^([-a-zA-Z0-9._])+$"
271
+ },
272
+ "path": {
273
+ "title": "Path",
274
+ "type": "string",
275
+ "pattern": "^((?=[^./~])(?!file:)((?!\\/\\.\\.\\/)(?!\\\\)(?!:\\/\\/).)*|(http|ftp)s?:\\/\\/.*)$"
276
+ },
277
+ "title": {
278
+ "title": "Title",
279
+ "type": "string"
280
+ }
281
+ }
282
+ }
283
+ },
284
+ "format": {
285
+ "propertyOrder": 80,
286
+ "title": "Format",
287
+ "type": "string"
288
+ },
289
+ "mediatype": {
290
+ "propertyOrder": 90,
291
+ "title": "Media Type",
292
+ "type": "string",
293
+ "pattern": "^(.+)/(.+)$"
294
+ },
295
+ "encoding": {
296
+ "propertyOrder": 100,
297
+ "title": "Encoding",
298
+ "type": "string",
299
+ "default": "utf-8"
300
+ },
301
+ "bytes": {
302
+ "propertyOrder": 110,
303
+ "options": {
304
+ "hidden": true
305
+ },
306
+ "title": "Bytes",
307
+ "type": "integer"
308
+ },
309
+ "hash": {
310
+ "propertyOrder": 120,
311
+ "options": {
312
+ "hidden": true
313
+ },
314
+ "title": "Hash",
315
+ "type": "string",
316
+ "pattern": "^([^:]+:[a-fA-F0-9]+|[a-fA-F0-9]{32}|)$"
317
+ },
318
+ "dialect": {
319
+ "propertyOrder": 130,
320
+ "title": "Table Dialect",
321
+ "type": ["string", "object"],
322
+ "properties": {
323
+ "$schema": {
324
+ "default": "https://datapackage.org/profiles/1.0/tabledialect.json",
325
+ "propertyOrder": 10,
326
+ "title": "Profile",
327
+ "type": "string"
328
+ },
329
+ "header": {
330
+ "title": "Header",
331
+ "type": "boolean",
332
+ "default": true
333
+ },
334
+ "headerRows": {
335
+ "type": "array",
336
+ "default": [1],
337
+ "items": {
338
+ "type": "integer",
339
+ "minimum": 1
340
+ }
341
+ },
342
+ "headerJoin": {
343
+ "type": "string",
344
+ "default": " "
345
+ },
346
+ "commentRows": {
347
+ "type": "array",
348
+ "default": [1],
349
+ "items": {
350
+ "type": "integer",
351
+ "minimum": 1
352
+ }
353
+ },
354
+ "commentChar": {
355
+ "title": "Comment Character",
356
+ "type": "string"
357
+ },
358
+ "delimiter": {
359
+ "title": "Delimiter",
360
+ "type": "string",
361
+ "default": ","
362
+ },
363
+ "lineTerminator": {
364
+ "title": "Line Terminator",
365
+ "type": "string",
366
+ "default": "\r\n"
367
+ },
368
+ "quoteChar": {
369
+ "title": "Quote Character",
370
+ "type": "string",
371
+ "default": "\""
372
+ },
373
+ "doubleQuote": {
374
+ "title": "Double Quote",
375
+ "type": "boolean",
376
+ "default": true
377
+ },
378
+ "escapeChar": {
379
+ "title": "Escape Character",
380
+ "type": "string"
381
+ },
382
+ "nullSequence": {
383
+ "title": "Null Sequence",
384
+ "type": "string"
385
+ },
386
+ "skipInitialSpace": {
387
+ "title": "Skip Initial Space",
388
+ "type": "boolean",
389
+ "default": false
390
+ },
391
+ "property": {
392
+ "type": "string"
393
+ },
394
+ "itemType": {
395
+ "type": "string",
396
+ "enum": ["array", "object"]
397
+ },
398
+ "itemKeys": {
399
+ "type": "array",
400
+ "items": {
401
+ "type": "string"
402
+ }
403
+ },
404
+ "sheetNumber": {
405
+ "type": "integer",
406
+ "minimum": 1
407
+ },
408
+ "sheetName": {
409
+ "type": "string"
410
+ },
411
+ "table": {
412
+ "type": "string"
413
+ }
414
+ }
415
+ },
416
+ "schema": {
417
+ "propertyOrder": 140,
418
+ "title": "Table Schema",
419
+ "type": ["string", "object"],
420
+ "required": ["fields"],
421
+ "properties": {
422
+ "$schema": {
423
+ "default": "https://datapackage.org/profiles/1.0/tableschema.json",
424
+ "propertyOrder": 10,
425
+ "title": "Profile",
426
+ "type": "string"
427
+ },
428
+ "fields": {
429
+ "type": "array",
430
+ "minItems": 1,
431
+ "items": {
432
+ "title": "Table Schema Field",
433
+ "type": "object",
434
+ "oneOf": [
435
+ {
436
+ "type": "object",
437
+ "title": "String Field",
438
+ "required": ["name"],
439
+ "properties": {
440
+ "name": {
441
+ "title": "Name",
442
+ "type": "string"
443
+ },
444
+ "title": {
445
+ "title": "Title",
446
+ "type": "string"
447
+ },
448
+ "description": {
449
+ "title": "Description",
450
+ "type": "string"
451
+ },
452
+ "example": {
453
+ "title": "Example",
454
+ "type": "string"
455
+ },
456
+ "missingValues": {
457
+ "anyOf": [
458
+ {
459
+ "type": "array",
460
+ "items": {
461
+ "type": "string"
462
+ }
463
+ },
464
+ {
465
+ "type": "array",
466
+ "items": {
467
+ "type": "object",
468
+ "required": ["value"],
469
+ "properties": {
470
+ "value": {
471
+ "type": "string"
472
+ },
473
+ "label": {
474
+ "type": "string"
475
+ }
476
+ }
477
+ }
478
+ }
479
+ ],
480
+ "default": [""]
481
+ },
482
+ "categories": {
483
+ "anyOf": [
484
+ {
485
+ "type": "array",
486
+ "items": {
487
+ "type": "string"
488
+ }
489
+ },
490
+ {
491
+ "type": "array",
492
+ "items": {
493
+ "type": "object",
494
+ "required": ["value"],
495
+ "properties": {
496
+ "value": {
497
+ "type": "string"
498
+ },
499
+ "label": {
500
+ "type": "string"
501
+ }
502
+ }
503
+ }
504
+ }
505
+ ]
506
+ },
507
+ "categoriesOrdered": {
508
+ "type": "boolean"
509
+ },
510
+ "type": {
511
+ "enum": ["string"]
512
+ },
513
+ "format": {
514
+ "enum": ["default", "email", "uri", "binary", "uuid"],
515
+ "default": "default"
516
+ },
517
+ "constraints": {
518
+ "title": "Constraints",
519
+ "type": "object",
520
+ "properties": {
521
+ "required": {
522
+ "type": "boolean"
523
+ },
524
+ "unique": {
525
+ "type": "boolean"
526
+ },
527
+ "pattern": {
528
+ "type": "string"
529
+ },
530
+ "enum": {
531
+ "type": "array",
532
+ "minItems": 1,
533
+ "uniqueItems": true,
534
+ "items": {
535
+ "type": "string"
536
+ }
537
+ },
538
+ "minLength": {
539
+ "type": "integer"
540
+ },
541
+ "maxLength": {
542
+ "type": "integer"
543
+ }
544
+ }
545
+ },
546
+ "rdfType": {
547
+ "type": "string"
548
+ }
549
+ }
550
+ },
551
+ {
552
+ "type": "object",
553
+ "title": "Number Field",
554
+ "required": ["name", "type"],
555
+ "properties": {
556
+ "name": {
557
+ "title": "Name",
558
+ "type": "string"
559
+ },
560
+ "title": {
561
+ "title": "Title",
562
+ "type": "string"
563
+ },
564
+ "description": {
565
+ "title": "Description",
566
+ "type": "string"
567
+ },
568
+ "example": {
569
+ "title": "Example",
570
+ "type": "string"
571
+ },
572
+ "missingValues": {
573
+ "anyOf": [
574
+ {
575
+ "type": "array",
576
+ "items": {
577
+ "type": "string"
578
+ }
579
+ },
580
+ {
581
+ "type": "array",
582
+ "items": {
583
+ "type": "object",
584
+ "required": ["value"],
585
+ "properties": {
586
+ "value": {
587
+ "type": "string"
588
+ },
589
+ "label": {
590
+ "type": "string"
591
+ }
592
+ }
593
+ }
594
+ }
595
+ ],
596
+ "default": [""]
597
+ },
598
+ "type": {
599
+ "enum": ["number"]
600
+ },
601
+ "format": {
602
+ "enum": ["default"],
603
+ "default": "default"
604
+ },
605
+ "bareNumber": {
606
+ "type": "boolean",
607
+ "title": "bareNumber",
608
+ "default": true
609
+ },
610
+ "groupChar": {
611
+ "type": "string",
612
+ "title": "groupChar"
613
+ },
614
+ "decimalChar": {
615
+ "type": "string"
616
+ },
617
+ "constraints": {
618
+ "title": "Constraints",
619
+ "type": "object",
620
+ "properties": {
621
+ "required": {
622
+ "type": "boolean"
623
+ },
624
+ "unique": {
625
+ "type": "boolean"
626
+ },
627
+ "enum": {
628
+ "oneOf": [
629
+ {
630
+ "type": "array",
631
+ "minItems": 1,
632
+ "uniqueItems": true,
633
+ "items": {
634
+ "type": "string"
635
+ }
636
+ },
637
+ {
638
+ "type": "array",
639
+ "minItems": 1,
640
+ "uniqueItems": true,
641
+ "items": {
642
+ "type": "number"
643
+ }
644
+ }
645
+ ]
646
+ },
647
+ "minimum": {
648
+ "oneOf": [
649
+ {
650
+ "type": "string"
651
+ },
652
+ {
653
+ "type": "number"
654
+ }
655
+ ]
656
+ },
657
+ "maximum": {
658
+ "oneOf": [
659
+ {
660
+ "type": "string"
661
+ },
662
+ {
663
+ "type": "number"
664
+ }
665
+ ]
666
+ },
667
+ "exclusiveMinimum": {
668
+ "oneOf": [
669
+ {
670
+ "type": "string"
671
+ },
672
+ {
673
+ "type": "number"
674
+ }
675
+ ]
676
+ },
677
+ "exclusiveMaximum": {
678
+ "oneOf": [
679
+ {
680
+ "type": "string"
681
+ },
682
+ {
683
+ "type": "number"
684
+ }
685
+ ]
686
+ }
687
+ }
688
+ },
689
+ "rdfType": {
690
+ "type": "string"
691
+ }
692
+ }
693
+ },
694
+ {
695
+ "type": "object",
696
+ "title": "Integer Field",
697
+ "required": ["name", "type"],
698
+ "properties": {
699
+ "name": {
700
+ "title": "Name",
701
+ "type": "string"
702
+ },
703
+ "title": {
704
+ "title": "Title",
705
+ "type": "string"
706
+ },
707
+ "description": {
708
+ "title": "Description",
709
+ "type": "string"
710
+ },
711
+ "example": {
712
+ "title": "Example",
713
+ "type": "string"
714
+ },
715
+ "missingValues": {
716
+ "anyOf": [
717
+ {
718
+ "type": "array",
719
+ "items": {
720
+ "type": "string"
721
+ }
722
+ },
723
+ {
724
+ "type": "array",
725
+ "items": {
726
+ "type": "object",
727
+ "required": ["value"],
728
+ "properties": {
729
+ "value": {
730
+ "type": "string"
731
+ },
732
+ "label": {
733
+ "type": "string"
734
+ }
735
+ }
736
+ }
737
+ }
738
+ ],
739
+ "default": [""]
740
+ },
741
+ "categories": {
742
+ "anyOf": [
743
+ {
744
+ "type": "array",
745
+ "items": {
746
+ "type": "integer"
747
+ }
748
+ },
749
+ {
750
+ "type": "array",
751
+ "items": {
752
+ "type": "object",
753
+ "required": ["value"],
754
+ "properties": {
755
+ "value": {
756
+ "type": "integer"
757
+ },
758
+ "label": {
759
+ "type": "string"
760
+ }
761
+ }
762
+ }
763
+ }
764
+ ]
765
+ },
766
+ "categoriesOrdered": {
767
+ "type": "boolean"
768
+ },
769
+ "type": {
770
+ "enum": ["integer"]
771
+ },
772
+ "format": {
773
+ "enum": ["default"],
774
+ "default": "default"
775
+ },
776
+ "bareNumber": {
777
+ "type": "boolean",
778
+ "title": "bareNumber",
779
+ "default": true
780
+ },
781
+ "groupChar": {
782
+ "type": "string",
783
+ "title": "groupChar"
784
+ },
785
+ "constraints": {
786
+ "title": "Constraints",
787
+ "type": "object",
788
+ "properties": {
789
+ "required": {
790
+ "type": "boolean"
791
+ },
792
+ "unique": {
793
+ "type": "boolean"
794
+ },
795
+ "enum": {
796
+ "oneOf": [
797
+ {
798
+ "type": "array",
799
+ "minItems": 1,
800
+ "uniqueItems": true,
801
+ "items": {
802
+ "type": "string"
803
+ }
804
+ },
805
+ {
806
+ "type": "array",
807
+ "minItems": 1,
808
+ "uniqueItems": true,
809
+ "items": {
810
+ "type": "integer"
811
+ }
812
+ }
813
+ ]
814
+ },
815
+ "minimum": {
816
+ "oneOf": [
817
+ {
818
+ "type": "string"
819
+ },
820
+ {
821
+ "type": "integer"
822
+ }
823
+ ]
824
+ },
825
+ "maximum": {
826
+ "oneOf": [
827
+ {
828
+ "type": "string"
829
+ },
830
+ {
831
+ "type": "integer"
832
+ }
833
+ ]
834
+ },
835
+ "exclusiveMinimum": {
836
+ "oneOf": [
837
+ {
838
+ "type": "string"
839
+ },
840
+ {
841
+ "type": "integer"
842
+ }
843
+ ]
844
+ },
845
+ "exclusiveMaximum": {
846
+ "oneOf": [
847
+ {
848
+ "type": "string"
849
+ },
850
+ {
851
+ "type": "integer"
852
+ }
853
+ ]
854
+ }
855
+ }
856
+ },
857
+ "rdfType": {
858
+ "type": "string"
859
+ }
860
+ }
861
+ },
862
+ {
863
+ "type": "object",
864
+ "title": "Date Field",
865
+ "required": ["name", "type"],
866
+ "properties": {
867
+ "name": {
868
+ "title": "Name",
869
+ "type": "string"
870
+ },
871
+ "title": {
872
+ "title": "Title",
873
+ "type": "string"
874
+ },
875
+ "description": {
876
+ "title": "Description",
877
+ "type": "string"
878
+ },
879
+ "example": {
880
+ "title": "Example",
881
+ "type": "string"
882
+ },
883
+ "missingValues": {
884
+ "anyOf": [
885
+ {
886
+ "type": "array",
887
+ "items": {
888
+ "type": "string"
889
+ }
890
+ },
891
+ {
892
+ "type": "array",
893
+ "items": {
894
+ "type": "object",
895
+ "required": ["value"],
896
+ "properties": {
897
+ "value": {
898
+ "type": "string"
899
+ },
900
+ "label": {
901
+ "type": "string"
902
+ }
903
+ }
904
+ }
905
+ }
906
+ ],
907
+ "default": [""]
908
+ },
909
+ "type": {
910
+ "enum": ["date"]
911
+ },
912
+ "format": {
913
+ "default": "default"
914
+ },
915
+ "constraints": {
916
+ "title": "Constraints",
917
+ "type": "object",
918
+ "properties": {
919
+ "required": {
920
+ "type": "boolean"
921
+ },
922
+ "unique": {
923
+ "type": "boolean"
924
+ },
925
+ "enum": {
926
+ "type": "array",
927
+ "minItems": 1,
928
+ "uniqueItems": true,
929
+ "items": {
930
+ "type": "string"
931
+ }
932
+ },
933
+ "minimum": {
934
+ "type": "string"
935
+ },
936
+ "maximum": {
937
+ "type": "string"
938
+ },
939
+ "exclusiveMinimum": {
940
+ "type": "string"
941
+ },
942
+ "exclusiveMaximum": {
943
+ "type": "string"
944
+ }
945
+ }
946
+ },
947
+ "rdfType": {
948
+ "type": "string"
949
+ }
950
+ }
951
+ },
952
+ {
953
+ "type": "object",
954
+ "title": "Time Field",
955
+ "required": ["name", "type"],
956
+ "properties": {
957
+ "name": {
958
+ "title": "Name",
959
+ "type": "string"
960
+ },
961
+ "title": {
962
+ "title": "Title",
963
+ "type": "string"
964
+ },
965
+ "description": {
966
+ "title": "Description",
967
+ "type": "string"
968
+ },
969
+ "example": {
970
+ "title": "Example",
971
+ "type": "string"
972
+ },
973
+ "missingValues": {
974
+ "anyOf": [
975
+ {
976
+ "type": "array",
977
+ "items": {
978
+ "type": "string"
979
+ }
980
+ },
981
+ {
982
+ "type": "array",
983
+ "items": {
984
+ "type": "object",
985
+ "required": ["value"],
986
+ "properties": {
987
+ "value": {
988
+ "type": "string"
989
+ },
990
+ "label": {
991
+ "type": "string"
992
+ }
993
+ }
994
+ }
995
+ }
996
+ ],
997
+ "default": [""]
998
+ },
999
+ "type": {
1000
+ "enum": ["time"]
1001
+ },
1002
+ "format": {
1003
+ "default": "default"
1004
+ },
1005
+ "constraints": {
1006
+ "title": "Constraints",
1007
+ "type": "object",
1008
+ "properties": {
1009
+ "required": {
1010
+ "type": "boolean"
1011
+ },
1012
+ "unique": {
1013
+ "type": "boolean"
1014
+ },
1015
+ "enum": {
1016
+ "type": "array",
1017
+ "minItems": 1,
1018
+ "uniqueItems": true,
1019
+ "items": {
1020
+ "type": "string"
1021
+ }
1022
+ },
1023
+ "minimum": {
1024
+ "type": "string"
1025
+ },
1026
+ "maximum": {
1027
+ "type": "string"
1028
+ },
1029
+ "exclusiveMinimum": {
1030
+ "type": "string"
1031
+ },
1032
+ "exclusiveMaximum": {
1033
+ "type": "string"
1034
+ }
1035
+ }
1036
+ },
1037
+ "rdfType": {
1038
+ "type": "string"
1039
+ }
1040
+ }
1041
+ },
1042
+ {
1043
+ "type": "object",
1044
+ "title": "Date Time Field",
1045
+ "required": ["name", "type"],
1046
+ "properties": {
1047
+ "name": {
1048
+ "title": "Name",
1049
+ "type": "string"
1050
+ },
1051
+ "title": {
1052
+ "title": "Title",
1053
+ "type": "string"
1054
+ },
1055
+ "description": {
1056
+ "title": "Description",
1057
+ "type": "string"
1058
+ },
1059
+ "example": {
1060
+ "title": "Example",
1061
+ "type": "string"
1062
+ },
1063
+ "missingValues": {
1064
+ "anyOf": [
1065
+ {
1066
+ "type": "array",
1067
+ "items": {
1068
+ "type": "string"
1069
+ }
1070
+ },
1071
+ {
1072
+ "type": "array",
1073
+ "items": {
1074
+ "type": "object",
1075
+ "required": ["value"],
1076
+ "properties": {
1077
+ "value": {
1078
+ "type": "string"
1079
+ },
1080
+ "label": {
1081
+ "type": "string"
1082
+ }
1083
+ }
1084
+ }
1085
+ }
1086
+ ],
1087
+ "default": [""]
1088
+ },
1089
+ "type": {
1090
+ "enum": ["datetime"]
1091
+ },
1092
+ "format": {
1093
+ "default": "default"
1094
+ },
1095
+ "constraints": {
1096
+ "title": "Constraints",
1097
+ "type": "object",
1098
+ "properties": {
1099
+ "required": {
1100
+ "type": "boolean"
1101
+ },
1102
+ "unique": {
1103
+ "type": "boolean"
1104
+ },
1105
+ "enum": {
1106
+ "type": "array",
1107
+ "minItems": 1,
1108
+ "uniqueItems": true,
1109
+ "items": {
1110
+ "type": "string"
1111
+ }
1112
+ },
1113
+ "minimum": {
1114
+ "type": "string"
1115
+ },
1116
+ "maximum": {
1117
+ "type": "string"
1118
+ },
1119
+ "exclusiveMinimum": {
1120
+ "type": "string"
1121
+ },
1122
+ "exclusiveMaximum": {
1123
+ "type": "string"
1124
+ }
1125
+ }
1126
+ },
1127
+ "rdfType": {
1128
+ "type": "string"
1129
+ }
1130
+ }
1131
+ },
1132
+ {
1133
+ "type": "object",
1134
+ "title": "Year Field",
1135
+ "required": ["name", "type"],
1136
+ "properties": {
1137
+ "name": {
1138
+ "title": "Name",
1139
+ "type": "string"
1140
+ },
1141
+ "title": {
1142
+ "title": "Title",
1143
+ "type": "string"
1144
+ },
1145
+ "description": {
1146
+ "title": "Description",
1147
+ "type": "string"
1148
+ },
1149
+ "example": {
1150
+ "title": "Example",
1151
+ "type": "string"
1152
+ },
1153
+ "missingValues": {
1154
+ "anyOf": [
1155
+ {
1156
+ "type": "array",
1157
+ "items": {
1158
+ "type": "string"
1159
+ }
1160
+ },
1161
+ {
1162
+ "type": "array",
1163
+ "items": {
1164
+ "type": "object",
1165
+ "required": ["value"],
1166
+ "properties": {
1167
+ "value": {
1168
+ "type": "string"
1169
+ },
1170
+ "label": {
1171
+ "type": "string"
1172
+ }
1173
+ }
1174
+ }
1175
+ }
1176
+ ],
1177
+ "default": [""]
1178
+ },
1179
+ "type": {
1180
+ "enum": ["year"]
1181
+ },
1182
+ "format": {
1183
+ "enum": ["default"],
1184
+ "default": "default"
1185
+ },
1186
+ "constraints": {
1187
+ "title": "Constraints",
1188
+ "type": "object",
1189
+ "properties": {
1190
+ "required": {
1191
+ "type": "boolean"
1192
+ },
1193
+ "unique": {
1194
+ "type": "boolean"
1195
+ },
1196
+ "enum": {
1197
+ "oneOf": [
1198
+ {
1199
+ "type": "array",
1200
+ "minItems": 1,
1201
+ "uniqueItems": true,
1202
+ "items": {
1203
+ "type": "string"
1204
+ }
1205
+ },
1206
+ {
1207
+ "type": "array",
1208
+ "minItems": 1,
1209
+ "uniqueItems": true,
1210
+ "items": {
1211
+ "type": "integer"
1212
+ }
1213
+ }
1214
+ ]
1215
+ },
1216
+ "minimum": {
1217
+ "oneOf": [
1218
+ {
1219
+ "type": "string"
1220
+ },
1221
+ {
1222
+ "type": "integer"
1223
+ }
1224
+ ]
1225
+ },
1226
+ "maximum": {
1227
+ "oneOf": [
1228
+ {
1229
+ "type": "string"
1230
+ },
1231
+ {
1232
+ "type": "integer"
1233
+ }
1234
+ ]
1235
+ },
1236
+ "exclusiveMinimum": {
1237
+ "oneOf": [
1238
+ {
1239
+ "type": "string"
1240
+ },
1241
+ {
1242
+ "type": "integer"
1243
+ }
1244
+ ]
1245
+ },
1246
+ "exclusiveMaximum": {
1247
+ "oneOf": [
1248
+ {
1249
+ "type": "string"
1250
+ },
1251
+ {
1252
+ "type": "integer"
1253
+ }
1254
+ ]
1255
+ }
1256
+ }
1257
+ },
1258
+ "rdfType": {
1259
+ "type": "string"
1260
+ }
1261
+ }
1262
+ },
1263
+ {
1264
+ "type": "object",
1265
+ "title": "Year Month Field",
1266
+ "required": ["name", "type"],
1267
+ "properties": {
1268
+ "name": {
1269
+ "title": "Name",
1270
+ "type": "string"
1271
+ },
1272
+ "title": {
1273
+ "title": "Title",
1274
+ "type": "string"
1275
+ },
1276
+ "description": {
1277
+ "title": "Description",
1278
+ "type": "string"
1279
+ },
1280
+ "example": {
1281
+ "title": "Example",
1282
+ "type": "string"
1283
+ },
1284
+ "missingValues": {
1285
+ "anyOf": [
1286
+ {
1287
+ "type": "array",
1288
+ "items": {
1289
+ "type": "string"
1290
+ }
1291
+ },
1292
+ {
1293
+ "type": "array",
1294
+ "items": {
1295
+ "type": "object",
1296
+ "required": ["value"],
1297
+ "properties": {
1298
+ "value": {
1299
+ "type": "string"
1300
+ },
1301
+ "label": {
1302
+ "type": "string"
1303
+ }
1304
+ }
1305
+ }
1306
+ }
1307
+ ],
1308
+ "default": [""]
1309
+ },
1310
+ "type": {
1311
+ "enum": ["yearmonth"]
1312
+ },
1313
+ "format": {
1314
+ "enum": ["default"],
1315
+ "default": "default"
1316
+ },
1317
+ "constraints": {
1318
+ "title": "Constraints",
1319
+ "type": "object",
1320
+ "properties": {
1321
+ "required": {
1322
+ "type": "boolean"
1323
+ },
1324
+ "unique": {
1325
+ "type": "boolean"
1326
+ },
1327
+ "enum": {
1328
+ "type": "array",
1329
+ "minItems": 1,
1330
+ "uniqueItems": true,
1331
+ "items": {
1332
+ "type": "string"
1333
+ }
1334
+ },
1335
+ "minimum": {
1336
+ "type": "string"
1337
+ },
1338
+ "maximum": {
1339
+ "type": "string"
1340
+ },
1341
+ "exclusiveMinimum": {
1342
+ "type": "string"
1343
+ },
1344
+ "exclusiveMaximum": {
1345
+ "type": "string"
1346
+ }
1347
+ }
1348
+ },
1349
+ "rdfType": {
1350
+ "type": "string"
1351
+ }
1352
+ }
1353
+ },
1354
+ {
1355
+ "type": "object",
1356
+ "title": "Boolean Field",
1357
+ "required": ["name", "type"],
1358
+ "properties": {
1359
+ "name": {
1360
+ "title": "Name",
1361
+ "type": "string"
1362
+ },
1363
+ "title": {
1364
+ "title": "Title",
1365
+ "type": "string"
1366
+ },
1367
+ "description": {
1368
+ "title": "Description",
1369
+ "type": "string"
1370
+ },
1371
+ "example": {
1372
+ "title": "Example",
1373
+ "type": "string"
1374
+ },
1375
+ "missingValues": {
1376
+ "anyOf": [
1377
+ {
1378
+ "type": "array",
1379
+ "items": {
1380
+ "type": "string"
1381
+ }
1382
+ },
1383
+ {
1384
+ "type": "array",
1385
+ "items": {
1386
+ "type": "object",
1387
+ "required": ["value"],
1388
+ "properties": {
1389
+ "value": {
1390
+ "type": "string"
1391
+ },
1392
+ "label": {
1393
+ "type": "string"
1394
+ }
1395
+ }
1396
+ }
1397
+ }
1398
+ ],
1399
+ "default": [""]
1400
+ },
1401
+ "type": {
1402
+ "enum": ["boolean"]
1403
+ },
1404
+ "format": {
1405
+ "enum": ["default"],
1406
+ "default": "default"
1407
+ },
1408
+ "trueValues": {
1409
+ "type": "array",
1410
+ "minItems": 1,
1411
+ "items": {
1412
+ "type": "string"
1413
+ },
1414
+ "default": ["true", "True", "TRUE", "1"]
1415
+ },
1416
+ "falseValues": {
1417
+ "type": "array",
1418
+ "minItems": 1,
1419
+ "items": {
1420
+ "type": "string"
1421
+ },
1422
+ "default": ["false", "False", "FALSE", "0"]
1423
+ },
1424
+ "constraints": {
1425
+ "title": "Constraints",
1426
+ "type": "object",
1427
+ "properties": {
1428
+ "required": {
1429
+ "type": "boolean"
1430
+ },
1431
+ "enum": {
1432
+ "type": "array",
1433
+ "minItems": 1,
1434
+ "uniqueItems": true,
1435
+ "items": {
1436
+ "type": "boolean"
1437
+ }
1438
+ }
1439
+ }
1440
+ },
1441
+ "rdfType": {
1442
+ "type": "string"
1443
+ }
1444
+ }
1445
+ },
1446
+ {
1447
+ "type": "object",
1448
+ "title": "Object Field",
1449
+ "required": ["name", "type"],
1450
+ "properties": {
1451
+ "name": {
1452
+ "title": "Name",
1453
+ "type": "string"
1454
+ },
1455
+ "title": {
1456
+ "title": "Title",
1457
+ "type": "string"
1458
+ },
1459
+ "description": {
1460
+ "title": "Description",
1461
+ "type": "string"
1462
+ },
1463
+ "example": {
1464
+ "title": "Example",
1465
+ "type": "string"
1466
+ },
1467
+ "missingValues": {
1468
+ "anyOf": [
1469
+ {
1470
+ "type": "array",
1471
+ "items": {
1472
+ "type": "string"
1473
+ }
1474
+ },
1475
+ {
1476
+ "type": "array",
1477
+ "items": {
1478
+ "type": "object",
1479
+ "required": ["value"],
1480
+ "properties": {
1481
+ "value": {
1482
+ "type": "string"
1483
+ },
1484
+ "label": {
1485
+ "type": "string"
1486
+ }
1487
+ }
1488
+ }
1489
+ }
1490
+ ],
1491
+ "default": [""]
1492
+ },
1493
+ "type": {
1494
+ "enum": ["object"]
1495
+ },
1496
+ "format": {
1497
+ "enum": ["default"],
1498
+ "default": "default"
1499
+ },
1500
+ "constraints": {
1501
+ "title": "Constraints",
1502
+ "type": "object",
1503
+ "properties": {
1504
+ "required": {
1505
+ "type": "boolean"
1506
+ },
1507
+ "unique": {
1508
+ "type": "boolean"
1509
+ },
1510
+ "enum": {
1511
+ "oneOf": [
1512
+ {
1513
+ "type": "array",
1514
+ "minItems": 1,
1515
+ "uniqueItems": true,
1516
+ "items": {
1517
+ "type": "string"
1518
+ }
1519
+ },
1520
+ {
1521
+ "type": "array",
1522
+ "minItems": 1,
1523
+ "uniqueItems": true,
1524
+ "items": {
1525
+ "type": "object"
1526
+ }
1527
+ }
1528
+ ]
1529
+ },
1530
+ "minLength": {
1531
+ "type": "integer"
1532
+ },
1533
+ "maxLength": {
1534
+ "type": "integer"
1535
+ },
1536
+ "jsonSchema": {
1537
+ "type": "object"
1538
+ }
1539
+ }
1540
+ },
1541
+ "rdfType": {
1542
+ "type": "string"
1543
+ }
1544
+ }
1545
+ },
1546
+ {
1547
+ "type": "object",
1548
+ "title": "GeoPoint Field",
1549
+ "required": ["name", "type"],
1550
+ "properties": {
1551
+ "name": {
1552
+ "title": "Name",
1553
+ "type": "string"
1554
+ },
1555
+ "title": {
1556
+ "title": "Title",
1557
+ "type": "string"
1558
+ },
1559
+ "description": {
1560
+ "title": "Description",
1561
+ "type": "string"
1562
+ },
1563
+ "example": {
1564
+ "title": "Example",
1565
+ "type": "string"
1566
+ },
1567
+ "missingValues": {
1568
+ "anyOf": [
1569
+ {
1570
+ "type": "array",
1571
+ "items": {
1572
+ "type": "string"
1573
+ }
1574
+ },
1575
+ {
1576
+ "type": "array",
1577
+ "items": {
1578
+ "type": "object",
1579
+ "required": ["value"],
1580
+ "properties": {
1581
+ "value": {
1582
+ "type": "string"
1583
+ },
1584
+ "label": {
1585
+ "type": "string"
1586
+ }
1587
+ }
1588
+ }
1589
+ }
1590
+ ],
1591
+ "default": [""]
1592
+ },
1593
+ "type": {
1594
+ "enum": ["geopoint"]
1595
+ },
1596
+ "format": {
1597
+ "notes": [
1598
+ "Implementations `MUST` strip all white space in the default format of `lon, lat`."
1599
+ ],
1600
+ "enum": ["default", "array", "object"],
1601
+ "default": "default"
1602
+ },
1603
+ "constraints": {
1604
+ "title": "Constraints",
1605
+ "type": "object",
1606
+ "properties": {
1607
+ "required": {
1608
+ "type": "boolean"
1609
+ },
1610
+ "unique": {
1611
+ "type": "boolean"
1612
+ },
1613
+ "enum": {
1614
+ "oneOf": [
1615
+ {
1616
+ "type": "array",
1617
+ "minItems": 1,
1618
+ "uniqueItems": true,
1619
+ "items": {
1620
+ "type": "string"
1621
+ }
1622
+ },
1623
+ {
1624
+ "type": "array",
1625
+ "minItems": 1,
1626
+ "uniqueItems": true,
1627
+ "items": {
1628
+ "type": "array"
1629
+ }
1630
+ },
1631
+ {
1632
+ "type": "array",
1633
+ "minItems": 1,
1634
+ "uniqueItems": true,
1635
+ "items": {
1636
+ "type": "object"
1637
+ }
1638
+ }
1639
+ ]
1640
+ }
1641
+ }
1642
+ },
1643
+ "rdfType": {
1644
+ "type": "string"
1645
+ }
1646
+ }
1647
+ },
1648
+ {
1649
+ "type": "object",
1650
+ "title": "GeoJSON Field",
1651
+ "required": ["name", "type"],
1652
+ "properties": {
1653
+ "name": {
1654
+ "title": "Name",
1655
+ "type": "string"
1656
+ },
1657
+ "title": {
1658
+ "title": "Title",
1659
+ "type": "string"
1660
+ },
1661
+ "description": {
1662
+ "title": "Description",
1663
+ "type": "string"
1664
+ },
1665
+ "example": {
1666
+ "title": "Example",
1667
+ "type": "string"
1668
+ },
1669
+ "missingValues": {
1670
+ "anyOf": [
1671
+ {
1672
+ "type": "array",
1673
+ "items": {
1674
+ "type": "string"
1675
+ }
1676
+ },
1677
+ {
1678
+ "type": "array",
1679
+ "items": {
1680
+ "type": "object",
1681
+ "required": ["value"],
1682
+ "properties": {
1683
+ "value": {
1684
+ "type": "string"
1685
+ },
1686
+ "label": {
1687
+ "type": "string"
1688
+ }
1689
+ }
1690
+ }
1691
+ }
1692
+ ],
1693
+ "default": [""]
1694
+ },
1695
+ "type": {
1696
+ "enum": ["geojson"]
1697
+ },
1698
+ "format": {
1699
+ "enum": ["default", "topojson"],
1700
+ "default": "default"
1701
+ },
1702
+ "constraints": {
1703
+ "title": "Constraints",
1704
+ "type": "object",
1705
+ "properties": {
1706
+ "required": {
1707
+ "type": "boolean"
1708
+ },
1709
+ "unique": {
1710
+ "type": "boolean"
1711
+ },
1712
+ "enum": {
1713
+ "oneOf": [
1714
+ {
1715
+ "type": "array",
1716
+ "minItems": 1,
1717
+ "uniqueItems": true,
1718
+ "items": {
1719
+ "type": "string"
1720
+ }
1721
+ },
1722
+ {
1723
+ "type": "array",
1724
+ "minItems": 1,
1725
+ "uniqueItems": true,
1726
+ "items": {
1727
+ "type": "object"
1728
+ }
1729
+ }
1730
+ ]
1731
+ },
1732
+ "minLength": {
1733
+ "type": "integer"
1734
+ },
1735
+ "maxLength": {
1736
+ "type": "integer"
1737
+ }
1738
+ }
1739
+ },
1740
+ "rdfType": {
1741
+ "type": "string"
1742
+ }
1743
+ }
1744
+ },
1745
+ {
1746
+ "type": "object",
1747
+ "title": "Array Field",
1748
+ "required": ["name", "type"],
1749
+ "properties": {
1750
+ "name": {
1751
+ "title": "Name",
1752
+ "type": "string"
1753
+ },
1754
+ "title": {
1755
+ "title": "Title",
1756
+ "type": "string"
1757
+ },
1758
+ "description": {
1759
+ "title": "Description",
1760
+ "type": "string"
1761
+ },
1762
+ "example": {
1763
+ "title": "Example",
1764
+ "type": "string"
1765
+ },
1766
+ "missingValues": {
1767
+ "anyOf": [
1768
+ {
1769
+ "type": "array",
1770
+ "items": {
1771
+ "type": "string"
1772
+ }
1773
+ },
1774
+ {
1775
+ "type": "array",
1776
+ "items": {
1777
+ "type": "object",
1778
+ "required": ["value"],
1779
+ "properties": {
1780
+ "value": {
1781
+ "type": "string"
1782
+ },
1783
+ "label": {
1784
+ "type": "string"
1785
+ }
1786
+ }
1787
+ }
1788
+ }
1789
+ ],
1790
+ "default": [""]
1791
+ },
1792
+ "type": {
1793
+ "enum": ["array"]
1794
+ },
1795
+ "format": {
1796
+ "enum": ["default"],
1797
+ "default": "default"
1798
+ },
1799
+ "constraints": {
1800
+ "title": "Constraints",
1801
+ "type": "object",
1802
+ "properties": {
1803
+ "required": {
1804
+ "type": "boolean"
1805
+ },
1806
+ "unique": {
1807
+ "type": "boolean"
1808
+ },
1809
+ "enum": {
1810
+ "oneOf": [
1811
+ {
1812
+ "type": "array",
1813
+ "minItems": 1,
1814
+ "uniqueItems": true,
1815
+ "items": {
1816
+ "type": "string"
1817
+ }
1818
+ },
1819
+ {
1820
+ "type": "array",
1821
+ "minItems": 1,
1822
+ "uniqueItems": true,
1823
+ "items": {
1824
+ "type": "array"
1825
+ }
1826
+ }
1827
+ ]
1828
+ },
1829
+ "minLength": {
1830
+ "type": "integer"
1831
+ },
1832
+ "maxLength": {
1833
+ "type": "integer"
1834
+ },
1835
+ "jsonSchema": {
1836
+ "type": "object"
1837
+ }
1838
+ }
1839
+ },
1840
+ "rdfType": {
1841
+ "type": "string"
1842
+ }
1843
+ }
1844
+ },
1845
+ {
1846
+ "type": "object",
1847
+ "title": "Duration Field",
1848
+ "required": ["name", "type"],
1849
+ "properties": {
1850
+ "name": {
1851
+ "title": "Name",
1852
+ "type": "string"
1853
+ },
1854
+ "title": {
1855
+ "title": "Title",
1856
+ "type": "string"
1857
+ },
1858
+ "description": {
1859
+ "title": "Description",
1860
+ "type": "string"
1861
+ },
1862
+ "example": {
1863
+ "title": "Example",
1864
+ "type": "string"
1865
+ },
1866
+ "missingValues": {
1867
+ "anyOf": [
1868
+ {
1869
+ "type": "array",
1870
+ "items": {
1871
+ "type": "string"
1872
+ }
1873
+ },
1874
+ {
1875
+ "type": "array",
1876
+ "items": {
1877
+ "type": "object",
1878
+ "required": ["value"],
1879
+ "properties": {
1880
+ "value": {
1881
+ "type": "string"
1882
+ },
1883
+ "label": {
1884
+ "type": "string"
1885
+ }
1886
+ }
1887
+ }
1888
+ }
1889
+ ],
1890
+ "default": [""]
1891
+ },
1892
+ "type": {
1893
+ "enum": ["duration"]
1894
+ },
1895
+ "format": {
1896
+ "enum": ["default"],
1897
+ "default": "default"
1898
+ },
1899
+ "constraints": {
1900
+ "title": "Constraints",
1901
+ "type": "object",
1902
+ "properties": {
1903
+ "required": {
1904
+ "type": "boolean"
1905
+ },
1906
+ "unique": {
1907
+ "type": "boolean"
1908
+ },
1909
+ "enum": {
1910
+ "type": "array",
1911
+ "minItems": 1,
1912
+ "uniqueItems": true,
1913
+ "items": {
1914
+ "type": "string"
1915
+ }
1916
+ },
1917
+ "minimum": {
1918
+ "type": "string"
1919
+ },
1920
+ "maximum": {
1921
+ "type": "string"
1922
+ },
1923
+ "exclusiveMinimum": {
1924
+ "type": "string"
1925
+ },
1926
+ "exclusiveMaximum": {
1927
+ "type": "string"
1928
+ }
1929
+ }
1930
+ },
1931
+ "rdfType": {
1932
+ "type": "string"
1933
+ }
1934
+ }
1935
+ },
1936
+ {
1937
+ "type": "object",
1938
+ "title": "Any Field",
1939
+ "required": ["name", "type"],
1940
+ "properties": {
1941
+ "name": {
1942
+ "title": "Name",
1943
+ "type": "string"
1944
+ },
1945
+ "title": {
1946
+ "title": "Title",
1947
+ "type": "string"
1948
+ },
1949
+ "description": {
1950
+ "title": "Description",
1951
+ "type": "string"
1952
+ },
1953
+ "example": {
1954
+ "title": "Example",
1955
+ "type": "string"
1956
+ },
1957
+ "missingValues": {
1958
+ "anyOf": [
1959
+ {
1960
+ "type": "array",
1961
+ "items": {
1962
+ "type": "string"
1963
+ }
1964
+ },
1965
+ {
1966
+ "type": "array",
1967
+ "items": {
1968
+ "type": "object",
1969
+ "required": ["value"],
1970
+ "properties": {
1971
+ "value": {
1972
+ "type": "string"
1973
+ },
1974
+ "label": {
1975
+ "type": "string"
1976
+ }
1977
+ }
1978
+ }
1979
+ }
1980
+ ],
1981
+ "default": [""]
1982
+ },
1983
+ "type": {
1984
+ "enum": ["any"]
1985
+ },
1986
+ "constraints": {
1987
+ "title": "Constraints",
1988
+ "type": "object",
1989
+ "properties": {
1990
+ "required": {
1991
+ "type": "boolean"
1992
+ },
1993
+ "unique": {
1994
+ "type": "boolean"
1995
+ },
1996
+ "enum": {
1997
+ "type": "array",
1998
+ "minItems": 1,
1999
+ "uniqueItems": true
2000
+ }
2001
+ }
2002
+ },
2003
+ "rdfType": {
2004
+ "type": "string"
2005
+ }
2006
+ }
2007
+ }
2008
+ ]
2009
+ }
2010
+ },
2011
+ "fieldsMatch": {
2012
+ "type": "string",
2013
+ "enum": ["exact", "equal", "subset", "superset", "partial"],
2014
+ "default": "exact"
2015
+ },
2016
+ "primaryKey": {
2017
+ "oneOf": [
2018
+ {
2019
+ "type": "array",
2020
+ "minItems": 1,
2021
+ "uniqueItems": true,
2022
+ "items": {
2023
+ "type": "string"
2024
+ }
2025
+ },
2026
+ {
2027
+ "type": "string"
2028
+ }
2029
+ ]
2030
+ },
2031
+ "uniqueKeys": {
2032
+ "type": "array",
2033
+ "minItems": 1,
2034
+ "uniqueItems": true,
2035
+ "items": {
2036
+ "type": "array",
2037
+ "minItems": 1,
2038
+ "uniqueItems": true,
2039
+ "items": {
2040
+ "type": "string"
2041
+ }
2042
+ }
2043
+ },
2044
+ "foreignKeys": {
2045
+ "type": "array",
2046
+ "minItems": 1,
2047
+ "items": {
2048
+ "title": "Table Schema Foreign Key",
2049
+ "type": "object",
2050
+ "required": ["fields", "reference"],
2051
+ "oneOf": [
2052
+ {
2053
+ "properties": {
2054
+ "fields": {
2055
+ "type": "array",
2056
+ "items": {
2057
+ "type": "string",
2058
+ "minItems": 1,
2059
+ "uniqueItems": true
2060
+ }
2061
+ },
2062
+ "reference": {
2063
+ "type": "object",
2064
+ "required": ["fields"],
2065
+ "properties": {
2066
+ "resource": {
2067
+ "type": "string"
2068
+ },
2069
+ "fields": {
2070
+ "type": "array",
2071
+ "items": {
2072
+ "type": "string"
2073
+ },
2074
+ "minItems": 1,
2075
+ "uniqueItems": true
2076
+ }
2077
+ }
2078
+ }
2079
+ }
2080
+ },
2081
+ {
2082
+ "properties": {
2083
+ "fields": {
2084
+ "type": "string"
2085
+ },
2086
+ "reference": {
2087
+ "type": "object",
2088
+ "required": ["fields"],
2089
+ "properties": {
2090
+ "resource": {
2091
+ "type": "string"
2092
+ },
2093
+ "fields": {
2094
+ "type": "string"
2095
+ }
2096
+ }
2097
+ }
2098
+ }
2099
+ }
2100
+ ]
2101
+ }
2102
+ },
2103
+ "missingValues": {
2104
+ "anyOf": [
2105
+ {
2106
+ "type": "array",
2107
+ "items": {
2108
+ "type": "string"
2109
+ }
2110
+ },
2111
+ {
2112
+ "type": "array",
2113
+ "items": {
2114
+ "type": "object",
2115
+ "required": ["value"],
2116
+ "properties": {
2117
+ "value": {
2118
+ "type": "string"
2119
+ },
2120
+ "label": {
2121
+ "type": "string"
2122
+ }
2123
+ }
2124
+ }
2125
+ }
2126
+ ],
2127
+ "default": [""]
2128
+ }
2129
+ }
2130
+ }
2131
+ }
2132
+ }
2133
+ },
2134
+ "sources": {
2135
+ "propertyOrder": 200,
2136
+ "options": {
2137
+ "hidden": true
2138
+ },
2139
+ "title": "Sources",
2140
+ "type": "array",
2141
+ "minItems": 0,
2142
+ "items": {
2143
+ "title": "Source",
2144
+ "type": "object",
2145
+ "minProperties": 1,
2146
+ "properties": {
2147
+ "title": {
2148
+ "title": "Title",
2149
+ "type": "string"
2150
+ },
2151
+ "path": {
2152
+ "title": "Path",
2153
+ "type": "string",
2154
+ "pattern": "^((?=[^./~])(?!file:)((?!\\/\\.\\.\\/)(?!\\\\)(?!:\\/\\/).)*|(http|ftp)s?:\\/\\/.*)$"
2155
+ },
2156
+ "email": {
2157
+ "title": "Email",
2158
+ "type": "string",
2159
+ "format": "email"
2160
+ },
2161
+ "version": {
2162
+ "type": "string"
2163
+ }
2164
+ }
2165
+ }
2166
+ }
2167
+ }
2168
+ }