|
11 | 11 | ANONYMOUS_ELEMENTS, |
12 | 12 | CHEMICAL_FORMULA_REGEXP, |
13 | 13 | CHEMICAL_SYMBOLS, |
| 14 | + HM_SYMBOL_REGEXP, |
14 | 15 | OptimadeField, |
15 | 16 | StrictField, |
16 | 17 | SupportLevel, |
@@ -601,6 +602,119 @@ class StructureResourceAttributes(EntryResourceAttributes): |
601 | 602 | ), |
602 | 603 | ] = None |
603 | 604 |
|
| 605 | + space_group_symbol_hall: Annotated[ |
| 606 | + str | None, |
| 607 | + OptimadeField( |
| 608 | + description="""A Hall space group symbol representing the symmetry of the structure as defined in (Hall, 1981, 1981a). |
| 609 | +
|
| 610 | +- **Type**: string |
| 611 | +
|
| 612 | +- **Requirements/Conventions**: |
| 613 | + - **Support**: OPTIONAL support in implementations, i.e., MAY be `null`. |
| 614 | + - **Query**: Support for queries on this property is OPTIONAL. |
| 615 | + - The change-of-basis operations are used as defined in the International Tables of Crystallography (ITC) Vol. B, Sect. 1.4, Appendix A1.4.2 (IUCr, 2001). |
| 616 | + - Each component of the Hall symbol MUST be separated by a single space symbol. |
| 617 | + - If there exists a standard Hall symbol which represents the symmetry it SHOULD be used. |
| 618 | + - MUST be `null` if `nperiodic_dimensions` is not equal to 3. |
| 619 | +
|
| 620 | +- **Examples**: |
| 621 | + - Space group symbols with explicit origin (the Hall symbols): |
| 622 | + - `P 2c -2ac` |
| 623 | + - `I 4bd 2ab 3` |
| 624 | + - Space group symbols with change-of-basis operations: |
| 625 | + - `P 2yb (-1/2*x+z,1/2*x,y)` |
| 626 | + - `-I 4 2 (1/2*x+1/2*y,-1/2*x+1/2*y,z)` |
| 627 | +
|
| 628 | +- **Bibliographic References**: |
| 629 | + - Hall, S. R. (1981) Space-group notation with an explicit origin. Acta Crystallographica Section A, 37, 517-525, International Union of Crystallography (IUCr), DOI: https://doi.org/10.1107/s0567739481001228 |
| 630 | + - Hall, S. R. (1981a) Space-group notation with an explicit origin; erratum. Acta Crystallographica Section A, 37, 921-921, International Union of Crystallography (IUCr), DOI: https://doi.org/10.1107/s0567739481001976 |
| 631 | + - IUCr (2001). International Tables for Crystallography vol. B. Reciprocal Space. Ed. U. Shmueli. 2-nd edition. Dordrecht/Boston/London, Kluwer Academic Publishers.""", |
| 632 | + support=SupportLevel.OPTIONAL, |
| 633 | + queryable=SupportLevel.OPTIONAL, |
| 634 | + ), |
| 635 | + ] = None |
| 636 | + |
| 637 | + space_group_symbol_hermann_mauguin: Annotated[ |
| 638 | + str | None, |
| 639 | + OptimadeField( |
| 640 | + description="""A human- and machine-readable string containing the short Hermann-Mauguin (H-M) symbol which specifies the space group of the structure in the response. |
| 641 | +
|
| 642 | +- **Type**: string |
| 643 | +
|
| 644 | +- **Requirements/Conventions**: |
| 645 | + - **Support**: OPTIONAL support in implementations, i.e., MAY be `null`. |
| 646 | + - **Query**: Support for queries on this property is OPTIONAL. |
| 647 | + - The H-M symbol SHOULD aim to convey the closest representation of the symmetry information that can be specified using the short format used in the International Tables for Crystallography vol. A (IUCr, 2005), Table 4.3.2.1 as described in the accompanying text. |
| 648 | + - The symbol MAY be a non-standard short H-M symbol. |
| 649 | + - The H-M symbol does not unambiguously communicate the axis, cell, and origin choice, and the given symbol SHOULD NOT be amended to convey this information. |
| 650 | + - To encode as character strings, the following adaptations MUST be made when representing H-M symbols given in their typesetted form: |
| 651 | + - the overbar above the numbers MUST be changed to the minus sign in front of the digit (e.g. '-2'); |
| 652 | + - subscripts that denote screw axes are written as digits immediately after the axis designator without a space (e.g. 'P 32') |
| 653 | + - the space group generators MUST be separated by a single space (e.g. 'P 21 21 2'); |
| 654 | + - there MUST be no spaces in the space group generator designation (i.e. use 'P 21/m', not the 'P 21 / m'); |
| 655 | +
|
| 656 | +- **Examples**: |
| 657 | + - `C 2` |
| 658 | + - `P 21 21 21` |
| 659 | +
|
| 660 | +- **Bibliographic References**: |
| 661 | + - IUCr (2005). International Tables for Crystallography vol. A. Space-Group Symmetry. Ed. Theo Hahn. 5-th edition. Dordrecht, Springer. |
| 662 | +""", |
| 663 | + support=SupportLevel.OPTIONAL, |
| 664 | + queryable=SupportLevel.OPTIONAL, |
| 665 | + pattern=HM_SYMBOL_REGEXP, |
| 666 | + ), |
| 667 | + ] = None |
| 668 | + |
| 669 | + space_group_symbol_hermann_mauguin_extended: Annotated[ |
| 670 | + str | None, |
| 671 | + OptimadeField( |
| 672 | + description="""A human- and machine-readable string containing the extended Hermann-Mauguin (H-M) symbol which specifies the space group of the structure in the response. |
| 673 | +
|
| 674 | +- **Type**: string |
| 675 | +
|
| 676 | +- **Requirements/Conventions**: |
| 677 | + - **Support**: OPTIONAL support in implementations, i.e., MAY be `null`. |
| 678 | + - **Query**: Support for queries on this property is OPTIONAL. |
| 679 | + - The H-M symbols SHOULD be given as specified in the International Tables for Crystallography vol. A (IUCr, 2005), Table 4.3.2.1. |
| 680 | + - The change-of-basis operation SHOULD be provided for the non-standard axis and cell choices. |
| 681 | + - The extended H-M symbol does not unambiguously communicate the origin choice, and the given symbol SHOULD NOT be amended to convey this information. |
| 682 | + - The description of the change-of-basis SHOULD follow conventions of the ITC Vol. B, Sect. 1.4, Appendix A1.4.2 (IUCr, 2001). |
| 683 | + - The same character string encoding conventions MUST be used as for the specification of the `space_group_symbol_hermann_mauguin` property. |
| 684 | +
|
| 685 | +- **Examples**: |
| 686 | + - `C 1 2 1` |
| 687 | +
|
| 688 | +- **Bibliographic References**: |
| 689 | + - IUCr (2001). International Tables for Crystallography vol. B. Reciprocal Space. Ed. U. Shmueli. 2-nd edition. Dordrecht/Boston/London, Kluwer Academic Publishers. |
| 690 | + - IUCr (2005). International Tables for Crystallography vol. A. Space-Group Symmetry. Ed. Theo Hahn. 5-th edition. Dordrecht, Springer. |
| 691 | +
|
| 692 | +""", |
| 693 | + support=SupportLevel.OPTIONAL, |
| 694 | + queryable=SupportLevel.OPTIONAL, |
| 695 | + pattern=HM_SYMBOL_REGEXP, |
| 696 | + ), |
| 697 | + ] = None |
| 698 | + |
| 699 | + space_group_it_number: Annotated[ |
| 700 | + int | None, |
| 701 | + OptimadeField( |
| 702 | + description="""Space group number which specifies the space group of the structure as defined in the International Tables for Crystallography Vol. A. (IUCr, 2005). |
| 703 | +
|
| 704 | +- **Type**: integer |
| 705 | +
|
| 706 | +- **Requirements/Conventions**: |
| 707 | + - **Support**: OPTIONAL support in implementations, i.e., MAY be `null`. |
| 708 | + - **Query**: Support for queries on this property is OPTIONAL. |
| 709 | + - The integer value MUST be between 1 and 230. |
| 710 | + - MUST be null if `nperiodic_dimensions` is not equal to 3.""", |
| 711 | + support=SupportLevel.OPTIONAL, |
| 712 | + queryable=SupportLevel.OPTIONAL, |
| 713 | + ge=1, |
| 714 | + le=230, |
| 715 | + ), |
| 716 | + ] = None |
| 717 | + |
604 | 718 | cartesian_site_positions: Annotated[ |
605 | 719 | list[Vector3D] | None, |
606 | 720 | OptimadeField( |
|
0 commit comments