|
14 | 14 | "accessLevelComment": {
|
15 | 15 | "title":"Access Level Comment",
|
16 | 16 | "description":"An explanation for the selected \"accessLevel\" including instructions for how to access a restricted file, if applicable, or explanation for why a \"non-public\" or \"restricted public\" data assetis not \"public,\" if applicable. Text, 255 characters.",
|
17 |
| - "type": "string", |
18 |
| - "maxLength":255 |
| 17 | + "anyOf": [ |
| 18 | + { |
| 19 | + "type": "string", |
| 20 | + "minLength": 1, |
| 21 | + "maxLength":255 |
| 22 | + }, |
| 23 | + { |
| 24 | + "type": "null" |
| 25 | + } |
| 26 | + ] |
19 | 27 | },
|
20 | 28 | "accrualPeriodicity": {
|
21 | 29 | "title":"Frequency",
|
22 | 30 | "description":"Frequency with which dataset is published.",
|
23 |
| - "enum": ["Annual", "Bimonthly", "Semiweekly", "Daily", "Biweekly", "Semiannual", "Biennial", "Triennial", |
24 |
| - "Three times a week", "Three times a month", "Continuously updated", "Monthly", "Quarterly", "Semimonthly", |
25 |
| - "Three times a year", "Weekly", "Completely irregular"] |
| 31 | + "anyOf": [ |
| 32 | + { |
| 33 | + "enum": ["Annual", "Bimonthly", "Semiweekly", "Daily", "Biweekly", "Semiannual", "Biennial", "Triennial", |
| 34 | + "Three times a week", "Three times a month", "Continuously updated", "Monthly", "Quarterly", "Semimonthly", |
| 35 | + "Three times a year", "Weekly", "Completely irregular"] |
| 36 | + }, |
| 37 | + { |
| 38 | + "type": "null" |
| 39 | + } |
| 40 | + ] |
26 | 41 | },
|
27 | 42 | "bureauCode": {
|
28 | 43 | "title":"Bureau Code",
|
29 | 44 | "description":"Federal agencies, combined agency and bureau code from <a href=\"http://www.whitehouse.gov/sites/default/files/omb/assets/a11_current_year/app_c.pdf\">OMB Circular A-11, Appendix C</a> in the format of <code>015:010</code>.",
|
30 |
| - "type": "array", |
31 |
| - "items": { |
32 |
| - "type": "string", |
33 |
| - "pattern": "[0-9]{3}:[0-9]{2}" |
34 |
| - }, |
| 45 | + "anyOf": [ |
| 46 | + { |
| 47 | + "type": "array", |
| 48 | + "items": { |
| 49 | + "type": "string", |
| 50 | + "pattern": "[0-9]{3}:[0-9]{2}" |
| 51 | + } |
| 52 | + }, |
| 53 | + { |
| 54 | + "type": "null" |
| 55 | + } |
| 56 | + ], |
35 | 57 | "minItems": 1,
|
36 | 58 | "uniqueItems": true
|
37 | 59 | },
|
|
43 | 65 | "dataDictionary": {
|
44 | 66 | "title":"Data Dictionary",
|
45 | 67 | "description":"URL to the data dictionary for the dataset or API. Note that documentation other than a data dictionary can be referenced using Related Documents as shown in the expanded fields.",
|
46 |
| - "type": "string", |
47 |
| - "format": "uri" |
| 68 | + "anyOf": [ |
| 69 | + { |
| 70 | + "type": "string", |
| 71 | + "format": "uri" |
| 72 | + }, |
| 73 | + { |
| 74 | + "type": "null" |
| 75 | + } |
| 76 | + ] |
48 | 77 | },
|
49 | 78 | "dataQuality": {
|
50 | 79 | "title":"Data Quality",
|
51 | 80 | "description":"Whether the dataset meets the agency’s Information Quality Guidelines (true/false).",
|
52 |
| - "type": "boolean" |
| 81 | + "anyOf": [ |
| 82 | + { |
| 83 | + "type": "boolean" |
| 84 | + }, |
| 85 | + { |
| 86 | + "type": "null" |
| 87 | + } |
| 88 | + ] |
53 | 89 | },
|
54 | 90 | "description": {
|
55 | 91 | "title" : "Description",
|
|
59 | 95 | "distribution": {
|
60 | 96 | "title":"Distribution",
|
61 | 97 | "description":"Holds multiple download URLs for datasets composed of multiple files and/or file types",
|
62 |
| - "type": "array", |
63 |
| - "items": { |
64 |
| - "type": "object", |
65 |
| - "properties": { |
66 |
| - "accessURL": { |
67 |
| - "title":"Download URL", |
68 |
| - "description":"URL providing direct access to the downloadable distribution of a dataset.", |
69 |
| - "type": "string", |
70 |
| - "format": "uri" |
| 98 | + "anyOf": [ |
| 99 | + { |
| 100 | + "type": "array", |
| 101 | + "items": { |
| 102 | + "type": "object", |
| 103 | + "properties": { |
| 104 | + "accessURL": { |
| 105 | + "title":"Download URL", |
| 106 | + "description":"URL providing direct access to the downloadable distribution of a dataset.", |
| 107 | + "type": "string", |
| 108 | + "format": "uri" |
| 109 | + }, |
| 110 | + "format": { |
| 111 | + "title":"Format", |
| 112 | + "description":"The file format or API type of the distribution.", |
| 113 | + "pattern": "^[-\\w]+/[-\\w]+(\\.[-\\w]+)*([+][-\\w]+)?$", |
| 114 | + "type": "string" |
| 115 | + } |
| 116 | + } |
71 | 117 | },
|
72 |
| - "format": { |
73 |
| - "title":"Format", |
74 |
| - "description":"The file format or API type of the distribution.", |
75 |
| - "pattern": "^[-\\w]+/[-\\w]+(\\.[-\\w]+)*([+][-\\w]+)?$", |
76 |
| - "type": "string" |
77 |
| - } |
| 118 | + "minItems": 1, |
| 119 | + "uniqueItems": true |
| 120 | + }, |
| 121 | + { |
| 122 | + "type": "null" |
78 | 123 | }
|
79 |
| - }, |
80 |
| - "minItems": 1, |
81 |
| - "uniqueItems": true |
| 124 | + ] |
82 | 125 | },
|
83 | 126 | "identifier": {
|
84 | 127 | "title":"Unique Identifier",
|
|
89 | 132 | "issued": {
|
90 | 133 | "title":"Release Date",
|
91 | 134 | "description":"Date of formal issuance.",
|
92 |
| - "type": "string", |
93 |
| - "pattern": "^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$" |
| 135 | + "anyOf": [ |
| 136 | + { |
| 137 | + "type": "string", |
| 138 | + "pattern": "^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$" |
| 139 | + }, |
| 140 | + { |
| 141 | + "type": "null" |
| 142 | + } |
| 143 | + ] |
94 | 144 | },
|
95 | 145 | "keyword": {
|
96 | 146 | "title": "Tags",
|
97 | 147 | "description": "Tags (or keywords) help users discover your dataset; please include terms that would be used by technical and non-technical users.",
|
98 |
| - "type": "array", |
99 |
| - "items": { |
100 |
| - "type": "string" |
101 |
| - }, |
102 |
| - "minItems": 1, |
103 |
| - "uniqueItems": true |
| 148 | + "anyOf": [ |
| 149 | + { |
| 150 | + "type": "array", |
| 151 | + "items": { |
| 152 | + "type": "string" |
| 153 | + }, |
| 154 | + "minItems": 1, |
| 155 | + "uniqueItems": true |
| 156 | + }, |
| 157 | + { |
| 158 | + "type": "null" |
| 159 | + } |
| 160 | + ] |
104 | 161 | },
|
105 | 162 | "landingPage": {
|
106 | 163 | "title":"Homepage URL",
|
107 | 164 | "description":"Alternative landing page used to redirect user to a contextual, Agency-hosted “homepage” for the Dataset or API when selecting this resource from the Data.gov user interface.",
|
108 |
| - "type": "string", |
109 |
| - "format": "uri" |
| 165 | + "anyOf": [ |
| 166 | + { |
| 167 | + "type": "string", |
| 168 | + "format": "uri" |
| 169 | + }, |
| 170 | + { |
| 171 | + "type": "null" |
| 172 | + } |
| 173 | + ] |
110 | 174 | },
|
111 | 175 | "language": {
|
112 | 176 | "title":"Language",
|
113 | 177 | "description":"The language of the dataset.",
|
114 |
| - "type": "array", |
115 |
| - "items": { |
116 |
| - "type": "string", |
117 |
| - "pattern": "^(((([A-Za-z]{2,3}(-([A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-([A-Za-z]{4}))?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-([0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(x(-[A-Za-z0-9]{1,8})+))?)|(x(-[A-Za-z0-9]{1,8})+)|((en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang)))$" |
118 |
| - } |
| 178 | + "anyOf": [ |
| 179 | + { |
| 180 | + "type": "array", |
| 181 | + "items": { |
| 182 | + "type": "string", |
| 183 | + "pattern": "^(((([A-Za-z]{2,3}(-([A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-([A-Za-z]{4}))?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-([0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(x(-[A-Za-z0-9]{1,8})+))?)|(x(-[A-Za-z0-9]{1,8})+)|((en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang)))$" |
| 184 | + } |
| 185 | + }, |
| 186 | + { |
| 187 | + "type": "null" |
| 188 | + } |
| 189 | + ] |
119 | 190 | },
|
120 | 191 | "license": {
|
121 | 192 | "title":"License",
|
122 | 193 | "description":"The license dataset or API is published with. See <a href=\"http://project-open-data.github.io/open-licenses/\">Open Licenses</a> for more information.",
|
123 |
| - "type": "string" |
| 194 | + "anyOf": [ |
| 195 | + { |
| 196 | + "type": "string", |
| 197 | + "minLength": 1 |
| 198 | + }, |
| 199 | + { |
| 200 | + "type": "null" |
| 201 | + } |
| 202 | + ] |
124 | 203 | },
|
125 | 204 | "mbox": {
|
126 | 205 | "title":"Contact Email",
|
|
132 | 211 | "title": "Last Update",
|
133 | 212 | "description": "Most recent date on which the dataset was changed, updated or modified.",
|
134 | 213 | "type": "string",
|
135 |
| - "pattern": "^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$" |
| 214 | + "pattern": "^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$" |
136 | 215 | },
|
137 | 216 | "PrimaryITInvestmentUII": {
|
138 | 217 | "title":"Primary IT Investment UII",
|
139 | 218 | "description":"For linking a dataset with an IT Unique Investment Identifier (UII)",
|
140 |
| - "type": "string" |
| 219 | + "anyOf": [ |
| 220 | + { |
| 221 | + "type": "string", |
| 222 | + "minLength": 1 |
| 223 | + }, |
| 224 | + { |
| 225 | + "type": "null" |
| 226 | + } |
| 227 | + ] |
141 | 228 | },
|
142 | 229 | "programCode": {
|
143 | 230 | "title":"Program Code",
|
144 | 231 | "description":"Federal agencies, list the primary program related to this data asset, from the <a href=\"http://goals.performance.gov/sites/default/files/images/FederalProgramInventory_FY13_MachineReadable_091613.xls\">Federal Program Inventory</a>. Use the format of <code>015:001</code>",
|
145 |
| - "type": "array", |
146 |
| - "items": { |
147 |
| - "type": "string", |
148 |
| - "pattern": "[0-9]{3}:[0-9]{3}" |
149 |
| - }, |
150 |
| - "minItems": 1, |
151 |
| - "uniqueItems": true |
| 232 | + "anyOf": [ |
| 233 | + { |
| 234 | + "type": "array", |
| 235 | + "items": { |
| 236 | + "type": "string", |
| 237 | + "pattern": "[0-9]{3}:[0-9]{3}" |
| 238 | + }, |
| 239 | + "minItems": 1, |
| 240 | + "uniqueItems": true |
| 241 | + }, |
| 242 | + { |
| 243 | + "type": "null" |
| 244 | + } |
| 245 | + ] |
152 | 246 | },
|
153 | 247 | "publisher": {
|
154 | 248 | "title":"Publisher",
|
|
158 | 252 | "references": {
|
159 | 253 | "title":"Related Documents",
|
160 | 254 | "description":"Related documents such as technical information about a dataset, developer documentation, etc.",
|
161 |
| - "type": "array", |
162 |
| - "items": { |
163 |
| - "type": "string", |
164 |
| - "format": "uri" |
165 |
| - }, |
166 |
| - "minItems": 1, |
167 |
| - "uniqueItems": true |
| 255 | + "anyOf": [ |
| 256 | + { |
| 257 | + "type": "array", |
| 258 | + "items": { |
| 259 | + "type": "string", |
| 260 | + "format": "uri" |
| 261 | + }, |
| 262 | + "minItems": 1, |
| 263 | + "uniqueItems": true |
| 264 | + }, |
| 265 | + { |
| 266 | + "type": "null" |
| 267 | + } |
| 268 | + ] |
168 | 269 | },
|
169 | 270 | "spatial": {
|
170 | 271 | "title":"Spatial",
|
171 | 272 | "description":"The range of spatial applicability of a dataset. Could include a spatial region like a bounding box or a named place.",
|
172 |
| - "type": "string" |
| 273 | + "anyOf": [ |
| 274 | + { |
| 275 | + "type": "string", |
| 276 | + "minLength": 1 |
| 277 | + }, |
| 278 | + { |
| 279 | + "type": "null" |
| 280 | + } |
| 281 | + ] |
173 | 282 | },
|
174 | 283 | "systemOfRecords": {
|
175 | 284 | "title":"System of Records",
|
176 | 285 | "description":"If the systems is designated as a system of records under the Privacy Act of 1974, provide the URL to the System of Records Notice related to this dataset.",
|
177 |
| - "type": "string" |
| 286 | + "anyOf": [ |
| 287 | + { |
| 288 | + "type": "string", |
| 289 | + "minLength": 1 |
| 290 | + }, |
| 291 | + { |
| 292 | + "type": "null" |
| 293 | + } |
| 294 | + ] |
178 | 295 | },
|
179 | 296 | "temporal": {
|
180 | 297 | "title":"Temporal",
|
181 | 298 | "description":"The range of temporal applicability of a dataset (i.e., a start and end date of applicability for the data).",
|
182 |
| - "type": "string", |
183 |
| - "pattern": "^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?(\\/)([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$" |
| 299 | + "anyOf": [ |
| 300 | + { |
| 301 | + "type": "string", |
| 302 | + "pattern": "^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?(\\/)([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$" |
| 303 | + }, |
| 304 | + { |
| 305 | + "type": "null" |
| 306 | + } |
| 307 | + ] |
184 | 308 | },
|
185 | 309 | "theme": {
|
186 | 310 | "title":"Category",
|
187 | 311 | "description":"Main thematic category of the dataset.",
|
188 |
| - "type": "array", |
189 |
| - "items": { |
190 |
| - "type": "string" |
191 |
| - }, |
192 |
| - "minItems": 1, |
193 |
| - "uniqueItems": true |
| 312 | + "anyOf": [ |
| 313 | + { |
| 314 | + "type": "array", |
| 315 | + "items": { |
| 316 | + "type": "string" |
| 317 | + }, |
| 318 | + "minItems": 1, |
| 319 | + "uniqueItems": true |
| 320 | + }, |
| 321 | + { |
| 322 | + "type": "null" |
| 323 | + } |
| 324 | + ] |
194 | 325 | },
|
195 | 326 | "title": {
|
196 | 327 | "title": "Title",
|
|
200 | 331 | "webService": {
|
201 | 332 | "title":"Endpoint",
|
202 | 333 | "description":"Endpoint of web service to access dataset.",
|
203 |
| - "type": "string", |
204 |
| - "format": "uri" |
| 334 | + "anyOf": [ |
| 335 | + { |
| 336 | + "type": "string", |
| 337 | + "format": "uri" |
| 338 | + }, |
| 339 | + { |
| 340 | + "type": "null" |
| 341 | + } |
| 342 | + ] |
205 | 343 | }
|
206 | 344 | }
|
207 | 345 | }
|
0 commit comments