-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Problem
Currently, the mp-api
does not provide a built-in filter to identify materials based on their crystal type, such as ionic crystals. While I can query materials by formula, band gap, or other properties, there is no direct way to determine whether a material is an ionic crystal. As a result, I need to manually analyze the returned data (e.g., bonding information or material classification) to identify ionic crystals, which is inefficient and impractical for large datasets.
Proposed Solution
-
Add a filter parameter:
Introduce a new filter parameter, such asionic_crystal: True/False
, in themp-api
query interface. This parameter would allow users to directly filter materials classified as ionic crystals without needing additional post-processing. -
Criteria for classification:
The classification as an "ionic crystal" could be based on existing data in the Materials Project database. For example:- Utilize the ionic bonding percentage (if available) to determine whether a material predominantly features ionic bonding.
- Leverage the structural data to infer the bonding type, as ionic crystals typically exhibit characteristic coordination environments and bonding patterns.
-
Implementation ideas:
- Incorporate a pre-existing algorithm or method for classifying materials by bonding type or crystal type.
- Alternatively, annotate materials in the database with a property indicating their crystal type (e.g., ionic, covalent, metallic, etc.), which could then be exposed as a queryable field in the API.
-
Documentation and examples:
Update the API documentation to explain how the ionic_crystal filter works and provide examples for users to understand its application.
Alternatives
No response