@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
@@ -13,7 +13,7 @@ repos:
13
13
  name: Regenerate data modules classes from static assets
14
14
  # yamllint disable rule:line-length
15
15
  entry: |
16
- bash -c 'if [ "$(git diff --cached --name-only | grep "schema/")" ]; then echo "Skipping model generation because schemas were not changed."; exit 0; fi && \
16
+ bash -c 'if [ ! "$(git diff --cached --name-only | grep schema)" ]; then echo "Skipping model generation because schemas were not changed."; exit 0; fi && \
17
17
  datamodel-codegen \
18
18
  --input ./dist/js/schema/ \
19
19
  --input-file-type jsonschema \
@@ -24,7 +24,8 @@ repos:
24
24
  --enable-version-header \
25
25
  --use-title-as-name \
26
26
  --class-name ESSE \
27
- --disable-timestamp && \
27
+ --disable-timestamp \
28
+ --use-default && \
28
29
  # Move 3rd party modules to a separate directory with a PEP8 compliant name
29
30
  rm -rf ./dist/py/third_party && \
30
31
  mv ./dist/py/3pse ./dist/py/third_party'
@@ -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
+ }
@@ -27,6 +27,9 @@
27
27
  "$schema": "http://json-schema.org/draft-07/schema#",
28
28
  "title": "entity reference schema",
29
29
  "type": "object",
30
+ "required": [
31
+ "_id"
32
+ ],
30
33
  "properties": {
31
34
  "_id": {
32
35
  "description": "entity identity",
@@ -26,6 +26,9 @@
26
26
  "$schema": "http://json-schema.org/draft-07/schema#",
27
27
  "title": "entity reference schema",
28
28
  "type": "object",
29
+ "required": [
30
+ "_id"
31
+ ],
29
32
  "properties": {
30
33
  "_id": {
31
34
  "description": "entity identity",
@@ -30,6 +30,9 @@
30
30
  "$schema": "http://json-schema.org/draft-07/schema#",
31
31
  "title": "entity reference schema",
32
32
  "type": "object",
33
+ "required": [
34
+ "_id"
35
+ ],
33
36
  "properties": {
34
37
  "_id": {
35
38
  "description": "entity identity",
@@ -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
+ "required": [
7
+ "c",
8
+ "h",
9
+ "e",
10
+ "G",
11
+ "me",
12
+ "eps0",
13
+ "mu0"
14
+ ],
15
+ "properties": {
16
+ "c": {
17
+ "description": "speed of light in vacuum, \"units\": \"m/s\"",
18
+ "type": "number",
19
+ "default": 299792458
20
+ },
21
+ "h": {
22
+ "description": "Planck constant, \"units\": \"J s\"",
23
+ "type": "number",
24
+ "default": 6.62607015e-34
25
+ },
26
+ "e": {
27
+ "description": "elementary charge, \"units\": \"C\"",
28
+ "type": "number",
29
+ "default": 1.602176634e-19
30
+ },
31
+ "G": {
32
+ "description": "Newtonian constant of gravitation, \"units\": \"m^3/kg/s^2\"",
33
+ "type": "number",
34
+ "default": 6.6743015e-11
35
+ },
36
+ "me": {
37
+ "description": "electron mass \"units\": \"kg\"",
38
+ "type": "number",
39
+ "default": 9.109383713928e-31
40
+ },
41
+ "eps0": {
42
+ "description": "vacuum permittivity, \"units\": \"F/m\"",
43
+ "type": "number",
44
+ "default": 8.854187818814e-12
45
+ },
46
+ "mu0": {
47
+ "description": "vacuum permeability, \"units\": \"N/A^2\"",
48
+ "type": "number",
49
+ "default": 0.000001256637061272
50
+ }
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"
@@ -31,15 +31,14 @@
31
31
  "enum": [
32
32
  "km",
33
33
  "m",
34
- "pm",
34
+ "cm",
35
+ "mm",
36
+ "um",
35
37
  "nm",
36
38
  "angstrom",
37
39
  "a.u.",
38
40
  "bohr",
39
- "fractional",
40
- "crystal",
41
- "cartesian",
42
- "alat"
41
+ "pm"
43
42
  ]
44
43
  },
45
44
  "value": {
@@ -15,47 +15,6 @@
15
15
  "systemName": {
16
16
  "type": "string"
17
17
  },
18
- "consistencyChecks": {
19
- "type": "array",
20
- "items": {
21
- "$schema": "http://json-schema.org/draft-07/schema#",
22
- "title": "consistency check",
23
- "type": "object",
24
- "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.",
25
- "required": [
26
- "key",
27
- "name",
28
- "severity",
29
- "message"
30
- ],
31
- "properties": {
32
- "key": {
33
- "type": "string",
34
- "description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
35
- },
36
- "name": {
37
- "enum": [
38
- "default",
39
- "atomsTooClose",
40
- "atomsOverlap"
41
- ],
42
- "description": "Name of the consistency check that is performed, which is listed in an enum."
43
- },
44
- "severity": {
45
- "enum": [
46
- "info",
47
- "warning",
48
- "error"
49
- ],
50
- "description": "Severity level of the problem, which is used in UI to differentiate."
51
- },
52
- "message": {
53
- "type": "string",
54
- "description": "Message generated by the consistency check describing the problem."
55
- }
56
- }
57
- }
58
- },
59
18
  "schemaVersion": {
60
19
  "description": "entity's schema version. Used to distinct between different schemas.",
61
20
  "type": "string",
@@ -15,47 +15,6 @@
15
15
  "systemName": {
16
16
  "type": "string"
17
17
  },
18
- "consistencyChecks": {
19
- "type": "array",
20
- "items": {
21
- "$schema": "http://json-schema.org/draft-07/schema#",
22
- "title": "consistency check",
23
- "type": "object",
24
- "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.",
25
- "required": [
26
- "key",
27
- "name",
28
- "severity",
29
- "message"
30
- ],
31
- "properties": {
32
- "key": {
33
- "type": "string",
34
- "description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
35
- },
36
- "name": {
37
- "enum": [
38
- "default",
39
- "atomsTooClose",
40
- "atomsOverlap"
41
- ],
42
- "description": "Name of the consistency check that is performed, which is listed in an enum."
43
- },
44
- "severity": {
45
- "enum": [
46
- "info",
47
- "warning",
48
- "error"
49
- ],
50
- "description": "Severity level of the problem, which is used in UI to differentiate."
51
- },
52
- "message": {
53
- "type": "string",
54
- "description": "Message generated by the consistency check describing the problem."
55
- }
56
- }
57
- }
58
- },
59
18
  "schemaVersion": {
60
19
  "description": "entity's schema version. Used to distinct between different schemas.",
61
20
  "type": "string",
@@ -0,0 +1,74 @@
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
+ "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
+ "_id": {
9
+ "description": "entity identity",
10
+ "type": "string"
11
+ },
12
+ "slug": {
13
+ "description": "entity slug",
14
+ "type": "string"
15
+ },
16
+ "systemName": {
17
+ "type": "string"
18
+ },
19
+ "schemaVersion": {
20
+ "description": "entity's schema version. Used to distinct between different schemas.",
21
+ "type": "string",
22
+ "default": "2022.8.16"
23
+ },
24
+ "name": {
25
+ "description": "entity name",
26
+ "type": "string"
27
+ },
28
+ "isDefault": {
29
+ "description": "Identifies that entity is defaultable",
30
+ "type": "boolean",
31
+ "default": false
32
+ },
33
+ "metadata": {
34
+ "type": "object"
35
+ },
36
+ "consistencyChecks": {
37
+ "type": "array",
38
+ "items": {
39
+ "$schema": "http://json-schema.org/draft-07/schema#",
40
+ "title": "consistency check",
41
+ "type": "object",
42
+ "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.",
43
+ "required": [
44
+ "key",
45
+ "name",
46
+ "severity",
47
+ "message"
48
+ ],
49
+ "properties": {
50
+ "key": {
51
+ "type": "string",
52
+ "description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
53
+ },
54
+ "name": {
55
+ "type": "string",
56
+ "description": "Name of the consistency check that is performed, which is listed in an enum."
57
+ },
58
+ "severity": {
59
+ "enum": [
60
+ "info",
61
+ "warning",
62
+ "error"
63
+ ],
64
+ "description": "Severity level of the problem, which is used in UI to differentiate."
65
+ },
66
+ "message": {
67
+ "type": "string",
68
+ "description": "Message generated by the consistency check describing the problem."
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
@@ -15,47 +15,6 @@
15
15
  "systemName": {
16
16
  "type": "string"
17
17
  },
18
- "consistencyChecks": {
19
- "type": "array",
20
- "items": {
21
- "$schema": "http://json-schema.org/draft-07/schema#",
22
- "title": "consistency check",
23
- "type": "object",
24
- "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.",
25
- "required": [
26
- "key",
27
- "name",
28
- "severity",
29
- "message"
30
- ],
31
- "properties": {
32
- "key": {
33
- "type": "string",
34
- "description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
35
- },
36
- "name": {
37
- "enum": [
38
- "default",
39
- "atomsTooClose",
40
- "atomsOverlap"
41
- ],
42
- "description": "Name of the consistency check that is performed, which is listed in an enum."
43
- },
44
- "severity": {
45
- "enum": [
46
- "info",
47
- "warning",
48
- "error"
49
- ],
50
- "description": "Severity level of the problem, which is used in UI to differentiate."
51
- },
52
- "message": {
53
- "type": "string",
54
- "description": "Message generated by the consistency check describing the problem."
55
- }
56
- }
57
- }
58
- },
59
18
  "schemaVersion": {
60
19
  "description": "entity's schema version. Used to distinct between different schemas.",
61
20
  "type": "string",
@@ -15,47 +15,6 @@
15
15
  "systemName": {
16
16
  "type": "string"
17
17
  },
18
- "consistencyChecks": {
19
- "type": "array",
20
- "items": {
21
- "$schema": "http://json-schema.org/draft-07/schema#",
22
- "title": "consistency check",
23
- "type": "object",
24
- "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.",
25
- "required": [
26
- "key",
27
- "name",
28
- "severity",
29
- "message"
30
- ],
31
- "properties": {
32
- "key": {
33
- "type": "string",
34
- "description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
35
- },
36
- "name": {
37
- "enum": [
38
- "default",
39
- "atomsTooClose",
40
- "atomsOverlap"
41
- ],
42
- "description": "Name of the consistency check that is performed, which is listed in an enum."
43
- },
44
- "severity": {
45
- "enum": [
46
- "info",
47
- "warning",
48
- "error"
49
- ],
50
- "description": "Severity level of the problem, which is used in UI to differentiate."
51
- },
52
- "message": {
53
- "type": "string",
54
- "description": "Message generated by the consistency check describing the problem."
55
- }
56
- }
57
- }
58
- },
59
18
  "schemaVersion": {
60
19
  "description": "entity's schema version. Used to distinct between different schemas.",
61
20
  "type": "string",
@@ -15,47 +15,6 @@
15
15
  "systemName": {
16
16
  "type": "string"
17
17
  },
18
- "consistencyChecks": {
19
- "type": "array",
20
- "items": {
21
- "$schema": "http://json-schema.org/draft-07/schema#",
22
- "title": "consistency check",
23
- "type": "object",
24
- "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.",
25
- "required": [
26
- "key",
27
- "name",
28
- "severity",
29
- "message"
30
- ],
31
- "properties": {
32
- "key": {
33
- "type": "string",
34
- "description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
35
- },
36
- "name": {
37
- "enum": [
38
- "default",
39
- "atomsTooClose",
40
- "atomsOverlap"
41
- ],
42
- "description": "Name of the consistency check that is performed, which is listed in an enum."
43
- },
44
- "severity": {
45
- "enum": [
46
- "info",
47
- "warning",
48
- "error"
49
- ],
50
- "description": "Severity level of the problem, which is used in UI to differentiate."
51
- },
52
- "message": {
53
- "type": "string",
54
- "description": "Message generated by the consistency check describing the problem."
55
- }
56
- }
57
- }
58
- },
59
18
  "schemaVersion": {
60
19
  "description": "entity's schema version. Used to distinct between different schemas.",
61
20
  "type": "string",
@@ -15,47 +15,6 @@
15
15
  "systemName": {
16
16
  "type": "string"
17
17
  },
18
- "consistencyChecks": {
19
- "type": "array",
20
- "items": {
21
- "$schema": "http://json-schema.org/draft-07/schema#",
22
- "title": "consistency check",
23
- "type": "object",
24
- "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.",
25
- "required": [
26
- "key",
27
- "name",
28
- "severity",
29
- "message"
30
- ],
31
- "properties": {
32
- "key": {
33
- "type": "string",
34
- "description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
35
- },
36
- "name": {
37
- "enum": [
38
- "default",
39
- "atomsTooClose",
40
- "atomsOverlap"
41
- ],
42
- "description": "Name of the consistency check that is performed, which is listed in an enum."
43
- },
44
- "severity": {
45
- "enum": [
46
- "info",
47
- "warning",
48
- "error"
49
- ],
50
- "description": "Severity level of the problem, which is used in UI to differentiate."
51
- },
52
- "message": {
53
- "type": "string",
54
- "description": "Message generated by the consistency check describing the problem."
55
- }
56
- }
57
- }
58
- },
59
18
  "schemaVersion": {
60
19
  "description": "entity's schema version. Used to distinct between different schemas.",
61
20
  "type": "string",
@@ -217,6 +217,9 @@
217
217
  "$schema": "http://json-schema.org/draft-07/schema#",
218
218
  "title": "entity reference schema",
219
219
  "type": "object",
220
+ "required": [
221
+ "_id"
222
+ ],
220
223
  "properties": {
221
224
  "_id": {
222
225
  "description": "entity identity",
@@ -236,6 +239,9 @@
236
239
  "$schema": "http://json-schema.org/draft-07/schema#",
237
240
  "title": "entity reference schema",
238
241
  "type": "object",
242
+ "required": [
243
+ "_id"
244
+ ],
239
245
  "properties": {
240
246
  "_id": {
241
247
  "description": "entity identity",
@@ -255,6 +261,9 @@
255
261
  "$schema": "http://json-schema.org/draft-07/schema#",
256
262
  "title": "entity reference schema",
257
263
  "type": "object",
264
+ "required": [
265
+ "_id"
266
+ ],
258
267
  "properties": {
259
268
  "_id": {
260
269
  "description": "entity identity",
@@ -316,47 +325,6 @@
316
325
  "systemName": {
317
326
  "type": "string"
318
327
  },
319
- "consistencyChecks": {
320
- "type": "array",
321
- "items": {
322
- "$schema": "http://json-schema.org/draft-07/schema#",
323
- "title": "consistency check",
324
- "type": "object",
325
- "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.",
326
- "required": [
327
- "key",
328
- "name",
329
- "severity",
330
- "message"
331
- ],
332
- "properties": {
333
- "key": {
334
- "type": "string",
335
- "description": "Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'"
336
- },
337
- "name": {
338
- "enum": [
339
- "default",
340
- "atomsTooClose",
341
- "atomsOverlap"
342
- ],
343
- "description": "Name of the consistency check that is performed, which is listed in an enum."
344
- },
345
- "severity": {
346
- "enum": [
347
- "info",
348
- "warning",
349
- "error"
350
- ],
351
- "description": "Severity level of the problem, which is used in UI to differentiate."
352
- },
353
- "message": {
354
- "type": "string",
355
- "description": "Message generated by the consistency check describing the problem."
356
- }
357
- }
358
- }
359
- },
360
328
  "schemaVersion": {
361
329
  "description": "entity's schema version. Used to distinct between different schemas.",
362
330
  "type": "string",