-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Insert generated SVG hierarchy triples into DB. (#301)
- Loading branch information
Showing
13 changed files
with
182 additions
and
2 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 |
---|---|---|
|
@@ -79,5 +79,6 @@ | |
"Provenance2 Name": "http://source1.com/provenance2" | ||
} | ||
} | ||
} | ||
}, | ||
"groupStatVarsByProperty": true | ||
} |
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
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
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
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
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
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
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
5 changes: 5 additions & 0 deletions
5
simple/tests/stats/test_data/runner/expected/generate_svg_hierarchy/observations.db.csv
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,5 @@ | ||
entity,variable,date,value,provenance | ||
country/IND,var1,2020,0.16,c/p/1 | ||
country/IND,var2,2020,53,c/p/1 | ||
country/CHN,var1,2020,0.23,c/p/1 | ||
country/CHN,var2,2020,67,c/p/1 |
41 changes: 41 additions & 0 deletions
41
simple/tests/stats/test_data/runner/expected/generate_svg_hierarchy/triples.db.csv
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,41 @@ | ||
subject_id,predicate,object_id,object_value | ||
some_var1,typeOf,StatisticalVariable, | ||
some_var1,measuredProperty,value, | ||
some_var1,name,,Some Variable 1 Name | ||
some_var1,description,,Some Variable 1 Description | ||
some_var1,populationType,Person, | ||
some_var1,gender,Female, | ||
some_var2,typeOf,StatisticalVariable, | ||
some_var2,measuredProperty,value, | ||
some_var2,name,,Some Variable 2 Name | ||
some_var2,description,,Some Variable 2 Description | ||
some_var2,populationType,Person, | ||
some_var2,gender,Male, | ||
c/s/default,typeOf,Source, | ||
c/s/default,name,,Custom Data Commons | ||
c/s/1,typeOf,Source, | ||
c/s/1,name,,Source1 | ||
c/s/1,url,,http://source1.com | ||
c/s/1,domain,,source1.com | ||
c/p/default,typeOf,Provenance, | ||
c/p/default,name,,Custom Import | ||
c/p/default,source,c/s/default, | ||
c/p/default,url,,custom-import | ||
c/p/1,typeOf,Provenance, | ||
c/p/1,name,,Provenance1 | ||
c/p/1,source,c/s/1, | ||
c/p/1,url,,http://source1.com/provenance1 | ||
c/g/Person,typeOf,StatVarGroup, | ||
c/g/Person,name,,Person | ||
c/g/Person,specializationOf,dc/g/Root, | ||
c/g/Person_Gender,typeOf,StatVarGroup, | ||
c/g/Person_Gender,name,,Person With Gender | ||
c/g/Person_Gender,specializationOf,c/g/Person, | ||
c/g/Person_Gender-Female,typeOf,StatVarGroup, | ||
c/g/Person_Gender-Female,name,,Person With Gender = Female | ||
c/g/Person_Gender-Female,specializationOf,c/g/Person_Gender, | ||
some_var1,memberOf,c/g/Person_Gender-Female, | ||
c/g/Person_Gender-Male,typeOf,StatVarGroup, | ||
c/g/Person_Gender-Male,name,,Person With Gender = Male | ||
c/g/Person_Gender-Male,specializationOf,c/g/Person_Gender, | ||
some_var2,memberOf,c/g/Person_Gender-Male, |
18 changes: 18 additions & 0 deletions
18
simple/tests/stats/test_data/runner/input/generate_svg_hierarchy/config.json
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,18 @@ | ||
{ | ||
"inputFiles": { | ||
"*.csv": { | ||
"importType": "observations", | ||
"format": "variablePerRow", | ||
"provenance": "Provenance1" | ||
} | ||
}, | ||
"sources": { | ||
"Source1": { | ||
"url": "http://source1.com", | ||
"provenances": { | ||
"Provenance1": "http://source1.com/provenance1" | ||
} | ||
} | ||
}, | ||
"groupStatVarsByProperty": true | ||
} |
5 changes: 5 additions & 0 deletions
5
simple/tests/stats/test_data/runner/input/generate_svg_hierarchy/observations.csv
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,5 @@ | ||
entity,variable,date,value | ||
country/IND,var1,2020,0.16 | ||
country/IND,var2,2020,53 | ||
country/CHN,var1,2020,0.23 | ||
country/CHN,var2,2020,67 |
16 changes: 16 additions & 0 deletions
16
simple/tests/stats/test_data/runner/input/generate_svg_hierarchy/variables.mcf
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,16 @@ | ||
Node: v1 | ||
dcid:"some_var1" | ||
typeOf: dcs:StatisticalVariable | ||
measuredProperty: dcs:value | ||
name: "Some Variable 1 Name" | ||
description: "Some Variable 1 Description" | ||
populationType: schema:Person | ||
gender: dcs:Female | ||
|
||
Node: dcid:some_var2 | ||
typeOf: dcs:StatisticalVariable | ||
measuredProperty: dcs:value | ||
name: "Some Variable 2 Name" | ||
description: "Some Variable 2 Description" | ||
populationType: schema:Person | ||
gender: dcs:Male |