@mat3ra/esse 2024.12.19-1 → 2025.4.3-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 (107) hide show
  1. package/.pre-commit-config.yaml +3 -2
  2. package/dist/js/schema/core/primitive/integer_positive_single_digit.json +8 -0
  3. package/dist/js/schema/core/reference/modeling/exabyte.json +3 -0
  4. package/dist/js/schema/core/reference/modeling.json +3 -0
  5. package/dist/js/schema/core/reference.json +3 -0
  6. package/dist/js/schema/definitions/constants.json +52 -0
  7. package/dist/js/schema/definitions/units.json +41 -5
  8. package/dist/js/schema/element.json +4 -5
  9. package/dist/js/schema/in_memory_entity/base.json +0 -41
  10. package/dist/js/schema/in_memory_entity/defaultable.json +0 -41
  11. package/dist/js/schema/in_memory_entity/has_consistency_check_has_metadata_named_defaultable.json +74 -0
  12. package/dist/js/schema/in_memory_entity/named.json +0 -41
  13. package/dist/js/schema/in_memory_entity/named_defaultable.json +0 -41
  14. package/dist/js/schema/in_memory_entity/named_defaultable_has_metadata.json +0 -41
  15. package/dist/js/schema/in_memory_entity/named_defaultable_runtime_items.json +0 -41
  16. package/dist/js/schema/job/base.json +9 -41
  17. package/dist/js/schema/job.json +9 -1025
  18. package/dist/js/schema/material/consistency_check.json +40 -0
  19. package/dist/js/schema/material.json +52 -82
  20. package/dist/js/schema/project.json +0 -41
  21. package/dist/js/schema/properties_directory/elemental/atomic_radius.json +4 -5
  22. package/dist/js/schema/properties_directory/non_scalar/average_potential_profile.json +4 -5
  23. package/dist/js/schema/properties_directory/non_scalar/band_structure.json +2 -10
  24. package/dist/js/schema/properties_directory/non_scalar/phonon_dispersions.json +2 -10
  25. package/dist/js/schema/properties_directory/structural/basis/atomic_coordinates.json +4 -5
  26. package/dist/js/schema/properties_directory/structural/basis/atomic_label.json +19 -0
  27. package/dist/js/schema/properties_directory/structural/basis.json +19 -50
  28. package/dist/js/schema/properties_directory/structural/lattice/lattice_bravais.json +12 -6
  29. package/dist/js/schema/properties_directory/structural/lattice/lattice_vectors.json +4 -5
  30. package/dist/js/schema/properties_directory/structural/lattice/type_enum.json +3 -2
  31. package/dist/js/schema/properties_directory/structural/lattice/type_extended_enum.json +3 -2
  32. package/dist/js/schema/properties_directory/structural/lattice.json +16 -16
  33. package/dist/js/schema/property/base.json +0 -41
  34. package/dist/js/schema/property/meta.json +0 -41
  35. package/dist/js/schema/property/raw.json +0 -41
  36. package/dist/js/schema/software/application.json +0 -41
  37. package/dist/js/schema/software/executable.json +0 -41
  38. package/dist/js/schema/software/flavor.json +0 -41
  39. package/dist/js/schema/software/template.json +0 -41
  40. package/dist/js/schema/software_directory/ml/unit/execution/evaluate/cross_validate.json +0 -164
  41. package/dist/js/schema/software_directory/ml/unit/execution/initialize.json +0 -164
  42. package/dist/js/schema/software_directory/ml/unit/execution/score.json +0 -164
  43. package/dist/js/schema/software_directory/ml/unit/execution/train.json +0 -164
  44. package/dist/js/schema/software_directory/ml/unit/execution.json +0 -656
  45. package/dist/js/schema/software_directory/ml/unit/processing/data_transformation/manipulation.json +0 -41
  46. package/dist/js/schema/software_directory/ml/unit/processing/data_transformation/scale_and_reduce.json +0 -41
  47. package/dist/js/schema/software_directory/ml/unit/processing/data_transformation.json +0 -41
  48. package/dist/js/schema/software_directory/ml/unit/processing/feature_selection/filter_based.json +0 -41
  49. package/dist/js/schema/software_directory/ml/unit/processing/feature_selection.json +0 -41
  50. package/dist/js/schema/software_directory/ml/unit/processing.json +0 -82
  51. package/dist/js/schema/software_directory/modeling/deepmd.json +0 -41
  52. package/dist/js/schema/software_directory/modeling/nwchem.json +0 -41
  53. package/dist/js/schema/software_directory/modeling/unit/execution.json +0 -164
  54. package/dist/js/schema/software_directory/modeling/vasp.json +0 -41
  55. package/dist/js/schema/software_directory/scripting/jupyter_lab.json +0 -41
  56. package/dist/js/schema/software_directory/scripting/python.json +0 -41
  57. package/dist/js/schema/software_directory/scripting/shell.json +0 -41
  58. package/dist/js/schema/software_directory/scripting/unit/execution.json +0 -164
  59. package/dist/js/schema/system/_material.json +3 -0
  60. package/dist/js/schema/system/_parent_job.json +3 -0
  61. package/dist/js/schema/system/_project.json +3 -0
  62. package/dist/js/schema/system/consistency_check.json +1 -5
  63. package/dist/js/schema/system/creator.json +3 -0
  64. package/dist/js/schema/system/creator_account.json +3 -0
  65. package/dist/js/schema/system/description.json +1 -1
  66. package/dist/js/schema/system/entity_reference.json +3 -0
  67. package/dist/js/schema/system/has_consistency_check.json +46 -0
  68. package/dist/js/schema/system/in_set.json +3 -0
  69. package/dist/js/schema/system/job_extended.json +6 -0
  70. package/dist/js/schema/system/owner.json +3 -0
  71. package/dist/js/schema/workflow/base.json +0 -41
  72. package/dist/js/schema/workflow/subworkflow/unit.json +0 -410
  73. package/dist/js/schema/workflow/subworkflow.json +0 -451
  74. package/dist/js/schema/workflow/unit/assertion.json +0 -41
  75. package/dist/js/schema/workflow/unit/assignment.json +0 -41
  76. package/dist/js/schema/workflow/unit/base.json +0 -41
  77. package/dist/js/schema/workflow/unit/condition.json +0 -41
  78. package/dist/js/schema/workflow/unit/execution.json +0 -164
  79. package/dist/js/schema/workflow/unit/io.json +0 -41
  80. package/dist/js/schema/workflow/unit/map.json +0 -41
  81. package/dist/js/schema/workflow/unit/processing.json +0 -41
  82. package/dist/js/schema/workflow/unit/reduce.json +0 -41
  83. package/dist/js/schema/workflow/unit/subworkflow.json +0 -41
  84. package/dist/js/schema/workflow/unit.json +0 -492
  85. package/dist/js/schema/workflow.json +0 -984
  86. package/dist/js/schemas.json +1 -1
  87. package/dist/js/types.d.ts +221 -3125
  88. package/package.json +3 -3
  89. package/schema/core/primitive/integer_positive_single_digit.json +8 -0
  90. package/schema/definitions/constants.json +52 -0
  91. package/schema/definitions/units.json +41 -5
  92. package/schema/in_memory_entity/base.json +0 -6
  93. package/schema/in_memory_entity/has_consistency_check_has_metadata_named_defaultable.json +13 -0
  94. package/schema/material/consistency_check.json +22 -0
  95. package/schema/material.json +6 -0
  96. package/schema/properties_directory/non-scalar/band_structure.json +1 -1
  97. package/schema/properties_directory/non-scalar/phonon_dispersions.json +1 -1
  98. package/schema/properties_directory/structural/basis/atomic_label.json +15 -0
  99. package/schema/properties_directory/structural/basis.json +12 -20
  100. package/schema/properties_directory/structural/lattice/lattice_bravais.json +7 -10
  101. package/schema/properties_directory/structural/lattice/type_enum.json +3 -2
  102. package/schema/properties_directory/structural/lattice/type_extended_enum.json +3 -2
  103. package/schema/properties_directory/structural/lattice.json +1 -8
  104. package/schema/system/consistency_check.json +1 -5
  105. package/schema/system/description.json +1 -1
  106. package/schema/system/entity_reference.json +2 -1
  107. package/schema/system/has_consistency_check.json +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mat3ra/esse",
3
- "version": "2024.12.19-1",
3
+ "version": "2025.4.3-0",
4
4
  "description": "Mat3ra's Excellent Source of Schemas and Examples (ESSE) for Digital Materials R&D",
5
5
  "scripts": {
6
6
  "transpile": "tsc -p tsconfig-transpile.json",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/Exabyte-io/esse",
29
29
  "devDependencies": {
30
- "@exabyte-io/eslint-config": "^2023.8.29-1",
30
+ "@exabyte-io/eslint-config": "git+https://github.com/Exabyte-io/eslint-config.git#53db65c75453137f1e7f4666371078c7cc7a5366",
31
31
  "@mat3ra/tsconfig": "^2024.6.3-0",
32
32
  "@typescript-eslint/eslint-plugin": "^5.9.1",
33
33
  "@typescript-eslint/parser": "^5.9.1",
@@ -39,7 +39,7 @@
39
39
  "eslint-import-resolver-meteor": "^0.4.0",
40
40
  "eslint-import-resolver-node": "^0.3.9",
41
41
  "eslint-plugin-import": "^2.25.3",
42
- "eslint-plugin-jsdoc": "^37.1.0",
42
+ "eslint-plugin-jsdoc": "^50.6.0",
43
43
  "eslint-plugin-jsx-a11y": "^6.5.1",
44
44
  "eslint-plugin-mui-path-imports": "0.0.15",
45
45
  "eslint-plugin-prettier": "^4.2.1",
@@ -0,0 +1,8 @@
1
+ {
2
+ "$id": "core/primitive/integer-positive-single-digit",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "integer positive single digit",
5
+ "type": "integer",
6
+ "minimum": 1,
7
+ "maximum": 9
8
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "$id": "definitions/constants",
3
+ "title": "fundamental constants",
4
+ "description": "Fundamental physical constants, 2022 NIST CODATA (https://doi.org/10.48550/arXiv.2409.03787)",
5
+ "type": "object",
6
+ "properties": {
7
+ "c": {
8
+ "description": "speed of light in vacuum, \"units\": \"m/s\"",
9
+ "type": "number",
10
+ "default": 299792458.0
11
+ },
12
+ "h": {
13
+ "description": "Planck constant, \"units\": \"J s\"",
14
+ "type": "number",
15
+ "default": 6.62607015e-34
16
+ },
17
+ "e": {
18
+ "description": "elementary charge, \"units\": \"C\"",
19
+ "type": "number",
20
+ "default": 1.602176634e-19
21
+ },
22
+ "G": {
23
+ "description": "Newtonian constant of gravitation, \"units\": \"m^3/kg/s^2\"",
24
+ "type": "number",
25
+ "default": 6.6743015e-11
26
+ },
27
+ "me": {
28
+ "description": "electron mass \"units\": \"kg\"",
29
+ "type": "number",
30
+ "default": 9.109383713928e-31
31
+ },
32
+ "eps0": {
33
+ "description": "vacuum permittivity, \"units\": \"F/m\"",
34
+ "type": "number",
35
+ "default": 8.854187818814e-12
36
+ },
37
+ "mu0": {
38
+ "description": "vacuum permeability, \"units\": \"N/A^2\"",
39
+ "type": "number",
40
+ "default": 1.2566370612720e-6
41
+ }
42
+ },
43
+ "required": [
44
+ "c",
45
+ "h",
46
+ "e",
47
+ "G",
48
+ "me",
49
+ "eps0",
50
+ "mu0"
51
+ ]
52
+ }
@@ -1,20 +1,48 @@
1
1
  {
2
2
  "$id": "definitions/units",
3
+ "title": "all units definitions",
4
+ "angle": {
5
+ "enum": [
6
+ "degree",
7
+ "radian"
8
+ ],
9
+ "default": "degree"
10
+ },
11
+ "coordinates_basis": {
12
+ "enum": [
13
+ "crystal",
14
+ "cartesian"
15
+ ],
16
+ "default": "crystal"
17
+ },
18
+ "coordinates_lattice_reciprocal": {
19
+ "enum": [
20
+ "crystal",
21
+ "cartesian"
22
+ ],
23
+ "default": "crystal"
24
+ },
3
25
  "length": {
4
26
  "enum": [
5
27
  "km",
6
28
  "m",
7
- "pm",
29
+ "cm",
30
+ "mm",
31
+ "um",
8
32
  "nm",
9
33
  "angstrom",
10
34
  "a.u.",
11
35
  "bohr",
12
- "fractional",
13
- "crystal",
14
- "cartesian",
15
- "alat"
36
+ "pm"
16
37
  ]
17
38
  },
39
+ "length_atomic": {
40
+ "enum": [
41
+ "angstrom",
42
+ "bohr"
43
+ ],
44
+ "default": "angstrom"
45
+ },
18
46
  "energy": {
19
47
  "enum": [
20
48
  "kJ/mol",
@@ -26,6 +54,14 @@
26
54
  "eV/atom"
27
55
  ]
28
56
  },
57
+ "energy_atomic": {
58
+ "enum": [
59
+ "eV",
60
+ "hartree",
61
+ "rydberg"
62
+ ],
63
+ "default": "eV"
64
+ },
29
65
  "surface_energy": {
30
66
  "enum": [
31
67
  "eV/A^2"
@@ -20,12 +20,6 @@
20
20
  },
21
21
  "systemName": {
22
22
  "type": "string"
23
- },
24
- "consistencyChecks": {
25
- "type": "array",
26
- "items": {
27
- "$ref": "../system/consistency_check.json"
28
- }
29
23
  }
30
24
  }
31
25
  }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$id": "in-memory-entity/has-consistency-check-has-metadata-named-defaultable",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "has consistency check has metadata named defaultable in-memory entity schema",
5
+ "allOf": [
6
+ {
7
+ "$ref": "named_defaultable_has_metadata.json"
8
+ },
9
+ {
10
+ "$ref": "../system/has_consistency_check.json"
11
+ }
12
+ ]
13
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$id": "material/consistency-check",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "material consistency check schema",
5
+ "type": "object",
6
+ "allOf": [
7
+ {
8
+ "$ref": "../system/consistency_check.json"
9
+ }
10
+ ],
11
+ "properties": {
12
+ "name": {
13
+ "type": "string",
14
+ "enum": [
15
+ "default",
16
+ "atomsTooClose",
17
+ "atomsOverlap"
18
+ ],
19
+ "description": "Name of the consistency check that is performed, which is listed in an enum."
20
+ }
21
+ }
22
+ }
@@ -49,6 +49,12 @@
49
49
  "isNonPeriodic": {
50
50
  "description": "Whether to work in the finite molecular picture (usually with atomic orbital basis)",
51
51
  "type": "boolean"
52
+ },
53
+ "consistencyChecks": {
54
+ "type": "array",
55
+ "items": {
56
+ "$ref": "material/consistency_check.json"
57
+ }
52
58
  }
53
59
  },
54
60
  "required": [
@@ -18,7 +18,7 @@
18
18
  ]
19
19
  },
20
20
  "units": {
21
- "$ref": "../../definitions/units.json#/length"
21
+ "$ref": "../../definitions/units.json#/coordinates_lattice_reciprocal"
22
22
  }
23
23
  }
24
24
  },
@@ -18,7 +18,7 @@
18
18
  ]
19
19
  },
20
20
  "units": {
21
- "$ref": "../../definitions/units.json#/length"
21
+ "$ref": "../../definitions/units.json#/coordinates_lattice_reciprocal"
22
22
  }
23
23
  }
24
24
  },
@@ -0,0 +1,15 @@
1
+ {
2
+ "$id": "properties-directory/structural/basis/atomic-label",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "atomic label",
5
+ "description": "Optional numeric label (e.g., 1, 2, as in Fe1, Fe2) to distinguish same atomic species to attach different spin magnetic moment.",
6
+ "type": "object",
7
+ "properties": {
8
+ "id": {
9
+ "type": "number"
10
+ },
11
+ "value": {
12
+ "$ref": "../../../core/primitive/integer_positive_single_digit.json"
13
+ }
14
+ }
15
+ }
@@ -10,34 +10,26 @@
10
10
  "$ref": "basis/atomic_element.json"
11
11
  }
12
12
  },
13
- "labels": {
14
- "description": "Optional numeric label (e.g., 1, 2, as in Fe1, Fe2) to distinguish same atomic species to attach different spin magnetic moment.",
15
- "type": "array",
16
- "items": {
17
- "properties": {
18
- "id": {
19
- "type": "number"
20
- },
21
- "value": {
22
- "type": "number"
23
- }
24
- }
25
- }
26
- },
27
13
  "coordinates": {
28
14
  "type": "array",
29
15
  "items": {
30
16
  "$ref": "basis/atomic_coordinate.json"
31
17
  }
32
18
  },
33
- "name": {
34
- "type": "string"
35
- },
36
19
  "units": {
37
- "type": "string"
20
+ "type": "string",
21
+ "enum": [
22
+ "crystal",
23
+ "cartesian"
24
+ ],
25
+ "default": "crystal"
38
26
  },
39
- "bonds": {
40
- "$ref": "basis/bonds.json"
27
+ "labels": {
28
+ "type": "array",
29
+ "items": {
30
+ "$ref": "basis/atomic_label.json"
31
+ },
32
+ "default": []
41
33
  }
42
34
  },
43
35
  "required": [
@@ -14,22 +14,19 @@
14
14
  "$ref": "type_enum.json"
15
15
  },
16
16
  "units": {
17
+ "title": "Lattice units schema",
17
18
  "type": "object",
18
19
  "properties": {
19
20
  "length": {
20
- "type": "string",
21
- "enum": [
22
- "angstrom",
23
- "bohr"
24
- ]
21
+ "$ref": "../../../definitions/units.json#/length_atomic"
25
22
  },
26
23
  "angle": {
27
- "type": "string",
28
- "enum": [
29
- "degree",
30
- "radian"
31
- ]
24
+ "$ref": "../../../definitions/units.json#/angle"
32
25
  }
26
+ },
27
+ "default": {
28
+ "length": "angstrom",
29
+ "angle": "degree"
33
30
  }
34
31
  }
35
32
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$id": "properties-directory/structural/lattice/type-enum",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "title": "lattice type schema",
4
+ "title": "lattice type enum",
5
5
  "type": "string",
6
6
  "enum": [
7
7
  "CUB",
@@ -18,5 +18,6 @@
18
18
  "TRI",
19
19
  "MCLC",
20
20
  "RHL"
21
- ]
21
+ ],
22
+ "default": "TRI"
22
23
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$id": "properties-directory/structural/lattice/type-extended-enum",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "title": "lattice type extended schema",
4
+ "title": "lattice type extended enum",
5
5
  "type": "string",
6
6
  "enum": [
7
7
  "BCC",
@@ -26,7 +26,8 @@
26
26
  "RHL-2",
27
27
  "TET",
28
28
  "TRI_1a",
29
+ "TRI_1b",
29
30
  "TRI_2a",
30
- "TRI_1b"
31
+ "TRI_2b"
31
32
  ]
32
33
  }
@@ -14,12 +14,5 @@
14
14
  {
15
15
  "$ref": "lattice/lattice_bravais.json"
16
16
  }
17
- ],
18
- "properties": {
19
- "name": {
20
- "enum": [
21
- "lattice"
22
- ]
23
- }
24
- }
17
+ ]
25
18
  }
@@ -10,11 +10,7 @@
10
10
  "description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
11
11
  },
12
12
  "name": {
13
- "enum": [
14
- "default",
15
- "atomsTooClose",
16
- "atomsOverlap"
17
- ],
13
+ "type": "string",
18
14
  "description": "Name of the consistency check that is performed, which is listed in an enum."
19
15
  },
20
16
  "severity": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$id": "system/description",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "title": "extended base entity schema",
4
+ "title": "Description schema",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "description": {
@@ -16,5 +16,6 @@
16
16
  "description": "entity slug",
17
17
  "type": "string"
18
18
  }
19
- }
19
+ },
20
+ "required": ["_id"]
20
21
  }
@@ -0,0 +1,16 @@
1
+ {
2
+ "$id": "system/has-consistency-check",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Has consistency check schema",
5
+ "type": "object",
6
+ "description": "The output of consistency checks performed on data adhering to JSON schema, but inconsistent with scientific or logical rules, to show problems in UI.",
7
+ "properties": {
8
+ "consistencyChecks": {
9
+ "type": "array",
10
+ "items": {
11
+ "$ref": "consistency_check.json"
12
+ }
13
+ }
14
+ }
15
+
16
+ }