-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel.jv
More file actions
188 lines (166 loc) · 4.57 KB
/
model.jv
File metadata and controls
188 lines (166 loc) · 4.57 KB
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
use {
RemoveOpeningBrace,
RemoveClosingBrace
} from "./../../shared/transforms.jv";
/*
Each record contains a chemical entity and one of the seminal thermoelectric properties:
- Thermoelectric figure of merit
- ZT
- thermal conductivity, κ
- Seebeck coefcient, S
- electrical conductivity, σ
- power factor, PF
*/
constraint AllowedModels oftype AllowlistConstraint {
allowlist: [
"Conductivity",
"ThermCond",
"Seebeck",
"PF",
"ZT"
];
}
valuetype Model oftype text {
constraints: [
AllowedModels
];
}
// The thermal conductivity has been mentioned to be only in (total, electronic, and lattice contributions), see page 3.
constraint AllowedModelTypes oftype AllowlistConstraint {
allowlist: [
"electronic",
"lattice",
"total"
];
}
valuetype ModelType oftype text {
constraints: [
AllowedModelTypes
];
}
// Access type of the source paper, has to be open or payment according to the paper.
constraint AllowedAccessTypes oftype AllowlistConstraint {
allowlist: [
"open",
"payment"
];
}
valuetype AccessType oftype text {
constraints: [
AllowedAccessTypes
];
}
pipeline ThermoelectricMaterialsPipeline {
ThermoelectricMaterialsExtractor
-> ZipArchiveInterpreter
-> InfThermoelectricMaterialsCSVPicker
-> InfThermoelectricMaterialsTextFileInterpreter
-> InfThermoelectricMaterialsCSVInterpreter
-> InfThermoelectricMaterialsTableInterpreter
-> InfThermoelectricMaterialsDatabaseLoader;
ZipArchiveInterpreter
-> MainThermoelectricMaterialsCSVPicker
-> MainThermoelectricMaterialsTextFileInterpreter
-> MainThermoelectricMaterialsCSVInterpreter
-> MainThermoelectricMaterialsTableInterpreter
-> OpeningBracesRemover
-> ClosingBracesRemover
-> MainThermoelectricMaterialsDatabaseLoader;
block ThermoelectricMaterialsExtractor oftype HttpExtractor {
url: "https://figshare.com/ndownloader/files/36554916";
}
block ZipArchiveInterpreter oftype ArchiveInterpreter {
archiveType: "zip";
}
block InfThermoelectricMaterialsCSVPicker oftype FilePicker {
path: "/TE_databases/CSV/inf_tedb.csv";
}
block MainThermoelectricMaterialsCSVPicker oftype FilePicker {
path: "/TE_databases/CSV/main_tedb.csv";
}
block InfThermoelectricMaterialsTextFileInterpreter oftype TextFileInterpreter { }
block MainThermoelectricMaterialsTextFileInterpreter oftype TextFileInterpreter { }
block InfThermoelectricMaterialsCSVInterpreter oftype CSVInterpreter {
delimiter: ",";
}
block MainThermoelectricMaterialsCSVInterpreter oftype CSVInterpreter {
delimiter: ",";
}
block OpeningBracesRemover oftype TableTransformer {
inputColumns: [
'Value'
];
outputColumn: 'Value';
uses: RemoveOpeningBrace;
}
block ClosingBracesRemover oftype TableTransformer {
inputColumns: [
'Value'
];
outputColumn: 'Value';
uses: RemoveClosingBrace;
}
block InfThermoelectricMaterialsTableInterpreter oftype TableInterpreter {
header: true;
columns: [
"Name" oftype text,
"Temperature_Value" oftype decimal,
"ZT" oftype text,
"PF" oftype text,
"S^2" oftype text,
"s" oftype text,
"k" oftype text,
"Original_Counts" oftype integer,
"New_Counts" oftype integer,
"Inference" oftype text,
"Editing" oftype text,
"Pressure" oftype text,
"Process" oftype text,
"Label" oftype text,
"Direction_of_Measurement" oftype text,
"DOI" oftype DOI,
"Publisher" oftype text,
"Access_Type" oftype text,
"Publication_Year" oftype integer,
"Authors" oftype text,
"Journal" oftype text,
"Comparison" oftype text,
];
}
block MainThermoelectricMaterialsTableInterpreter oftype TableInterpreter {
header: true;
columns: [
"Name" oftype text,
"Label" oftype text,
"Editing" oftype text,
"Model" oftype Model,
"Model_Type" oftype text,
"Specifier" oftype text,
"Value" oftype text,
"Units" oftype text,
"Temperature_Value" oftype text,
"Temperature_Units" oftype TemperatureUnitKelvin,
"Value_Average" oftype text,
"Temperature_Average" oftype decimal,
"Pressure" oftype text,
"Process" oftype text,
"Direction_of_Measurement" oftype text,
"Resolution" oftype text,
"DOI" oftype DOI,
"Title" oftype text,
"Access_Type" oftype text,
"Publisher" oftype text,
"Publication_Year" oftype integer,
"Authors" oftype text,
"Journal" oftype text,
];
}
block InfThermoelectricMaterialsDatabaseLoader oftype SQLiteLoader {
table: "InfThermoelectricMaterials";
file: "./ThermoelectricMaterials.sqlite";
}
block MainThermoelectricMaterialsDatabaseLoader oftype SQLiteLoader {
table: "MainThermoelectricMaterials";
file: "./ThermoelectricMaterials.sqlite";
}
}