@nfdi4plants/arctrl 3.0.0-beta.9 → 3.0.1

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 (297) hide show
  1. package/README.md +30 -3
  2. package/dist/ts/index.d.ts +54 -16
  3. package/dist/ts/index.d.ts.map +1 -1
  4. package/dist/ts/index.js +56 -18
  5. package/dist/ts/ts/ARC.d.ts +26 -9
  6. package/dist/ts/ts/ARC.d.ts.map +1 -1
  7. package/dist/ts/ts/ARC.js +148 -63
  8. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +62 -0
  9. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -0
  10. package/dist/ts/ts/CWL/CWLProcessingUnit.js +250 -0
  11. package/dist/ts/ts/CWL/CWLTypes.d.ts +148 -0
  12. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -0
  13. package/dist/ts/ts/CWL/CWLTypes.js +384 -0
  14. package/dist/ts/ts/CWL/Decode.d.ts +214 -0
  15. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -0
  16. package/dist/ts/ts/CWL/Decode.js +2667 -0
  17. package/dist/ts/ts/CWL/Encode.d.ts +103 -0
  18. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -0
  19. package/dist/ts/ts/CWL/Encode.js +1513 -0
  20. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +50 -0
  21. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -0
  22. package/dist/ts/ts/CWL/ExpressionToolDescription.js +152 -0
  23. package/dist/ts/ts/CWL/HashHelpers.d.ts +9 -0
  24. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -0
  25. package/dist/ts/ts/CWL/HashHelpers.js +35 -0
  26. package/dist/ts/ts/CWL/Inputs.d.ts +31 -0
  27. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -0
  28. package/dist/ts/ts/CWL/Inputs.js +86 -0
  29. package/dist/ts/ts/CWL/OperationDescription.d.ts +46 -0
  30. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -0
  31. package/dist/ts/ts/CWL/OperationDescription.js +133 -0
  32. package/dist/ts/ts/CWL/Outputs.d.ts +44 -0
  33. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -0
  34. package/dist/ts/ts/CWL/Outputs.js +143 -0
  35. package/dist/ts/ts/CWL/ParameterReference.d.ts +23 -0
  36. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -0
  37. package/dist/ts/ts/CWL/ParameterReference.js +60 -0
  38. package/dist/ts/ts/CWL/Requirements.d.ts +206 -0
  39. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -0
  40. package/dist/ts/ts/CWL/Requirements.js +384 -0
  41. package/dist/ts/ts/CWL/ToolDescription.d.ts +50 -0
  42. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -0
  43. package/dist/ts/ts/CWL/ToolDescription.js +152 -0
  44. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +50 -0
  45. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -0
  46. package/dist/ts/ts/CWL/WorkflowDescription.js +142 -0
  47. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +160 -0
  48. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -0
  49. package/dist/ts/ts/CWL/WorkflowSteps.js +317 -0
  50. package/dist/ts/ts/CWLRunResolver.d.ts +45 -0
  51. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -0
  52. package/dist/ts/ts/CWLRunResolver.js +181 -0
  53. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  54. package/dist/ts/ts/Contract/ARC.js +27 -9
  55. package/dist/ts/ts/Contract/ArcRun.d.ts +6 -0
  56. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  57. package/dist/ts/ts/Contract/ArcRun.js +131 -4
  58. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +3 -0
  59. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  60. package/dist/ts/ts/Contract/ArcWorkflow.js +70 -4
  61. package/dist/ts/ts/Contract/Datamap.d.ts +25 -25
  62. package/dist/ts/ts/Contract/Datamap.js +34 -34
  63. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  64. package/dist/ts/ts/ContractIO/ContractIO.js +3 -1
  65. package/dist/ts/ts/Conversion/Assay.d.ts +13 -0
  66. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -0
  67. package/dist/ts/ts/Conversion/Assay.js +69 -0
  68. package/dist/ts/ts/Conversion/Basic.d.ts +105 -0
  69. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -0
  70. package/dist/ts/ts/Conversion/Basic.js +452 -0
  71. package/dist/ts/ts/Conversion/ColumnIndex.d.ts +11 -0
  72. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -0
  73. package/dist/ts/ts/Conversion/ColumnIndex.js +71 -0
  74. package/dist/ts/ts/Conversion/Datamap.d.ts +11 -0
  75. package/dist/ts/ts/Conversion/Datamap.d.ts.map +1 -0
  76. package/dist/ts/ts/Conversion/Datamap.js +21 -0
  77. package/dist/ts/ts/Conversion/DateTime.d.ts +4 -0
  78. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -0
  79. package/dist/ts/ts/Conversion/DateTime.js +23 -0
  80. package/dist/ts/ts/Conversion/Investigation.d.ts +12 -0
  81. package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -0
  82. package/dist/ts/ts/Conversion/Investigation.js +79 -0
  83. package/dist/ts/ts/Conversion/Person.d.ts +16 -0
  84. package/dist/ts/ts/Conversion/Person.d.ts.map +1 -0
  85. package/dist/ts/ts/Conversion/Person.js +100 -0
  86. package/dist/ts/ts/Conversion/Process.d.ts +84 -0
  87. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -0
  88. package/dist/ts/ts/Conversion/Process.js +455 -0
  89. package/dist/ts/ts/Conversion/Run.d.ts +35 -0
  90. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -0
  91. package/dist/ts/ts/Conversion/Run.js +254 -0
  92. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts +16 -0
  93. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -0
  94. package/dist/ts/ts/Conversion/ScholarlyArticle.js +116 -0
  95. package/dist/ts/ts/Conversion/Study.d.ts +12 -0
  96. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -0
  97. package/dist/ts/ts/Conversion/Study.js +51 -0
  98. package/dist/ts/ts/Conversion/Table.d.ts +45 -0
  99. package/dist/ts/ts/Conversion/Table.d.ts.map +1 -0
  100. package/dist/ts/ts/Conversion/Table.js +203 -0
  101. package/dist/ts/ts/Conversion/Workflow.d.ts +91 -0
  102. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -0
  103. package/dist/ts/ts/Conversion/Workflow.js +455 -0
  104. package/dist/ts/ts/Conversion.d.ts +25 -276
  105. package/dist/ts/ts/Conversion.d.ts.map +1 -1
  106. package/dist/ts/ts/Conversion.js +64 -1477
  107. package/dist/ts/ts/Core/ArcTypes.d.ts +69 -59
  108. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  109. package/dist/ts/ts/Core/ArcTypes.js +222 -142
  110. package/dist/ts/ts/Core/{DataMap.d.ts → Datamap.d.ts} +24 -24
  111. package/dist/ts/ts/Core/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
  112. package/dist/ts/ts/Core/{DataMap.js → Datamap.js} +36 -36
  113. package/dist/ts/ts/Core/Helper/Identifier.d.ts +24 -0
  114. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  115. package/dist/ts/ts/Core/Helper/Identifier.js +35 -2
  116. package/dist/ts/ts/Core/Table/ArcTable.d.ts +8 -8
  117. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  118. package/dist/ts/ts/Core/Table/ArcTable.js +20 -20
  119. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +4 -4
  120. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
  121. package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -27
  122. package/dist/ts/ts/FileSystem/Path.d.ts +22 -0
  123. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  124. package/dist/ts/ts/FileSystem/Path.js +173 -3
  125. package/dist/ts/ts/Json/Assay.js +5 -5
  126. package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts.map +1 -1
  127. package/dist/ts/ts/Json/{DataMap/DataMap.d.ts → Datamap/Datamap.d.ts} +6 -6
  128. package/dist/ts/ts/Json/{DataMap/DataMap.d.ts.map → Datamap/Datamap.d.ts.map} +1 -1
  129. package/dist/ts/ts/Json/{DataMap/DataMap.js → Datamap/Datamap.js} +2 -2
  130. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts.map +1 -1
  131. package/dist/ts/ts/Json/ROCrate/LDContext.js +21 -11
  132. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -0
  133. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts.map +1 -1
  134. package/dist/ts/ts/Json/ROCrate/LDNode.js +18 -7
  135. package/dist/ts/ts/Json/Run.js +5 -5
  136. package/dist/ts/ts/Json/Study.js +5 -5
  137. package/dist/ts/ts/Json/Workflow.d.ts.map +1 -1
  138. package/dist/ts/ts/Json/Workflow.js +10 -11
  139. package/dist/ts/ts/Json.d.ts +3 -5
  140. package/dist/ts/ts/Json.d.ts.map +1 -1
  141. package/dist/ts/ts/Json.js +4 -10
  142. package/dist/ts/ts/JsonIO/Datamap.d.ts +4 -4
  143. package/dist/ts/ts/JsonIO/Datamap.js +6 -6
  144. package/dist/ts/ts/JsonIO/Investigation.d.ts +0 -6
  145. package/dist/ts/ts/JsonIO/Investigation.d.ts.map +1 -1
  146. package/dist/ts/ts/JsonIO/Investigation.js +2 -21
  147. package/dist/ts/ts/License.js +1 -1
  148. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  149. package/dist/ts/ts/ROCrate/LDContext.js +35 -31
  150. package/dist/ts/ts/ROCrate/LDObject.d.ts +2 -2
  151. package/dist/ts/ts/ROCrate/LDObject.js +2 -2
  152. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts.map +1 -1
  153. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts +63 -0
  154. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts.map +1 -0
  155. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +361 -0
  156. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts +39 -0
  157. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts.map +1 -0
  158. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +219 -0
  159. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts +43 -0
  160. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts.map +1 -0
  161. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +224 -0
  162. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts.map +1 -1
  163. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.js +1 -1
  164. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.d.ts +34 -22
  165. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -0
  166. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.js +59 -2
  167. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts.map +1 -1
  168. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.d.ts +10 -4
  169. package/dist/ts/ts/ROCrate/LDTypes/File.d.ts.map +1 -0
  170. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.js +34 -1
  171. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts +59 -0
  172. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts.map +1 -0
  173. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +344 -0
  174. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.d.ts +2 -0
  175. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.d.ts.map +1 -0
  176. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.js +31 -5
  177. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.d.ts +6 -2
  178. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.d.ts.map +1 -0
  179. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.js +66 -15
  180. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts.map +1 -1
  181. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts.map +1 -1
  182. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts.map +1 -1
  183. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.d.ts +35 -11
  184. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -0
  185. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.js +191 -1
  186. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts.map +1 -1
  187. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts.map +1 -1
  188. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts +46 -0
  189. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts.map +1 -0
  190. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +247 -0
  191. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts +12 -0
  192. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts.map +1 -0
  193. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +40 -0
  194. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts +11 -0
  195. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts.map +1 -0
  196. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +46 -0
  197. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts +2 -2
  198. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts.map +1 -1
  199. package/dist/ts/ts/ROCrate/ROCrateContext.js +6 -6
  200. package/dist/ts/ts/ROCrateIO.d.ts +7 -3
  201. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  202. package/dist/ts/ts/ROCrateIO.js +82 -13
  203. package/dist/ts/ts/Spreadsheet/ArcAssay.js +3 -3
  204. package/dist/ts/ts/Spreadsheet/ArcRun.js +2 -2
  205. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  206. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +2 -2
  207. package/dist/ts/ts/Spreadsheet/Datamap.d.ts +8 -0
  208. package/dist/ts/ts/Spreadsheet/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
  209. package/dist/ts/ts/Spreadsheet/{DataMap.js → Datamap.js} +9 -9
  210. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts → DatamapTable/DatamapColumn.d.ts} +1 -1
  211. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts.map → DatamapTable/DatamapColumn.d.ts.map} +1 -1
  212. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.js → DatamapTable/DatamapColumn.js} +1 -1
  213. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts → DatamapTable/DatamapHeader.d.ts} +1 -1
  214. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts.map → DatamapTable/DatamapHeader.d.ts.map} +1 -1
  215. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts → DatamapTable/DatamapTable.d.ts} +5 -5
  216. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts.map → DatamapTable/DatamapTable.d.ts.map} +1 -1
  217. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.js → DatamapTable/DatamapTable.js} +6 -6
  218. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +1 -1
  219. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  220. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +4 -4
  221. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +36 -0
  222. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -0
  223. package/dist/ts/ts/WorkflowGraph/Adapters.js +94 -0
  224. package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts +37 -0
  225. package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts.map +1 -0
  226. package/dist/ts/ts/WorkflowGraph/BuildOptions.js +35 -0
  227. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +160 -0
  228. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -0
  229. package/dist/ts/ts/WorkflowGraph/Builder.js +556 -0
  230. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +182 -0
  231. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -0
  232. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +281 -0
  233. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +27 -0
  234. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -0
  235. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +49 -0
  236. package/dist/ts/ts/Xlsx.d.ts +5 -5
  237. package/dist/ts/ts/Xlsx.js +1 -1
  238. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
  239. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  240. package/dist/ts/ts/Yaml/ValidationPackage.js +6 -6
  241. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
  242. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  243. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +6 -6
  244. package/dist/ts/ts/Yaml.d.ts +24 -0
  245. package/dist/ts/ts/Yaml.d.ts.map +1 -0
  246. package/dist/ts/ts/Yaml.js +56 -0
  247. package/dist/ts/ts/fable_modules/DynamicObj.7.1.0/DynObj.fs.js +109 -0
  248. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.4}/Encode.fs.js +9 -9
  249. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Escapes.fs.js +313 -0
  250. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/FlowToBlock.fs.js +956 -0
  251. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Interop/JsInterop.fs.js +10 -0
  252. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Persil.fs.js +562 -0
  253. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.4}/Preprocessing.fs.js +52 -12
  254. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Reader.fs.js +1314 -0
  255. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Regex.fs.js +21 -0
  256. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/RegexActivePatterns.fs.js +313 -0
  257. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/StringBuffer.fs.js +60 -0
  258. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Writer.fs.js +391 -0
  259. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/YAMLiciousTypes.fs.js +317 -0
  260. package/package.json +1 -1
  261. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +0 -1
  262. package/dist/ts/ts/ROCrate/Generic/File.d.ts.map +0 -1
  263. package/dist/ts/ts/ROCrate/Generic/LabProcess.d.ts.map +0 -1
  264. package/dist/ts/ts/ROCrate/Generic/LabProtocol.d.ts.map +0 -1
  265. package/dist/ts/ts/ROCrate/Generic/PropertyValue.d.ts.map +0 -1
  266. package/dist/ts/ts/Spreadsheet/DataMap.d.ts +0 -8
  267. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +0 -10
  268. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +0 -45
  269. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +0 -483
  270. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +0 -11
  271. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +0 -212
  272. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +0 -164
  273. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +0 -152
  274. /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts +0 -0
  275. /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.js +0 -0
  276. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts +0 -0
  277. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.js +0 -0
  278. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts +0 -0
  279. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts +0 -0
  280. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.js +0 -0
  281. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts +0 -0
  282. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.js +0 -0
  283. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts +0 -0
  284. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.js +0 -0
  285. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts +0 -0
  286. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.js +0 -0
  287. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts +0 -0
  288. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.js +0 -0
  289. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts +0 -0
  290. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.js +0 -0
  291. /package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.js → DatamapTable/DatamapHeader.js} +0 -0
  292. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/DynamicObj.fs.js +0 -0
  293. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/FableJS.fs.js +0 -0
  294. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/HashCodes.fs.js +0 -0
  295. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/PropertyHelper.fs.js +0 -0
  296. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/ReflectionUtils.fs.js +0 -0
  297. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.4}/Decode.fs.js +0 -0
@@ -1,1479 +1,72 @@
1
- import { fromString } from './fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js';
2
- import { Decode_datetime } from './Json/Decode.js';
3
- import { toText, printf, toFail, join } from '../node_modules/@fable-org/fable-library-js/String.js';
4
- import { value, unwrap, map, defaultArg, bind } from '../node_modules/@fable-org/fable-library-js/Option.js';
5
- import { toString } from './fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js';
6
- import { dateTime } from './Json/Encode.js';
7
- import { tryParse, parse } from '../node_modules/@fable-org/fable-library-js/Int32.js';
8
- import { FSharpRef, toString as toString$1 } from '../node_modules/@fable-org/fable-library-js/Types.js';
9
- import { LDRef, LDNode } from './ROCrate/LDObject.js';
10
- import { int32ToString, stringHash, comparePrimitives, getEnumerator, disposeSafe, safeHash, equals } from '../node_modules/@fable-org/fable-library-js/Util.js';
1
+ import { AssayConversion_composeAssay_Z5C53FD5C, AssayConversion_decomposeAssay_Z6839B9E8 } from './Conversion/Assay.js';
2
+ import { unwrap } from '../node_modules/@fable-org/fable-library-js/Option.js';
3
+ import { StudyConversion_composeStudy_ZFE0E38E, StudyConversion_decomposeStudy_Z6839B9E8 } from './Conversion/Study.js';
4
+ import { WorkflowConversion_composeWorkflow_42450E6E, WorkflowConversion_decomposeWorkflow_Z6839B9E8 } from './Conversion/Workflow.js';
5
+ import { RunConversion_composeRun_Z8CC08AC, RunConversion_decomposeRun_Z6839B9E8 } from './Conversion/Run.js';
6
+ import { InvestigationConversion_composeInvestigation_Z284BC0AC, InvestigationConversion_decomposeInvestigation_Z6839B9E8 } from './Conversion/Investigation.js';
11
7
  import { class_type } from '../node_modules/@fable-org/fable-library-js/Reflection.js';
12
- import { LDComment } from './ROCrate/Generic/Comment.js';
13
- import { Comment$ } from './Core/Comment.js';
14
- import { OntologyAnnotation } from './Core/OntologyAnnotation.js';
15
- import { Option_fromValueWithDefault, Option_fromSeq, ResizeArray_map, ResizeArray_singleton, ResizeArray_create, ResizeArray_zip, ResizeArray_appendSingleton, ResizeArray_tryPick, ResizeArray_distinct, ResizeArray_append, ResizeArray_choose, ResizeArray_collect, ResizeArray_filter, ResizeArray_tryFind, ResizeArray_groupBy } from './Core/Helper/Collections.js';
16
- import { LDDefinedTerm } from './ROCrate/Generic/DefinedTerm.js';
17
- import { LDPropertyValue } from './ROCrate/Generic/PropertyValue.js';
18
- import { Data, DataAux_pathAndSelectorFromName } from './Core/Data.js';
19
- import { CompositeCell_Term, CompositeCell_Unitized, CompositeCell_FreeText, CompositeCell_Data } from './Core/Table/CompositeCell.js';
20
- import { CompositeHeader_Component, CompositeHeader_Parameter, CompositeHeader_Factor, CompositeHeader_Characteristic, CompositeHeader_Input, IOType_Source, IOType_Material, IOType_Sample, IOType_Data, IOType_FreeText, CompositeHeader_Output, CompositeHeader_ProtocolREF, CompositeHeader_ProtocolDescription, CompositeHeader_ProtocolUri, CompositeHeader_ProtocolVersion, CompositeHeader_ProtocolType, CompositeHeader_Comment } from './Core/Table/CompositeHeader.js';
21
- import { DataFile__get_AsString, DataFile_fromString_Z721C83C5 } from './Core/DataFile.js';
22
- import { LDFile } from './ROCrate/Generic/File.js';
23
- import { LDDataset } from './ROCrate/Generic/Dataset.js';
24
- import { map as map$1 } from '../node_modules/@fable-org/fable-library-js/Array.js';
25
- import { combine } from './FileSystem/Path.js';
26
- import { DataContext__get_Explication, DataContext__get_Unit, DataContext__get_ObjectType, DataContext__get_GeneratedBy, DataContext__get_Description, DataContext__get_Label, DataContext_$ctor_Z780A8A2A } from './Core/DataContext.js';
27
- import { LDSample } from './ROCrate/Generic/Sample.js';
28
- import { ActivePatterns_$007CRegex$007C_$007C } from './Core/Helper/Regex.js';
29
- import { LDLabProtocol } from './ROCrate/Generic/LabProtocol.js';
30
- import { Unchecked_tryGetCellAt, getEmptyCellForHeader, Unchecked_alignByHeaders } from './Core/Table/ArcTableAux.js';
31
- import { ArcTable } from './Core/Table/ArcTable.js';
32
- import { LDPerson } from './ROCrate/Generic/Person.js';
33
- import { indexed, toList, filter, tryPick, choose as choose$1, map as map$2, delay, append, empty as empty$1, singleton, fold, zip, isEmpty } from '../node_modules/@fable-org/fable-library-js/Seq.js';
34
- import { choose, length, empty, map as map$3, sortBy, singleton as singleton$1, initialize, collect, ofSeq } from '../node_modules/@fable-org/fable-library-js/List.js';
35
- import { LDLabProcess } from './ROCrate/Generic/LabProcess.js';
36
- import { List_groupBy, List_distinct } from '../node_modules/@fable-org/fable-library-js/Seq2.js';
37
- import { createMissingIdentifier } from './Core/Helper/Identifier.js';
38
- import { rangeDouble } from '../node_modules/@fable-org/fable-library-js/Range.js';
39
- import { ArcTables } from './Core/Table/ArcTables.js';
40
- import { DataMap } from './Core/DataMap.js';
41
- import { LDOrganization } from './ROCrate/Generic/Organization.js';
42
- import { decoder, encoder } from './Json/ROCrate/LDNode.js';
43
- import { Person } from './Core/Person.js';
44
- import { tryGetOrcidNumber } from './Core/Helper/ORCID.js';
45
- import { StringBuilder_$ctor, StringBuilder__Clear, StringBuilder__Append_244C7CD6 } from '../node_modules/@fable-org/fable-library-js/System.Text.js';
46
- import { LDScholarlyArticle } from './ROCrate/Generic/ScholarlyArticle.js';
47
- import { Publication } from './Core/Publication.js';
48
- import { ArcAssay, ArcStudy, ArcInvestigation } from './Core/ArcTypes.js';
49
- import { now } from '../node_modules/@fable-org/fable-library-js/Date.js';
50
8
 
51
- function DateTime_tryFromString(s) {
52
- let matchValue;
53
- try {
54
- return matchValue = fromString(Decode_datetime, s), matchValue.tag === /* Error */
55
- 1 ? (() => {
56
- let arg;
57
- throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
58
- })() : matchValue.fields[0];
59
- } catch (matchValue_1) {
60
- return void 0;
61
- }
62
- }
63
- function DateTime_toString(d) {
64
- return toString(0, dateTime(d));
65
- }
66
- function ColumnIndex_tryInt(str) {
67
- let matchValue;
68
- let outArg = 0;
69
- matchValue = [tryParse(str, 511, false, 32, new FSharpRef(() => outArg, (v) => {
70
- outArg = v | 0;
71
- })), outArg];
72
- if (matchValue[0]) {
73
- return matchValue[1];
74
- } else {
75
- return void 0;
76
- }
77
- }
78
- const ColumnIndex_orderName = "columnIndex";
79
- function ColumnIndex_tryGetIndex(node) {
80
- const matchValue = node.TryGetPropertyAsSingleton(ColumnIndex_orderName);
81
- let matchResult, ci;
82
- if (matchValue != null) {
83
- if (typeof value(matchValue) === "string") {
84
- matchResult = 0;
85
- ci = value(matchValue);
86
- } else {
87
- matchResult = 1;
88
- }
89
- } else {
90
- matchResult = 1;
91
- }
92
- switch (matchResult) {
93
- case 0:
94
- return ColumnIndex_tryInt(ci);
95
- default:
96
- return void 0;
97
- }
98
- }
99
- function ColumnIndex_setIndex(node, index) {
100
- node.SetProperty(ColumnIndex_orderName, int32ToString(index));
101
- }
102
- function ARCtrl_ROCrate_LDNode__LDNode_GetColumnIndex(this$) {
103
- return value(ColumnIndex_tryGetIndex(this$));
104
- }
105
- function ARCtrl_ROCrate_LDNode__LDNode_TryGetColumnIndex(this$) {
106
- return ColumnIndex_tryGetIndex(this$);
107
- }
108
- function ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(this$, index) {
109
- ColumnIndex_setIndex(this$, index);
110
- }
111
- class BaseTypes {
112
- constructor() {
113
- }
114
- }
115
- function BaseTypes_$reflection() {
116
- return class_type("ARCtrl.Conversion.BaseTypes", void 0, BaseTypes);
117
- }
118
- function BaseTypes_composeComment_Z13201A7E(comment) {
119
- let name;
120
- const matchValue = comment.Name;
121
- if (matchValue == null) {
122
- throw new Error("Comment must have a name");
123
- } else {
124
- name = value(matchValue);
125
- }
126
- return LDComment.create(name, void 0, unwrap(comment.Value));
127
- }
128
- function BaseTypes_decomposeComment_Z2F770004(comment, context) {
129
- return new Comment$(LDComment.getNameAsString(comment, unwrap(context)), unwrap(LDComment.tryGetTextAsString(comment, unwrap(context))));
130
- }
131
- function BaseTypes_ontologyTermFromNameAndID_40457300(name, id) {
132
- if (id == null) {
133
- return OntologyAnnotation.create(unwrap(name));
134
- } else {
135
- const t = value(id);
136
- return OntologyAnnotation.fromTermAnnotation(t, unwrap(name));
137
- }
138
- }
139
- function BaseTypes_tryOntologyTermFromNameAndID_40457300(name, id) {
140
- if (name == null && id == null) {
141
- return void 0;
142
- } else {
143
- return BaseTypes_ontologyTermFromNameAndID_40457300(unwrap(name), unwrap(id));
144
- }
145
- }
146
- function BaseTypes_composeDefinedTerm_ZDED3A0F(term) {
147
- const tan = Option_fromValueWithDefault("", term.TermAccessionAndOntobeeUrlIfShort);
148
- return LDDefinedTerm.create(term.NameText, void 0, unwrap(tan));
149
- }
150
- function BaseTypes_decomposeDefinedTerm_Z2F770004(term, context) {
151
- return BaseTypes_ontologyTermFromNameAndID_40457300(LDDefinedTerm.getNameAsString(term, unwrap(context)), unwrap(LDDefinedTerm.tryGetTermCodeAsString(term, unwrap(context))));
152
- }
153
- function BaseTypes_composePropertyValueFromOA_ZDED3A0F(term) {
154
- const tan = Option_fromValueWithDefault("", term.TermAccessionAndOntobeeUrlIfShort);
155
- return LDPropertyValue.create(term.NameText, void 0, void 0, unwrap(tan));
156
- }
157
- function BaseTypes_decomposePropertyValueToOA_Z2F770004(term, context) {
158
- return BaseTypes_ontologyTermFromNameAndID_40457300(LDPropertyValue.getNameAsString(term, unwrap(context)), unwrap(LDPropertyValue.tryGetPropertyIDAsString(term, unwrap(context))));
159
- }
160
- function BaseTypes_valuesOfCell_Z436420FE(value) {
161
- let term, term_1;
162
- switch (value.tag) {
163
- case /* Term */
164
- 0:
165
- if (term = value.fields[0], term.isEmpty()) {
166
- const term_2 = value.fields[0];
167
- return [void 0, void 0, void 0, void 0];
168
- } else if (term_1 = value.fields[0], term_1.TANInfo != null) {
169
- const term_3 = value.fields[0];
170
- return [term_3.Name, term_3.TermAccessionAndOntobeeUrlIfShort, void 0, void 0];
171
- } else {
172
- const term_4 = value.fields[0];
173
- return [term_4.Name, void 0, void 0, void 0];
174
- }
175
- case /* Unitized */
176
- 2: {
177
- const text_1 = value.fields[0];
178
- const unit = value.fields[1];
179
- const patternInput = unit.isEmpty() ? [void 0, void 0] : [unit.Name, Option_fromValueWithDefault("", unit.TermAccessionAndOntobeeUrlIfShort)];
180
- return [Option_fromValueWithDefault("", text_1), void 0, patternInput[0], patternInput[1]];
181
- }
182
- case /* Data */
183
- 3: {
184
- const data = value.fields[0];
185
- throw new Error("Data cell should not be parsed to isa value");
186
- }
187
- default:
188
- if (value.fields[0] === "") {
189
- return [void 0, void 0, void 0, void 0];
190
- } else {
191
- const text = value.fields[0];
192
- return [text, void 0, void 0, void 0];
193
- }
194
- }
195
- }
196
- function BaseTypes_termOfHeader_6CAF647B(header) {
197
- let matchResult, oa;
198
- switch (header.tag) {
199
- case /* Component */
200
- 0: {
201
- matchResult = 0;
202
- oa = header.fields[0];
203
- break;
204
- }
205
- case /* Parameter */
206
- 3: {
207
- matchResult = 0;
208
- oa = header.fields[0];
209
- break;
210
- }
211
- case /* Factor */
212
- 2: {
213
- matchResult = 0;
214
- oa = header.fields[0];
215
- break;
216
- }
217
- case /* Characteristic */
218
- 1: {
219
- matchResult = 0;
220
- oa = header.fields[0];
221
- break;
222
- }
223
- default:
224
- matchResult = 1;
225
- }
226
- switch (matchResult) {
227
- case 0:
228
- return [oa.NameText, oa.TANInfo != null ? oa.TermAccessionAndOntobeeUrlIfShort : void 0];
229
- default:
230
- return toFail(printf("header %O should not be parsed to isa value"))(header);
231
- }
232
- }
233
- function BaseTypes_composeComponent(header, value) {
234
- const patternInput = BaseTypes_valuesOfCell_Z436420FE(value);
235
- const patternInput_1 = BaseTypes_termOfHeader_6CAF647B(header);
236
- return LDPropertyValue.createComponent(patternInput_1[0], unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput[3]), unwrap(patternInput[2]), unwrap(patternInput[1]));
237
- }
238
- function BaseTypes_composeParameterValue(header, value) {
239
- const patternInput = BaseTypes_valuesOfCell_Z436420FE(value);
240
- const patternInput_1 = BaseTypes_termOfHeader_6CAF647B(header);
241
- return LDPropertyValue.createParameterValue(patternInput_1[0], unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput[3]), unwrap(patternInput[2]), unwrap(patternInput[1]));
242
- }
243
- function BaseTypes_composeFactorValue(header, value) {
244
- const patternInput = BaseTypes_valuesOfCell_Z436420FE(value);
245
- const patternInput_1 = BaseTypes_termOfHeader_6CAF647B(header);
246
- return LDPropertyValue.createFactorValue(patternInput_1[0], unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput[3]), unwrap(patternInput[2]), unwrap(patternInput[1]));
247
- }
248
- function BaseTypes_composeCharacteristicValue(header, value) {
249
- const patternInput = BaseTypes_valuesOfCell_Z436420FE(value);
250
- const patternInput_1 = BaseTypes_termOfHeader_6CAF647B(header);
251
- return LDPropertyValue.createCharacteristicValue(patternInput_1[0], unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput[3]), unwrap(patternInput[2]), unwrap(patternInput[1]));
252
- }
253
- function BaseTypes_composeFreetextMaterialName(headerFT, name) {
254
- return `${headerFT}=${name}`;
255
- }
256
- function BaseTypes_composeFile_6CE21C7D(d, fs) {
257
- const createFile = () => {
258
- const dataType = map(DataFile__get_AsString, d.DataType);
259
- return LDFile.create(d.NameText, d.NameText, void 0, unwrap(dataType), unwrap(d.Format), unwrap(d.SelectorFormat));
260
- };
261
- if (fs == null) {
262
- return createFile();
263
- } else {
264
- const fs_1 = value(fs);
265
- const matchValue = fs_1.Tree.TryGetPath(d.NameText);
266
- if (matchValue != null) {
267
- if (value(matchValue).tag === /* Folder */
268
- 1) {
269
- const fs_2 = value(matchValue);
270
- const file = createFile();
271
- file.SchemaType = [LDFile.schemaType, LDDataset.schemaType];
272
- let subFiles;
273
- const collection = map$1((fp) => {
274
- const fullPath = combine(d.NameText, fp);
275
- return LDFile.create(fullPath, fullPath);
276
- }, fs_2.ToFilePaths(true));
277
- subFiles = Array.from(collection);
278
- LDDataset.setHasParts(file, subFiles);
279
- return file;
280
- } else {
281
- return createFile();
282
- }
283
- } else {
284
- return createFile();
285
- }
286
- }
287
- }
288
- function BaseTypes_decomposeFile_Z2F770004(f, context) {
289
- const dataType = map(DataFile_fromString_Z721C83C5, LDFile.tryGetDisambiguatingDescriptionAsString(f, unwrap(context)));
290
- const format = LDFile.tryGetEncodingFormatAsString(f, unwrap(context));
291
- const selectorFormat = LDFile.tryGetUsageInfoAsString(f, unwrap(context));
292
- return new Data(void 0, LDFile.getNameAsString(f, unwrap(context)), unwrap(dataType), unwrap(format), unwrap(selectorFormat));
293
- }
294
- function BaseTypes_composeFragmentDescriptor_Z4C0BEF62(dc) {
295
- if (dc.Name == null) {
296
- throw new Error("RO-Crate parsing of DataContext failed: Cannot create a fragment descriptor without a name.");
297
- }
298
- const id = LDPropertyValue.genIdFragmentDescriptor(dc.NameText);
299
- const patternInput = defaultArg(map((e) => [e.Name, Option_fromValueWithDefault("", e.TermAccessionAndOntobeeUrlIfShort)], DataContext__get_Explication(dc)), [void 0, void 0]);
300
- const patternInput_1 = defaultArg(map((u) => [u.Name, Option_fromValueWithDefault("", u.TermAccessionAndOntobeeUrlIfShort)], DataContext__get_Unit(dc)), [void 0, void 0]);
301
- const disambiguatingDescriptions = Option_fromSeq(ResizeArray_map(toString$1, dc.Comments));
302
- const dataFragment = BaseTypes_composeFile_6CE21C7D(dc);
303
- const pattern = map(BaseTypes_composeDefinedTerm_ZDED3A0F, DataContext__get_ObjectType(dc));
304
- dataFragment.SetProperty(LDFile.about, new LDRef(id));
305
- dataFragment.SetOptionalProperty(LDFile.pattern, pattern);
306
- return LDPropertyValue.createFragmentDescriptor(dc.NameText, unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput_1[0]), unwrap(patternInput[1]), unwrap(DataContext__get_GeneratedBy(dc)), unwrap(DataContext__get_Description(dc)), unwrap(DataContext__get_Label(dc)), unwrap(disambiguatingDescriptions), dataFragment);
307
- }
308
- function BaseTypes_decomposeFragmentDescriptor_Z6839B9E8(fd, graph, context) {
309
- const file = LDPropertyValue.tryGetSubjectOf(fd, unwrap(graph), unwrap(context));
310
- let name;
311
- if (file == null) {
312
- throw new Error("RO-Crate parsing of DataContext failed: Cannot decompose a fragment descriptor without a name.");
313
- } else {
314
- const f = value(file);
315
- name = LDFile.getNameAsString(f, unwrap(context));
316
- }
317
- const objectType = map((pa) => BaseTypes_decomposeDefinedTerm_Z2F770004(pa, unwrap(context)), bind((f_1) => LDFile.tryGetPatternAsDefinedTerm(f_1, unwrap(graph), unwrap(context)), file));
318
- const format = bind((f_2) => LDFile.tryGetEncodingFormatAsString(f_2, unwrap(context)), file);
319
- const selectorFormat = bind((f_3) => LDFile.tryGetUsageInfoAsString(f_3, unwrap(context)), file);
320
- const explication = BaseTypes_tryOntologyTermFromNameAndID_40457300(unwrap(LDPropertyValue.tryGetValueAsString(fd)), unwrap(LDPropertyValue.tryGetValueReferenceAsString(fd)));
321
- const unit = BaseTypes_tryOntologyTermFromNameAndID_40457300(unwrap(LDPropertyValue.tryGetUnitTextAsString(fd)), unwrap(LDPropertyValue.tryGetUnitCodeAsString(fd)));
322
- const generatedBy = LDPropertyValue.tryGetMeasurementMethodAsString(fd);
323
- const description = LDPropertyValue.tryGetDescriptionAsString(fd);
324
- return DataContext_$ctor_Z780A8A2A(void 0, name, void 0, unwrap(format), unwrap(selectorFormat), unwrap(explication), unwrap(unit), unwrap(objectType), unwrap(LDPropertyValue.tryGetAlternateNameAsString(fd)), unwrap(description), unwrap(generatedBy), ResizeArray_map((s) => Comment$.fromString(s), LDPropertyValue.getDisambiguatingDescriptionsAsString(fd)));
325
- }
326
- function BaseTypes_composeProcessInput(header, value, fs) {
327
- if (header.tag === /* Input */
328
- 11) {
329
- switch (header.fields[0].tag) {
330
- case /* Sample */
331
- 1:
332
- return LDSample.createSample(value.AsFreeText);
333
- case /* Material */
334
- 3:
335
- return LDSample.createMaterial(value.AsFreeText);
336
- case /* Data */
337
- 2:
338
- switch (value.tag) {
339
- case /* FreeText */
340
- 1: {
341
- const ft = value.fields[0];
342
- return LDFile.create(ft, ft);
343
- }
344
- case /* Data */
345
- 3:
346
- return BaseTypes_composeFile_6CE21C7D(value.fields[0], unwrap(fs));
347
- default:
348
- return toFail(printf("Could not parse input data %O"))(value);
349
- }
350
- case /* FreeText */
351
- 4: {
352
- const ft_1 = header.fields[0].fields[0];
353
- const n = new LDNode(BaseTypes_composeFreetextMaterialName(ft_1, value.AsFreeText), [ft_1]);
354
- n.SetProperty(LDSample.name, value.AsFreeText);
355
- return n;
356
- }
357
- default:
358
- return LDSample.createSource(value.AsFreeText);
359
- }
360
- } else {
361
- return toFail(printf("Could not parse input header %O"))(header);
362
- }
363
- }
364
- function BaseTypes_composeProcessOutput(header, value, fs) {
365
- let matchResult, ft_1;
366
- if (header.tag === /* Output */
367
- 12) {
368
- switch (header.fields[0].tag) {
369
- case /* Material */
370
- 3: {
371
- matchResult = 1;
372
- break;
373
- }
374
- case /* Data */
375
- 2: {
376
- matchResult = 2;
377
- break;
378
- }
379
- case /* FreeText */
380
- 4: {
381
- matchResult = 3;
382
- ft_1 = header.fields[0].fields[0];
383
- break;
384
- }
385
- default:
386
- matchResult = 0;
387
- }
388
- } else {
389
- matchResult = 4;
390
- }
391
- switch (matchResult) {
392
- case 0:
393
- return LDSample.createSample(value.AsFreeText);
394
- case 1:
395
- return LDSample.createMaterial(value.AsFreeText);
396
- case 2:
397
- switch (value.tag) {
398
- case /* FreeText */
399
- 1: {
400
- const ft = value.fields[0];
401
- return LDFile.create(ft, ft);
402
- }
403
- case /* Data */
404
- 3:
405
- return BaseTypes_composeFile_6CE21C7D(value.fields[0], unwrap(fs));
406
- default:
407
- return toFail(printf("Could not parse output data %O"))(value);
408
- }
409
- case 3: {
410
- const n = new LDNode(BaseTypes_composeFreetextMaterialName(ft_1, value.AsFreeText), [ft_1]);
411
- n.SetProperty(LDSample.name, value.AsFreeText);
412
- return n;
413
- }
414
- default:
415
- return toFail(printf("Could not parse output header %O"))(header);
416
- }
417
- }
418
- function BaseTypes_headerOntologyOfPropertyValue_Z2F770004(pv, context) {
419
- const n = LDPropertyValue.getNameAsString(pv, unwrap(context));
420
- const matchValue = LDPropertyValue.tryGetPropertyIDAsString(pv, unwrap(context));
421
- if (matchValue == null) {
422
- return new OntologyAnnotation(n);
423
- } else {
424
- const nRef = value(matchValue);
425
- return OntologyAnnotation.fromTermAnnotation(nRef, n);
426
- }
427
- }
428
- function BaseTypes_cellOfPropertyValue_Z2F770004(pv, context) {
429
- const v = LDPropertyValue.tryGetValueAsString(pv, unwrap(context));
430
- const vRef = LDPropertyValue.tryGetValueReferenceAsString(pv, unwrap(context));
431
- const u = LDPropertyValue.tryGetUnitTextAsString(pv, unwrap(context));
432
- const uRef = LDPropertyValue.tryGetUnitCodeAsString(pv, unwrap(context));
433
- let matchResult, vr, u_1, uRef_1;
434
- if (vRef == null) {
435
- if (u == null) {
436
- if (uRef == null) {
437
- matchResult = 3;
438
- } else {
439
- matchResult = 2;
440
- uRef_1 = value(uRef);
441
- }
442
- } else if (uRef != null) {
443
- matchResult = 2;
444
- uRef_1 = value(uRef);
445
- } else {
446
- matchResult = 1;
447
- u_1 = value(u);
448
- }
449
- } else if (u == null) {
450
- if (uRef == null) {
451
- matchResult = 0;
452
- vr = value(vRef);
453
- } else {
454
- matchResult = 4;
455
- }
456
- } else {
457
- matchResult = 4;
458
- }
459
- switch (matchResult) {
460
- case 0:
461
- return CompositeCell_Term(OntologyAnnotation.fromTermAnnotation(vr, unwrap(v)));
462
- case 1:
463
- return CompositeCell_Unitized(defaultArg(v, ""), new OntologyAnnotation(u_1));
464
- case 2:
465
- return CompositeCell_Unitized(defaultArg(v, ""), OntologyAnnotation.fromTermAnnotation(uRef_1, unwrap(u)));
466
- case 3:
467
- return CompositeCell_Term(new OntologyAnnotation(unwrap(v)));
468
- default: {
469
- const arg = defaultArg(v, "");
470
- return toFail(printf("Could not parse value %s with unit %O and unit reference %O"))(arg)(u)(uRef);
471
- }
472
- }
473
- }
474
- function BaseTypes_decomposeComponent_Z2F770004(c, context) {
475
- return [CompositeHeader_Component(BaseTypes_headerOntologyOfPropertyValue_Z2F770004(c, unwrap(context))), BaseTypes_cellOfPropertyValue_Z2F770004(c, unwrap(context))];
476
- }
477
- function BaseTypes_decomposeParameterValue_Z2F770004(c, context) {
478
- return [CompositeHeader_Parameter(BaseTypes_headerOntologyOfPropertyValue_Z2F770004(c, unwrap(context))), BaseTypes_cellOfPropertyValue_Z2F770004(c, unwrap(context))];
479
- }
480
- function BaseTypes_decomposeFactorValue_Z2F770004(c, context) {
481
- return [CompositeHeader_Factor(BaseTypes_headerOntologyOfPropertyValue_Z2F770004(c, unwrap(context))), BaseTypes_cellOfPropertyValue_Z2F770004(c, unwrap(context))];
482
- }
483
- function BaseTypes_decomposeCharacteristicValue_Z2F770004(c, context) {
484
- return [CompositeHeader_Characteristic(BaseTypes_headerOntologyOfPropertyValue_Z2F770004(c, unwrap(context))), BaseTypes_cellOfPropertyValue_Z2F770004(c, unwrap(context))];
485
- }
486
- function BaseTypes_decomposeProcessInput_Z2F770004(pn, context) {
487
- if (LDSample.validateSource(pn, unwrap(context))) {
488
- return [CompositeHeader_Input(IOType_Source()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
489
- } else if (LDSample.validateMaterial(pn, unwrap(context))) {
490
- return [CompositeHeader_Input(IOType_Material()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
491
- } else if (LDSample.validate(pn, unwrap(context))) {
492
- return [CompositeHeader_Input(IOType_Sample()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
493
- } else if (LDFile.validate(pn, unwrap(context))) {
494
- return [CompositeHeader_Input(IOType_Data()), CompositeCell_Data(BaseTypes_decomposeFile_Z2F770004(pn, unwrap(context)))];
495
- } else {
496
- const n = pn;
497
- return [CompositeHeader_Input(IOType_FreeText(n.SchemaType[0])), CompositeCell_FreeText(LDSample.getNameAsString(n, unwrap(context)))];
498
- }
499
- }
500
- function BaseTypes_decomposeProcessOutput_Z2F770004(pn, context) {
501
- if (LDSample.validateMaterial(pn, unwrap(context))) {
502
- return [CompositeHeader_Output(IOType_Material()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
503
- } else if (LDSample.validate(pn, unwrap(context))) {
504
- return [CompositeHeader_Output(IOType_Sample()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
505
- } else if (LDFile.validate(pn, unwrap(context))) {
506
- return [CompositeHeader_Output(IOType_Data()), CompositeCell_Data(BaseTypes_decomposeFile_Z2F770004(pn, unwrap(context)))];
507
- } else {
508
- const n = pn;
509
- return [CompositeHeader_Output(IOType_FreeText(n.SchemaType[0])), CompositeCell_FreeText(LDSample.getNameAsString(n, unwrap(context)))];
510
- }
511
- }
512
- function BaseTypes_composeTechnologyPlatform_ZDED3A0F(tp) {
513
- const matchValue = tp.TANInfo;
514
- if (matchValue == null) {
515
- return `${tp.NameText}`;
516
- } else {
517
- return `${tp.NameText} (${tp.TermAccessionShort})`;
518
- }
519
- }
520
- function BaseTypes_decomposeTechnologyPlatform_Z721C83C5(name) {
521
- const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("^(?<value>.+) \\((?<ontology>[^(]*:[^)]*)\\)$", name);
522
- if (activePatternResult != null) {
523
- const r = value(activePatternResult);
524
- let oa;
525
- const tan = r.groups && r.groups.ontology || "";
526
- oa = OntologyAnnotation.fromTermAnnotation(tan);
527
- const v = r.groups && r.groups.value || "";
528
- return OntologyAnnotation.create(v, unwrap(oa.TermSourceREF), unwrap(oa.TermAccessionNumber));
529
- } else {
530
- return OntologyAnnotation.create(name);
531
- }
532
- }
533
- class ProcessConversion {
534
- constructor() {
535
- }
536
- }
537
- function ProcessConversion_$reflection() {
538
- return class_type("ARCtrl.Conversion.ProcessConversion", void 0, ProcessConversion);
539
- }
540
- function ProcessConversion_tryGetProtocolType_Z6839B9E8(pv, graph, context) {
541
- const matchValue = LDLabProtocol.tryGetIntendedUseAsDefinedTerm(pv, unwrap(graph), unwrap(context));
542
- if (matchValue == null) {
543
- const matchValue_1 = LDLabProtocol.tryGetIntendedUseAsString(pv, unwrap(context));
544
- if (matchValue_1 == null) {
545
- return void 0;
546
- } else {
547
- const s = value(matchValue_1);
548
- return OntologyAnnotation.create(s);
549
- }
550
- } else {
551
- return BaseTypes_decomposeDefinedTerm_Z2F770004(value(matchValue), unwrap(context));
552
- }
553
- }
554
- function ProcessConversion_composeProcessName(processNameRoot, i) {
555
- return `${processNameRoot}_${i}`;
556
- }
557
- function ProcessConversion_decomposeProcessName_Z721C83C5(name) {
558
- const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("(?<name>.+)_(?<num>\\d+)", name);
559
- if (activePatternResult != null) {
560
- const r = value(activePatternResult);
561
- return [r.groups && r.groups.name || "", parse(r.groups && r.groups.num || "", 511, false, 32)];
562
- } else {
563
- return [name, void 0];
564
- }
565
- }
566
- function ProcessConversion_tryComponentGetter(generalI, valueI, valueHeader) {
567
- if (valueHeader.tag === /* Component */
568
- 0) {
569
- const oa = valueHeader.fields[0];
570
- return (table) => (i) => {
571
- let matchValue;
572
- const c = BaseTypes_composeComponent(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
573
- ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(c, valueI);
574
- return c;
575
- };
576
- } else {
577
- return void 0;
578
- }
579
- }
580
- function ProcessConversion_tryParameterGetter(generalI, valueI, valueHeader) {
581
- if (valueHeader.tag === /* Parameter */
582
- 3) {
583
- const oa = valueHeader.fields[0];
584
- return (table) => (i) => {
585
- let matchValue;
586
- const p = BaseTypes_composeParameterValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
587
- ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(p, valueI);
588
- return p;
589
- };
590
- } else {
591
- return void 0;
592
- }
593
- }
594
- function ProcessConversion_tryFactorGetter(generalI, valueI, valueHeader) {
595
- if (valueHeader.tag === /* Factor */
596
- 2) {
597
- const oa = valueHeader.fields[0];
598
- return (table) => (i) => {
599
- let matchValue;
600
- const f = BaseTypes_composeFactorValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
601
- ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(f, valueI);
602
- return f;
603
- };
604
- } else {
605
- return void 0;
606
- }
607
- }
608
- function ProcessConversion_tryCharacteristicGetter(generalI, valueI, valueHeader) {
609
- if (valueHeader.tag === /* Characteristic */
610
- 1) {
611
- const oa = valueHeader.fields[0];
612
- return (table) => (i) => {
613
- let matchValue;
614
- const c = BaseTypes_composeCharacteristicValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
615
- ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(c, valueI);
616
- return c;
617
- };
618
- } else {
619
- return void 0;
620
- }
621
- }
622
- function ProcessConversion_tryGetProtocolTypeGetter(generalI, header) {
623
- if (header.tag === /* ProtocolType */
624
- 4) {
625
- return (table) => (i) => {
626
- let matchValue, cell;
627
- return BaseTypes_composeDefinedTerm_ZDED3A0F((matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? new OntologyAnnotation() : (cell = value(matchValue), cell.AsTerm)));
628
- };
629
- } else {
630
- return void 0;
631
- }
632
- }
633
- function ProcessConversion_tryGetProtocolREFGetter(generalI, header) {
634
- if (header.tag === /* ProtocolREF */
635
- 8) {
636
- return (table) => (i) => {
637
- const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
638
- if (matchValue == null) {
639
- return "";
640
- } else {
641
- const cell = value(matchValue);
642
- return cell.AsFreeText;
643
- }
644
- };
645
- } else {
646
- return void 0;
647
- }
648
- }
649
- function ProcessConversion_tryGetProtocolDescriptionGetter(generalI, header) {
650
- if (header.tag === /* ProtocolDescription */
651
- 5) {
652
- return (table) => (i) => {
653
- const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
654
- if (matchValue == null) {
655
- return "";
656
- } else {
657
- const cell = value(matchValue);
658
- return cell.AsFreeText;
659
- }
660
- };
661
- } else {
662
- return void 0;
663
- }
664
- }
665
- function ProcessConversion_tryGetProtocolURIGetter(generalI, header) {
666
- if (header.tag === /* ProtocolUri */
667
- 6) {
668
- return (table) => (i) => {
669
- const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
670
- if (matchValue == null) {
671
- return "";
672
- } else {
673
- const cell = value(matchValue);
674
- return cell.AsFreeText;
675
- }
676
- };
677
- } else {
678
- return void 0;
679
- }
680
- }
681
- function ProcessConversion_tryGetProtocolVersionGetter(generalI, header) {
682
- if (header.tag === /* ProtocolVersion */
683
- 7) {
684
- return (table) => (i) => {
685
- const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
686
- if (matchValue == null) {
687
- return "";
688
- } else {
689
- const cell = value(matchValue);
690
- return cell.AsFreeText;
691
- }
692
- };
693
- } else {
694
- return void 0;
695
- }
696
- }
697
- function ProcessConversion_tryGetInputGetter(generalI, header, fs) {
698
- if (header.tag === /* Input */
699
- 11) {
700
- const io = header.fields[0];
701
- return (table) => (i) => {
702
- let matchValue;
703
- return BaseTypes_composeProcessInput(header, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(header, void 0) : value(matchValue)), fs);
704
- };
705
- } else {
706
- return void 0;
707
- }
708
- }
709
- function ProcessConversion_tryGetOutputGetter(generalI, header, fs) {
710
- if (header.tag === /* Output */
711
- 12) {
712
- const io = header.fields[0];
713
- return (table) => (i) => {
714
- let matchValue;
715
- return BaseTypes_composeProcessOutput(header, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(header, void 0) : value(matchValue)), fs);
716
- };
717
- } else {
718
- return void 0;
719
- }
720
- }
721
- function ProcessConversion_tryGetCommentGetter(generalI, header) {
722
- if (header.tag === /* Comment */
723
- 14) {
724
- const c = header.fields[0];
725
- return (table) => (i) => {
726
- let matchValue, cell;
727
- return toString$1((matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? new Comment$(c) : (cell = value(matchValue), new Comment$(c, cell.AsFreeText))));
728
- };
729
- } else {
730
- return void 0;
731
- }
732
- }
733
- function ProcessConversion_tryGetPerformerGetter(generalI, header) {
734
- if (header.tag === /* Performer */
735
- 9) {
736
- return (table) => (i) => {
737
- let performer;
738
- const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
739
- if (matchValue == null) {
740
- performer = "";
741
- } else {
742
- const cell = value(matchValue);
743
- performer = cell.AsFreeText;
744
- }
745
- return LDPerson.create(performer);
746
- };
747
- } else {
748
- return void 0;
749
- }
750
- }
751
- function ProcessConversion_getProcessGetter(assayName, studyName, processNameRoot, headers, fs) {
752
- const headers_1 = indexed(headers);
753
- const valueHeaders = toList(indexed(filter((arg) => arg[1].IsCvParamColumn, headers_1)));
754
- const charGetters = choose((tupledArg) => {
755
- const _arg = tupledArg[1];
756
- return ProcessConversion_tryCharacteristicGetter(_arg[0], tupledArg[0], _arg[1]);
757
- }, valueHeaders);
758
- const factorValueGetters = choose((tupledArg_1) => {
759
- const _arg_1 = tupledArg_1[1];
760
- return ProcessConversion_tryFactorGetter(_arg_1[0], tupledArg_1[0], _arg_1[1]);
761
- }, valueHeaders);
762
- const parameterValueGetters = choose((tupledArg_2) => {
763
- const _arg_2 = tupledArg_2[1];
764
- return ProcessConversion_tryParameterGetter(_arg_2[0], tupledArg_2[0], _arg_2[1]);
765
- }, valueHeaders);
766
- const componentGetters = choose((tupledArg_3) => {
767
- const _arg_3 = tupledArg_3[1];
768
- return ProcessConversion_tryComponentGetter(_arg_3[0], tupledArg_3[0], _arg_3[1]);
769
- }, valueHeaders);
770
- const protocolTypeGetter = tryPick((tupledArg_4) => ProcessConversion_tryGetProtocolTypeGetter(tupledArg_4[0], tupledArg_4[1]), headers_1);
771
- const protocolREFGetter = tryPick((tupledArg_5) => ProcessConversion_tryGetProtocolREFGetter(tupledArg_5[0], tupledArg_5[1]), headers_1);
772
- const protocolDescriptionGetter = tryPick((tupledArg_6) => ProcessConversion_tryGetProtocolDescriptionGetter(tupledArg_6[0], tupledArg_6[1]), headers_1);
773
- const protocolURIGetter = tryPick((tupledArg_7) => ProcessConversion_tryGetProtocolURIGetter(tupledArg_7[0], tupledArg_7[1]), headers_1);
774
- const protocolVersionGetter = tryPick((tupledArg_8) => ProcessConversion_tryGetProtocolVersionGetter(tupledArg_8[0], tupledArg_8[1]), headers_1);
775
- const performerGetter = tryPick((tupledArg_9) => ProcessConversion_tryGetPerformerGetter(tupledArg_9[0], tupledArg_9[1]), headers_1);
776
- const commentGetters = toList(choose$1((tupledArg_10) => ProcessConversion_tryGetCommentGetter(tupledArg_10[0], tupledArg_10[1]), headers_1));
777
- let inputGetter_1;
778
- const matchValue = tryPick((tupledArg_11) => ProcessConversion_tryGetInputGetter(tupledArg_11[0], tupledArg_11[1], fs), headers_1);
779
- if (matchValue == null) {
780
- inputGetter_1 = length(charGetters) !== 0 ? (table_1) => (i_1) => {
781
- let chars_1;
782
- const collection_1 = map$2((f_1) => f_1(table_1)(i_1), charGetters);
783
- chars_1 = Array.from(collection_1);
784
- return ResizeArray_singleton(LDSample.createSample(`${processNameRoot}_Input_${i_1}`, void 0, chars_1));
785
- } : (table_2) => (i_2) => [];
786
- } else {
787
- const inputGetter = value(matchValue);
788
- inputGetter_1 = (table) => (i) => {
789
- let chars;
790
- const collection = map$2((f) => f(table)(i), charGetters);
791
- chars = Array.from(collection);
792
- const input = inputGetter(table)(i);
793
- if (chars.length > 0) {
794
- LDSample.setAdditionalProperties(input, chars);
795
- }
796
- return ResizeArray_singleton(input);
797
- };
798
- }
799
- let outputGetter_1;
800
- const matchValue_1 = tryPick((tupledArg_12) => ProcessConversion_tryGetOutputGetter(tupledArg_12[0], tupledArg_12[1], fs), headers_1);
801
- if (matchValue_1 == null) {
802
- outputGetter_1 = length(factorValueGetters) !== 0 ? (table_4) => (i_4) => {
803
- let factors_1;
804
- const collection_3 = map$2((f_3) => f_3(table_4)(i_4), factorValueGetters);
805
- factors_1 = Array.from(collection_3);
806
- return ResizeArray_singleton(LDSample.createSample(`${processNameRoot}_Output_${i_4}`, void 0, factors_1));
807
- } : (table_5) => (i_5) => [];
808
- } else {
809
- const outputGetter = value(matchValue_1);
810
- outputGetter_1 = (table_3) => (i_3) => {
811
- let factors;
812
- const collection_2 = map$2((f_2) => f_2(table_3)(i_3), factorValueGetters);
813
- factors = Array.from(collection_2);
814
- const output = outputGetter(table_3)(i_3);
815
- if (factors.length > 0) {
816
- LDSample.setAdditionalProperties(output, factors);
817
- }
818
- return ResizeArray_singleton(output);
819
- };
820
- }
821
- return (table_6) => (i_6) => {
822
- const pn = table_6.RowCount === 1 ? processNameRoot : ProcessConversion_composeProcessName(processNameRoot, i_6);
823
- const paramvalues = map((collection_4) => Array.from(collection_4), Option_fromValueWithDefault(empty(), map$3((f_4) => f_4(table_6)(i_6), parameterValueGetters)));
824
- const comments = map((collection_5) => Array.from(collection_5), Option_fromValueWithDefault(empty(), map$3((f_5) => f_5(table_6)(i_6), commentGetters)));
825
- const components = map((collection_6) => Array.from(collection_6), Option_fromValueWithDefault(empty(), map$3((f_6) => f_6(table_6)(i_6), componentGetters)));
826
- const id = LDLabProcess.genId(processNameRoot, unwrap(assayName), unwrap(studyName)) + `_${i_6}`;
827
- let protocol;
828
- const name = map((f_7) => f_7(table_6)(i_6), protocolREFGetter);
829
- const protocolId = LDLabProtocol.genId(unwrap(name), processNameRoot);
830
- protocol = LDLabProtocol.create(protocolId, unwrap(name), unwrap(map((f_8) => f_8(table_6)(i_6), protocolDescriptionGetter)), unwrap(map((f_9) => f_9(table_6)(i_6), protocolTypeGetter)), void 0, void 0, unwrap(components), void 0, unwrap(map((f_10) => f_10(table_6)(i_6), protocolURIGetter)), unwrap(map((f_11) => f_11(table_6)(i_6), protocolVersionGetter)));
831
- const matchValue_2 = inputGetter_1(table_6)(i_6);
832
- const matchValue_3 = outputGetter_1(table_6)(i_6);
833
- const agent = map((f_12) => f_12(table_6)(i_6), performerGetter);
834
- return LDLabProcess.create(pn, matchValue_2, matchValue_3, id, unwrap(agent), unwrap(protocol), unwrap(paramvalues), void 0, unwrap(comments));
835
- };
836
- }
837
- function ProcessConversion_groupProcesses_Z27F0B586(processes, graph, context) {
838
- return List_groupBy((p) => {
839
- let protocol, protocol_1;
840
- const matchValue = LDLabProcess.tryGetNameAsString(p, unwrap(context));
841
- const matchValue_1 = LDLabProcess.tryGetExecutesLabProtocol(p, unwrap(graph), unwrap(context));
842
- let matchResult, name_1, protocol_2, name_2, protocol_3;
843
- if (matchValue != null) {
844
- if (ProcessConversion_decomposeProcessName_Z721C83C5(value(matchValue))[1] != null) {
845
- matchResult = 0;
846
- name_1 = value(matchValue);
847
- } else if (matchValue_1 != null) {
848
- if (protocol = value(matchValue_1), LDLabProtocol.tryGetNameAsString(protocol, unwrap(context)) != null) {
849
- matchResult = 1;
850
- protocol_2 = value(matchValue_1);
851
- } else {
852
- matchResult = 2;
853
- name_2 = value(matchValue);
854
- }
855
- } else {
856
- matchResult = 2;
857
- name_2 = value(matchValue);
858
- }
859
- } else if (matchValue_1 != null) {
860
- if (protocol_1 = value(matchValue_1), LDLabProtocol.tryGetNameAsString(protocol_1, unwrap(context)) != null) {
861
- matchResult = 1;
862
- protocol_2 = value(matchValue_1);
863
- } else {
864
- matchResult = 3;
865
- protocol_3 = value(matchValue_1);
866
- }
867
- } else {
868
- matchResult = 4;
869
- }
870
- switch (matchResult) {
871
- case 0:
872
- return ProcessConversion_decomposeProcessName_Z721C83C5(name_1)[0];
873
- case 1:
874
- return defaultArg(LDLabProtocol.tryGetNameAsString(protocol_2, unwrap(context)), "");
875
- case 2:
876
- return name_2;
877
- case 3:
878
- return protocol_3.Id;
879
- default:
880
- return createMissingIdentifier();
881
- }
882
- }, processes, {
883
- Equals: (x, y) => x === y,
884
- GetHashCode: stringHash
885
- });
886
- }
887
- function ProcessConversion_processToRows_Z6839B9E8(p, graph, context) {
888
- const pvs = ResizeArray_map((ppv) => [BaseTypes_decomposeParameterValue_Z2F770004(ppv, unwrap(context)), ColumnIndex_tryGetIndex(ppv)], LDLabProcess.getParameterValues(p, unwrap(graph), unwrap(context)));
889
- let components;
890
- const matchValue = LDLabProcess.tryGetExecutesLabProtocol(p, unwrap(graph), unwrap(context));
891
- if (matchValue == null) {
892
- components = [];
893
- } else {
894
- const prot = value(matchValue);
895
- components = ResizeArray_map((ppv_1) => [BaseTypes_decomposeComponent_Z2F770004(ppv_1, unwrap(context)), ColumnIndex_tryGetIndex(ppv_1)], LDLabProtocol.getComponents(prot, unwrap(graph), unwrap(context)));
896
- }
897
- let protVals;
898
- const matchValue_1 = LDLabProcess.tryGetExecutesLabProtocol(p, unwrap(graph), unwrap(context));
899
- if (matchValue_1 == null) {
900
- protVals = empty();
901
- } else {
902
- const prot_1 = value(matchValue_1);
903
- protVals = toList(delay(() => {
904
- let matchValue_2;
905
- return append((matchValue_2 = LDLabProtocol.tryGetNameAsString(prot_1, unwrap(context)), matchValue_2 == null ? empty$1() : singleton([CompositeHeader_ProtocolREF(), CompositeCell_FreeText(value(matchValue_2))])), delay(() => {
906
- let matchValue_3;
907
- return append((matchValue_3 = LDLabProtocol.tryGetDescriptionAsString(prot_1, unwrap(context)), matchValue_3 == null ? empty$1() : singleton([CompositeHeader_ProtocolDescription(), CompositeCell_FreeText(value(matchValue_3))])), delay(() => {
908
- let matchValue_4;
909
- return append((matchValue_4 = LDLabProtocol.tryGetUrl(prot_1, unwrap(context)), matchValue_4 == null ? empty$1() : singleton([CompositeHeader_ProtocolUri(), CompositeCell_FreeText(value(matchValue_4))])), delay(() => {
910
- let matchValue_5;
911
- return append((matchValue_5 = LDLabProtocol.tryGetVersionAsString(prot_1, unwrap(context)), matchValue_5 == null ? empty$1() : singleton([CompositeHeader_ProtocolVersion(), CompositeCell_FreeText(value(matchValue_5))])), delay(() => {
912
- const matchValue_6 = ProcessConversion_tryGetProtocolType_Z6839B9E8(prot_1, unwrap(graph), unwrap(context));
913
- if (matchValue_6 == null) {
914
- return empty$1();
915
- } else {
916
- return singleton([CompositeHeader_ProtocolType(), CompositeCell_Term(value(matchValue_6))]);
917
- }
918
- }));
919
- }));
920
- }));
921
- }));
922
- }));
923
- }
924
- const comments = ResizeArray_map((c) => {
925
- const c_1 = Comment$.fromString(c);
926
- return [CompositeHeader_Comment(defaultArg(c_1.Name, "")), CompositeCell_FreeText(defaultArg(c_1.Value, ""))];
927
- }, LDLabProcess.getDisambiguatingDescriptionsAsString(p, unwrap(context)));
928
- const inputs = LDLabProcess.getObjects(p, unwrap(graph), unwrap(context));
929
- const outputs = LDLabProcess.getResults(p, unwrap(graph), unwrap(context));
930
- const patternInput = inputs.length === 0 && outputs.length !== 0 ? [ResizeArray_create(outputs.length, void 0), ResizeArray_map((Value) => Value, outputs)] : inputs.length !== 0 && outputs.length === 0 ? [ResizeArray_map((Value_1) => Value_1, inputs), ResizeArray_create(inputs.length, void 0)] : [ResizeArray_map((Value_2) => Value_2, inputs), ResizeArray_map((Value_3) => Value_3, outputs)];
931
- const outputs_1 = patternInput[1];
932
- const inputs_1 = patternInput[0];
933
- if (inputs_1.length === 0 && outputs_1.length === 0) {
934
- const vals = map$3((tuple_1) => tuple_1[0], sortBy((arg) => defaultArg(arg[1], 1e4), toList(delay(() => append(components, delay(() => pvs)))), {
935
- Compare: comparePrimitives
936
- }));
937
- return ResizeArray_singleton(toList(delay(() => append(protVals, delay(() => append(vals, delay(() => comments)))))));
938
- } else {
939
- return ResizeArray_map((tupledArg) => {
940
- const i = tupledArg[0];
941
- const o = tupledArg[1];
942
- let chars;
943
- if (i == null) {
944
- chars = [];
945
- } else {
946
- const i_1 = value(i);
947
- chars = ResizeArray_map((cv) => [BaseTypes_decomposeCharacteristicValue_Z2F770004(cv, unwrap(context)), ColumnIndex_tryGetIndex(cv)], LDSample.getCharacteristics(i_1, unwrap(graph), unwrap(context)));
948
- }
949
- let factors;
950
- if (o == null) {
951
- factors = [];
952
- } else {
953
- const o_1 = value(o);
954
- factors = ResizeArray_map((fv) => [BaseTypes_decomposeFactorValue_Z2F770004(fv, unwrap(context)), ColumnIndex_tryGetIndex(fv)], LDSample.getFactors(o_1, unwrap(graph), unwrap(context)));
955
- }
956
- const vals_1 = map$3((tuple_3) => tuple_3[0], sortBy((arg_1) => defaultArg(arg_1[1], 1e4), toList(delay(() => append(chars, delay(() => append(components, delay(() => append(pvs, delay(() => factors)))))))), {
957
- Compare: comparePrimitives
958
- }));
959
- return toList(delay(() => append(i != null ? singleton(BaseTypes_decomposeProcessInput_Z2F770004(value(i), unwrap(context))) : empty$1(), delay(() => append(protVals, delay(() => append(vals_1, delay(() => append(comments, delay(() => o != null ? singleton(BaseTypes_decomposeProcessOutput_Z2F770004(value(o), unwrap(context))) : empty$1()))))))))));
960
- }, ResizeArray_zip(inputs_1, outputs_1));
961
- }
962
- }
963
- function CompositeRow_toProtocol(tableName, row) {
964
- return fold((p, hc) => {
965
- let matchResult, oa, v, v_1, v_2, v_3;
966
- switch (hc[0].tag) {
967
- case /* ProtocolType */
968
- 4: {
969
- if (hc[1].tag === /* Term */
970
- 0) {
971
- matchResult = 0;
972
- oa = hc[1].fields[0];
973
- } else {
974
- matchResult = 6;
975
- }
976
- break;
977
- }
978
- case /* ProtocolVersion */
979
- 7: {
980
- if (hc[1].tag === /* FreeText */
981
- 1) {
982
- matchResult = 1;
983
- v = hc[1].fields[0];
984
- } else {
985
- matchResult = 6;
986
- }
987
- break;
988
- }
989
- case /* ProtocolUri */
990
- 6: {
991
- if (hc[1].tag === /* FreeText */
992
- 1) {
993
- matchResult = 2;
994
- v_1 = hc[1].fields[0];
995
- } else {
996
- matchResult = 6;
997
- }
998
- break;
999
- }
1000
- case /* ProtocolDescription */
1001
- 5: {
1002
- if (hc[1].tag === /* FreeText */
1003
- 1) {
1004
- matchResult = 3;
1005
- v_2 = hc[1].fields[0];
1006
- } else {
1007
- matchResult = 6;
1008
- }
1009
- break;
1010
- }
1011
- case /* ProtocolREF */
1012
- 8: {
1013
- if (hc[1].tag === /* FreeText */
1014
- 1) {
1015
- matchResult = 4;
1016
- v_3 = hc[1].fields[0];
1017
- } else {
1018
- matchResult = 6;
1019
- }
1020
- break;
1021
- }
1022
- case /* Component */
1023
- 0: {
1024
- switch (hc[1].tag) {
1025
- case /* Term */
1026
- 0:
1027
- case /* Unitized */
1028
- 2: {
1029
- matchResult = 5;
1030
- break;
1031
- }
1032
- default:
1033
- matchResult = 6;
1034
- }
1035
- break;
1036
- }
1037
- default:
1038
- matchResult = 6;
1039
- }
1040
- switch (matchResult) {
1041
- case 0: {
1042
- LDLabProtocol.setIntendedUseAsDefinedTerm(p, BaseTypes_composeDefinedTerm_ZDED3A0F(oa));
1043
- break;
1044
- }
1045
- case 1: {
1046
- LDLabProtocol.setVersionAsString(p, v);
1047
- break;
1048
- }
1049
- case 2: {
1050
- LDLabProtocol.setUrl(p, v_1);
1051
- break;
1052
- }
1053
- case 3: {
1054
- LDLabProtocol.setDescriptionAsString(p, v_2);
1055
- break;
1056
- }
1057
- case 4: {
1058
- LDLabProtocol.setNameAsString(p, v_3);
1059
- break;
1060
- }
1061
- case 5: {
1062
- const newC = ResizeArray_appendSingleton(BaseTypes_composeComponent(hc[0], hc[1]), LDLabProtocol.getLabEquipments(p));
1063
- LDLabProtocol.setLabEquipments(p, newC);
1064
- break;
1065
- }
1066
- }
1067
- return p;
1068
- }, LDLabProtocol.create(tableName, tableName), row);
1069
- }
1070
- function ARCtrl_ArcTable__ArcTable_fromProtocol_Static_Z6839B9E8(p, graph, context) {
1071
- const name = LDLabProtocol.getNameAsString(p, unwrap(context));
1072
- const t = ArcTable.init(name);
1073
- let enumerator = getEnumerator(LDLabProtocol.getComponents(p, unwrap(graph), unwrap(context)));
1074
- try {
1075
- while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
1076
- const c = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
1077
- const patternInput = BaseTypes_decomposeComponent_Z2F770004(c, unwrap(context));
1078
- t.AddColumn(patternInput[0], ResizeArray_singleton(patternInput[1]), unwrap(ARCtrl_ROCrate_LDNode__LDNode_TryGetColumnIndex(c)));
1079
- }
1080
- } finally {
1081
- disposeSafe(enumerator);
1082
- }
1083
- map((d) => {
1084
- t.AddProtocolDescriptionColumn(ResizeArray_singleton(d));
1085
- }, LDLabProtocol.tryGetDescriptionAsString(p, unwrap(context)));
1086
- map((d_1) => {
1087
- t.AddProtocolVersionColumn(ResizeArray_singleton(d_1));
1088
- }, LDLabProtocol.tryGetVersionAsString(p, unwrap(context)));
1089
- map((d_2) => {
1090
- t.AddProtocolTypeColumn(ResizeArray_singleton(d_2));
1091
- }, ProcessConversion_tryGetProtocolType_Z6839B9E8(p, void 0, unwrap(context)));
1092
- map((d_3) => {
1093
- t.AddProtocolUriColumn(ResizeArray_singleton(d_3));
1094
- }, LDLabProtocol.tryGetUrl(p, unwrap(context)));
1095
- t.AddProtocolNameColumn(ResizeArray_singleton(name));
1096
- return t;
1097
- }
1098
- function ARCtrl_ArcTable__ArcTable_GetProtocols(this$) {
1099
- let source;
1100
- if (this$.RowCount === 0) {
1101
- return singleton$1((source = this$.Headers, fold((p, h) => {
1102
- if (h.tag === /* Component */
1103
- 0) {
1104
- const oa = h.fields[0];
1105
- const matchValue = oa.NameText;
1106
- const matchValue_1 = oa.TermAccessionOntobeeUrl;
1107
- const newC = ResizeArray_appendSingleton(LDPropertyValue.createComponent(matchValue, "Empty Component Value", void 0, matchValue_1), LDLabProtocol.getLabEquipments(p));
1108
- LDLabProtocol.setLabEquipments(p, newC);
1109
- }
1110
- return p;
1111
- }, LDLabProtocol.create(createMissingIdentifier(), this$.Name), source)));
1112
- } else {
1113
- return List_distinct(initialize(this$.RowCount, (i) => {
1114
- let row;
1115
- const source_2 = this$.GetRow(i, true);
1116
- row = zip(this$.Headers, source_2);
1117
- return CompositeRow_toProtocol(this$.Name, row);
1118
- }), {
1119
- Equals: equals,
1120
- GetHashCode: safeHash
1121
- });
1122
- }
1123
- }
1124
- function ARCtrl_ArcTable__ArcTable_GetProcesses_5E660E5C(this$, assayName, studyName, fs) {
1125
- if (this$.RowCount === 0) {
1126
- return singleton$1(LDLabProcess.create(this$.Name));
1127
- } else {
1128
- const getter = ProcessConversion_getProcessGetter(assayName, studyName, this$.Name, this$.Headers, fs);
1129
- return toList(delay(() => map$2((i) => getter(this$)(i), rangeDouble(0, 1, this$.RowCount - 1))));
1130
- }
1131
- }
1132
- function ARCtrl_ArcTable__ArcTable_fromProcesses_Static_Z3575FB5F(name, ps, graph, context) {
1133
- const tupledArg = Unchecked_alignByHeaders(true, collect((p) => ofSeq(ProcessConversion_processToRows_Z6839B9E8(p, unwrap(graph), unwrap(context))), ps));
1134
- return ArcTable.fromArcTableValues(name, tupledArg[0], tupledArg[1]);
1135
- }
1136
- function ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(this$, assayName, studyName, fs) {
1137
- return collect((t) => ARCtrl_ArcTable__ArcTable_GetProcesses_5E660E5C(t, unwrap(assayName), unwrap(studyName), unwrap(fs)), toList(this$.Tables));
1138
- }
1139
- function ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586(ps, graph, context) {
1140
- let collection;
1141
- return new ArcTables((collection = map$3((tupledArg) => {
1142
- const tupledArg_1 = Unchecked_alignByHeaders(true, collect((p) => ofSeq(ProcessConversion_processToRows_Z6839B9E8(p, unwrap(graph), unwrap(context))), tupledArg[1]));
1143
- return ArcTable.fromArcTableValues(tupledArg[0], tupledArg_1[0], tupledArg_1[1]);
1144
- }, ProcessConversion_groupProcesses_Z27F0B586(ps, unwrap(graph), unwrap(context))), Array.from(collection)));
1145
- }
1146
- class DatamapConversion {
1147
- constructor() {
1148
- }
1149
- }
1150
- function DatamapConversion_$reflection() {
1151
- return class_type("ARCtrl.Conversion.DatamapConversion", void 0, DatamapConversion);
1152
- }
1153
- function DatamapConversion_composeFragmentDescriptors_Z8923FA3(datamap) {
1154
- return ResizeArray_map(BaseTypes_composeFragmentDescriptor_Z4C0BEF62, datamap.DataContexts);
1155
- }
1156
- function DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(fragmentDescriptors, graph, context) {
1157
- return new DataMap(ResizeArray_map((fd) => BaseTypes_decomposeFragmentDescriptor_Z6839B9E8(fd, unwrap(graph), unwrap(context)), fragmentDescriptors));
1158
- }
1159
- class PersonConversion {
1160
- constructor() {
1161
- }
1162
- }
1163
- function PersonConversion_$reflection() {
1164
- return class_type("ARCtrl.Conversion.PersonConversion", void 0, PersonConversion);
1165
- }
1166
- function PersonConversion_get_orcidKey() {
1167
- return "ORCID";
1168
- }
1169
- function PersonConversion_composeAffiliation_Z721C83C5(affiliation) {
1170
- let arg;
1171
- try {
1172
- const matchValue = fromString(decoder, affiliation);
1173
- if (matchValue.tag === /* Error */
1174
- 1) {
1175
- throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
1176
- } else {
1177
- return matchValue.fields[0];
1178
- }
1179
- } catch (matchValue_1) {
1180
- return LDOrganization.create(affiliation);
1181
- }
1182
- }
1183
- function PersonConversion_decomposeAffiliation_Z2F770004(affiliation, context) {
1184
- if (isEmpty(filter((n) => n !== LDOrganization.name, affiliation.GetPropertyNames(unwrap(context))))) {
1185
- return LDOrganization.getNameAsString(affiliation, unwrap(context));
1186
- } else {
1187
- return toString(0, encoder(affiliation));
1188
- }
1189
- }
1190
- function PersonConversion_composeAddress_Z721C83C5(address) {
1191
- let matchValue;
1192
- try {
1193
- return matchValue = fromString(decoder, address), matchValue.tag === /* Error */
1194
- 1 ? (() => {
1195
- let arg;
1196
- throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
1197
- })() : matchValue.fields[0];
1198
- } catch (matchValue_1) {
1199
- return address;
1200
- }
1201
- }
1202
- function PersonConversion_decomposeAddress_4E60E31B(address) {
1203
- if (typeof address === "string") {
1204
- return address;
1205
- } else if (address instanceof LDNode) {
1206
- return toString(0, encoder(address));
1207
- } else {
1208
- throw new Error("Address must be a string or a Json.LDNode");
1209
- }
1210
- }
1211
- function PersonConversion_composePerson_Z64D846DC(person) {
1212
- let givenName;
1213
- const matchValue = person.FirstName;
1214
- if (matchValue == null) {
1215
- throw new Error("Person must have a given name");
1216
- } else {
1217
- givenName = value(matchValue);
1218
- }
1219
- const jobTitles = Option_fromSeq(ResizeArray_map(BaseTypes_composeDefinedTerm_ZDED3A0F, person.Roles));
1220
- const disambiguatingDescriptions = Option_fromSeq(ResizeArray_map(toString$1, person.Comments));
1221
- const address_1 = map(PersonConversion_composeAddress_Z721C83C5, person.Address);
1222
- const affiliation_1 = map(PersonConversion_composeAffiliation_Z721C83C5, person.Affiliation);
1223
- return LDPerson.create(givenName, unwrap(person.ORCID), void 0, unwrap(affiliation_1), unwrap(person.EMail), unwrap(person.LastName), void 0, unwrap(jobTitles), unwrap(person.MidInitials), address_1, unwrap(disambiguatingDescriptions), unwrap(person.Fax), unwrap(person.Phone));
1224
- }
1225
- function PersonConversion_decomposePerson_Z6839B9E8(person, graph, context) {
1226
- const orcid = tryGetOrcidNumber(person.Id);
1227
- let address;
1228
- const matchValue = LDPerson.tryGetAddressAsString(person, unwrap(context));
1229
- if (matchValue == null) {
1230
- const matchValue_1 = LDPerson.tryGetAddressAsPostalAddress(person, unwrap(graph), unwrap(context));
1231
- address = matchValue_1 == null ? void 0 : PersonConversion_decomposeAddress_4E60E31B(value(matchValue_1));
1232
- } else {
1233
- address = value(matchValue);
1234
- }
1235
- const roles = ResizeArray_map((r) => BaseTypes_decomposeDefinedTerm_Z2F770004(r, unwrap(context)), LDPerson.getJobTitlesAsDefinedTerm(person, unwrap(graph), unwrap(context)));
1236
- const comments = ResizeArray_map((s_1) => Comment$.fromString(s_1), LDPerson.getDisambiguatingDescriptionsAsString(person, unwrap(context)));
1237
- const affiliation = map((a_3) => PersonConversion_decomposeAffiliation_Z2F770004(a_3, unwrap(context)), LDPerson.tryGetAffiliation(person, unwrap(graph), unwrap(context)));
1238
- return Person.create(unwrap(orcid), unwrap(LDPerson.tryGetFamilyNameAsString(person, unwrap(context))), LDPerson.getGivenNameAsString(person, unwrap(context)), unwrap(LDPerson.tryGetAdditionalNameAsString(person, unwrap(context))), unwrap(LDPerson.tryGetEmailAsString(person, unwrap(context))), unwrap(LDPerson.tryGetTelephoneAsString(person, unwrap(context))), unwrap(LDPerson.tryGetFaxNumberAsString(person, unwrap(context))), unwrap(address), unwrap(affiliation), roles, comments);
1239
- }
1240
- class ScholarlyArticleConversion {
1241
- constructor() {
1242
- }
1243
- }
1244
- function ScholarlyArticleConversion_$reflection() {
1245
- return class_type("ARCtrl.Conversion.ScholarlyArticleConversion", void 0, ScholarlyArticleConversion);
1246
- }
1247
- function ScholarlyArticleConversion_composeAuthor_Z721C83C5(author) {
1248
- let arg;
1249
- try {
1250
- const matchValue = fromString(decoder, author);
1251
- if (matchValue.tag === /* Error */
1252
- 1) {
1253
- throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
1254
- } else {
1255
- return matchValue.fields[0];
1256
- }
1257
- } catch (matchValue_1) {
1258
- return LDPerson.create(author);
1259
- }
1260
- }
1261
- function ScholarlyArticleConversion_splitAuthors_Z721C83C5(a) {
1262
- let bracketCount = 0;
1263
- const authors = [];
1264
- const sb = StringBuilder_$ctor();
1265
- const enumerator = getEnumerator(a.split(""));
1266
- try {
1267
- while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
1268
- const c = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
1269
- switch (c) {
1270
- case "{": {
1271
- bracketCount = bracketCount + 1 | 0;
1272
- StringBuilder__Append_244C7CD6(sb, c);
1273
- break;
1274
- }
1275
- case "}": {
1276
- bracketCount = bracketCount - 1 | 0;
1277
- StringBuilder__Append_244C7CD6(sb, c);
1278
- break;
1279
- }
1280
- default:
1281
- if (c === "," && bracketCount === 0) {
1282
- void authors.push(toString$1(sb));
1283
- StringBuilder__Clear(sb);
1284
- } else {
1285
- StringBuilder__Append_244C7CD6(sb, c);
1286
- }
1287
- }
1288
- }
1289
- } finally {
1290
- disposeSafe(enumerator);
1291
- }
1292
- void authors.push(toString$1(sb));
1293
- return authors;
1294
- }
1295
- function ScholarlyArticleConversion_composeAuthors_Z721C83C5(authors) {
1296
- const collection = map$2(ScholarlyArticleConversion_composeAuthor_Z721C83C5, ScholarlyArticleConversion_splitAuthors_Z721C83C5(authors));
1297
- return Array.from(collection);
1298
- }
1299
- function ScholarlyArticleConversion_decomposeAuthor_Z2F770004(author, context) {
1300
- if (isEmpty(filter((n) => n !== LDPerson.givenName, author.GetPropertyNames(unwrap(context))))) {
1301
- return LDPerson.getGivenNameAsString(author, unwrap(context));
1302
- } else {
1303
- return toString(0, encoder(author));
1304
- }
1305
- }
1306
- function ScholarlyArticleConversion_decomposeAuthors_1AAAE9A5(authors, context) {
1307
- return join(",", ResizeArray_map((a) => ScholarlyArticleConversion_decomposeAuthor_Z2F770004(a, unwrap(context)), authors));
1308
- }
1309
- function ScholarlyArticleConversion_composeScholarlyArticle_D324A6D(publication) {
1310
- let title;
1311
- const matchValue = publication.Title;
1312
- if (matchValue == null) {
1313
- throw new Error("Publication must have a title");
1314
- } else {
1315
- title = value(matchValue);
1316
- }
1317
- const authors_1 = map(ScholarlyArticleConversion_composeAuthors_Z721C83C5, publication.Authors);
1318
- const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, publication.Comments));
1319
- const identifiers = Array.from(toList(delay(() => append(publication.DOI != null && value(publication.DOI) !== "" ? singleton(LDPropertyValue.createDOI(value(publication.DOI))) : empty$1(), delay(() => publication.PubMedID != null && value(publication.PubMedID) !== "" ? singleton(LDPropertyValue.createPubMedID(value(publication.PubMedID))) : empty$1())))));
1320
- const status = map(BaseTypes_composeDefinedTerm_ZDED3A0F, publication.Status);
1321
- return LDScholarlyArticle.create(title, identifiers, void 0, unwrap(authors_1), void 0, unwrap(status), unwrap(comments));
1322
- }
1323
- function ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8(sa, graph, context) {
1324
- const title = LDScholarlyArticle.getHeadlineAsString(sa, unwrap(context));
1325
- const authors = map((a) => ScholarlyArticleConversion_decomposeAuthors_1AAAE9A5(a, unwrap(context)), Option_fromSeq(LDScholarlyArticle.getAuthors(sa, unwrap(graph), unwrap(context))));
1326
- const comments = ResizeArray_map((c) => BaseTypes_decomposeComment_Z2F770004(c, unwrap(context)), LDScholarlyArticle.getComments(sa, unwrap(graph), unwrap(context)));
1327
- const status = map((s) => BaseTypes_decomposeDefinedTerm_Z2F770004(s, unwrap(context)), LDScholarlyArticle.tryGetCreativeWorkStatus(sa, unwrap(graph), unwrap(context)));
1328
- const identifiers = LDScholarlyArticle.getIdentifiersAsPropertyValue(sa, unwrap(graph), unwrap(context));
1329
- let doi;
1330
- const _arg = ResizeArray_tryPick((i) => LDPropertyValue.tryGetAsDOI(i, unwrap(context)), identifiers);
1331
- doi = _arg == null ? LDScholarlyArticle.tryGetSameAsAsString(sa, unwrap(context)) : value(_arg);
1332
- let pubMedID;
1333
- const _arg_1 = ResizeArray_tryPick((i_1) => LDPropertyValue.tryGetAsPubMedID(i_1, unwrap(context)), identifiers);
1334
- pubMedID = _arg_1 == null ? LDScholarlyArticle.tryGetUrlAsString(sa, unwrap(context)) : value(_arg_1);
1335
- return Publication.create(unwrap(pubMedID), unwrap(doi), unwrap(authors), title, unwrap(status), comments);
1336
- }
1337
- class AssayConversion {
1338
- constructor() {
1339
- }
9
+ function ARCtrl_ArcAssay__ArcAssay_ToROCrateAssay_1695DD5C(this$, fs) {
10
+ return AssayConversion_composeAssay_Z5C53FD5C(this$, unwrap(fs));
1340
11
  }
1341
- function AssayConversion_$reflection() {
1342
- return class_type("ARCtrl.Conversion.AssayConversion", void 0, AssayConversion);
12
+ function ARCtrl_ArcAssay__ArcAssay_fromROCrateAssay_Static_Z6839B9E8(a, graph, context) {
13
+ return AssayConversion_decomposeAssay_Z6839B9E8(a, unwrap(graph), unwrap(context));
1343
14
  }
1344
- function AssayConversion_getDataFilesFromProcesses_6BABD1B0(processes, fragmentDescriptors, graph, context) {
1345
- const data = ResizeArray_distinct(ResizeArray_append(ResizeArray_choose((df) => LDPropertyValue.tryGetSubjectOf(df, unwrap(graph), unwrap(context)), defaultArg(fragmentDescriptors, [])), ResizeArray_collect((p) => ResizeArray_append(LDLabProcess.getObjectsAsData(p, unwrap(graph), unwrap(context)), LDLabProcess.getResultsAsData(p, unwrap(graph), unwrap(context))), processes)));
1346
- const files = ResizeArray_filter((d) => DataAux_pathAndSelectorFromName(d.Id)[1] == null, data);
1347
- return ResizeArray_append(files, ResizeArray_map((tupledArg) => {
1348
- const path = tupledArg[0];
1349
- const fragments = tupledArg[1];
1350
- let file;
1351
- const matchValue = ResizeArray_tryFind((d_3) => d_3.Id === path, files);
1352
- if (matchValue == null) {
1353
- const comments = Option_fromSeq(LDFile.getComments(fragments[0], unwrap(graph), unwrap(context)));
1354
- file = LDFile.create(path, path, unwrap(comments), unwrap(LDFile.tryGetDisambiguatingDescriptionAsString(fragments[0], unwrap(context))), unwrap(LDFile.tryGetEncodingFormatAsString(fragments[0], unwrap(context))), void 0, unwrap(fragments[0].TryGetContext()));
1355
- } else {
1356
- file = value(matchValue);
1357
- }
1358
- LDDataset.setHasParts(file, fragments, unwrap(context));
1359
- return file;
1360
- }, ResizeArray_groupBy((d_2) => DataAux_pathAndSelectorFromName(d_2.Id)[0], ResizeArray_filter((d_1) => DataAux_pathAndSelectorFromName(d_1.Id)[1] != null, data))));
15
+ function ARCtrl_ArcStudy__ArcStudy_ToROCrateStudy_1695DD5C(this$, fs) {
16
+ return StudyConversion_composeStudy_ZFE0E38E(this$, unwrap(fs));
1361
17
  }
1362
- function AssayConversion_composeAssay_Z5C53FD5C(assay, fs) {
1363
- let collection, fds_1, vm_1, fds, vm;
1364
- const measurementMethod = map(BaseTypes_composeDefinedTerm_ZDED3A0F, assay.TechnologyType);
1365
- const measurementTechnique = map(BaseTypes_composeDefinedTerm_ZDED3A0F, assay.TechnologyPlatform);
1366
- const variableMeasured = map(BaseTypes_composePropertyValueFromOA_ZDED3A0F, assay.MeasurementType);
1367
- const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, assay.Performers));
1368
- const processSequence = Option_fromSeq((collection = ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(new ArcTables(assay.Tables), assay.Identifier, void 0, unwrap(fs)), Array.from(collection)));
1369
- const fragmentDescriptors = map(DatamapConversion_composeFragmentDescriptors_Z8923FA3, assay.DataMap);
1370
- const dataFiles = map((ps) => AssayConversion_getDataFilesFromProcesses_6BABD1B0(ps, unwrap(fragmentDescriptors)), processSequence);
1371
- const variableMeasureds = variableMeasured == null ? fragmentDescriptors == null ? void 0 : (fds_1 = value(fragmentDescriptors), fds_1) : fragmentDescriptors == null ? (vm_1 = value(variableMeasured), ResizeArray_singleton(vm_1)) : (fds = value(fragmentDescriptors), vm = value(variableMeasured), ResizeArray_appendSingleton(vm, fds));
1372
- const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, assay.Comments));
1373
- return LDDataset.createAssay(assay.Identifier, void 0, unwrap(assay.Title), unwrap(assay.Description), unwrap(creators), unwrap(dataFiles), unwrap(measurementMethod), unwrap(measurementTechnique), unwrap(variableMeasureds), unwrap(processSequence), unwrap(comments));
18
+ function ARCtrl_ArcStudy__ArcStudy_fromROCrateStudy_Static_Z6839B9E8(a, graph, context) {
19
+ return StudyConversion_decomposeStudy_Z6839B9E8(a, unwrap(graph), unwrap(context));
1374
20
  }
1375
- function AssayConversion_decomposeAssay_Z6839B9E8(assay, graph, context) {
1376
- const measurementMethod = map((m) => BaseTypes_decomposeDefinedTerm_Z2F770004(m, unwrap(context)), LDDataset.tryGetMeasurementMethodAsDefinedTerm(assay, unwrap(graph), unwrap(context)));
1377
- const measurementTechnique = map((m_1) => BaseTypes_decomposeDefinedTerm_Z2F770004(m_1, unwrap(context)), LDDataset.tryGetMeasurementTechniqueAsDefinedTerm(assay, unwrap(graph), unwrap(context)));
1378
- const variableMeasured = map((v) => BaseTypes_decomposePropertyValueToOA_Z2F770004(v, unwrap(context)), LDDataset.tryGetVariableMeasuredAsMeasurementType(assay, unwrap(graph), unwrap(context)));
1379
- const perfomers = ResizeArray_map((c) => PersonConversion_decomposePerson_Z6839B9E8(c, unwrap(graph), unwrap(context)), LDDataset.getCreators(assay, unwrap(graph), unwrap(context)));
1380
- let dataMap;
1381
- const v_1 = DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(LDDataset.getVariableMeasuredAsFragmentDescriptors(assay, unwrap(graph), unwrap(context)), unwrap(graph), unwrap(context));
1382
- dataMap = Option_fromValueWithDefault(DataMap.init(), v_1);
1383
- const tables = ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586(ofSeq(LDDataset.getAboutsAsLabProcess(assay, unwrap(graph), unwrap(context))), unwrap(graph), unwrap(context));
1384
- const comments = ResizeArray_map((c_1) => BaseTypes_decomposeComment_Z2F770004(c_1, unwrap(context)), LDDataset.getComments(assay, unwrap(graph), unwrap(context)));
1385
- return ArcAssay.create(LDDataset.getIdentifierAsString(assay, unwrap(context)), unwrap(LDDataset.tryGetNameAsString(assay, unwrap(context))), unwrap(LDDataset.tryGetDescriptionAsString(assay, unwrap(context))), unwrap(variableMeasured), unwrap(measurementMethod), unwrap(measurementTechnique), tables.Tables, unwrap(dataMap), perfomers, comments);
21
+ function ARCtrl_ArcWorkflow__ArcWorkflow_ToROCrateWorkflow_1695DD5C(this$, fs) {
22
+ return WorkflowConversion_composeWorkflow_42450E6E(this$, unwrap(fs));
1386
23
  }
1387
- class StudyConversion {
1388
- constructor() {
1389
- }
24
+ function ARCtrl_ArcWorkflow__ArcWorkflow_fromROCrateWorkflow_Static_Z6839B9E8(a, graph, context) {
25
+ return WorkflowConversion_decomposeWorkflow_Z6839B9E8(a, unwrap(graph), unwrap(context));
1390
26
  }
1391
- function StudyConversion_$reflection() {
1392
- return class_type("ARCtrl.Conversion.StudyConversion", void 0, StudyConversion);
27
+ function ARCtrl_ArcRun__ArcRun_ToROCrateRun_1695DD5C(this$, fs) {
28
+ return RunConversion_composeRun_Z8CC08AC(this$, unwrap(fs));
1393
29
  }
1394
- function StudyConversion_composeStudy_ZFE0E38E(study, fs) {
1395
- let collection;
1396
- const dateCreated = bind(DateTime_tryFromString, study.SubmissionDate);
1397
- const datePublished = bind(DateTime_tryFromString, study.PublicReleaseDate);
1398
- const dateModified = now();
1399
- const publications = Option_fromSeq(ResizeArray_map(ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, study.Publications));
1400
- const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, study.Contacts));
1401
- const processSequence = Option_fromSeq((collection = ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(new ArcTables(study.Tables), void 0, study.Identifier, unwrap(fs)), Array.from(collection)));
1402
- const fragmentDescriptors = map(DatamapConversion_composeFragmentDescriptors_Z8923FA3, study.DataMap);
1403
- const dataFiles = map((ps) => AssayConversion_getDataFilesFromProcesses_6BABD1B0(ps, unwrap(fragmentDescriptors)), processSequence);
1404
- const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, study.Comments));
1405
- return LDDataset.createStudy(study.Identifier, void 0, unwrap(creators), unwrap(dateCreated), unwrap(datePublished), dateModified, unwrap(study.Description), unwrap(dataFiles), unwrap(study.Title), unwrap(publications), unwrap(fragmentDescriptors), unwrap(comments), void 0, unwrap(processSequence));
30
+ function ARCtrl_ArcRun__ArcRun_fromROCrateRun_Static_Z6839B9E8(a, graph, context) {
31
+ return RunConversion_decomposeRun_Z6839B9E8(a, unwrap(graph), unwrap(context));
1406
32
  }
1407
- function StudyConversion_decomposeStudy_Z6839B9E8(study, graph, context) {
1408
- const dateCreated = map(DateTime_toString, LDDataset.tryGetDateCreatedAsDateTime(study, unwrap(context)));
1409
- const datePublished = map(DateTime_toString, LDDataset.tryGetDatePublishedAsDateTime(study, unwrap(context)));
1410
- const publications = ResizeArray_map((p) => ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8(p, unwrap(graph), unwrap(context)), LDDataset.getCitations(study, unwrap(graph), unwrap(context)));
1411
- const creators = ResizeArray_map((c) => PersonConversion_decomposePerson_Z6839B9E8(c, unwrap(graph), unwrap(context)), LDDataset.getCreators(study, unwrap(graph), unwrap(context)));
1412
- let dataMap;
1413
- const v = DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(LDDataset.getVariableMeasuredAsFragmentDescriptors(study, unwrap(graph), unwrap(context)), unwrap(graph), unwrap(context));
1414
- dataMap = Option_fromValueWithDefault(DataMap.init(), v);
1415
- const tables = ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586(ofSeq(LDDataset.getAboutsAsLabProcess(study, unwrap(graph), unwrap(context))), unwrap(graph), unwrap(context));
1416
- const comments = ResizeArray_map((c_1) => BaseTypes_decomposeComment_Z2F770004(c_1, unwrap(context)), LDDataset.getComments(study, unwrap(graph), unwrap(context)));
1417
- return ArcStudy.create(LDDataset.getIdentifierAsString(study, unwrap(context)), unwrap(LDDataset.tryGetNameAsString(study, unwrap(context))), unwrap(LDDataset.tryGetDescriptionAsString(study, unwrap(context))), unwrap(dateCreated), unwrap(datePublished), publications, creators, void 0, tables.Tables, unwrap(dataMap), void 0, comments);
33
+ function ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_Z7960E96B(this$, fs, ignoreBrokenWR) {
34
+ return InvestigationConversion_composeInvestigation_Z284BC0AC(this$, unwrap(fs), unwrap(ignoreBrokenWR));
1418
35
  }
1419
- class InvestigationConversion {
1420
- constructor() {
1421
- }
36
+ function ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(a, graph, context) {
37
+ return InvestigationConversion_decomposeInvestigation_Z6839B9E8(a, unwrap(graph), unwrap(context));
1422
38
  }
1423
- function InvestigationConversion_$reflection() {
1424
- return class_type("ARCtrl.Conversion.InvestigationConversion", void 0, InvestigationConversion);
39
+ function ARCtrl_ROCrate_Dataset__Dataset_toArcAssay_Static_Z6839B9E8(a, graph, context) {
40
+ return AssayConversion_decomposeAssay_Z6839B9E8(a, unwrap(graph), unwrap(context));
1425
41
  }
1426
- function InvestigationConversion_composeInvestigation_5AEC717D(investigation, fs) {
1427
- let b;
1428
- let name;
1429
- const matchValue = investigation.Title;
1430
- if (matchValue == null) {
1431
- throw new Error("Investigation must have a title");
1432
- } else {
1433
- name = value(matchValue);
1434
- }
1435
- const dateCreated = bind(DateTime_tryFromString, investigation.SubmissionDate);
1436
- const datePublished = defaultArg(bind(DateTime_tryFromString, investigation.PublicReleaseDate), now());
1437
- const publications = Option_fromSeq(ResizeArray_map(ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, investigation.Publications));
1438
- const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, investigation.Contacts));
1439
- const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, investigation.Comments));
1440
- const hasParts = Option_fromSeq((b = ResizeArray_map((a_3) => AssayConversion_composeAssay_Z5C53FD5C(a_3, unwrap(fs)), investigation.Assays), ResizeArray_append(ResizeArray_map((s_2) => StudyConversion_composeStudy_ZFE0E38E(s_2, unwrap(fs)), investigation.Studies), b)));
1441
- const mentions = Option_fromSeq([]);
1442
- return LDDataset.createInvestigation(investigation.Identifier, name, void 0, unwrap(creators), unwrap(dateCreated), datePublished, void 0, unwrap(investigation.Description), unwrap(hasParts), unwrap(publications), unwrap(comments), unwrap(mentions));
42
+ function ARCtrl_ROCrate_Dataset__Dataset_fromArcAssay_Static_1501C0F8(a) {
43
+ return AssayConversion_composeAssay_Z5C53FD5C(a);
1443
44
  }
1444
- function InvestigationConversion_decomposeInvestigation_Z6839B9E8(investigation, graph, context) {
1445
- let title;
1446
- const matchValue = LDDataset.tryGetNameAsString(investigation, unwrap(context));
1447
- title = matchValue == null ? LDDataset.tryGetHeadlineAsString(investigation, unwrap(context)) : value(matchValue);
1448
- const dateCreated = map(DateTime_toString, LDDataset.tryGetDateCreatedAsDateTime(investigation, unwrap(context)));
1449
- const datePublished = map(DateTime_toString, LDDataset.tryGetDatePublishedAsDateTime(investigation, unwrap(context)));
1450
- const publications = ResizeArray_map((p) => ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8(p, unwrap(graph), unwrap(context)), LDDataset.getCitations(investigation, unwrap(graph), unwrap(context)));
1451
- const creators = ResizeArray_map((c) => PersonConversion_decomposePerson_Z6839B9E8(c, unwrap(graph), unwrap(context)), LDDataset.getCreators(investigation, unwrap(graph), unwrap(context)));
1452
- const datasets = LDDataset.getHasPartsAsDataset(investigation, unwrap(graph), unwrap(context));
1453
- const studies = ResizeArray_map((d_3) => StudyConversion_decomposeStudy_Z6839B9E8(d_3, unwrap(graph), unwrap(context)), ResizeArray_filter((d_2) => LDDataset.validateStudy(d_2, unwrap(context)), datasets));
1454
- const assays = ResizeArray_map((d_5) => AssayConversion_decomposeAssay_Z6839B9E8(d_5, unwrap(graph), unwrap(context)), ResizeArray_filter((d_4) => LDDataset.validateAssay(d_4, unwrap(context)), datasets));
1455
- const comments = ResizeArray_map((c_1) => BaseTypes_decomposeComment_Z2F770004(c_1, unwrap(context)), LDDataset.getComments(investigation, unwrap(graph), unwrap(context)));
1456
- return ArcInvestigation.create(LDDataset.getIdentifierAsString(investigation, unwrap(context)), unwrap(title), unwrap(LDDataset.tryGetDescriptionAsString(investigation, unwrap(context))), unwrap(dateCreated), unwrap(datePublished), void 0, publications, creators, assays, studies, void 0, void 0, void 0, comments);
45
+ function ARCtrl_ROCrate_Dataset__Dataset_toArcStudy_Static_Z6839B9E8(a, graph, context) {
46
+ return StudyConversion_decomposeStudy_Z6839B9E8(a, unwrap(graph), unwrap(context));
1457
47
  }
1458
- function ARCtrl_ArcAssay__ArcAssay_ToROCrateAssay_1695DD5C(this$, fs) {
1459
- return AssayConversion_composeAssay_Z5C53FD5C(this$, unwrap(fs));
48
+ function ARCtrl_ROCrate_Dataset__Dataset_fromArcStudy_Static_1680536E(a) {
49
+ return StudyConversion_composeStudy_ZFE0E38E(a);
1460
50
  }
1461
- function ARCtrl_ArcAssay__ArcAssay_fromROCrateAssay_Static_Z6839B9E8(a, graph, context) {
1462
- return AssayConversion_decomposeAssay_Z6839B9E8(a, unwrap(graph), unwrap(context));
51
+ function ARCtrl_ROCrate_Dataset__Dataset_toArcWorkflow_Static_Z6839B9E8(a, graph, context) {
52
+ return WorkflowConversion_decomposeWorkflow_Z6839B9E8(a, unwrap(graph), unwrap(context));
1463
53
  }
1464
- function ARCtrl_ArcStudy__ArcStudy_ToROCrateStudy_1695DD5C(this$, fs) {
1465
- return StudyConversion_composeStudy_ZFE0E38E(this$, unwrap(fs));
54
+ function ARCtrl_ROCrate_Dataset__Dataset_fromArcWorkflow_Static_Z1C75CB0E(a) {
55
+ return WorkflowConversion_composeWorkflow_42450E6E(a);
1466
56
  }
1467
- function ARCtrl_ArcStudy__ArcStudy_fromROCrateStudy_Static_Z6839B9E8(a, graph, context) {
1468
- return StudyConversion_decomposeStudy_Z6839B9E8(a, unwrap(graph), unwrap(context));
57
+ function ARCtrl_ROCrate_Dataset__Dataset_toArcRun_Static_Z6839B9E8(a, graph, context) {
58
+ return RunConversion_decomposeRun_Z6839B9E8(a, unwrap(graph), unwrap(context));
1469
59
  }
1470
- function ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_1695DD5C(this$, fs) {
1471
- return InvestigationConversion_composeInvestigation_5AEC717D(this$, unwrap(fs));
60
+ function ARCtrl_ROCrate_Dataset__Dataset_fromArcRun_Static_Z3EFAF6F8(a) {
61
+ return RunConversion_composeRun_Z8CC08AC(a);
1472
62
  }
1473
- function ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(a, graph, context) {
63
+ function ARCtrl_ROCrate_Dataset__Dataset_toArcInvestigation_Static_Z6839B9E8(a, graph, context) {
1474
64
  return InvestigationConversion_decomposeInvestigation_Z6839B9E8(a, unwrap(graph), unwrap(context));
1475
65
  }
1476
- class TypeExtensions_Conversion {
66
+ function ARCtrl_ROCrate_Dataset__Dataset_fromArcInvestigation_Static_Z720BD3FF(a) {
67
+ return InvestigationConversion_composeInvestigation_Z284BC0AC(a);
68
+ }
69
+ class Conversion {
1477
70
  constructor() {
1478
71
  }
1479
72
  static arcAssayToDataset(a, fs) {
@@ -1488,33 +81,27 @@ class TypeExtensions_Conversion {
1488
81
  static datasetToArcStudy(a, graph, context) {
1489
82
  return ARCtrl_ArcStudy__ArcStudy_fromROCrateStudy_Static_Z6839B9E8(a, unwrap(graph), unwrap(context));
1490
83
  }
1491
- static arcInvestigationToDataset(a, fs) {
1492
- return ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_1695DD5C(a, unwrap(fs));
84
+ static arcWorkflowToDataset(a, fs) {
85
+ return ARCtrl_ArcWorkflow__ArcWorkflow_ToROCrateWorkflow_1695DD5C(a, unwrap(fs));
86
+ }
87
+ static datasetToArcWorkflow(a, graph, context) {
88
+ return ARCtrl_ArcWorkflow__ArcWorkflow_fromROCrateWorkflow_Static_Z6839B9E8(a, unwrap(graph), unwrap(context));
89
+ }
90
+ static arcRunToDataset(a, fs) {
91
+ return ARCtrl_ArcRun__ArcRun_ToROCrateRun_1695DD5C(a, unwrap(fs));
92
+ }
93
+ static datasetToArcRun(a, graph, context) {
94
+ return ARCtrl_ArcRun__ArcRun_fromROCrateRun_Static_Z6839B9E8(a, unwrap(graph), unwrap(context));
95
+ }
96
+ static arcInvestigationToDataset(a, fs, ignoreBrokenWR) {
97
+ return ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_Z7960E96B(a, unwrap(fs), unwrap(ignoreBrokenWR));
1493
98
  }
1494
99
  static datasetToArcInvestigation(a, graph, context) {
1495
100
  return ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(a, unwrap(graph), unwrap(context));
1496
101
  }
1497
102
  }
1498
- function TypeExtensions_Conversion_$reflection() {
1499
- return class_type("ARCtrl.Conversion.TypeExtensions.Conversion", void 0, TypeExtensions_Conversion);
1500
- }
1501
- function ARCtrl_ROCrate_Dataset__Dataset_toArcAssay_Static_Z6839B9E8(a, graph, context) {
1502
- return AssayConversion_decomposeAssay_Z6839B9E8(a, unwrap(graph), unwrap(context));
1503
- }
1504
- function ARCtrl_ROCrate_Dataset__Dataset_fromArcAssay_Static_1501C0F8(a) {
1505
- return AssayConversion_composeAssay_Z5C53FD5C(a);
1506
- }
1507
- function ARCtrl_ROCrate_Dataset__Dataset_toArcStudy_Static_Z6839B9E8(a, graph, context) {
1508
- return StudyConversion_decomposeStudy_Z6839B9E8(a, unwrap(graph), unwrap(context));
1509
- }
1510
- function ARCtrl_ROCrate_Dataset__Dataset_fromArcStudy_Static_1680536E(a) {
1511
- return StudyConversion_composeStudy_ZFE0E38E(a);
1512
- }
1513
- function ARCtrl_ROCrate_Dataset__Dataset_toArcInvestigation_Static_Z6839B9E8(a, graph, context) {
1514
- return InvestigationConversion_decomposeInvestigation_Z6839B9E8(a, unwrap(graph), unwrap(context));
1515
- }
1516
- function ARCtrl_ROCrate_Dataset__Dataset_fromArcInvestigation_Static_Z720BD3FF(a) {
1517
- return InvestigationConversion_composeInvestigation_5AEC717D(a);
103
+ function Conversion_$reflection() {
104
+ return class_type("ARCtrl.Conversion.TypeExtensions.Conversion", void 0, Conversion);
1518
105
  }
1519
106
 
1520
- export { ARCtrl_ArcAssay__ArcAssay_ToROCrateAssay_1695DD5C, ARCtrl_ArcAssay__ArcAssay_fromROCrateAssay_Static_Z6839B9E8, ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_1695DD5C, ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8, ARCtrl_ArcStudy__ArcStudy_ToROCrateStudy_1695DD5C, ARCtrl_ArcStudy__ArcStudy_fromROCrateStudy_Static_Z6839B9E8, ARCtrl_ArcTable__ArcTable_GetProcesses_5E660E5C, ARCtrl_ArcTable__ArcTable_GetProtocols, ARCtrl_ArcTable__ArcTable_fromProcesses_Static_Z3575FB5F, ARCtrl_ArcTable__ArcTable_fromProtocol_Static_Z6839B9E8, ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C, ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586, ARCtrl_ROCrate_Dataset__Dataset_fromArcAssay_Static_1501C0F8, ARCtrl_ROCrate_Dataset__Dataset_fromArcInvestigation_Static_Z720BD3FF, ARCtrl_ROCrate_Dataset__Dataset_fromArcStudy_Static_1680536E, ARCtrl_ROCrate_Dataset__Dataset_toArcAssay_Static_Z6839B9E8, ARCtrl_ROCrate_Dataset__Dataset_toArcInvestigation_Static_Z6839B9E8, ARCtrl_ROCrate_Dataset__Dataset_toArcStudy_Static_Z6839B9E8, ARCtrl_ROCrate_LDNode__LDNode_GetColumnIndex, ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4, ARCtrl_ROCrate_LDNode__LDNode_TryGetColumnIndex, AssayConversion, AssayConversion_$reflection, AssayConversion_composeAssay_Z5C53FD5C, AssayConversion_decomposeAssay_Z6839B9E8, AssayConversion_getDataFilesFromProcesses_6BABD1B0, BaseTypes, BaseTypes_$reflection, BaseTypes_cellOfPropertyValue_Z2F770004, BaseTypes_composeCharacteristicValue, BaseTypes_composeComment_Z13201A7E, BaseTypes_composeComponent, BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composeFactorValue, BaseTypes_composeFile_6CE21C7D, BaseTypes_composeFragmentDescriptor_Z4C0BEF62, BaseTypes_composeFreetextMaterialName, BaseTypes_composeParameterValue, BaseTypes_composeProcessInput, BaseTypes_composeProcessOutput, BaseTypes_composePropertyValueFromOA_ZDED3A0F, BaseTypes_composeTechnologyPlatform_ZDED3A0F, BaseTypes_decomposeCharacteristicValue_Z2F770004, BaseTypes_decomposeComment_Z2F770004, BaseTypes_decomposeComponent_Z2F770004, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposeFactorValue_Z2F770004, BaseTypes_decomposeFile_Z2F770004, BaseTypes_decomposeFragmentDescriptor_Z6839B9E8, BaseTypes_decomposeParameterValue_Z2F770004, BaseTypes_decomposeProcessInput_Z2F770004, BaseTypes_decomposeProcessOutput_Z2F770004, BaseTypes_decomposePropertyValueToOA_Z2F770004, BaseTypes_decomposeTechnologyPlatform_Z721C83C5, BaseTypes_headerOntologyOfPropertyValue_Z2F770004, BaseTypes_ontologyTermFromNameAndID_40457300, BaseTypes_termOfHeader_6CAF647B, BaseTypes_tryOntologyTermFromNameAndID_40457300, BaseTypes_valuesOfCell_Z436420FE, ColumnIndex_orderName, ColumnIndex_setIndex, ColumnIndex_tryGetIndex, CompositeRow_toProtocol, DatamapConversion, DatamapConversion_$reflection, DatamapConversion_composeFragmentDescriptors_Z8923FA3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F, DateTime_toString, DateTime_tryFromString, InvestigationConversion, InvestigationConversion_$reflection, InvestigationConversion_composeInvestigation_5AEC717D, InvestigationConversion_decomposeInvestigation_Z6839B9E8, PersonConversion, PersonConversion_$reflection, PersonConversion_composeAddress_Z721C83C5, PersonConversion_composeAffiliation_Z721C83C5, PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposeAddress_4E60E31B, PersonConversion_decomposeAffiliation_Z2F770004, PersonConversion_decomposePerson_Z6839B9E8, PersonConversion_get_orcidKey, ProcessConversion, ProcessConversion_$reflection, ProcessConversion_composeProcessName, ProcessConversion_decomposeProcessName_Z721C83C5, ProcessConversion_getProcessGetter, ProcessConversion_groupProcesses_Z27F0B586, ProcessConversion_processToRows_Z6839B9E8, ProcessConversion_tryCharacteristicGetter, ProcessConversion_tryComponentGetter, ProcessConversion_tryFactorGetter, ProcessConversion_tryGetCommentGetter, ProcessConversion_tryGetInputGetter, ProcessConversion_tryGetOutputGetter, ProcessConversion_tryGetPerformerGetter, ProcessConversion_tryGetProtocolDescriptionGetter, ProcessConversion_tryGetProtocolREFGetter, ProcessConversion_tryGetProtocolTypeGetter, ProcessConversion_tryGetProtocolType_Z6839B9E8, ProcessConversion_tryGetProtocolURIGetter, ProcessConversion_tryGetProtocolVersionGetter, ProcessConversion_tryParameterGetter, ScholarlyArticleConversion, ScholarlyArticleConversion_$reflection, ScholarlyArticleConversion_composeAuthor_Z721C83C5, ScholarlyArticleConversion_composeAuthors_Z721C83C5, ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, ScholarlyArticleConversion_decomposeAuthor_Z2F770004, ScholarlyArticleConversion_decomposeAuthors_1AAAE9A5, ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8, ScholarlyArticleConversion_splitAuthors_Z721C83C5, StudyConversion, StudyConversion_$reflection, StudyConversion_composeStudy_ZFE0E38E, StudyConversion_decomposeStudy_Z6839B9E8, TypeExtensions_Conversion, TypeExtensions_Conversion_$reflection };
107
+ export { ARCtrl_ArcAssay__ArcAssay_ToROCrateAssay_1695DD5C, ARCtrl_ArcAssay__ArcAssay_fromROCrateAssay_Static_Z6839B9E8, ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_Z7960E96B, ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8, ARCtrl_ArcRun__ArcRun_ToROCrateRun_1695DD5C, ARCtrl_ArcRun__ArcRun_fromROCrateRun_Static_Z6839B9E8, ARCtrl_ArcStudy__ArcStudy_ToROCrateStudy_1695DD5C, ARCtrl_ArcStudy__ArcStudy_fromROCrateStudy_Static_Z6839B9E8, ARCtrl_ArcWorkflow__ArcWorkflow_ToROCrateWorkflow_1695DD5C, ARCtrl_ArcWorkflow__ArcWorkflow_fromROCrateWorkflow_Static_Z6839B9E8, ARCtrl_ROCrate_Dataset__Dataset_fromArcAssay_Static_1501C0F8, ARCtrl_ROCrate_Dataset__Dataset_fromArcInvestigation_Static_Z720BD3FF, ARCtrl_ROCrate_Dataset__Dataset_fromArcRun_Static_Z3EFAF6F8, ARCtrl_ROCrate_Dataset__Dataset_fromArcStudy_Static_1680536E, ARCtrl_ROCrate_Dataset__Dataset_fromArcWorkflow_Static_Z1C75CB0E, ARCtrl_ROCrate_Dataset__Dataset_toArcAssay_Static_Z6839B9E8, ARCtrl_ROCrate_Dataset__Dataset_toArcInvestigation_Static_Z6839B9E8, ARCtrl_ROCrate_Dataset__Dataset_toArcRun_Static_Z6839B9E8, ARCtrl_ROCrate_Dataset__Dataset_toArcStudy_Static_Z6839B9E8, ARCtrl_ROCrate_Dataset__Dataset_toArcWorkflow_Static_Z6839B9E8, Conversion, Conversion_$reflection };