$$schema: "https://schemas.optimade.org/meta/v1.2/optimade/property_definition" $id: "https://schemas.optimade.org/defs/v1.2/properties/optimade/structures/nelements" title: "number of elements" x-optimade-type: "integer" x-optimade-definition: label: "nelements_optimade_structures" kind: "property" version: "1.2.0" format: "1.2" name: "nelements" type: - "integer" - "null" description: |- Number of different elements in the structure as an integer. **Requirements/Conventions**: - MUST be equal to the lengths of the list properties elements and elements_ratios, if they are provided. **Querying**: - Queries on this property can equivalently be formulated using `elements LENGTH`. - A filter that matches structures that have exactly 4 elements: `nelements=4`. - A filter that matches structures that have between 2 and 7 elements: `nelements>=2 AND nelements<=7`. examples: - 3 x-optimade-unit: "dimensionless" x-optimade-requirements: support: "should" sortable: false query-support: "all mandatory"