nmdc-schema 11.15.1__tar.gz → 11.16.0__tar.gz

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 (129) hide show
  1. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/PKG-INFO +1 -1
  2. nmdc_schema-11.16.0/nmdc_schema/migrators/migrator_from_11_14_0_to_11_15_1.py +12 -0
  3. nmdc_schema-11.16.0/nmdc_schema/migrators/migrator_from_11_15_1_to_11_16_0.py +28 -0
  4. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/nmdc.py +12 -9
  5. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/nmdc.schema.json +11 -4
  6. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/nmdc_materialized_patterns.json +14 -1
  7. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/nmdc_materialized_patterns.schema.json +13 -6
  8. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/nmdc_materialized_patterns.yaml +11 -1
  9. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/nmdc_pydantic.py +4 -3
  10. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/pyproject.toml +1 -1
  11. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/LICENSE +0 -0
  12. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/README.md +0 -0
  13. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/README.md +0 -0
  14. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/__init__.py +0 -0
  15. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/anyuri_strings_to_iris.py +0 -0
  16. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/dump_single_modality.py +0 -0
  17. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/get_json_schema.py +0 -0
  18. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/get_nmdc_view.py +0 -0
  19. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/gold-to-mixs.sssom.tsv +0 -0
  20. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/id_helpers.py +0 -0
  21. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migration_recursion.py +0 -0
  22. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/.docker/.env.example +0 -0
  23. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/.docker/docker-compose.yaml +0 -0
  24. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/.docker/mongoKeyFile +0 -0
  25. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/.docker/mongo_init/initialize_replica_set.sh +0 -0
  26. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/.docker/wait-for-it.sh +0 -0
  27. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/README.md +0 -0
  28. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/__init__.py +0 -0
  29. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/adapters/adapter_base.py +0 -0
  30. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/adapters/dictionary_adapter.py +0 -0
  31. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/adapters/mongo_adapter.py +0 -0
  32. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/adapters/test_dictionary_adapter.py +0 -0
  33. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/adapters/test_mongo_adapter.py +0 -0
  34. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/assets/migrator_from_10_2_0_to_11_0_0_part_08/instrument_set.yaml +0 -0
  35. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/assets/migrator_from_11_7_to_11_8/data_category_map.yaml +0 -0
  36. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/assets/migrator_from_8_1_to_9_0/study_dois_changes.yaml +0 -0
  37. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/assets/migrator_from_9_1_to_9_2/websites_dois.yaml +0 -0
  38. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/cli/README.md +0 -0
  39. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/cli/__init__.py +0 -0
  40. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/cli/create_migrator.py +0 -0
  41. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/cli/migrator.py.template +0 -0
  42. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/cli/run_migrator.py +0 -0
  43. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/helpers.py +0 -0
  44. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migration_reporter.py +0 -0
  45. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_base.py +0 -0
  46. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_10_0_0_to_10_1_2.py +0 -0
  47. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_10_2_0_to_11_0_0.py +0 -0
  48. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_10_3_0_to_10_4_0.py +0 -0
  49. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_10_4_0_to_10_5_4.py +0 -0
  50. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_10_5_4_to_10_5_5.py +0 -0
  51. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_10_5_5_to_10_5_6.py +0 -0
  52. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_10_5_6_to_10_6_0.py +0 -0
  53. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_10_6_0_to_10_7_0.py +0 -0
  54. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_0_3_to_11_1_0.py +0 -0
  55. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_10_0_to_11_11_0.py +0 -0
  56. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_11_0_to_11_13_0.py +0 -0
  57. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_13_0_to_11_14_0.py +0 -0
  58. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_1_0_to_11_2_0.py +0 -0
  59. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_3_0_to_11_4_0.py +0 -0
  60. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_4_0_to_11_5_0.py +0 -0
  61. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_5_0_to_11_5_1.py +0 -0
  62. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_5_1_to_11_6_0.py +0 -0
  63. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_6_0_to_11_6_1.py +0 -0
  64. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_6_1_to_11_7_0.py +0 -0
  65. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_7_0_to_11_8_0.py +0 -0
  66. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_8_0_to_11_9_0.py +0 -0
  67. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_11_9_1_to_11_10_0.py +0 -0
  68. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_1_0_0_to_EXAMPLE.py +0 -0
  69. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_7_7_2_to_7_8_0.py +0 -0
  70. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_7_8_0_to_8_0_0.py +0 -0
  71. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_8_0_to_8_1.py +0 -0
  72. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_8_1_to_9_0.py +0 -0
  73. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_9_1_to_9_2.py +0 -0
  74. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/migrator_from_9_3_to_10_0.py +0 -0
  75. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/README.md +0 -0
  76. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/__init__.py +0 -0
  77. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_01.py +0 -0
  78. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_02.py +0 -0
  79. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_03.py +0 -0
  80. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_04.py +0 -0
  81. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_05.py +0 -0
  82. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_06.py +0 -0
  83. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_07.py +0 -0
  84. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_08.py +0 -0
  85. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_09.py +0 -0
  86. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_10.py +0 -0
  87. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_11.py +0 -0
  88. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_12.py +0 -0
  89. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_13.py +0 -0
  90. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_14.py +0 -0
  91. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_15.py +0 -0
  92. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_10_2_0_to_11_0_0/migrator_from_10_2_0_to_11_0_0_part_16.py +0 -0
  93. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_0_3_to_11_1_0/__init__.py +0 -0
  94. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_0_3_to_11_1_0/migrator_from_11_0_3_to_11_1_0_part_1.py +0 -0
  95. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_0_3_to_11_1_0/migrator_from_11_0_3_to_11_1_0_part_2.py +0 -0
  96. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_0_3_to_11_1_0/migrator_from_11_0_3_to_11_1_0_part_3.py +0 -0
  97. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_10_0_to_11_11_0/__init__.py +0 -0
  98. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_10_0_to_11_11_0/migrator_from_11_10_0_to_11_11_0_part_1.py +0 -0
  99. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_10_0_to_11_11_0/migrator_from_11_10_0_to_11_11_0_part_2.py +0 -0
  100. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_11_0_to_11_13_0/__init__.py +0 -0
  101. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_11_0_to_11_13_0/migrator_from_11_11_0_to_11_13_0_part_1.py +0 -0
  102. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_11_0_to_11_13_0/migrator_from_11_11_0_to_11_13_0_part_2.py +0 -0
  103. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_11_0_to_11_13_0/migrator_from_11_11_0_to_11_13_0_part_3.py +0 -0
  104. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_13_0_to_11_14_0/__init__.py +0 -0
  105. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_13_0_to_11_14_0/migrator_from_11_13_0_to_11_14_0_part_1.py +0 -0
  106. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_13_0_to_11_14_0/migrator_from_11_13_0_to_11_14_0_part_2.py +0 -0
  107. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_1_0_to_11_2_0/__init__.py +0 -0
  108. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_1_0_to_11_2_0/migrator_from_11_1_0_to_11_2_0_part_1.py +0 -0
  109. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_1_0_to_11_2_0/migrator_from_11_1_0_to_11_2_0_part_2.py +0 -0
  110. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_5_1_to_11_6_0/__init__.py +0 -0
  111. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_5_1_to_11_6_0/migrator_from_11_5_1_to_11_6_0_part_1.py +0 -0
  112. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_5_1_to_11_6_0/migrator_from_11_5_1_to_11_6_0_part_2.py +0 -0
  113. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_7_0_to_11_8_0/__init__.py +0 -0
  114. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_7_0_to_11_8_0/migrator_from_11_7_0_to_11_8_0_part_1.py +0 -0
  115. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_7_0_to_11_8_0/migrator_from_11_7_0_to_11_8_0_part_2.py +0 -0
  116. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_7_0_to_11_8_0/migrator_from_11_7_0_to_11_8_0_part_3.py +0 -0
  117. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_7_0_to_11_8_0/migrator_from_11_7_0_to_11_8_0_part_4.py +0 -0
  118. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_7_0_to_11_8_0/migrator_from_11_7_0_to_11_8_0_part_5.py +0 -0
  119. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_8_0_to_11_9_0/__init__.py +0 -0
  120. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_8_0_to_11_9_0/migrator_from_11_8_0_to_11_9_0_part_1.py +0 -0
  121. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_8_0_to_11_9_0/migrator_from_11_8_0_to_11_9_0_part_2.py +0 -0
  122. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_9_1_to_11_10_0/__init__.py +0 -0
  123. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_9_1_to_11_10_0/migrator_from_11_9_1_to_11_10_0_part_1.py +0 -0
  124. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_9_1_to_11_10_0/migrator_from_11_9_1_to_11_10_0_part_2.py +0 -0
  125. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/migrators/partials/migrator_from_11_9_1_to_11_10_0/migrator_from_11_9_1_to_11_10_0_part_3.py +0 -0
  126. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/nmdc_data.py +0 -0
  127. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/nmdc_schema_validation_plugin.py +0 -0
  128. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/nmdc_version.py +0 -0
  129. {nmdc_schema-11.15.1 → nmdc_schema-11.16.0}/nmdc_schema/validate_nmdc_json.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nmdc_schema
3
- Version: 11.15.1
3
+ Version: 11.16.0
4
4
  Summary: Schema resources for the National Microbiome Data Collaborative (NMDC)
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -0,0 +1,12 @@
1
+ from nmdc_schema.migrators.migrator_base import MigratorBase
2
+
3
+
4
+ class Migrator(MigratorBase):
5
+ r"""Migrates a database between two schemas."""
6
+
7
+ _from_version = "11.14.0"
8
+ _to_version = "11.15.1"
9
+
10
+ def upgrade(self, commit_changes: bool = False) -> None:
11
+ r"""No upgrade needed."""
12
+ pass
@@ -0,0 +1,28 @@
1
+ from nmdc_schema.migrators.migrator_base import MigratorBase
2
+
3
+
4
+ class Migrator(MigratorBase):
5
+ r"""Migrates a database between two schemas."""
6
+
7
+ _from_version = "11.15.1"
8
+ _to_version = "11.16.0"
9
+
10
+ def upgrade(self, commit_changes: bool = False) -> None:
11
+ r"""Migrates the database from conforming to the original schema, to conforming to the new schema."""
12
+
13
+ self.adapter.process_each_document("workflow_execution_set", [self.make_uses_calibration_multivalued])
14
+
15
+ def make_uses_calibration_multivalued(self, workflow_execution: dict) -> dict:
16
+ r"""
17
+ If a WorkflowExecution record in the workflow_execution_set has a 'uses_calibration' field, convert it to a list containing the original value.
18
+
19
+ >>> m = Migrator()
20
+ >>> m.make_uses_calibration_multivalued({'id': 123}) # no `extraction_target` field
21
+ {'id': 123}
22
+ >>> m.make_uses_calibration_multivalued({'id': 123, 'uses_calibration': 'nmdc:calib-13-tester'}) # test: casts it as a list value
23
+ {'id': 123, 'uses_calibration': ['nmdc:calib-13-tester']}
24
+ """
25
+
26
+ if workflow_execution.get("uses_calibration") is not None:
27
+ workflow_execution["uses_calibration"] = [workflow_execution["uses_calibration"]]
28
+ return workflow_execution
@@ -1,5 +1,5 @@
1
1
  # Auto generated from nmdc.yaml by pythongen.py version: 0.0.1
2
- # Generation date: 2026-01-21T19:39:27
2
+ # Generation date: 2026-02-05T23:25:00
3
3
  # Schema: NMDC
4
4
  #
5
5
  # id: https://w3id.org/nmdc/nmdc
@@ -60,7 +60,7 @@ from linkml_runtime.linkml_model.types import Boolean, Decimal, Float, Integer,
60
60
  from linkml_runtime.utils.metamodelcore import Bool, Decimal, URIorCURIE
61
61
 
62
62
  metamodel_version = "1.7.0"
63
- version = "11.15.1"
63
+ version = "11.16.0"
64
64
 
65
65
  # Namespaces
66
66
  BFO = CurieNamespace('BFO', 'http://purl.obolibrary.org/obo/BFO_')
@@ -6231,7 +6231,7 @@ class MetabolomicsAnalysis(WorkflowExecution):
6231
6231
  processing_institution: Union[str, "ProcessingInstitutionEnum"] = None
6232
6232
  metabolomics_analysis_category: Union[str, "MetabolomicsAnalysisCategoryEnum"] = None
6233
6233
  has_metabolite_identifications: Optional[Union[Union[dict, MetaboliteIdentification], list[Union[dict, MetaboliteIdentification]]]] = empty_list()
6234
- uses_calibration: Optional[Union[str, CalibrationInformationId]] = None
6234
+ uses_calibration: Optional[Union[Union[str, CalibrationInformationId], list[Union[str, CalibrationInformationId]]]] = empty_list()
6235
6235
  was_informed_by: Optional[Union[Union[str, MassSpectrometryId], list[Union[str, MassSpectrometryId]]]] = empty_list()
6236
6236
  superseded_by: Optional[Union[str, MetabolomicsAnalysisId]] = None
6237
6237
 
@@ -6250,8 +6250,9 @@ class MetabolomicsAnalysis(WorkflowExecution):
6250
6250
  self.has_metabolite_identifications = [self.has_metabolite_identifications] if self.has_metabolite_identifications is not None else []
6251
6251
  self.has_metabolite_identifications = [v if isinstance(v, MetaboliteIdentification) else MetaboliteIdentification(**as_dict(v)) for v in self.has_metabolite_identifications]
6252
6252
 
6253
- if self.uses_calibration is not None and not isinstance(self.uses_calibration, CalibrationInformationId):
6254
- self.uses_calibration = CalibrationInformationId(self.uses_calibration)
6253
+ if not isinstance(self.uses_calibration, list):
6254
+ self.uses_calibration = [self.uses_calibration] if self.uses_calibration is not None else []
6255
+ self.uses_calibration = [v if isinstance(v, CalibrationInformationId) else CalibrationInformationId(v) for v in self.uses_calibration]
6255
6256
 
6256
6257
  if not isinstance(self.was_informed_by, list):
6257
6258
  self.was_informed_by = [self.was_informed_by] if self.was_informed_by is not None else []
@@ -6281,7 +6282,7 @@ class NomAnalysis(WorkflowExecution):
6281
6282
  started_at_time: str = None
6282
6283
  has_input: Union[Union[str, DataObjectId], list[Union[str, DataObjectId]]] = None
6283
6284
  processing_institution: Union[str, "ProcessingInstitutionEnum"] = None
6284
- uses_calibration: Optional[Union[str, CalibrationInformationId]] = None
6285
+ uses_calibration: Optional[Union[Union[str, CalibrationInformationId], list[Union[str, CalibrationInformationId]]]] = empty_list()
6285
6286
  was_informed_by: Optional[Union[Union[str, MassSpectrometryId], list[Union[str, MassSpectrometryId]]]] = empty_list()
6286
6287
  superseded_by: Optional[Union[str, NomAnalysisId]] = None
6287
6288
 
@@ -6291,8 +6292,9 @@ class NomAnalysis(WorkflowExecution):
6291
6292
  if not isinstance(self.id, NomAnalysisId):
6292
6293
  self.id = NomAnalysisId(self.id)
6293
6294
 
6294
- if self.uses_calibration is not None and not isinstance(self.uses_calibration, CalibrationInformationId):
6295
- self.uses_calibration = CalibrationInformationId(self.uses_calibration)
6295
+ if not isinstance(self.uses_calibration, list):
6296
+ self.uses_calibration = [self.uses_calibration] if self.uses_calibration is not None else []
6297
+ self.uses_calibration = [v if isinstance(v, CalibrationInformationId) else CalibrationInformationId(v) for v in self.uses_calibration]
6296
6298
 
6297
6299
  if not isinstance(self.was_informed_by, list):
6298
6300
  self.was_informed_by = [self.was_informed_by] if self.was_informed_by is not None else []
@@ -6531,6 +6533,7 @@ class CalibrationStandardEnum(EnumDefinitionImpl):
6531
6533
 
6532
6534
  fames = PermissibleValue(text="fames")
6533
6535
  alkanes = PermissibleValue(text="alkanes")
6536
+ srfa = PermissibleValue(text="srfa")
6534
6537
 
6535
6538
  _defn = EnumDefinition(
6536
6539
  name="CalibrationStandardEnum",
@@ -10450,7 +10453,7 @@ slots.generates_calibration = Slot(uri=NMDC.generates_calibration, name="generat
10450
10453
  model_uri=NMDC.generates_calibration, domain=None, range=Optional[Union[str, CalibrationInformationId]])
10451
10454
 
10452
10455
  slots.uses_calibration = Slot(uri=NMDC.uses_calibration, name="uses_calibration", curie=NMDC.curie('uses_calibration'),
10453
- model_uri=NMDC.uses_calibration, domain=None, range=Optional[Union[str, CalibrationInformationId]])
10456
+ model_uri=NMDC.uses_calibration, domain=None, range=Optional[Union[Union[str, CalibrationInformationId], list[Union[str, CalibrationInformationId]]]])
10454
10457
 
10455
10458
  slots.calibration_object = Slot(uri=NMDC.calibration_object, name="calibration_object", curie=NMDC.curie('calibration_object'),
10456
10459
  model_uri=NMDC.calibration_object, domain=None, range=Optional[Union[str, DataObjectId]])
@@ -5222,7 +5222,8 @@
5222
5222
  "description": "",
5223
5223
  "enum": [
5224
5224
  "fames",
5225
- "alkanes"
5225
+ "alkanes",
5226
+ "srfa"
5226
5227
  ],
5227
5228
  "title": "CalibrationStandardEnum",
5228
5229
  "type": "string"
@@ -9787,8 +9788,11 @@
9787
9788
  },
9788
9789
  "uses_calibration": {
9789
9790
  "description": "calibration information is used by a process",
9791
+ "items": {
9792
+ "type": "string"
9793
+ },
9790
9794
  "type": [
9791
- "string",
9795
+ "array",
9792
9796
  "null"
9793
9797
  ]
9794
9798
  },
@@ -11928,8 +11932,11 @@
11928
11932
  },
11929
11933
  "uses_calibration": {
11930
11934
  "description": "calibration information is used by a process",
11935
+ "items": {
11936
+ "type": "string"
11937
+ },
11931
11938
  "type": [
11932
- "string",
11939
+ "array",
11933
11940
  "null"
11934
11941
  ]
11935
11942
  },
@@ -15466,5 +15473,5 @@
15466
15473
  },
15467
15474
  "title": "NMDC",
15468
15475
  "type": "object",
15469
- "version": "11.15.1"
15476
+ "version": "11.16.0"
15470
15477
  }
@@ -6,7 +6,7 @@
6
6
  "not importing any MIxS terms where the relationship between the name (SCN) and the id isn't 1:1"
7
7
  ],
8
8
  "id": "https://w3id.org/nmdc/nmdc",
9
- "version": "11.15.1",
9
+ "version": "11.16.0",
10
10
  "license": "https://creativecommons.org/publicdomain/zero/1.0/",
11
11
  "prefixes": {
12
12
  "BFO": {
@@ -752,6 +752,18 @@
752
752
  "aliases": [
753
753
  "Alkanes"
754
754
  ]
755
+ },
756
+ "srfa": {
757
+ "text": "srfa",
758
+ "comments": [
759
+ "Reference standard Suwannee River Fulvic Acid Standard II (2S101F) from International Humic Substances Society"
760
+ ],
761
+ "see_also": [
762
+ "https://humic-substances.org/source-materials-for-ihss-samples/"
763
+ ],
764
+ "aliases": [
765
+ "Suwannee River fulvic acid"
766
+ ]
755
767
  }
756
768
  }
757
769
  },
@@ -7539,6 +7551,7 @@
7539
7551
  ],
7540
7552
  "from_schema": "https://w3id.org/nmdc/nmdc",
7541
7553
  "range": "CalibrationInformation",
7554
+ "multivalued": true,
7542
7555
  "pattern": "^(nmdc):calib-([0-9][a-z]{0,6}[0-9])-([A-Za-z0-9]{1,})$",
7543
7556
  "structured_pattern": {
7544
7557
  "syntax": "{id_nmdc_prefix}:calib-{id_shoulder}-{id_blade}$",
@@ -5430,7 +5430,8 @@
5430
5430
  "description": "",
5431
5431
  "enum": [
5432
5432
  "fames",
5433
- "alkanes"
5433
+ "alkanes",
5434
+ "srfa"
5434
5435
  ],
5435
5436
  "title": "CalibrationStandardEnum",
5436
5437
  "type": "string"
@@ -10039,9 +10040,12 @@
10039
10040
  },
10040
10041
  "uses_calibration": {
10041
10042
  "description": "calibration information is used by a process",
10042
- "pattern": "^(nmdc):calib-([0-9][a-z]{0,6}[0-9])-([A-Za-z0-9]{1,})$",
10043
+ "items": {
10044
+ "pattern": "^(nmdc):calib-([0-9][a-z]{0,6}[0-9])-([A-Za-z0-9]{1,})$",
10045
+ "type": "string"
10046
+ },
10043
10047
  "type": [
10044
- "string",
10048
+ "array",
10045
10049
  "null"
10046
10050
  ]
10047
10051
  },
@@ -12211,9 +12215,12 @@
12211
12215
  },
12212
12216
  "uses_calibration": {
12213
12217
  "description": "calibration information is used by a process",
12214
- "pattern": "^(nmdc):calib-([0-9][a-z]{0,6}[0-9])-([A-Za-z0-9]{1,})$",
12218
+ "items": {
12219
+ "pattern": "^(nmdc):calib-([0-9][a-z]{0,6}[0-9])-([A-Za-z0-9]{1,})$",
12220
+ "type": "string"
12221
+ },
12215
12222
  "type": [
12216
- "string",
12223
+ "array",
12217
12224
  "null"
12218
12225
  ]
12219
12226
  },
@@ -15772,6 +15779,6 @@
15772
15779
  },
15773
15780
  "title": "NMDC",
15774
15781
  "type": "object",
15775
- "version": "11.15.1"
15782
+ "version": "11.16.0"
15776
15783
  }
15777
15784
 
@@ -13,7 +13,7 @@ notes:
13
13
  - not importing any MIxS terms where the relationship between the name (SCN) and the
14
14
  id isn't 1:1
15
15
  id: https://w3id.org/nmdc/nmdc
16
- version: 11.15.1
16
+ version: 11.16.0
17
17
  license: https://creativecommons.org/publicdomain/zero/1.0/
18
18
  prefixes:
19
19
  BFO:
@@ -619,6 +619,15 @@ enums:
619
619
  text: alkanes
620
620
  aliases:
621
621
  - Alkanes
622
+ srfa:
623
+ text: srfa
624
+ comments:
625
+ - Reference standard Suwannee River Fulvic Acid Standard II (2S101F) from
626
+ International Humic Substances Society
627
+ see_also:
628
+ - https://humic-substances.org/source-materials-for-ihss-samples/
629
+ aliases:
630
+ - Suwannee River fulvic acid
622
631
  StrandedOrientationEnum:
623
632
  name: StrandedOrientationEnum
624
633
  description: This enumeration specifies information about stranded RNA library
@@ -5636,6 +5645,7 @@ slots:
5636
5645
  run is used when analyzing metabolomics data
5637
5646
  from_schema: https://w3id.org/nmdc/nmdc
5638
5647
  range: CalibrationInformation
5648
+ multivalued: true
5639
5649
  pattern: ^(nmdc):calib-([0-9][a-z]{0,6}[0-9])-([A-Za-z0-9]{1,})$
5640
5650
  structured_pattern:
5641
5651
  syntax: '{id_nmdc_prefix}:calib-{id_shoulder}-{id_blade}$'
@@ -30,7 +30,7 @@ from pydantic import (
30
30
 
31
31
 
32
32
  metamodel_version = "None"
33
- version = "11.15.1"
33
+ version = "11.16.0"
34
34
 
35
35
 
36
36
  class ConfiguredBaseModel(BaseModel):
@@ -650,6 +650,7 @@ class CalibrationTargetEnum(str, Enum):
650
650
  class CalibrationStandardEnum(str, Enum):
651
651
  fames = "fames"
652
652
  alkanes = "alkanes"
653
+ srfa = "srfa"
653
654
 
654
655
 
655
656
  class StrandedOrientationEnum(str, Enum):
@@ -20909,7 +20910,7 @@ class MetabolomicsAnalysis(WorkflowExecution):
20909
20910
  'syntax': '{id_nmdc_prefix}:(omprc|dgms)-{id_shoulder}-{id_blade}$'}}}})
20910
20911
 
20911
20912
  has_metabolite_identifications: Optional[list[MetaboliteIdentification]] = Field(default=[], json_schema_extra = { "linkml_meta": {'domain_of': ['MetabolomicsAnalysis']} })
20912
- uses_calibration: Optional[str] = Field(default=None, description="""calibration information is used by a process""", json_schema_extra = { "linkml_meta": {'comments': ['Retenion index calibration data generated by a gas '
20913
+ uses_calibration: Optional[list[str]] = Field(default=[], description="""calibration information is used by a process""", json_schema_extra = { "linkml_meta": {'comments': ['Retenion index calibration data generated by a gas '
20913
20914
  'chromatography mass spectromery run is used when analyzing '
20914
20915
  'metabolomics data'],
20915
20916
  'domain_of': ['MetabolomicsAnalysis', 'NomAnalysis'],
@@ -21396,7 +21397,7 @@ class NomAnalysis(WorkflowExecution):
21396
21397
  'structured_pattern': {'interpolated': True,
21397
21398
  'syntax': '{id_nmdc_prefix}:(omprc|dgms)-{id_shoulder}-{id_blade}$'}}}})
21398
21399
 
21399
- uses_calibration: Optional[str] = Field(default=None, description="""calibration information is used by a process""", json_schema_extra = { "linkml_meta": {'comments': ['Retenion index calibration data generated by a gas '
21400
+ uses_calibration: Optional[list[str]] = Field(default=[], description="""calibration information is used by a process""", json_schema_extra = { "linkml_meta": {'comments': ['Retenion index calibration data generated by a gas '
21400
21401
  'chromatography mass spectromery run is used when analyzing '
21401
21402
  'metabolomics data'],
21402
21403
  'domain_of': ['MetabolomicsAnalysis', 'NomAnalysis'],
@@ -8,7 +8,7 @@ license = "MIT"
8
8
  name = "nmdc_schema"
9
9
  readme = "README.md"
10
10
  repository = "https://github.com/microbiomedata/nmdc-schema"
11
- version = "11.15.1"
11
+ version = "11.16.0"
12
12
  authors = [
13
13
  "Bill Duncan <wdduncan@gmail.com>",
14
14
  "Chris Mungall <cjmungall@lbl.gov>",
File without changes
File without changes