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
- 83/100 · missing: 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]|[a-z])?[₁₂₃₄₅₆₇₈₉₀.]*(?:\)?(?:[¹²³⁴⁵⁶⁷⁸⁹⁰]+[⁺⁻]?|[⁺⁻])[\])|,₁₂₃₄₅₆₇₈₉₀]*|[\])|,][\])|,₁₂₃₄₅₆₇₈₉₀]*)?(?:·\(?[-0-9.]*n?\)?)?)+$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| H₂O | water |
Sources
- wikipedia: Chemical formula (en.wikipedia.org)
- bioschemas: bioschemas.org/types/MolecularEntity/0.3-RELEASE-2019_09_02
- schema.org: schema.org/molecularFormula
- wikidata: wikidata.org/wiki/Property:P274
Use this record
- Page URL:
https://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