-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatapackage.json
400 lines (400 loc) · 10.5 KB
/
datapackage.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
{
"name": "single-parent-families",
"datapackage_version": "1.0-beta.18",
"title": "Single Parent Families",
"description": "Single-parent Families reports the number and percent of families that are headed by a single parent, by the relation of children under the age of 18 years.",
"version": "1.0",
"licenses": [{
"url": "http://opendatacommons.org/licenses/pddl/",
"name": "Open Data Commons Public Domain",
"version": "1.0",
"id": "odc-pddl"
}],
"sources": [{
"name": "uscensus",
"web": ""
}],
"author":[{
"name": "CTData Collaborative",
"email": "[email protected]",
"web": "https://ctdata.org"
}],
"contributor": [],
"resources": [{
"path": "data/single_parent_families_2020.csv",
"format": "csv",
"schema": {
"fields": [{
"name": "Town",
"type": "string",
"dimension": false
}, {
"name": "FIPS",
"type": "string",
"dimension": false
}, {
"name": "Year",
"type": "string",
"dimension": false
}, {
"name": "Family Type",
"type": "string",
"dimension": true,
"constraints": {
"enum": [
"All",
"Single-Parent"
]
}
}, {
"name": "Child Relation",
"type": "string",
"dimension": true,
"constraints": {
"enum": [
"All",
"Own Children",
"No Own Children"
]
}
}, {
"name": "Measure Type",
"type": "string",
"dimension": true,
"constraints": {
"enum": [
"Number",
"Percent"
]
}
}, {
"name": "Variable",
"type": "string",
"dimension": true,
"constraints": {
"enum": [
"Single-Parent Families",
"Margins of Error"
]
}
}, {
"name": "Value",
"type": "number",
"dimension": false
}]
}
}
],
"last_modified": "07/21/2022",
"ckan_extras": {
"full_description": {
"ckan_name": "Full Description",
"value": "Children are all persons under the age of 18 years. 'Own children' in a family are sons and daughters, including stepchildren and adopted children, of the householder. 'Single-parent family' means only one parent is present in the home, and is never-married, widowed, divorced, or married, spouse absent. This data originates from the American Community Survey (ACS) 5-Year estimates, table B11003. The ACS collects these data from a sample of households on a rolling monthly basis. ACS aggregates samples into one-, three-, or five-year periods.",
"type": "string"
},
"suppression": {
"ckan_name": "Suppression",
"value": "",
"type": "string"
},
"technical_notes": {
"ckan_name": "Technical Notes",
"value": "These data present aggregates and proportions based on total values per family type and child relation. As such, the values are given with Margins of Error derived from the estimates and margins of error provided with the original ACS data.",
"type": "string"
},
"socrata": {
"ckan_name": "Socrata",
"value": "False",
"type": "string"
},
"socrata_url": {
"ckan_name": "Socrata Dataset URL",
"value": "",
"type": "string"
},
"socrata_dataset_name": {
"ckan_name": "Socrata Dataset Name",
"value": "",
"type": "string"
},
"domain": {
"ckan_name": "Domain",
"value": "Demographics",
"type": "string"
},
"subdomain": {
"ckan_name": "Subdomain",
"value": "Family Structure",
"type": "string"
},
"numerator": {
"ckan_name": "Numerator",
"value": "Single-parent families, per child relation.",
"type": "string"
},
"denominator": {
"ckan_name": "Denominator",
"value": "Total number of Families",
"type": "string"
},
"geography": {
"ckan_name": "Geography",
"value": "Town",
"type": "string",
"constraints": {"enum": ["Town", "County", "Town/County", "District", "Other"]}
},
"frequency": {
"ckan_name": "Frequency",
"value": "Annual",
"type": "string"
},
"years_in_catalog": {
"ckan_name": "Years in Catalog",
"value": ["2006-2010", "2007-2011", "2008-2012", "2009-2013", "2010-2014", "2011-2015", "2012-2016", "2013-2017", "2014-2018", "2015-2019", "2016-2020"],
"type": "array"
},
"latest_year": {
"ckan_name": "Latest Year Available",
"value": "2016-2020",
"type": "string"
},
"disabled_views": {
"ckan_name": "Disabled Views",
"value": [],
"type": "array",
"constraints": {"enum": ["map", "table", "bar", "line"]}
},
"units": {
"ckan_name": "Units",
"value": {
"Number": "",
"Percent": "%"
}
},
"expected_number_of_geographies": {
"ckan_name": "Expected Number of Unique Geographies",
"value": 170,
"type": "string"
},
"default": {
"ckan_name": "Default",
"value": {
"Town": "Connecticut",
"Year": ["2016-2020"],
"Measure Type": "Number",
"Variable": "Single-Parent Families",
"Family Type": "Single-Parent",
"Child Relation": ["All", "Own Children", "No Own Children"]
},
"type": "object"
}
},
"spot_checks": [
{
"type": "$lookup",
"filter": {
"Town": "Bridgewater",
"Year": "2011-2015",
"Variable": "Single-Parent Families",
"Measure Type": "Number",
"Family Type": "All",
"Child Relation": "All"
},
"expected": {
"type": "$match",
"number type": "int",
"value": 514
}
},
{
"type": "$lookup",
"filter": {
"Town": "Union",
"Year": "2006-2010",
"Variable": "Margins of Error",
"Measure Type": "Percent",
"Family Type": "Single-Parent",
"Child Relation": "All"
},
"expected": {
"type": "$match",
"number type": "float",
"value": 0.1
}
},
{
"type": "$lookup",
"filter": {
"Town": "Franklin",
"Year": "2008-2012",
"Variable": "Margins of Error",
"Measure Type": "Number",
"Family Type": "Single-Parent",
"Child Relation": "All"
},
"expected": {
"type": "$match",
"number type": "int",
"value": 24
}
},
{
"type": "$lookup",
"filter": {
"Town": "Canaan",
"Year": "2008-2012",
"Variable": "Single-Parent Families",
"Measure Type": "Percent",
"Family Type": "Single-Parent",
"Child Relation": "All"
},
"expected": {
"type": "$match",
"number type": "float",
"value": 20.97
}
},
{
"type": "$lookup",
"filter": {
"Town": "Sharon",
"Year": "2006-2010",
"Variable": "Margins of Error",
"Measure Type": "Number",
"Family Type": "All",
"Child Relation": "No Own Children"
},
"expected": {
"type": "$match",
"number type": "float",
"value": 114.50
}
},
{
"type": "$lookup",
"filter": {
"Town": "Colebrook",
"Year": "2009-2013",
"Variable": "Single-Parent Families",
"Measure Type": "Number",
"Family Type": "All",
"Child Relation": "No Own Children"
},
"expected": {
"type": "$match",
"number type": "int",
"value": 289.00
}
},
{
"type": "$lookup",
"filter": {
"Town": "Hartland",
"Year": "2007-2011",
"Variable": "Margins of Error",
"Measure Type": "Percent",
"Family Type": "Single-Parent",
"Child Relation": "No Own Children"
},
"expected": {
"type": "$match",
"number type": "float",
"value": 0.03
}
},
{
"type": "$lookup",
"filter": {
"Town": "Cornwall",
"Year": "2009-2013",
"Variable": "Single-Parent Families",
"Measure Type": "Percent",
"Family Type": "Single-Parent",
"Child Relation": "No Own Children"
},
"expected": {
"type": "$match",
"number type": "float",
"value": 9.40
}
},
{
"type": "$lookup",
"filter": {
"Town": "Norfolk",
"Year": "2010-2014",
"Variable": "Margins of Error",
"Measure Type": "Percent",
"Family Type": "Single-Parent",
"Child Relation": "Own Children"
},
"expected": {
"type": "$match",
"number type": "float",
"value": 0.06
}
},
{
"type": "$lookup",
"filter": {
"Town": "Roxbury",
"Year": "2011-2015",
"Variable": "Single-Parent Families",
"Measure Type": "Number",
"Family Type": "All",
"Child Relation": "Own Children"
},
"expected": {
"type": "$match",
"number type": "float",
"value": 230
}
},
{
"type": "$lookup",
"filter": {
"Town": "Warren",
"Year": "2007-2011",
"Variable": "Margins of Error",
"Measure Type": "Number",
"Family Type": "Single-Parent",
"Child Relation": "Own Children"
},
"expected": {
"type": "$match",
"number type": "float",
"value": 92.44
}
},
{
"type": "$lookup",
"filter": {
"Town": "Eastford",
"Year": "2010-2014",
"Variable": "Single-Parent Families",
"Measure Type": "Number",
"Family Type": "Single-Parent",
"Child Relation": "Own Children"
},
"expected": {
"type": "$match",
"number type": "int",
"value": 26
}
}
],
"dimension_groups" : [
{
"Family Type": ["All"],
"Measure Type": ["Number"],
"Variable": ["Single-Parent Families", "Margins of Error"],
"Child Relation": ["All", "Own Children", "No Own Children"]
},
{
"Family Type": ["Single-Parent"],
"Measure Type": ["Number", "Percent"],
"Variable": ["Single-Parent Families", "Margins of Error"],
"Child Relation": ["All", "Own Children", "No Own Children"]
}
]
}