forked from jvalue/jayvee
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from A-M-A-X/feature/392-Unpack-gz-files
Feature/392 unpack gz files
- Loading branch information
Showing
9 changed files
with
223 additions
and
9 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,56 @@ | ||
// SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg | ||
// | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
pipeline MaterialsDatabasePipeline { | ||
|
||
block MaterialsDatabaseExtractor oftype HttpExtractor { | ||
url: "https://figshare.com/ndownloader/files/31626647"; | ||
followRedirects: true; | ||
} | ||
|
||
block ZipArchiveInterpreter oftype ArchiveInterpreter { | ||
archiveType: "zip"; | ||
} | ||
|
||
block MaterialsDatabaseCSVPicker oftype FilePicker { | ||
path: "/Databases/Combined/Combined_YieldStrength_GrainSize_Database.csv"; | ||
} | ||
|
||
block MaterialsDatabaseTextFileInterpreter oftype TextFileInterpreter { | ||
|
||
} | ||
|
||
block MaterialsDatabaseCSVInterpreter oftype CSVInterpreter { | ||
delimiter: ","; | ||
enclosing: '"'; | ||
enclosingEscape: '"'; | ||
} | ||
|
||
block MaterialsDatabaseTableInterpreter oftype TableInterpreter { | ||
header: true; | ||
columns: [ | ||
"Compound" oftype text, | ||
"Blacklisted Compound?" oftype text, | ||
"Yield Strength Value" oftype text, | ||
"Yield Strength Unit" oftype text, | ||
"Grain Size Value" oftype text, | ||
"Grain Size Unit" oftype text, | ||
"DOI" oftype text, | ||
"Open Access" oftype text, | ||
]; | ||
} | ||
|
||
block MaterialsDatabaseLoader oftype SQLiteLoader { | ||
table: "MaterialsDatabase"; | ||
file: "./MaterialsDatabase.sqlite"; | ||
} | ||
|
||
MaterialsDatabaseExtractor | ||
-> ZipArchiveInterpreter | ||
-> MaterialsDatabaseCSVPicker | ||
-> MaterialsDatabaseTextFileInterpreter | ||
-> MaterialsDatabaseCSVInterpreter | ||
-> MaterialsDatabaseTableInterpreter | ||
-> MaterialsDatabaseLoader; | ||
} |
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,48 @@ | ||
// SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg | ||
// | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
pipeline ThermoelectricMaterialsPipeline { | ||
|
||
block ThermoelectricMaterialsExtractor oftype HttpExtractor { | ||
url: "https://figshare.com/ndownloader/files/28333845"; | ||
followRedirects: true; | ||
} | ||
|
||
block ThermoelectricMaterialsArchiveInterpreter oftype ArchiveInterpreter { | ||
archiveType: "gz"; | ||
} | ||
|
||
block ThermoelectricMaterialsFilePicker oftype FilePicker { | ||
path: "/ucsb_thermoelectrics.json"; | ||
} | ||
|
||
block ThermoelectricMaterialsTextFileInterpreter oftype TextFileInterpreter { | ||
|
||
} | ||
|
||
// Not working from here on forward, as json file is received and json interpreter is not yet implemented | ||
block ThermoelectricMaterialsJSONInterpreter oftype CSVInterpreter { | ||
enclosing: '"'; | ||
} | ||
|
||
block ThermoelectricMaterialsTableInterpreter oftype TableInterpreter { | ||
header: true; | ||
columns: [ | ||
|
||
]; | ||
} | ||
|
||
block ThermoelectricMaterialsLoader oftype SQLiteLoader { | ||
table: "ThermoelectricMaterials"; | ||
file: "./ThermoelectricMaterials.sqlite"; | ||
} | ||
|
||
ThermoelectricMaterialsExtractor | ||
-> ThermoelectricMaterialsArchiveInterpreter | ||
-> ThermoelectricMaterialsFilePicker | ||
-> ThermoelectricMaterialsTextFileInterpreter | ||
-> ThermoelectricMaterialsJSONInterpreter | ||
-> ThermoelectricMaterialsTableInterpreter | ||
-> ThermoelectricMaterialsLoader; | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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