Molecular Formula
ID molformula
DatatypeNot PII
Molecular formulae indicate the simple numbers of each type of atom in a molecule of a molecular substance.
- Categories
- Chemistry
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- AutoType benchmark
chemical- Schema.org
molecularFormula- Wikidata
- P274
- Quality
- 73/100 · missing: anchored regexp, second example, negative example, translation
- Metacrafter rules
- 1 rule (1 by field name, 0 by value)
molformulabyfieldnamefield, common/chemistry.yaml
- Supported by tools
- Auto-Type, metacrafter
Regular expression
([αβγδφωλμπ]-)?([([]*[A-Z☐][ub]?[a-z]?[₁₂₃₄₅₆₇₈₉₀.]*(\)?[¹²³⁴⁵⁶⁷⁸⁹⁰]*[⁺⁻]?)?[\])|,₁₂₃₄₅₆₇₈₉₀]*(·\(?[-0-9.]*n?\)?)?)+
Python re syntax. Not anchored: it can match inside longer text.
Examples
| Value | Description |
|---|---|
| H₂O | water |
Sources
- wikipedia: https://en.wikipedia.org/wiki/Chemical_formula
- bioschemas: https://bioschemas.org/types/MolecularEntity/0.3-RELEASE-2019_09_02#molecularFormula
- schema.org: https://schema.org/molecularFormula
- wikidata: https://www.wikidata.org/wiki/Property:P274
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/molformula - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/chemistry/molformula.yamlon GitHub