| 1 |
$$schema: "https://schemas.optimade.org/meta/v1.2/optimade/property_definition" |
| 2 |
$id: "https://schemas.optimade.org/defs/v1.2/properties/optimade/structures/nelements" |
| 3 |
title: "number of elements" |
| 4 |
x-optimade-type: "integer" |
| 5 |
x-optimade-definition: |
| 6 |
label: "nelements_optimade_structures" |
| 7 |
kind: "property" |
| 8 |
version: "1.2.0" |
| 9 |
format: "1.2" |
| 10 |
name: "nelements" |
| 11 |
type: |
| 12 |
- "integer" |
| 13 |
- "null" |
| 14 |
description: |- |
| 15 |
Number of different elements in the structure as an integer. |
| 16 |
|
| 17 |
**Requirements/Conventions**: |
| 18 |
|
| 19 |
- MUST be equal to the lengths of the list properties elements and elements_ratios, if they are provided. |
| 20 |
|
| 21 |
**Querying**: |
| 22 |
|
| 23 |
- Queries on this property can equivalently be formulated using `elements LENGTH`. |
| 24 |
- A filter that matches structures that have exactly 4 elements: `nelements=4`. |
| 25 |
- A filter that matches structures that have between 2 and 7 elements: `nelements>=2 AND nelements<=7`. |
| 26 |
examples: |
| 27 |
- 3 |
| 28 |
x-optimade-unit: "dimensionless" |
| 29 |
x-optimade-requirements: |
| 30 |
support: "should" |
| 31 |
sortable: false |
| 32 |
query-support: "all mandatory" |