Scandiumlabs commited on
Commit
21f9be8
·
verified ·
1 Parent(s): 202aad2

Upload SCHEMA.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. SCHEMA.md +189 -0
SCHEMA.md ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SCHEMA — Scandium-Dataset v1.0.0
2
+
3
+ ## File: `entries_v4_typed.parquet`
4
+
5
+ **Rows:** 267,230
6
+ **Columns:** 47
7
+ **Storage:** Typed Parquet (PyArrow) with proper int/float/bool types
8
+ **Index:** `entries_v4_typed.index.json` — O(1) lookup by `source_id`
9
+
10
+ ---
11
+
12
+ ## Column Dictionary
13
+
14
+ | # | Column | Type | Unit | Nullable | Description | Source Field Mapping |
15
+ |---|--------|------|------|----------|-------------|---------------------|
16
+ | 1 | `source` | string | — | No | Source database: `"mp"`, `"oqmd"`, `"jarvis"`, or `"experimental"` | All |
17
+ | 2 | `source_id` | string | — | No | Original ID in the source database (e.g. `mp-12345`, `oqmd-67890`, `JVASP-123`) | MP: `material_id`; OQMD: `id`; JARVIS: `jid` |
18
+ | 3 | `formula` | string | — | No | Pretty chemical formula (e.g. `Li6PS5Cl`) | All |
19
+ | 4 | `structured_formula` | string | — | No | Reduced/structured formula via pymatgen `reduced_formula` | Computed |
20
+ | 5 | `band_gap` | double | eV | Yes (151 OQMD entries) | Electronic band gap. `null` when calculation did not converge. | MP: `band_gap`; OQMD: `band_gap`; JARVIS: `bandgap` |
21
+ | 6 | `formation_energy_per_atom` | double | eV/atom | No | Formation energy per atom. Negative = stable relative to elements. | MP: `formation_energy_per_atom`; OQMD: `delta_e`; JARVIS: `formation_energy` |
22
+ | 7 | `energy_above_hull` | double | eV/atom | Yes (8,933 JARVIS + 5,238 others) | Energy above convex hull. `null` when chemical system has <3 entries (hull construction impossible) or JARVIS subset lacks hull coverage. | MP: `energy_above_hull`; OQMD: `delta_e_hull`; JARVIS: computed via internal hull |
23
+ | 8 | `nsites` | int64 | atoms | No | Number of atoms in the conventional unit cell | All (from structure) |
24
+ | 9 | `nelements` | string | — | No | JSON array of element symbols (e.g. `["Li","P","S","Cl"]`) | Computed |
25
+ | 10 | `volume` | double | ų | No | Unit cell volume | MP: `volume`; OQMD/JARVIS: computed from lattice vectors |
26
+ | 11 | `density` | double | g/cm³ | No | Computed density from atomic masses and volume | Computed |
27
+ | 12 | `mobile_ion` | string | — | No | Mobile ion carrier: `"Li"`, `"Na"`, `"Mg"`, or `"None"` | Computed (composition heuristic) |
28
+ | 13 | `tier` | string | — | No | Quality tier: `"gold"`, `"validated"`, `"raw"`, `"experimental_gold"` | Computed (11-gate system) |
29
+ | 14 | `quality_score` | int64 | score (0–88) | No | Composite quality score from 5 sub-scores. Range 48–88 (conservative; no entry ≥90) | Computed |
30
+ | 15 | `is_experimental` | bool | — | No | `true` if entry is from experimental data (OBELiX), `false` otherwise | Computed |
31
+ | 16 | `is_stable` | string | — | No | Stability flag: `"True"`, `"False"`, or `"null"` (lacking hull data) | MP: `is_stable`; OQMD: `is_stable`; JARVIS: computed |
32
+ | 17 | `is_metal` | bool | — | No | `true` if band gap ≤ 0.1 eV | Computed from `band_gap` |
33
+ | 18 | `space_group` | int64 | number | Yes (16 OQMD entries) | International space group number (1–230). `null` when spglib fails (disordered or too few atoms). | Computed via spglib |
34
+ | 19 | `space_group_number` | string | — | Yes | Space group number as string (for compatibility) | Computed |
35
+ | 20 | `crystal_system` | string | — | Yes | Crystal system: `"triclinic"`, `"monoclinic"`, etc. | Computed |
36
+ | 21 | `sse_family` | string | — | No | SSE structural family classification: `"garnet"`, `"NASICON"`, `"argyrodite"`, `"LGPS_type"`, `"LISICON"`, `"anti_perovskite"`, `"perovskite"`, `"halide"`, `"borohydride"`, `"sulfide"`, `"oxide"`, `"none"` | Computed (composition-based heuristic) |
37
+ | 22 | `license` | string | — | No | Entry-level license: `"CC-BY-4.0"`, `"CC0-1.0"`, or `"OQMD-noncommercial"` | Per-source |
38
+ | 23 | `duplicate_group` | int64 | — | Yes (245,490 are null) | Group ID for entries with identical formula from multiple sources. Non-null only for members of duplicate groups. | Computed |
39
+ | 24 | `source_weight` | double | — | No | Relative source weight for ensemble modeling (0.0–1.0). Reflects source-level confidence. | Computed |
40
+ | 25 | `total_magnetization` | double | μB | Yes (non-magnetic entries) | Total magnetic moment. 0.0 for non-magnetic systems; `null` if unavailable. | MP: `total_magnetization`; OQMD: `total_magnetization`; JARVIS: `magmom` |
41
+ | 26 | `fe_per_carrier` | string | eV/carrier | Yes | Formation energy per mobile ion carrier for battery-relevant entries. | Computed |
42
+ | 27 | `volume_per_carrier` | string | ų/carrier | Yes | Volume per mobile ion carrier. | Computed |
43
+ | 28 | `carrier_fraction` | double | — | Yes | Fraction of sites occupied by mobile ions | Computed |
44
+ | 29 | `electronic_insulation` | bool | — | No | `true` if band gap ≥ 1.0 eV (rough electronic insulation criterion) | Computed |
45
+ | 30 | `space_group_symbol` | string | — | Yes | Hermann-Mauguin space group symbol (e.g. `"P-1"`, `"Fm-3m"`) | Computed via spglib |
46
+ | 31 | `magnetic_ordering` | string | — | Yes | Magnetic ordering classification: `"NM"` (non-magnetic), `"FM"` (ferromagnetic), `"AFM"` (antiferromagnetic), `"FiM"` (ferrimagnetic), or `null` | Computed |
47
+ | 32 | `structure_json` | string | — | No | JSON-serialized pymatgen `Structure` object. Contains lattice parameters, site positions, species. | All sources |
48
+ | 33 | `ssb_screening` | string | — | No | JSON block of SSE screening fields (see SSB Screening sub-schema below). | Computed |
49
+ | 34 | `provenance` | string | — | No | JSON block of provenance tracking fields (see Provenance sub-schema below). | Computed |
50
+ | 35 | `elements` | string | — | No | JSON array of all elements present (space-separated for some sources) | All sources |
51
+ | 36 | `families` | string | — | No | JSON array of battery-relevant family classifications | Computed |
52
+ | 37 | `carrier_elements` | string | — | Yes | JSON array of mobile carrier elements (Li, Na, Mg) if present | Computed |
53
+ | 38 | `quality_flags` | string | — | Yes | JSON array of quality defect flags (empty if none) | Computed |
54
+ | 39 | `tags` | string | — | Yes | JSON array of user-facing tags (e.g. `["single_atom"]`, `["extreme_fe"]`) | Computed |
55
+ | 40 | `notes` | string | — | Yes | Free-text notes about the entry | Computed |
56
+ | 41 | `anions` | string | — | Yes | JSON array of anion elements present | Computed |
57
+ | 42 | `strict_gold` | string | — | No | Strict Gold eligibility: `"True"` or `"False"` | Computed |
58
+ | 43 | `tier_detail` | string | — | No | JSON dictionary of tier classification details | Computed |
59
+ | 44 | `tier_gates` | string | — | No | JSON dictionary of gate pass/fail flags (G0–G11) | Computed |
60
+ | 45 | `quality_sub_scores` | string | — | No | JSON dictionary of 5 quality sub-scores: geometry, dft, metadata, novelty, chemical | Computed |
61
+ | 46 | `references` | string | — | Yes | JSON array of literature references for the entry | All sources |
62
+ | 47 | `merged_sources` | string | — | Yes | JSON array of source IDs merged into this entry during deduplication | Computed |
63
+
64
+ ---
65
+
66
+ ## Sub-schemas
67
+
68
+ ### `provenance` (JSON block)
69
+
70
+ ```json
71
+ {
72
+ "source": "mp",
73
+ "source_id": "mp-12345",
74
+ "download_date": "2026-07-20",
75
+ "processed_at": "2026-07-21T18:30:00Z",
76
+ "version": "v1.0.0",
77
+ "repairs_applied": ["repair_coordinate_artifact", "repair_volume"],
78
+ "checksum": "sha256:abc123..."
79
+ }
80
+ ```
81
+
82
+ | Field | Type | Description |
83
+ |-------|------|-------------|
84
+ | `source` | string | Source database name |
85
+ | `source_id` | string | Original ID in source |
86
+ | `download_date` | string | Date when raw data was extracted from source API (ISO 8601) |
87
+ | `processed_at` | string | When the entry was processed through the pipeline (ISO 8601) |
88
+ | `version` | string | Dataset version that created this entry |
89
+ | `repairs_applied` | array of strings | List of all repairs applied to this entry (empty if none) |
90
+ | `checksum` | string | SHA-256 checksum of the entry's structure + properties JSON blob |
91
+
92
+ ### `ssb_screening` (JSON block)
93
+
94
+ ```json
95
+ {
96
+ "sse_candidate_score": 12,
97
+ "gates_passed": ["thermo_stability", "electronic_insulation"],
98
+ "thermo_stability_flag": true,
99
+ "stability_window_low_V": 0.0,
100
+ "stability_window_high_V": 5.2,
101
+ "window_width_V": 5.2,
102
+ "interfacial_reaction_energy_vs_Li_eV_atom": 0.15,
103
+ "passivating_interphase": true,
104
+ "bulk_modulus_GPa": 35.2,
105
+ "shear_modulus_GPa": 18.1,
106
+ "dendrite_suppression_flag": true,
107
+ "bvse_migration_barrier_eV": 0.42,
108
+ "has_bvse_barrier": true,
109
+ "bvse_skip_reason": null,
110
+ "cavd_channel_dimensionality": null
111
+ }
112
+ ```
113
+
114
+ | Field | Type | Coverate | Description |
115
+ |-------|------|----------|-------------|
116
+ | `sse_candidate_score` | int | 100% | 5-gate composite score (10 base + 1 per gate passed). Range 10–15. |
117
+ | `gates_passed` | array | 100% | List of passed gate names |
118
+ | `thermo_stability_flag` | bool | 99.8% | True if E_hull < 0.025 eV/atom |
119
+ | `stability_window_low_V` | float | 0.7% | Lower bound of electrochemical stability window vs Li/Li+ |
120
+ | `stability_window_high_V` | float | 0.7% | Upper bound of electrochemical stability window |
121
+ | `window_width_V` | float | 0.7% | Width of stability window |
122
+ | `interfacial_reaction_energy_vs_Li_eV_atom` | float | 14.9% | Decomposition energy vs Li metal |
123
+ | `passivating_interphase` | bool | 14.9% | True if reaction products are electronically insulating |
124
+ | `bulk_modulus_GPa` | float | 100% | Geometric density-based proxy (not DFT elastic tensor) |
125
+ | `shear_modulus_GPa` | float | 100% | Geometric density-based proxy (not DFT elastic tensor) |
126
+ | `dendrite_suppression_flag` | bool | 100% | True if shear_modulus > 6 GPa |
127
+ | `bvse_migration_barrier_eV` | float | 23% Li/Na | BVSE migration barrier estimate via bvlain v0.25.1 |
128
+ | `has_bvse_barrier` | bool | 100% | True if BVSE barrier was successfully computed |
129
+ | `bvse_skip_reason` | string | 77% Li/Na | Reason BVSE was skipped (e.g. "no BV params for composition", "max_sites_exceeded") |
130
+ | `cavd_channel_dimensionality` | string | 0% | CAVD channel dimensionality (0D/1D/2D/3D). Not yet computed — see CHANGELOG. |
131
+
132
+ ---
133
+
134
+ ## Null Semantics
135
+
136
+ | Null Pattern | Meaning | Examples |
137
+ |-------------|---------|----------|
138
+ | `null` in `band_gap` | Calculation did not converge | 151 OQMD entries |
139
+ | `null` in `energy_above_hull` | Chemical system has <3 entries (sparse) or source does not compute hull distance | 8,933 JARVIS entries |
140
+ | `null` in `space_group` | spglib failed (disordered, too few atoms) | 16 OQMD entries |
141
+ | `null` in `duplicate_group` | Entry has no duplicates across sources | 245,490 entries |
142
+ | `null` in `total_magnetization` | Non-magnetic system or field not computed | Varies |
143
+ | `null` in `ssb_screening.*` | Screening field not computed for this entry | CAVD (0%), stability windows (99.3%) |
144
+
145
+ **Never null:** `source`, `source_id`, `formula`, `structured_formula`, `formation_energy_per_atom`, `nsites`, `nelements`, `volume`, `density`, `mobile_ion`, `tier`, `quality_score`, `is_experimental`, `is_metal`, `sse_family`, `license`, `source_weight`, `electronic_insulation`, `structure_json`, `ssb_screening`, `provenance`, `elements`, `families`, `strict_gold`, `tier_detail`, `tier_gates`, `quality_sub_scores`.
146
+
147
+ ---
148
+
149
+ ## Units Reference
150
+
151
+ | Property | Unit | Notes |
152
+ |----------|------|-------|
153
+ | Formation energy | eV/atom | Per-atom, not per-formula-unit |
154
+ | Energy above hull | eV/atom | Per-atom |
155
+ | Band gap | eV | Electronic band gap (GGA-level) |
156
+ | Volume | ų | Conventional cell |
157
+ | Density | g/cm³ | Computed from elements + volume |
158
+ | Total magnetization | μB | Bohr magnetons |
159
+ | BVSE migration barrier | eV | SoftBV percolation method |
160
+ | Stability window | V vs Li/Li+ | Grand potential phase diagram |
161
+ | Interfacial reaction energy | eV/atom | Decomposition energy vs Li |
162
+ | Bulk/shear modulus | GPa | Geometric proxy (not DFT) |
163
+
164
+ ---
165
+
166
+ ## Source DFT Parameter Heterogeneity
167
+
168
+ | Parameter | MP | OQMD | JARVIS-DFT |
169
+ |-----------|-----|------|------------|
170
+ | Functional | PBE (Perdew-Burke-Ernzerhof) | PBE | PBE (OPT variants for some) |
171
+ | U correction | Hubbard U for transition metals | Custom U values (differs from MP) | No U correction (default PBE) |
172
+ | Pseudopotentials | PAW (VASP-supplied) | PAW (VASP-supplied, older set) | USPP / PAW (mixed) |
173
+ | Encodings | ENCUT = 520 eV (default +30% for some) | ENCUT = 520 eV (standard) | ENCUT varies (USPP-compatible) |
174
+ | k-point density | KSPACING ~0.22 Å⁻¹ | Variable (denser for small cells) | Variable |
175
+ | Band gap method | PBE (indirect) | PBE | PBE + OPT / TB-mBJ (for some) |
176
+
177
+ **Important:** Direct comparison of `formation_energy_per_atom`, `energy_above_hull`, or `band_gap` across sources is scientifically questionable due to differing DFT parameters. Cross-source agreement statistics are published in `dataset/statistics/cross_source_agreement.json`. See `docs/limitations.md` for guidance on source-aware analysis.
178
+
179
+ ---
180
+
181
+ ## Version History
182
+
183
+ | Version | File | Notes |
184
+ |---------|------|-------|
185
+ | v1.0.0 | `entries_v4_typed.parquet` | Current. Typed Parquet with proper int/float/bool columns. 47 columns. |
186
+ | v0.3.0 | `entries_v3.parquet` | Previous. Un-typed Parquet, same 47 columns. |
187
+ | v0.0.0 | `entries_final_v3.json` | Original JSON store (1.6 GB). Deprecated. |
188
+
189
+ **Migration v3 → v4:** Column names and semantics are identical. v4 adds explicit PyArrow schema typing (int64, float64, bool) to enable HF Dataset viewer compatibility and streaming. No data values changed.