﻿# OPTIMADE: species_at_sites contains species names, not guaranteed element symbols

Convert OPTIMADE structures into atomistic model inputs by resolving species names, occupancy and structural features instead of guessing atomic numbers from site labels.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-optimade-species-at-sites-lookup-not-element-symbol/
Language: en

## Resolve the site label through the declared species

The [OPTIMADE specification](https://raw.githubusercontent.com/Materials-Consortia/OPTIMADE/master/optimade.rst) maps each site to a species name, while the species definition supplies chemical symbols and concentrations. A convenient name can resemble an element symbol without defining the site's chemistry by itself. An importer that directly turns site-label strings into atomic numbers therefore bypasses an important lookup. Read the linked species record before selecting a chemical feature vector for an atomistic neural model.

## Test the adapter with a misleading label

Imagine a provider assigning a familiar-looking short name to a species whose actual chemical-symbol field describes another element. An adapter that guesses from the name can generate a perfectly shaped but chemically incorrect input. Build a diagnostic example where labels cannot be interpreted as element abbreviations, and check the resolved representation. This tests the format contract more effectively than validating only common records where species names happen to match the expected element symbols.

## Declare what happens to partial occupancy

The format can represent mixed species and vacancies. A model expecting a single fully occupied atomic identity at every coordinate does not automatically support that representation. Choose a documented transformation, a suitable occupancy-aware model or an explicit exclusion rule. Silently selecting the first listed chemical symbol turns a statistical description into a different structure. Likewise, treating a vacancy marker as an ordinary element invents a physical interpretation that the source record did not provide.

## Validate linked structural fields together

The [Python tools structure model](https://www.optimade.org/optimade-python-tools/latest/api_reference/models/structures/) checks relationships among species, site labels and coordinate counts. Preserve these linked fields through filtering and reordering. Sorting positions without the matching species-at-sites array can exchange chemical identities while leaving all lengths valid. Retain structural-feature indicators and inspect any additional representation information the selected record uses before deciding that the resulting graph is a faithful model input.

## Keep interoperability distinct from model compatibility

The [original OPTIMADE paper](https://arxiv.org/abs/2103.02068) describes a common exchange API across materials databases. Shared access does not imply that every returned structure meets every model's physical assumptions. Record provider, API version, resolved species and transformation policy with the training artifact. The existing [entity-group guide](/journal/data-guide-entity-group-split-design/) and [software reproducibility guide](/journal/software-stack-reproducibility/) support related identity and experiment context. A reliable adapter explains how source site semantics become model features, including structures it cannot represent without changing their meaning.
