You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Data enrichment sources: Materials Project, Wikidata, NIST, etc. #36
Several external databases can enrich mat's TOML data at curation time — adding physical properties, cross-references,
or validation data. These are NOT runtime dependencies. They're
tools that run once during data curation, and the results get
committed to the TOMLs.
SPARQL against query.wikidata.org for the 7 base metals (Al, Cu, Ti, W, Pb, brass, stainless)
Cross-checks density (P2054) and melting_point (P2101) against mat's TOML values
Normalizes units (g/cm³ ↔ kg/m³, K ↔ °C)
Flags relative divergence >5% per cell
No runtime impact — lives in scripts/, pulls in only requests via a new scripts/requirements-curation.txt. mat's runtime deps are untouched.
First-run findings
aluminum OK ours=2.7 wd=2.7 Δ=0 (0.0%)
copper OK ours=8.96 wd=8.94 Δ=0.02 (0.2%)
tungsten DIFF ours=19.3 wd=7.2 Δ=12.1 (62.7%) ← Wikidata wrong
lead OK ours=11.34 wd=11.34 Δ=0 (0.0%)
brass OK ours=8.5 wd=8.56 Δ=0.06 (0.7%)
titanium wd missing
stainless wd missing
Tungsten divergence is a Wikidata data-quality issue (pure W is 19.25 g/cm³, Wikidata has 7.2 with NormalRank only). The tool correctly surfaces it for review rather than auto-merging — this is exactly the behavior we want.
Checkbox update (from the issue body)
Survey which sources have usable APIs + acceptable licenses → Wikidata validated (CC0, no auth, SPARQL works)
Prototype one enrichment script → Wikidata for metals
Document the curation workflow in CONTRIBUTING.md
Track provenance in TOML comments or a metadata field
Next candidates (pick one next round):
PubChem for plastic chemical properties (formula / CAS cross-check)
KittyCAD/material-properties for mechanical props cross-check on alloys
Decide on a [source] or comment convention for provenance tracking
Activity
gerchowl commentedon Apr 18, 2026
Progress — first prototype landed:
scripts/enrich_from_wikidata.py(commit b649e87).What it does
query.wikidata.orgfor the 7 base metals (Al, Cu, Ti, W, Pb, brass, stainless)density(P2054) andmelting_point(P2101) against mat's TOML valuesNo runtime impact — lives in
scripts/, pulls in onlyrequestsvia a newscripts/requirements-curation.txt. mat's runtime deps are untouched.First-run findings
Tungsten divergence is a Wikidata data-quality issue (pure W is 19.25 g/cm³, Wikidata has 7.2 with NormalRank only). The tool correctly surfaces it for review rather than auto-merging — this is exactly the behavior we want.
Checkbox update (from the issue body)
Next candidates (pick one next round):
[source]or comment convention for provenance trackingfeat: Wikidata enrichment script for metals (#36 prototype)
docs: curation workflow + provenance convention
feat!: 3.0 vis cutover — `properties.pbr` removed, `.vis` canonical, …