Skip to content

Integrate Wikidata (CC0) — SPARQL bulk fetch for elements + compounds #158

Closed

Description

@gerchowl

Wikidata QIDs are CC0 — redistribute freely with QID citation. Coverage: ~all 118 elements, common compounds, some plastics; patchy for engineering alloys.

Key property QIDs:

  • P2054 density, P2101 melting point, P2102 boiling point
  • P2153 Young's modulus, P2068 thermal conductivity
  • P2055 electrical resistivity, P2614 refractive index
  • P2056 heat capacity, P1088 Mohs hardness

Endpoint: https://query.wikidata.org/sparql. Pattern:

SELECT ?material ?density WHERE {
  ?material wdt:P31/wdt:P279* wd:Q11427 ; wdt:P2054 ?density
}

Action: write a script in scripts/enrich_from_wikidata.py (already exists for base metals) extending coverage. Tag _sources entries with license = "CC0" and wikidata = "Q...".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    data-source

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions