@mat3ra/esse 2025.4.17-0 → 2025.4.26-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/.pre-commit-config.yaml +3 -6
  2. package/dist/js/example/core/abstract/vector_boolean_3d.json +5 -0
  3. package/dist/js/example/material.json +11 -11
  4. package/dist/js/example/properties_directory/structural/basis/atomic_coordinates.json +18 -21
  5. package/dist/js/example/properties_directory/structural/basis/atomic_elements.json +10 -0
  6. package/dist/js/example/properties_directory/structural/basis/atomic_label.json +4 -0
  7. package/dist/js/example/properties_directory/structural/basis/atomic_labels.json +10 -0
  8. package/dist/js/example/properties_directory/structural/lattice.json +11 -11
  9. package/dist/js/schema/{3pse → apse}/db/nist_jarvis/2024.3.13/atoms.json +1 -1
  10. package/dist/js/schema/{3pse → apse}/db/nist_jarvis/2024.3.13/db_entry.json +1 -1
  11. package/dist/js/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/atomic_positions.json +1 -1
  12. package/dist/js/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/atomic_species.json +1 -1
  13. package/dist/js/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/cell.json +1 -1
  14. package/dist/js/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/cell_parameters.json +1 -1
  15. package/dist/js/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/control.json +1 -1
  16. package/dist/js/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/electrons.json +1 -1
  17. package/dist/js/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/hubbard.json +1 -1
  18. package/dist/js/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/ions.json +1 -1
  19. package/dist/js/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/k_points.json +1 -1
  20. package/dist/js/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/system.json +1 -1
  21. package/dist/js/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x.json +1 -1
  22. package/dist/js/schema/core/abstract/coordinate_3d.json +11 -0
  23. package/dist/js/schema/core/abstract/kpoint.json +12 -0
  24. package/dist/js/schema/core/abstract/{3d_tensor.json → matrix_3x3.json} +2 -2
  25. package/dist/js/schema/core/abstract/{point.json → vector_3d.json} +2 -2
  26. package/dist/js/schema/core/abstract/{vector.json → vector_boolean_3d.json} +2 -12
  27. package/dist/js/schema/core/primitive/array_of_ids.json +7 -1
  28. package/dist/js/schema/core/primitive/object_with_id.json +16 -0
  29. package/dist/js/schema/core/primitive/object_with_id_and_value.json +20 -0
  30. package/dist/js/schema/core/reusable/atomic_scalars.json +6 -0
  31. package/dist/js/schema/core/reusable/atomic_string.json +21 -0
  32. package/dist/js/schema/core/reusable/atomic_vector.json +28 -0
  33. package/dist/js/schema/core/reusable/atomic_vectors.json +15 -24
  34. package/dist/js/schema/core/reusable/band_gap.json +4 -2
  35. package/dist/js/schema/material.json +113 -96
  36. package/dist/js/schema/properties_directory/non_scalar/band_gaps.json +6 -3
  37. package/dist/js/schema/properties_directory/non_scalar/stress_tensor.json +1 -1
  38. package/dist/js/schema/properties_directory/structural/atomic_forces.json +15 -24
  39. package/dist/js/schema/properties_directory/structural/basis/atomic_constraint.json +34 -0
  40. package/dist/js/schema/properties_directory/structural/basis/atomic_constraints.json +30 -45
  41. package/dist/js/schema/properties_directory/structural/basis/atomic_constraints_property.json +53 -0
  42. package/dist/js/schema/properties_directory/structural/basis/atomic_coordinate.json +18 -28
  43. package/dist/js/schema/properties_directory/structural/basis/atomic_coordinates.json +26 -59
  44. package/dist/js/schema/properties_directory/structural/basis/atomic_element.json +7 -12
  45. package/dist/js/schema/properties_directory/structural/basis/atomic_elements.json +27 -0
  46. package/dist/js/schema/properties_directory/structural/basis/atomic_label.json +27 -10
  47. package/dist/js/schema/properties_directory/structural/basis/atomic_labels.json +42 -0
  48. package/dist/js/schema/properties_directory/structural/basis/bonds.json +7 -1
  49. package/dist/js/schema/properties_directory/structural/basis/units_enum.json +10 -0
  50. package/dist/js/schema/properties_directory/structural/basis.json +63 -52
  51. package/dist/js/schema/properties_directory/structural/lattice/lattice_vectors.json +15 -40
  52. package/dist/js/schema/properties_directory/structural/lattice/units/angle_enum.json +10 -0
  53. package/dist/js/schema/properties_directory/structural/lattice/units/length_enum.json +10 -0
  54. package/dist/js/schema/properties_directory/structural/lattice/vectors/units_enum.json +10 -0
  55. package/dist/js/schema/{core/abstract/3d_vector_basis.json → properties_directory/structural/lattice/vectors.json} +19 -5
  56. package/dist/js/schema/properties_directory/structural/lattice.json +50 -44
  57. package/dist/js/schema/properties_directory/structural/magnetic_moments.json +15 -24
  58. package/dist/js/schema/properties_directory/structural/molecular_pattern.json +21 -3
  59. package/dist/js/schema/properties_directory/structural/patterns/functional_group.json +7 -1
  60. package/dist/js/schema/properties_directory/structural/patterns/ring.json +7 -1
  61. package/dist/js/schema/properties_directory/structural/patterns/special_bond.json +7 -1
  62. package/dist/js/schemas.json +1 -1
  63. package/dist/js/types.d.ts +445 -322
  64. package/dist/js/types.js +1 -1
  65. package/example/core/abstract/vector_boolean_3d.json +5 -0
  66. package/example/properties_directory/structural/basis/atomic_coordinates.json +18 -21
  67. package/example/properties_directory/structural/basis/atomic_elements.json +10 -0
  68. package/example/properties_directory/structural/basis/atomic_label.json +4 -0
  69. package/example/properties_directory/structural/basis/atomic_labels.json +10 -0
  70. package/example/properties_directory/structural/lattice.json +12 -2
  71. package/package.json +3 -3
  72. package/schema/{3pse → apse}/db/nist_jarvis/2024.3.13/atoms.json +1 -1
  73. package/schema/{3pse → apse}/db/nist_jarvis/2024.3.13/db_entry.json +1 -1
  74. package/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/atomic_positions.json +1 -1
  75. package/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/atomic_species.json +1 -1
  76. package/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/cell.json +1 -1
  77. package/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/cell_parameters.json +1 -1
  78. package/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/control.json +1 -1
  79. package/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/electrons.json +1 -1
  80. package/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/hubbard.json +1 -1
  81. package/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/ions.json +1 -1
  82. package/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/k_points.json +1 -1
  83. package/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x/system.json +1 -1
  84. package/schema/{3pse → apse}/file/applications/espresso/7.2/pw.x.json +1 -1
  85. package/schema/core/abstract/coordinate_3d.json +10 -0
  86. package/schema/core/abstract/{3d_tensor.json → matrix_3x3.json} +2 -2
  87. package/schema/core/abstract/{point.json → vector_3d.json} +2 -2
  88. package/schema/core/abstract/{vector.json → vector_boolean_3d.json} +2 -5
  89. package/schema/core/primitive/array_of_ids.json +2 -8
  90. package/schema/core/primitive/object_with_id.json +17 -0
  91. package/schema/core/primitive/object_with_id_and_value.json +22 -0
  92. package/schema/core/reusable/atomic_string.json +15 -0
  93. package/schema/core/reusable/atomic_vector.json +15 -0
  94. package/schema/core/reusable/atomic_vectors.json +1 -11
  95. package/schema/core/reusable/band_gap.json +2 -2
  96. package/schema/core/reusable/kpoint.json +11 -0
  97. package/schema/properties_directory/non-scalar/band_gaps.json +1 -1
  98. package/schema/properties_directory/non-scalar/stress_tensor.json +1 -1
  99. package/schema/properties_directory/structural/basis/atomic_constraint.json +17 -0
  100. package/schema/properties_directory/structural/basis/atomic_constraints.json +4 -11
  101. package/schema/properties_directory/structural/basis/atomic_constraints_property.json +17 -0
  102. package/schema/properties_directory/structural/basis/atomic_coordinate.json +8 -6
  103. package/schema/properties_directory/structural/basis/atomic_coordinates.json +6 -18
  104. package/schema/properties_directory/structural/basis/atomic_element.json +5 -20
  105. package/schema/properties_directory/structural/basis/atomic_elements.json +10 -0
  106. package/schema/properties_directory/structural/basis/atomic_label.json +20 -6
  107. package/schema/properties_directory/structural/basis/atomic_labels.json +10 -0
  108. package/schema/properties_directory/structural/basis/units_enum.json +10 -0
  109. package/schema/properties_directory/structural/basis.json +4 -19
  110. package/schema/properties_directory/structural/lattice/units/angle_enum.json +10 -0
  111. package/schema/properties_directory/structural/lattice/units/length_enum.json +10 -0
  112. package/schema/properties_directory/structural/lattice/units.json +18 -0
  113. package/schema/properties_directory/structural/lattice/vectors/units_enum.json +10 -0
  114. package/schema/properties_directory/structural/lattice/vectors.json +33 -0
  115. package/schema/properties_directory/structural/lattice.json +41 -10
  116. package/dist/js/example/core/abstract/3d_vector_basis.json +0 -17
  117. package/dist/js/example/core/primitive/3d_lattice.json +0 -8
  118. package/dist/js/example/properties_directory/structural/lattice/lattice_bravais.json +0 -13
  119. package/dist/js/schema/core/primitive/3d_lattice.json +0 -40
  120. package/dist/js/schema/core/reusable/atomic_strings.json +0 -19
  121. package/dist/js/schema/properties_directory/structural/lattice/lattice_bravais.json +0 -87
  122. package/example/core/abstract/3d_vector_basis.json +0 -17
  123. package/example/core/primitive/3d_lattice.json +0 -8
  124. package/example/properties_directory/structural/lattice/lattice_bravais.json +0 -13
  125. package/schema/core/abstract/3d_vector_basis.json +0 -25
  126. package/schema/core/primitive/3d_lattice.json +0 -40
  127. package/schema/core/reusable/atomic_strings.json +0 -17
  128. package/schema/properties_directory/structural/lattice/lattice_bravais.json +0 -36
  129. package/schema/properties_directory/structural/lattice/lattice_vectors.json +0 -21
  130. /package/dist/js/example/{3pse → apse}/db/nist_jarvis/2024.3.13/db_entry.json +0 -0
  131. /package/dist/js/example/{3pse → apse}/file/applications/espresso/7.2/pw.x.json +0 -0
  132. /package/dist/js/example/core/abstract/{point.json → coordinate_3d.json} +0 -0
  133. /package/dist/js/example/core/abstract/{3d_tensor.json → matrix_3x3.json} +0 -0
  134. /package/dist/js/example/core/abstract/{vector.json → vector_3d.json} +0 -0
  135. /package/dist/js/example/properties_directory/structural/basis/{atomic_constraints.json → atomic_constraints_property.json} +0 -0
  136. /package/dist/js/example/properties_directory/structural/lattice/{lattice_vectors.json → vectors.json} +0 -0
  137. /package/example/{3pse → apse}/db/nist_jarvis/2024.3.13/db_entry.json +0 -0
  138. /package/example/{3pse → apse}/file/applications/espresso/7.2/pw.x.json +0 -0
  139. /package/example/core/abstract/{point.json → coordinate_3d.json} +0 -0
  140. /package/example/core/abstract/{3d_tensor.json → matrix_3x3.json} +0 -0
  141. /package/example/core/abstract/{vector.json → vector_3d.json} +0 -0
  142. /package/example/properties_directory/structural/basis/{atomic_constraints.json → atomic_constraints_property.json} +0 -0
  143. /package/example/properties_directory/structural/lattice/{lattice_vectors.json → vectors.json} +0 -0
@@ -5,17 +5,40 @@
5
5
  "type": "object",
6
6
  "required": [
7
7
  "a",
8
- "alpha",
9
8
  "b",
10
- "beta",
11
9
  "c",
12
- "gamma",
13
- "type"
10
+ "alpha",
11
+ "beta",
12
+ "gamma"
14
13
  ],
15
14
  "properties": {
15
+ "a": {
16
+ "description": "length of the first lattice vector",
17
+ "type": "number"
18
+ },
19
+ "b": {
20
+ "description": "length of the second lattice vector",
21
+ "type": "number"
22
+ },
23
+ "c": {
24
+ "description": "length of the third lattice vector",
25
+ "type": "number"
26
+ },
27
+ "alpha": {
28
+ "description": "angle between first and second lattice vector",
29
+ "type": "number"
30
+ },
31
+ "beta": {
32
+ "description": "angle between second and third lattice vector",
33
+ "type": "number"
34
+ },
35
+ "gamma": {
36
+ "description": "angle between first and third lattice vector",
37
+ "type": "number"
38
+ },
16
39
  "vectors": {
17
40
  "$schema": "http://json-schema.org/draft-07/schema#",
18
- "title": "lattice explicit unit",
41
+ "title": "lattice vectors schema",
19
42
  "type": "object",
20
43
  "required": [
21
44
  "a",
@@ -23,21 +46,9 @@
23
46
  "c"
24
47
  ],
25
48
  "properties": {
26
- "alat": {
27
- "description": "lattice parameter for fractional coordinates",
28
- "type": "number",
29
- "default": 1
30
- },
31
- "units": {
32
- "enum": [
33
- "angstrom",
34
- "bohr"
35
- ],
36
- "default": "angstrom"
37
- },
38
49
  "a": {
39
50
  "$schema": "http://json-schema.org/draft-07/schema#",
40
- "title": "array of 3 number elements schema",
51
+ "title": "vector 3d schema",
41
52
  "type": "array",
42
53
  "minItems": 3,
43
54
  "maxItems": 3,
@@ -47,7 +58,7 @@
47
58
  },
48
59
  "b": {
49
60
  "$schema": "http://json-schema.org/draft-07/schema#",
50
- "title": "array of 3 number elements schema",
61
+ "title": "vector 3d schema",
51
62
  "type": "array",
52
63
  "minItems": 3,
53
64
  "maxItems": 3,
@@ -57,13 +68,27 @@
57
68
  },
58
69
  "c": {
59
70
  "$schema": "http://json-schema.org/draft-07/schema#",
60
- "title": "array of 3 number elements schema",
71
+ "title": "vector 3d schema",
61
72
  "type": "array",
62
73
  "minItems": 3,
63
74
  "maxItems": 3,
64
75
  "items": {
65
76
  "type": "number"
66
77
  }
78
+ },
79
+ "alat": {
80
+ "description": "lattice parameter for fractional coordinates",
81
+ "type": "number",
82
+ "default": 1
83
+ },
84
+ "units": {
85
+ "$schema": "http://json-schema.org/draft-07/schema#",
86
+ "title": "lattice vectors units enum",
87
+ "enum": [
88
+ "angstrom",
89
+ "bohr"
90
+ ],
91
+ "default": "angstrom"
67
92
  }
68
93
  }
69
94
  },
@@ -90,6 +115,7 @@
90
115
  "default": "TRI"
91
116
  },
92
117
  "units": {
118
+ "$schema": "http://json-schema.org/draft-07/schema#",
93
119
  "title": "Lattice units schema",
94
120
  "type": "object",
95
121
  "default": {
@@ -98,6 +124,8 @@
98
124
  },
99
125
  "properties": {
100
126
  "length": {
127
+ "$schema": "http://json-schema.org/draft-07/schema#",
128
+ "title": "lattice units length enum",
101
129
  "enum": [
102
130
  "angstrom",
103
131
  "bohr"
@@ -105,6 +133,8 @@
105
133
  "default": "angstrom"
106
134
  },
107
135
  "angle": {
136
+ "$schema": "http://json-schema.org/draft-07/schema#",
137
+ "title": "lattice units angle enum",
108
138
  "enum": [
109
139
  "degree",
110
140
  "radian"
@@ -112,30 +142,6 @@
112
142
  "default": "degree"
113
143
  }
114
144
  }
115
- },
116
- "a": {
117
- "description": "length of the first lattice vector",
118
- "type": "number"
119
- },
120
- "b": {
121
- "description": "length of the second lattice vector",
122
- "type": "number"
123
- },
124
- "c": {
125
- "description": "length of the third lattice vector",
126
- "type": "number"
127
- },
128
- "alpha": {
129
- "description": "angle between first and second lattice vector",
130
- "type": "number"
131
- },
132
- "beta": {
133
- "description": "angle between second and third lattice vector",
134
- "type": "number"
135
- },
136
- "gamma": {
137
- "description": "angle between first and third lattice vector",
138
- "type": "number"
139
145
  }
140
146
  }
141
147
  }
@@ -14,35 +14,26 @@
14
14
  "$schema": "http://json-schema.org/draft-07/schema#",
15
15
  "title": "atomic vectors schema",
16
16
  "type": "array",
17
- "description": "array of objects containing integer id each",
18
17
  "items": {
18
+ "$schema": "http://json-schema.org/draft-07/schema#",
19
+ "title": "atomic vector schema",
20
+ "description": "object containing integer id and value each",
19
21
  "type": "object",
22
+ "required": [
23
+ "id",
24
+ "value"
25
+ ],
20
26
  "properties": {
21
27
  "value": {
22
28
  "$schema": "http://json-schema.org/draft-07/schema#",
23
- "title": "vector schema",
24
- "oneOf": [
25
- {
26
- "$schema": "http://json-schema.org/draft-07/schema#",
27
- "title": "array of 3 number elements schema",
28
- "type": "array",
29
- "items": {
30
- "type": "number"
31
- },
32
- "minItems": 3,
33
- "maxItems": 3
34
- },
35
- {
36
- "$schema": "http://json-schema.org/draft-07/schema#",
37
- "title": "array of 3 boolean elements schema",
38
- "type": "array",
39
- "items": {
40
- "type": "boolean"
41
- },
42
- "minItems": 3,
43
- "maxItems": 3
44
- }
45
- ]
29
+ "title": "vector 3d schema",
30
+ "type": "array",
31
+ "minItems": 3,
32
+ "maxItems": 3,
33
+ "description": "value of this entry",
34
+ "items": {
35
+ "type": "number"
36
+ }
46
37
  },
47
38
  "id": {
48
39
  "description": "integer id of this entry",
@@ -18,10 +18,16 @@
18
18
  "atoms": {
19
19
  "type": "array",
20
20
  "$schema": "http://json-schema.org/draft-07/schema#",
21
- "title": "atomic ids",
21
+ "title": "array of ids",
22
22
  "description": "array of objects containing integer id each",
23
23
  "items": {
24
24
  "type": "object",
25
+ "$schema": "http://json-schema.org/draft-07/schema#",
26
+ "title": "object with id",
27
+ "description": "object containing integer id",
28
+ "required": [
29
+ "id"
30
+ ],
25
31
  "properties": {
26
32
  "isConnector": {
27
33
  "description": "whether atom connects to atoms outside of functional group.",
@@ -53,10 +59,16 @@
53
59
  "atoms": {
54
60
  "type": "array",
55
61
  "$schema": "http://json-schema.org/draft-07/schema#",
56
- "title": "atomic ids",
62
+ "title": "array of ids",
57
63
  "description": "array of objects containing integer id each",
58
64
  "items": {
59
65
  "type": "object",
66
+ "$schema": "http://json-schema.org/draft-07/schema#",
67
+ "title": "object with id",
68
+ "description": "object containing integer id",
69
+ "required": [
70
+ "id"
71
+ ],
60
72
  "properties": {
61
73
  "isConnector": {
62
74
  "description": "whether atom connects to atoms outside of functional group.",
@@ -88,10 +100,16 @@
88
100
  "atoms": {
89
101
  "type": "array",
90
102
  "$schema": "http://json-schema.org/draft-07/schema#",
91
- "title": "atomic ids",
103
+ "title": "array of ids",
92
104
  "description": "array of objects containing integer id each",
93
105
  "items": {
94
106
  "type": "object",
107
+ "$schema": "http://json-schema.org/draft-07/schema#",
108
+ "title": "object with id",
109
+ "description": "object containing integer id",
110
+ "required": [
111
+ "id"
112
+ ],
95
113
  "properties": {
96
114
  "isConnector": {
97
115
  "description": "whether atom connects to atoms outside of functional group.",
@@ -12,10 +12,16 @@
12
12
  "atoms": {
13
13
  "type": "array",
14
14
  "$schema": "http://json-schema.org/draft-07/schema#",
15
- "title": "atomic ids",
15
+ "title": "array of ids",
16
16
  "description": "array of objects containing integer id each",
17
17
  "items": {
18
18
  "type": "object",
19
+ "$schema": "http://json-schema.org/draft-07/schema#",
20
+ "title": "object with id",
21
+ "description": "object containing integer id",
22
+ "required": [
23
+ "id"
24
+ ],
19
25
  "properties": {
20
26
  "isConnector": {
21
27
  "description": "whether atom connects to atoms outside of functional group.",
@@ -12,10 +12,16 @@
12
12
  "atoms": {
13
13
  "type": "array",
14
14
  "$schema": "http://json-schema.org/draft-07/schema#",
15
- "title": "atomic ids",
15
+ "title": "array of ids",
16
16
  "description": "array of objects containing integer id each",
17
17
  "items": {
18
18
  "type": "object",
19
+ "$schema": "http://json-schema.org/draft-07/schema#",
20
+ "title": "object with id",
21
+ "description": "object containing integer id",
22
+ "required": [
23
+ "id"
24
+ ],
19
25
  "properties": {
20
26
  "isConnector": {
21
27
  "description": "whether atom connects to atoms outside of functional group.",
@@ -13,10 +13,16 @@
13
13
  "atoms": {
14
14
  "type": "array",
15
15
  "$schema": "http://json-schema.org/draft-07/schema#",
16
- "title": "atomic ids",
16
+ "title": "array of ids",
17
17
  "description": "array of objects containing integer id each",
18
18
  "items": {
19
19
  "type": "object",
20
+ "$schema": "http://json-schema.org/draft-07/schema#",
21
+ "title": "object with id",
22
+ "description": "object containing integer id",
23
+ "required": [
24
+ "id"
25
+ ],
20
26
  "properties": {
21
27
  "isConnector": {
22
28
  "description": "whether atom connects to atoms outside of functional group.",