This repository has been archived by the owner on Oct 6, 2021. It is now read-only.
forked from NESCent/dplace
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving JSON data for JS tests to separate data folder, use json-fixtu…
…res to load data in tests
- Loading branch information
1 parent
c88d01c
commit 9fd4f9f
Showing
11 changed files
with
390 additions
and
623 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"variables": { | ||
"categoricalCulturalVar": { | ||
"codes": [ | ||
{"code": "NA", "description": "Missing data"}, | ||
{"code": "1", "description": "Absence of slavery"}, | ||
{"code": "2", "description": "Incipient or nonhereditary slavery, i.e., where slave status is temporary and not transmitted to the children of slaves"}, | ||
{"code": "3", "description": "Slavery reported but not identified as hereditary or nonhereditary"}, | ||
{"code": "4", "description": "Hereditary slavery present and of at least modest social significance"}, | ||
], | ||
"variable": { | ||
"id": 1628, | ||
"data_type": "Categorical", | ||
"type": "cultural", | ||
"name": "Slavery" | ||
} | ||
}, | ||
"categoricalCulturalVar2": { | ||
"codes": [ | ||
{"code": "NA", "description": "Missing data"}, | ||
{"code": "21", "description": "Absence of slavery"}, | ||
{"code": "22", "description": "Incipient or nonhereditary slavery, i.e., where slave status is temporary and not transmitted to the children of slaves"}, | ||
{"code": "23", "description": "Slavery reported but not identified as hereditary or nonhereditary"}, | ||
{"code": "24", "description": "Hereditary slavery present and of at least modest social significance"}, | ||
], | ||
"variable": { | ||
"id": 1628, | ||
"data_type": "Categorical", | ||
"type": "cultural", | ||
"name": "Slavery" | ||
} | ||
}, | ||
|
||
"continuousCulturalVar": { | ||
"min": 0, | ||
"max": 1000, | ||
"variable": { | ||
"id": 66, | ||
"name": "Population", | ||
"data_type": "Continuous", | ||
"type": "cultural" | ||
}, | ||
"codes": [] | ||
}, | ||
|
||
"ordinalCulturalVar": { | ||
"codes": [ | ||
{"code": "NA", "description": "0-25%"}, | ||
{"code": "1", "description": "26-50%"}, | ||
{"code": "2", "description": "51-75%"}, | ||
{"code": "3", "description": "76-100%"} | ||
], | ||
"variable": { | ||
"id": 1934, | ||
"data_type": "Ordinal", | ||
"type": "cultural" | ||
} | ||
} | ||
}, | ||
|
||
"coded_values": { | ||
"categoricalCulturalVar": { | ||
"coded_value": "1", | ||
"variable": 1628, | ||
"code_description": {"code": "1", "description": "Absence of slavery"} | ||
}, | ||
|
||
"categoricalCulturalVarNA": { | ||
"coded_value": "NA", | ||
"variable": 1628, | ||
"code_description": {"code": "NA", "description": "Missing data"} | ||
}, | ||
|
||
"ordinalCulturalVar": { | ||
"coded_value": "1", | ||
"variable": 1934, | ||
"code_description": {"code": "1", "description": "26-50%"} | ||
}, | ||
|
||
"continuousCulturalVar1": { | ||
"coded_value_float": 250, | ||
"coded_value": 250, | ||
"variable": 66 | ||
}, | ||
|
||
"continuousCulturalVar2": { | ||
"coded_value_float": 0, | ||
"coded_value": 0, | ||
"variable": 66 | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"variables": { | ||
"continuousEnvVar": { | ||
"min": -17, | ||
"max": 29, | ||
"variable": { | ||
"id": 317, | ||
"name": "Temperature", | ||
"data_type": "Continuous", | ||
"type": "environmental" | ||
}, | ||
"codes": [] | ||
}, | ||
|
||
"categoricalEnvVar": { | ||
"variable": { | ||
"id": 318, | ||
"data_type": "Categorical", | ||
"type": "environmental", | ||
"name": "Biome", | ||
}, | ||
"codes": [ | ||
{"code": "NA", "description": "Missing data"}, | ||
{"code": "1", "description": "Biome 1"}, | ||
{"code": "2", "description": "Biome 2"}, | ||
{"code": "3", "description": "Biome 3"}, | ||
{"code": "4", "description": "Biome 4"}, | ||
] | ||
} | ||
}, | ||
|
||
"coded_values": { | ||
"continuousEnvVar": { | ||
'coded_value_float': 18.25, | ||
'variable': 317, | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"language1": { | ||
"family": { | ||
"id": 11, | ||
"language_count": 11, | ||
"name": "Family 1", | ||
"scheme": "G" | ||
}, | ||
"glotto_code": "abcd1234", | ||
"id": 1100, | ||
"iso_code": "abc", | ||
"name": "ABCD", | ||
"societies": [1,2] | ||
}, | ||
|
||
"language2": { | ||
"family": { | ||
"id": 58, | ||
"name": "Austronesian", | ||
"scheme": "G" | ||
}, | ||
"glotto_code": "efgh1234", | ||
"id": 1110, | ||
"iso_code": "efg", | ||
"name": "SFGH", | ||
"societies": [1] | ||
}, | ||
|
||
"language3": { | ||
"family": { | ||
"id": 58, | ||
"name": "Austronesian", | ||
"scheme": "G" | ||
}, | ||
"glotto_code": "lmno1234", | ||
"id": 1111, | ||
"iso_code": "lmn", | ||
"name": "LMNO", | ||
"societies": [1,2] | ||
}, | ||
|
||
"Family1": { | ||
"id": 11, | ||
"name": "Family 1", | ||
"scheme": "G" | ||
}, | ||
|
||
"Austronesian": { | ||
"id": 58, | ||
"name": "Austronesian", | ||
"scheme": "G" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"Africa": { | ||
"continent": "AFRICA", | ||
"count": 71, | ||
"id": 7398, | ||
"level_2_re": 24, | ||
"region_nam": "Northeastern Africa", | ||
"tdwg_code": 24 | ||
}, | ||
"easternEurope": { | ||
"code": "14", | ||
"id": 5, | ||
"name": "Eastern Europe" | ||
}, | ||
"Asia": { | ||
"code": "20", | ||
"id": 4, | ||
"name": "Asia" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"society1": { | ||
"society": { "id": 11264}, | ||
"environmental_values": [], | ||
"geographic_regions": [], | ||
"variable_coded_values": [] | ||
}, | ||
"society2": { | ||
"society": { "id": 16, }, | ||
"environmental_values": [], | ||
"geographic_regions": [], | ||
"variable_coded_values": [] | ||
}, | ||
"society3": { | ||
"society": { "id": 46 }, | ||
"environmental_values": [], | ||
"geographic_regions": [], | ||
"variable_coded_values": [] | ||
} | ||
} |
Oops, something went wrong.