@nfdi4plants/arctrl 3.0.0-beta.3 → 3.0.0-beta.4

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 (380) hide show
  1. package/README.md +2 -0
  2. package/dist/ts/index.js +63 -0
  3. package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +354 -0
  4. package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +28 -0
  5. package/dist/ts/node_modules/@fable-org/fable-library-js/AsyncBuilder.js +186 -0
  6. package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +8 -0
  7. package/dist/ts/node_modules/@fable-org/fable-library-js/Boolean.js +24 -0
  8. package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +73 -0
  9. package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +31 -0
  10. package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +574 -0
  11. package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +59 -0
  12. package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +65 -0
  13. package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +30 -0
  14. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +5 -0
  15. package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +5 -0
  16. package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +48 -0
  17. package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +120 -0
  18. package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +680 -0
  19. package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +40 -0
  20. package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +655 -0
  21. package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +105 -0
  22. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +320 -0
  23. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +204 -0
  24. package/dist/ts/node_modules/@fable-org/fable-library-js/Native.js +10 -0
  25. package/dist/ts/node_modules/@fable-org/fable-library-js/Numeric.js +73 -0
  26. package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +65 -0
  27. package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +23 -0
  28. package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +111 -0
  29. package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +114 -0
  30. package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +36 -0
  31. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +846 -0
  32. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +65 -0
  33. package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +1160 -0
  34. package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +364 -0
  35. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +40 -0
  36. package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +193 -0
  37. package/dist/ts/node_modules/@fable-org/fable-library-js/Unicode.13.0.0.js +6 -0
  38. package/dist/ts/node_modules/@fable-org/fable-library-js/Uri.js +160 -0
  39. package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +367 -0
  40. package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +825 -0
  41. package/dist/ts/ts/ARC.js +914 -0
  42. package/dist/ts/ts/Contract/ARC.js +52 -0
  43. package/dist/ts/ts/Contract/ArcAssay.js +80 -0
  44. package/dist/ts/ts/Contract/ArcInvestigation.js +57 -0
  45. package/dist/ts/ts/Contract/ArcRun.js +76 -0
  46. package/dist/ts/ts/Contract/ArcStudy.js +76 -0
  47. package/dist/ts/ts/Contract/ArcWorkflow.js +77 -0
  48. package/dist/ts/ts/Contract/Contract.js +45 -0
  49. package/dist/ts/ts/Contract/Datamap.js +221 -0
  50. package/dist/ts/ts/Contract/Git.js +57 -0
  51. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +57 -0
  52. package/dist/ts/ts/ContractIO/ContractIO.js +202 -0
  53. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -1
  54. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
  55. package/dist/ts/ts/ContractIO/FileSystemHelper.js +273 -0
  56. package/dist/ts/ts/Conversion.js +1247 -0
  57. package/dist/ts/ts/Core/ArcTypes.js +3393 -0
  58. package/dist/ts/ts/Core/Comment.js +91 -0
  59. package/dist/ts/ts/Core/CommentList.js +27 -0
  60. package/dist/ts/ts/Core/Conversion.js +923 -0
  61. package/dist/ts/ts/Core/Data.js +179 -0
  62. package/dist/ts/ts/Core/DataContext.js +108 -0
  63. package/dist/ts/ts/Core/DataFile.js +50 -0
  64. package/dist/ts/ts/Core/DataMap.js +53 -0
  65. package/dist/ts/ts/Core/Helper/Collections.js +323 -0
  66. package/dist/ts/ts/Core/Helper/HashCodes.js +35 -0
  67. package/dist/ts/ts/Core/Helper/Identifier.js +96 -0
  68. package/dist/ts/ts/Core/Helper/ORCID.js +34 -0
  69. package/dist/ts/ts/Core/Helper/Regex.js +296 -0
  70. package/dist/ts/ts/Core/Helper/SemVer.js +31 -0
  71. package/dist/ts/ts/Core/Helper/Url.js +32 -0
  72. package/dist/ts/ts/Core/IdentifierSetters.js +9 -0
  73. package/dist/ts/ts/Core/OntologyAnnotation.js +207 -0
  74. package/dist/ts/ts/Core/OntologySourceReference.js +84 -0
  75. package/dist/ts/ts/Core/Person.js +183 -0
  76. package/dist/ts/ts/Core/Process/ColumnIndex.js +73 -0
  77. package/dist/ts/ts/Core/Process/Component.js +121 -0
  78. package/dist/ts/ts/Core/Process/Factor.js +104 -0
  79. package/dist/ts/ts/Core/Process/FactorValue.js +68 -0
  80. package/dist/ts/ts/Core/Process/Material.js +49 -0
  81. package/dist/ts/ts/Core/Process/MaterialAttribute.js +30 -0
  82. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +68 -0
  83. package/dist/ts/ts/Core/Process/MaterialType.js +28 -0
  84. package/dist/ts/ts/Core/Process/Process.js +136 -0
  85. package/dist/ts/ts/Core/Process/ProcessInput.js +207 -0
  86. package/dist/ts/ts/Core/Process/ProcessOutput.js +178 -0
  87. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +135 -0
  88. package/dist/ts/ts/Core/Process/ProcessSequence.js +56 -0
  89. package/dist/ts/ts/Core/Process/Protocol.js +54 -0
  90. package/dist/ts/ts/Core/Process/ProtocolParameter.js +69 -0
  91. package/dist/ts/ts/Core/Process/Sample.js +44 -0
  92. package/dist/ts/ts/Core/Process/Source.js +38 -0
  93. package/dist/ts/ts/Core/Publication.js +108 -0
  94. package/dist/ts/ts/Core/Table/ArcTable.js +889 -0
  95. package/dist/ts/ts/Core/Table/ArcTableAux.js +993 -0
  96. package/dist/ts/ts/Core/Table/ArcTables.js +415 -0
  97. package/dist/ts/ts/Core/Table/CompositeCell.js +334 -0
  98. package/dist/ts/ts/Core/Table/CompositeColumn.js +52 -0
  99. package/dist/ts/ts/Core/Table/CompositeHeader.js +792 -0
  100. package/dist/ts/ts/Core/Template.js +180 -0
  101. package/dist/ts/ts/Core/Templates.js +75 -0
  102. package/dist/ts/ts/Core/URI.js +8 -0
  103. package/dist/ts/ts/Core/Value.js +194 -0
  104. package/dist/ts/ts/CrossAsync.js +20 -0
  105. package/dist/ts/ts/FileSystem/DefaultGitattributes.js +3 -0
  106. package/dist/ts/ts/FileSystem/DefaultGitignore.js +3 -0
  107. package/dist/ts/ts/FileSystem/FileSystem.js +48 -0
  108. package/dist/ts/ts/FileSystem/FileSystemTree.js +339 -0
  109. package/dist/ts/ts/FileSystem/Path.js +36 -0
  110. package/dist/ts/ts/Json/Assay.d.ts +1 -1
  111. package/dist/ts/ts/Json/Assay.js +221 -0
  112. package/dist/ts/ts/Json/Comment.d.ts +1 -1
  113. package/dist/ts/ts/Json/Comment.js +112 -0
  114. package/dist/ts/ts/Json/Data.d.ts +1 -1
  115. package/dist/ts/ts/Json/Data.js +138 -0
  116. package/dist/ts/ts/Json/DataFile.d.ts +1 -1
  117. package/dist/ts/ts/Json/DataFile.js +55 -0
  118. package/dist/ts/ts/Json/DataMap/DataContext.d.ts +1 -1
  119. package/dist/ts/ts/Json/DataMap/DataContext.js +39 -0
  120. package/dist/ts/ts/Json/DataMap/DataMap.d.ts +1 -1
  121. package/dist/ts/ts/Json/DataMap/DataMap.js +27 -0
  122. package/dist/ts/ts/Json/Decode.d.ts +2 -2
  123. package/dist/ts/ts/Json/Decode.js +209 -0
  124. package/dist/ts/ts/Json/Encode.d.ts +1 -1
  125. package/dist/ts/ts/Json/Encode.js +65 -0
  126. package/dist/ts/ts/Json/IDTable.d.ts +1 -1
  127. package/dist/ts/ts/Json/IDTable.js +28 -0
  128. package/dist/ts/ts/Json/Investigation.d.ts +1 -1
  129. package/dist/ts/ts/Json/Investigation.js +229 -0
  130. package/dist/ts/ts/Json/OntologyAnnotation.d.ts +1 -1
  131. package/dist/ts/ts/Json/OntologyAnnotation.js +194 -0
  132. package/dist/ts/ts/Json/OntologySourceReference.d.ts +1 -1
  133. package/dist/ts/ts/Json/OntologySourceReference.js +119 -0
  134. package/dist/ts/ts/Json/Person.d.ts +1 -1
  135. package/dist/ts/ts/Json/Person.js +316 -0
  136. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts +1 -1
  137. package/dist/ts/ts/Json/Process/AssayMaterials.js +21 -0
  138. package/dist/ts/ts/Json/Process/Component.d.ts +1 -1
  139. package/dist/ts/ts/Json/Process/Component.js +41 -0
  140. package/dist/ts/ts/Json/Process/Factor.d.ts +1 -1
  141. package/dist/ts/ts/Json/Process/Factor.js +53 -0
  142. package/dist/ts/ts/Json/Process/FactorValue.d.ts +1 -1
  143. package/dist/ts/ts/Json/Process/FactorValue.js +44 -0
  144. package/dist/ts/ts/Json/Process/Material.d.ts +1 -1
  145. package/dist/ts/ts/Json/Process/Material.js +112 -0
  146. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts +1 -1
  147. package/dist/ts/ts/Json/Process/MaterialAttribute.js +43 -0
  148. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts +1 -1
  149. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +44 -0
  150. package/dist/ts/ts/Json/Process/MaterialType.d.ts +1 -1
  151. package/dist/ts/ts/Json/Process/MaterialType.js +45 -0
  152. package/dist/ts/ts/Json/Process/Process.d.ts +1 -1
  153. package/dist/ts/ts/Json/Process/Process.js +103 -0
  154. package/dist/ts/ts/Json/Process/ProcessInput.d.ts +1 -1
  155. package/dist/ts/ts/Json/Process/ProcessInput.js +42 -0
  156. package/dist/ts/ts/Json/Process/ProcessOutput.d.ts +1 -1
  157. package/dist/ts/ts/Json/Process/ProcessOutput.js +35 -0
  158. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts +1 -1
  159. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +28 -0
  160. package/dist/ts/ts/Json/Process/Protocol.d.ts +1 -1
  161. package/dist/ts/ts/Json/Process/Protocol.js +166 -0
  162. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +1 -1
  163. package/dist/ts/ts/Json/Process/ProtocolParameter.js +43 -0
  164. package/dist/ts/ts/Json/Process/Sample.d.ts +1 -1
  165. package/dist/ts/ts/Json/Process/Sample.js +165 -0
  166. package/dist/ts/ts/Json/Process/Source.d.ts +1 -1
  167. package/dist/ts/ts/Json/Process/Source.js +133 -0
  168. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts +1 -1
  169. package/dist/ts/ts/Json/Process/StudyMaterials.js +23 -0
  170. package/dist/ts/ts/Json/Process/Value.d.ts +1 -1
  171. package/dist/ts/ts/Json/Process/Value.js +41 -0
  172. package/dist/ts/ts/Json/PropertyValue.d.ts +1 -1
  173. package/dist/ts/ts/Json/PropertyValue.js +280 -0
  174. package/dist/ts/ts/Json/Publication.d.ts +1 -1
  175. package/dist/ts/ts/Json/Publication.js +123 -0
  176. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts +1 -1
  177. package/dist/ts/ts/Json/ROCrate/LDContext.js +115 -0
  178. package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts +1 -1
  179. package/dist/ts/ts/Json/ROCrate/LDGraph.js +83 -0
  180. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -1
  181. package/dist/ts/ts/Json/ROCrate/LDNode.js +190 -0
  182. package/dist/ts/ts/Json/ROCrate/LDRef.d.ts +1 -1
  183. package/dist/ts/ts/Json/ROCrate/LDRef.js +24 -0
  184. package/dist/ts/ts/Json/ROCrate/LDValue.d.ts +1 -1
  185. package/dist/ts/ts/Json/ROCrate/LDValue.js +63 -0
  186. package/dist/ts/ts/Json/StringTable.d.ts +1 -1
  187. package/dist/ts/ts/Json/StringTable.js +66 -0
  188. package/dist/ts/ts/Json/Study.d.ts +1 -1
  189. package/dist/ts/ts/Json/Study.js +326 -0
  190. package/dist/ts/ts/Json/Table/ArcTable.d.ts +1 -1
  191. package/dist/ts/ts/Json/Table/ArcTable.js +210 -0
  192. package/dist/ts/ts/Json/Table/CellTable.d.ts +1 -1
  193. package/dist/ts/ts/Json/Table/CellTable.js +53 -0
  194. package/dist/ts/ts/Json/Table/CompositeCell.d.ts +1 -1
  195. package/dist/ts/ts/Json/Table/CompositeCell.js +106 -0
  196. package/dist/ts/ts/Json/Table/CompositeHeader.d.ts +1 -1
  197. package/dist/ts/ts/Json/Table/CompositeHeader.js +121 -0
  198. package/dist/ts/ts/Json/Table/IOType.d.ts +1 -1
  199. package/dist/ts/ts/Json/Table/IOType.js +15 -0
  200. package/dist/ts/ts/Json/Table/OATable.d.ts +1 -1
  201. package/dist/ts/ts/Json/Table/OATable.js +50 -0
  202. package/dist/ts/ts/Json/Table/Templates.d.ts +1 -1
  203. package/dist/ts/ts/Json/Table/Templates.js +15 -0
  204. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts +1 -1
  205. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +61 -0
  206. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts +1 -1
  207. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +29 -0
  208. package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts +1 -1
  209. package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +41 -0
  210. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts +1 -1
  211. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +69 -0
  212. package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts +1 -1
  213. package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +37 -0
  214. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts +1 -1
  215. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +37 -0
  216. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts +1 -1
  217. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +41 -0
  218. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts +1 -1
  219. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +25 -0
  220. package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts +1 -1
  221. package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +86 -0
  222. package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts +1 -1
  223. package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +57 -0
  224. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts +1 -1
  225. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +61 -0
  226. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts +1 -1
  227. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +45 -0
  228. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts +1 -1
  229. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +33 -0
  230. package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts +1 -1
  231. package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +33 -0
  232. package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts +1 -1
  233. package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +77 -0
  234. package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts +1 -1
  235. package/dist/ts/ts/Json/context/rocrate/property_value_context.js +61 -0
  236. package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts +1 -1
  237. package/dist/ts/ts/Json.js +171 -0
  238. package/dist/ts/ts/JsonIO/Assay.js +77 -0
  239. package/dist/ts/ts/JsonIO/Investigation.js +77 -0
  240. package/dist/ts/ts/JsonIO/LDObject.js +77 -0
  241. package/dist/ts/ts/JsonIO/OntologyAnnotation.js +56 -0
  242. package/dist/ts/ts/JsonIO/Study.js +77 -0
  243. package/dist/ts/ts/JsonIO/Table/Compression.d.ts +1 -1
  244. package/dist/ts/ts/JsonIO/Table/Compression.js +39 -0
  245. package/dist/ts/ts/JsonIO/Table/Templates.d.ts +1 -1
  246. package/dist/ts/ts/JsonIO/Table/Templates.js +25 -0
  247. package/dist/ts/ts/ROCrate/Generic/Comment.js +103 -0
  248. package/dist/ts/ts/ROCrate/Generic/Dataset.js +624 -0
  249. package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +103 -0
  250. package/dist/ts/ts/ROCrate/Generic/File.js +184 -0
  251. package/dist/ts/ts/ROCrate/Generic/LabProcess.js +222 -0
  252. package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +257 -0
  253. package/dist/ts/ts/ROCrate/Generic/Organization.js +63 -0
  254. package/dist/ts/ts/ROCrate/Generic/Person.js +377 -0
  255. package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +143 -0
  256. package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +512 -0
  257. package/dist/ts/ts/ROCrate/Generic/Sample.js +131 -0
  258. package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +173 -0
  259. package/dist/ts/ts/ROCrate/Helper.js +7 -0
  260. package/dist/ts/ts/ROCrate/LDContext.js +288 -0
  261. package/dist/ts/ts/ROCrate/LDObject.js +855 -0
  262. package/dist/ts/ts/ROCrate/ROCrateContext.js +39 -0
  263. package/dist/ts/ts/ROCrateIO.d.ts +1 -1
  264. package/dist/ts/ts/ROCrateIO.js +58 -0
  265. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +2 -2
  266. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  267. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +149 -0
  268. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +63 -0
  269. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +2 -2
  270. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  271. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +108 -0
  272. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +410 -0
  273. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts +2 -2
  274. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  275. package/dist/ts/ts/Spreadsheet/ArcAssay.js +169 -0
  276. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts +2 -2
  277. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
  278. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +316 -0
  279. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts +2 -2
  280. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  281. package/dist/ts/ts/Spreadsheet/ArcRun.js +136 -0
  282. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts +2 -2
  283. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  284. package/dist/ts/ts/Spreadsheet/ArcStudy.js +92 -0
  285. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts +2 -2
  286. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  287. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +125 -0
  288. package/dist/ts/ts/Spreadsheet/CollectionAux.js +34 -0
  289. package/dist/ts/ts/Spreadsheet/DataMap.d.ts +1 -1
  290. package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +1 -1
  291. package/dist/ts/ts/Spreadsheet/DataMap.js +33 -0
  292. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts +2 -2
  293. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts.map +1 -1
  294. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +41 -0
  295. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts +1 -1
  296. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts.map +1 -1
  297. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +418 -0
  298. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts +3 -3
  299. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +1 -1
  300. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +85 -0
  301. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +90 -0
  302. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +58 -0
  303. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +85 -0
  304. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +133 -0
  305. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +15 -0
  306. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +74 -0
  307. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +58 -0
  308. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +62 -0
  309. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +94 -0
  310. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +81 -0
  311. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +91 -0
  312. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts +3 -3
  313. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  314. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +193 -0
  315. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +238 -0
  316. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +105 -0
  317. package/dist/ts/ts/Template.Web.js +22 -0
  318. package/dist/ts/ts/ValidationPackages/ValidationPackage.js +53 -0
  319. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +78 -0
  320. package/dist/ts/ts/WebRequest/WebRequest.Node.js +13 -0
  321. package/dist/ts/ts/WebRequest/WebRequest.js +19 -0
  322. package/dist/ts/ts/Xlsx.d.ts +1 -1
  323. package/dist/ts/ts/Xlsx.d.ts.map +1 -1
  324. package/dist/ts/ts/Xlsx.js +91 -0
  325. package/dist/ts/ts/Yaml/Encode.js +8 -0
  326. package/dist/ts/ts/Yaml/ValidationPackage.js +26 -0
  327. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +40 -0
  328. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +344 -0
  329. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +103 -0
  330. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +19 -0
  331. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +17 -0
  332. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +7 -0
  333. package/dist/ts/ts/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +5 -0
  334. package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +18 -0
  335. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +44 -0
  336. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +5 -0
  337. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +142 -0
  338. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +76 -0
  339. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +359 -0
  340. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +344 -0
  341. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +154 -0
  342. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +116 -0
  343. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +126 -0
  344. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +135 -0
  345. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +422 -0
  346. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +5 -0
  347. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +25 -0
  348. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +28 -0
  349. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -0
  350. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +69 -0
  351. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +42 -0
  352. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +29 -0
  353. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +348 -0
  354. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +86 -0
  355. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +68 -0
  356. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +12 -0
  357. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +54 -0
  358. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +33 -0
  359. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +63 -0
  360. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +66 -0
  361. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +544 -0
  362. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +31 -0
  363. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +38 -0
  364. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +79 -0
  365. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js +57 -0
  366. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +235 -0
  367. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +16 -0
  368. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +45 -0
  369. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +89 -0
  370. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +480 -0
  371. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +11 -0
  372. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +212 -0
  373. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +164 -0
  374. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +136 -0
  375. package/package.json +10 -7
  376. package/dist/ts/__vite-browser-external-2447137e.js +0 -4
  377. package/dist/ts/__vite-browser-external-b3701507.cjs +0 -1
  378. package/dist/ts/arctrl.cjs.js +0 -5691
  379. package/dist/ts/arctrl.es.js +0 -35562
  380. package/dist/ts/arctrl.umd.js +0 -5691
@@ -0,0 +1,1247 @@
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, join, toFail } from '../node_modules/@fable-org/fable-library-js/String.js';
4
+ import { unwrap, map, value, bind, defaultArg } from '../node_modules/@fable-org/fable-library-js/Option.js';
5
+ import { toString as toString$1 } 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 { toString, FSharpRef } from '../node_modules/@fable-org/fable-library-js/Types.js';
9
+ import { LDRef, LDNode } from './ROCrate/LDObject.js';
10
+ import { getEnumerator, disposeSafe, int32ToString, comparePrimitives, stringHash } from '../node_modules/@fable-org/fable-library-js/Util.js';
11
+ import { LDComment } from './ROCrate/Generic/Comment.js';
12
+ import { Comment$ } from './Core/Comment.js';
13
+ import { OntologyAnnotation } from './Core/OntologyAnnotation.js';
14
+ import { Option_fromSeq, ResizeArray_map, ResizeArray_singleton, ResizeArray_appendSingleton, Option_fromValueWithDefault, ResizeArray_append, ResizeArray_filter, ResizeArray_distinct, ResizeArray_collect, ResizeArray_choose, ResizeArray_groupBy, ResizeArray_tryFind, ResizeArray_tryPick, ResizeArray_create, ResizeArray_zip } from './Core/Helper/Collections.js';
15
+ import { LDDefinedTerm } from './ROCrate/Generic/DefinedTerm.js';
16
+ import { LDPropertyValue } from './ROCrate/Generic/PropertyValue.js';
17
+ import { DataAux_pathAndSelectorFromName, Data } from './Core/Data.js';
18
+ import { CompositeCell_FreeText, CompositeCell_Term, CompositeCell_Unitized, CompositeCell_Data } from './Core/Table/CompositeCell.js';
19
+ import { CompositeHeader_Comment, CompositeHeader_Parameter, CompositeHeader_Component, CompositeHeader_Characteristic, CompositeHeader_Factor, CompositeHeader_ProtocolREF, CompositeHeader_Input, IOType_Source, IOType_Material, IOType_Sample, IOType_Data, IOType_FreeText, CompositeHeader_ProtocolDescription, CompositeHeader_ProtocolUri, CompositeHeader_ProtocolVersion, CompositeHeader_ProtocolType, CompositeHeader_Output } from './Core/Table/CompositeHeader.js';
20
+ import { DataFile__get_AsString, DataFile_fromString_Z721C83C5 } from './Core/DataFile.js';
21
+ import { LDFile } from './ROCrate/Generic/File.js';
22
+ import { LDDataset } from './ROCrate/Generic/Dataset.js';
23
+ import { map as map$3 } from '../node_modules/@fable-org/fable-library-js/Array.js';
24
+ import { combine } from './FileSystem/Path.js';
25
+ 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';
26
+ import { LDSample } from './ROCrate/Generic/Sample.js';
27
+ import { ActivePatterns_$007CRegex$007C_$007C } from './Core/Helper/Regex.js';
28
+ import { LDLabProtocol } from './ROCrate/Generic/LabProtocol.js';
29
+ import { Unchecked_alignByHeaders, Unchecked_tryGetCellAt, getEmptyCellForHeader } from './Core/Table/ArcTableAux.js';
30
+ import { ArcTable } from './Core/Table/ArcTable.js';
31
+ import { LDPerson } from './ROCrate/Generic/Person.js';
32
+ import { toList, delay, isEmpty, filter, map as map$2, indexed, tryPick, choose as choose$1, append, empty as empty$1, singleton as singleton$1 } from '../node_modules/@fable-org/fable-library-js/Seq.js';
33
+ import { ofSeq, collect, map as map$1, singleton, empty, sortBy, choose, length } from '../node_modules/@fable-org/fable-library-js/List.js';
34
+ import { LDLabProcess } from './ROCrate/Generic/LabProcess.js';
35
+ import { List_groupBy } from '../node_modules/@fable-org/fable-library-js/Seq2.js';
36
+ import { createMissingIdentifier } from './Core/Helper/Identifier.js';
37
+ import { rangeDouble } from '../node_modules/@fable-org/fable-library-js/Range.js';
38
+ import { ArcTables } from './Core/Table/ArcTables.js';
39
+ import { DataMap_init, DataMap__get_DataContexts, DataMap_$ctor_4E3220A7 } from './Core/DataMap.js';
40
+ import { LDOrganization } from './ROCrate/Generic/Organization.js';
41
+ import { decoder, encoder } from './Json/ROCrate/LDNode.js';
42
+ import { Person } from './Core/Person.js';
43
+ import { tryGetOrcidNumber } from './Core/Helper/ORCID.js';
44
+ import { StringBuilder_$ctor, StringBuilder__Clear, StringBuilder__Append_244C7CD6 } from '../node_modules/@fable-org/fable-library-js/System.Text.js';
45
+ import { LDScholarlyArticle } from './ROCrate/Generic/ScholarlyArticle.js';
46
+ import { Publication } from './Core/Publication.js';
47
+ import { ArcAssay, ArcStudy, ArcInvestigation } from './Core/ArcTypes.js';
48
+ import { now } from '../node_modules/@fable-org/fable-library-js/Date.js';
49
+
50
+ function DateTime_tryFromString(s) {
51
+ let matchValue;
52
+ try {
53
+ return matchValue = fromString(Decode_datetime, s), matchValue.tag === /* Error */
54
+ 1 ? (() => {
55
+ let arg;
56
+ throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
57
+ })() : matchValue.fields[0];
58
+ } catch (matchValue_1) {
59
+ return void 0;
60
+ }
61
+ }
62
+ function DateTime_toString(d) {
63
+ return toString$1(0, dateTime(d));
64
+ }
65
+ function ColumnIndex_tryInt(str) {
66
+ let matchValue;
67
+ let outArg = 0;
68
+ matchValue = [tryParse(str, 511, false, 32, new FSharpRef(() => outArg, (v) => {
69
+ outArg = v | 0;
70
+ })), outArg];
71
+ if (matchValue[0]) {
72
+ return matchValue[1];
73
+ } else {
74
+ return void 0;
75
+ }
76
+ }
77
+ const ColumnIndex_orderName = "columnIndex";
78
+ function ColumnIndex_tryGetIndex(node) {
79
+ const matchValue = node.TryGetPropertyAsSingleton(ColumnIndex_orderName);
80
+ let matchResult, ci;
81
+ if (matchValue != null) {
82
+ if (typeof value(matchValue) === "string") {
83
+ matchResult = 0;
84
+ ci = value(matchValue);
85
+ } else {
86
+ matchResult = 1;
87
+ }
88
+ } else {
89
+ matchResult = 1;
90
+ }
91
+ switch (matchResult) {
92
+ case 0:
93
+ return ColumnIndex_tryInt(ci);
94
+ default:
95
+ return void 0;
96
+ }
97
+ }
98
+ function ColumnIndex_setIndex(node, index) {
99
+ node.SetProperty(ColumnIndex_orderName, int32ToString(index));
100
+ }
101
+ function ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(this$, index) {
102
+ ColumnIndex_setIndex(this$, index);
103
+ }
104
+ function BaseTypes_composeComment_Z13201A7E(comment) {
105
+ let name;
106
+ const matchValue = comment.Name;
107
+ if (matchValue == null) {
108
+ throw new Error("Comment must have a name");
109
+ } else {
110
+ name = value(matchValue);
111
+ }
112
+ return LDComment.create(name, void 0, unwrap(comment.Value));
113
+ }
114
+ function BaseTypes_decomposeComment_Z2F770004(comment, context) {
115
+ return new Comment$(LDComment.getNameAsString(comment, unwrap(context)), unwrap(LDComment.tryGetTextAsString(comment, unwrap(context))));
116
+ }
117
+ function BaseTypes_ontologyTermFromNameAndID_40457300(name, id) {
118
+ if (id == null) {
119
+ return OntologyAnnotation.create(unwrap(name));
120
+ } else {
121
+ const t = value(id);
122
+ return OntologyAnnotation.fromTermAnnotation(t, unwrap(name));
123
+ }
124
+ }
125
+ function BaseTypes_tryOntologyTermFromNameAndID_40457300(name, id) {
126
+ if (name == null && id == null) {
127
+ return void 0;
128
+ } else {
129
+ return BaseTypes_ontologyTermFromNameAndID_40457300(unwrap(name), unwrap(id));
130
+ }
131
+ }
132
+ function BaseTypes_composeDefinedTerm_ZDED3A0F(term) {
133
+ const tan = Option_fromValueWithDefault("", term.TermAccessionAndOntobeeUrlIfShort);
134
+ return LDDefinedTerm.create(term.NameText, void 0, unwrap(tan));
135
+ }
136
+ function BaseTypes_decomposeDefinedTerm_Z2F770004(term, context) {
137
+ return BaseTypes_ontologyTermFromNameAndID_40457300(LDDefinedTerm.getNameAsString(term, unwrap(context)), unwrap(LDDefinedTerm.tryGetTermCodeAsString(term, unwrap(context))));
138
+ }
139
+ function BaseTypes_composePropertyValueFromOA_ZDED3A0F(term) {
140
+ const tan = Option_fromValueWithDefault("", term.TermAccessionAndOntobeeUrlIfShort);
141
+ return LDPropertyValue.create(term.NameText, void 0, void 0, unwrap(tan));
142
+ }
143
+ function BaseTypes_decomposePropertyValueToOA_Z2F770004(term, context) {
144
+ return BaseTypes_ontologyTermFromNameAndID_40457300(LDPropertyValue.getNameAsString(term, unwrap(context)), unwrap(LDPropertyValue.tryGetPropertyIDAsString(term, unwrap(context))));
145
+ }
146
+ function BaseTypes_valuesOfCell_Z436420FE(value) {
147
+ let term, term_1;
148
+ switch (value.tag) {
149
+ case /* Term */
150
+ 0:
151
+ if (term = value.fields[0], term.isEmpty()) {
152
+ value.fields[0];
153
+ return [void 0, void 0, void 0, void 0];
154
+ } else if (term_1 = value.fields[0], term_1.TANInfo != null) {
155
+ const term_3 = value.fields[0];
156
+ return [term_3.Name, term_3.TermAccessionAndOntobeeUrlIfShort, void 0, void 0];
157
+ } else {
158
+ const term_4 = value.fields[0];
159
+ return [term_4.Name, void 0, void 0, void 0];
160
+ }
161
+ case /* Unitized */
162
+ 2: {
163
+ const text_1 = value.fields[0];
164
+ const unit = value.fields[1];
165
+ const patternInput = unit.isEmpty() ? [void 0, void 0] : [unit.Name, Option_fromValueWithDefault("", unit.TermAccessionAndOntobeeUrlIfShort)];
166
+ return [Option_fromValueWithDefault("", text_1), void 0, patternInput[0], patternInput[1]];
167
+ }
168
+ case /* Data */
169
+ 3: {
170
+ value.fields[0];
171
+ throw new Error("Data cell should not be parsed to isa value");
172
+ }
173
+ default:
174
+ if (value.fields[0] === "") {
175
+ return [void 0, void 0, void 0, void 0];
176
+ } else {
177
+ const text = value.fields[0];
178
+ return [text, void 0, void 0, void 0];
179
+ }
180
+ }
181
+ }
182
+ function BaseTypes_termOfHeader_6CAF647B(header) {
183
+ let matchResult, oa;
184
+ switch (header.tag) {
185
+ case /* Component */
186
+ 0: {
187
+ matchResult = 0;
188
+ oa = header.fields[0];
189
+ break;
190
+ }
191
+ case /* Parameter */
192
+ 3: {
193
+ matchResult = 0;
194
+ oa = header.fields[0];
195
+ break;
196
+ }
197
+ case /* Factor */
198
+ 2: {
199
+ matchResult = 0;
200
+ oa = header.fields[0];
201
+ break;
202
+ }
203
+ case /* Characteristic */
204
+ 1: {
205
+ matchResult = 0;
206
+ oa = header.fields[0];
207
+ break;
208
+ }
209
+ default:
210
+ matchResult = 1;
211
+ }
212
+ switch (matchResult) {
213
+ case 0:
214
+ return [oa.NameText, oa.TANInfo != null ? oa.TermAccessionAndOntobeeUrlIfShort : void 0];
215
+ default:
216
+ return toFail(printf("header %O should not be parsed to isa value"))(header);
217
+ }
218
+ }
219
+ function BaseTypes_composeComponent(header, value) {
220
+ const patternInput = BaseTypes_valuesOfCell_Z436420FE(value);
221
+ const patternInput_1 = BaseTypes_termOfHeader_6CAF647B(header);
222
+ return LDPropertyValue.createComponent(patternInput_1[0], unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput[3]), unwrap(patternInput[2]), unwrap(patternInput[1]));
223
+ }
224
+ function BaseTypes_composeParameterValue(header, value) {
225
+ const patternInput = BaseTypes_valuesOfCell_Z436420FE(value);
226
+ const patternInput_1 = BaseTypes_termOfHeader_6CAF647B(header);
227
+ return LDPropertyValue.createParameterValue(patternInput_1[0], unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput[3]), unwrap(patternInput[2]), unwrap(patternInput[1]));
228
+ }
229
+ function BaseTypes_composeFactorValue(header, value) {
230
+ const patternInput = BaseTypes_valuesOfCell_Z436420FE(value);
231
+ const patternInput_1 = BaseTypes_termOfHeader_6CAF647B(header);
232
+ return LDPropertyValue.createFactorValue(patternInput_1[0], unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput[3]), unwrap(patternInput[2]), unwrap(patternInput[1]));
233
+ }
234
+ function BaseTypes_composeCharacteristicValue(header, value) {
235
+ const patternInput = BaseTypes_valuesOfCell_Z436420FE(value);
236
+ const patternInput_1 = BaseTypes_termOfHeader_6CAF647B(header);
237
+ return LDPropertyValue.createCharacteristicValue(patternInput_1[0], unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput[3]), unwrap(patternInput[2]), unwrap(patternInput[1]));
238
+ }
239
+ function BaseTypes_composeFreetextMaterialName(headerFT, name) {
240
+ return `${headerFT}=${name}`;
241
+ }
242
+ function BaseTypes_composeFile_6CE21C7D(d, fs) {
243
+ const createFile = () => {
244
+ const dataType = map(DataFile__get_AsString, d.DataType);
245
+ return LDFile.create(d.NameText, d.NameText, void 0, unwrap(dataType), unwrap(d.Format), unwrap(d.SelectorFormat));
246
+ };
247
+ if (fs == null) {
248
+ return createFile();
249
+ } else {
250
+ const fs_1 = value(fs);
251
+ const matchValue = fs_1.Tree.TryGetPath(d.NameText);
252
+ if (matchValue != null) {
253
+ if (value(matchValue).tag === /* Folder */
254
+ 1) {
255
+ const fs_2 = value(matchValue);
256
+ const file = createFile();
257
+ file.SchemaType = [LDFile.schemaType, LDDataset.schemaType];
258
+ let subFiles;
259
+ const collection = map$3((fp) => {
260
+ const fullPath = combine(d.NameText, fp);
261
+ return LDFile.create(fullPath, fullPath);
262
+ }, fs_2.ToFilePaths(true));
263
+ subFiles = Array.from(collection);
264
+ LDDataset.setHasParts(file, subFiles);
265
+ return file;
266
+ } else {
267
+ return createFile();
268
+ }
269
+ } else {
270
+ return createFile();
271
+ }
272
+ }
273
+ }
274
+ function BaseTypes_decomposeFile_Z2F770004(f, context) {
275
+ const dataType = map(DataFile_fromString_Z721C83C5, LDFile.tryGetDisambiguatingDescriptionAsString(f, unwrap(context)));
276
+ const format = LDFile.tryGetEncodingFormatAsString(f, unwrap(context));
277
+ const selectorFormat = LDFile.tryGetUsageInfoAsString(f, unwrap(context));
278
+ return new Data(void 0, LDFile.getNameAsString(f, unwrap(context)), unwrap(dataType), unwrap(format), unwrap(selectorFormat));
279
+ }
280
+ function BaseTypes_composeFragmentDescriptor_Z4C0BEF62(dc) {
281
+ if (dc.Name == null) {
282
+ throw new Error("RO-Crate parsing of DataContext failed: Cannot create a fragment descriptor without a name.");
283
+ }
284
+ const id = LDPropertyValue.genIdFragmentDescriptor(dc.NameText);
285
+ const patternInput = defaultArg(map((e) => [e.Name, Option_fromValueWithDefault("", e.TermAccessionAndOntobeeUrlIfShort)], DataContext__get_Explication(dc)), [void 0, void 0]);
286
+ const patternInput_1 = defaultArg(map((u) => [u.Name, Option_fromValueWithDefault("", u.TermAccessionAndOntobeeUrlIfShort)], DataContext__get_Unit(dc)), [void 0, void 0]);
287
+ const disambiguatingDescriptions = Option_fromSeq(ResizeArray_map(toString, dc.Comments));
288
+ const dataFragment = BaseTypes_composeFile_6CE21C7D(dc);
289
+ const pattern = map(BaseTypes_composeDefinedTerm_ZDED3A0F, DataContext__get_ObjectType(dc));
290
+ dataFragment.SetProperty(LDFile.about, new LDRef(id));
291
+ dataFragment.SetOptionalProperty(LDFile.pattern, pattern);
292
+ 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);
293
+ }
294
+ function BaseTypes_decomposeFragmentDescriptor_Z6839B9E8(fd, graph, context) {
295
+ const file = LDPropertyValue.tryGetSubjectOf(fd, unwrap(graph), unwrap(context));
296
+ let name;
297
+ if (file == null) {
298
+ throw new Error("RO-Crate parsing of DataContext failed: Cannot decompose a fragment descriptor without a name.");
299
+ } else {
300
+ const f = value(file);
301
+ name = LDFile.getNameAsString(f, unwrap(context));
302
+ }
303
+ const objectType = map((pa) => BaseTypes_decomposeDefinedTerm_Z2F770004(pa, unwrap(context)), bind((f_1) => LDFile.tryGetPatternAsDefinedTerm(f_1, unwrap(graph), unwrap(context)), file));
304
+ const format = bind((f_2) => LDFile.tryGetEncodingFormatAsString(f_2, unwrap(context)), file);
305
+ const selectorFormat = bind((f_3) => LDFile.tryGetUsageInfoAsString(f_3, unwrap(context)), file);
306
+ const explication = BaseTypes_tryOntologyTermFromNameAndID_40457300(unwrap(LDPropertyValue.tryGetValueAsString(fd)), unwrap(LDPropertyValue.tryGetValueReferenceAsString(fd)));
307
+ const unit = BaseTypes_tryOntologyTermFromNameAndID_40457300(unwrap(LDPropertyValue.tryGetUnitTextAsString(fd)), unwrap(LDPropertyValue.tryGetUnitCodeAsString(fd)));
308
+ const generatedBy = LDPropertyValue.tryGetMeasurementMethodAsString(fd);
309
+ const description = LDPropertyValue.tryGetDescriptionAsString(fd);
310
+ 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)));
311
+ }
312
+ function BaseTypes_composeProcessInput(header, value, fs) {
313
+ if (header.tag === /* Input */
314
+ 11) {
315
+ switch (header.fields[0].tag) {
316
+ case /* Sample */
317
+ 1:
318
+ return LDSample.createSample(value.AsFreeText);
319
+ case /* Material */
320
+ 3:
321
+ return LDSample.createMaterial(value.AsFreeText);
322
+ case /* Data */
323
+ 2:
324
+ switch (value.tag) {
325
+ case /* FreeText */
326
+ 1: {
327
+ const ft = value.fields[0];
328
+ return LDFile.create(ft, ft);
329
+ }
330
+ case /* Data */
331
+ 3:
332
+ return BaseTypes_composeFile_6CE21C7D(value.fields[0], unwrap(fs));
333
+ default:
334
+ return toFail(printf("Could not parse input data %O"))(value);
335
+ }
336
+ case /* FreeText */
337
+ 4: {
338
+ const ft_1 = header.fields[0].fields[0];
339
+ const n = new LDNode(BaseTypes_composeFreetextMaterialName(ft_1, value.AsFreeText), [ft_1]);
340
+ n.SetProperty(LDSample.name, value.AsFreeText);
341
+ return n;
342
+ }
343
+ default:
344
+ return LDSample.createSource(value.AsFreeText);
345
+ }
346
+ } else {
347
+ return toFail(printf("Could not parse input header %O"))(header);
348
+ }
349
+ }
350
+ function BaseTypes_composeProcessOutput(header, value, fs) {
351
+ let matchResult, ft_1;
352
+ if (header.tag === /* Output */
353
+ 12) {
354
+ switch (header.fields[0].tag) {
355
+ case /* Material */
356
+ 3: {
357
+ matchResult = 1;
358
+ break;
359
+ }
360
+ case /* Data */
361
+ 2: {
362
+ matchResult = 2;
363
+ break;
364
+ }
365
+ case /* FreeText */
366
+ 4: {
367
+ matchResult = 3;
368
+ ft_1 = header.fields[0].fields[0];
369
+ break;
370
+ }
371
+ default:
372
+ matchResult = 0;
373
+ }
374
+ } else {
375
+ matchResult = 4;
376
+ }
377
+ switch (matchResult) {
378
+ case 0:
379
+ return LDSample.createSample(value.AsFreeText);
380
+ case 1:
381
+ return LDSample.createMaterial(value.AsFreeText);
382
+ case 2:
383
+ switch (value.tag) {
384
+ case /* FreeText */
385
+ 1: {
386
+ const ft = value.fields[0];
387
+ return LDFile.create(ft, ft);
388
+ }
389
+ case /* Data */
390
+ 3:
391
+ return BaseTypes_composeFile_6CE21C7D(value.fields[0], unwrap(fs));
392
+ default:
393
+ return toFail(printf("Could not parse output data %O"))(value);
394
+ }
395
+ case 3: {
396
+ const n = new LDNode(BaseTypes_composeFreetextMaterialName(ft_1, value.AsFreeText), [ft_1]);
397
+ n.SetProperty(LDSample.name, value.AsFreeText);
398
+ return n;
399
+ }
400
+ default:
401
+ return toFail(printf("Could not parse output header %O"))(header);
402
+ }
403
+ }
404
+ function BaseTypes_headerOntologyOfPropertyValue_Z2F770004(pv, context) {
405
+ const n = LDPropertyValue.getNameAsString(pv, unwrap(context));
406
+ const matchValue = LDPropertyValue.tryGetPropertyIDAsString(pv, unwrap(context));
407
+ if (matchValue == null) {
408
+ return new OntologyAnnotation(n);
409
+ } else {
410
+ const nRef = value(matchValue);
411
+ return OntologyAnnotation.fromTermAnnotation(nRef, n);
412
+ }
413
+ }
414
+ function BaseTypes_cellOfPropertyValue_Z2F770004(pv, context) {
415
+ const v = LDPropertyValue.tryGetValueAsString(pv, unwrap(context));
416
+ const vRef = LDPropertyValue.tryGetValueReferenceAsString(pv, unwrap(context));
417
+ const u = LDPropertyValue.tryGetUnitTextAsString(pv, unwrap(context));
418
+ const uRef = LDPropertyValue.tryGetUnitCodeAsString(pv, unwrap(context));
419
+ let matchResult, vr, u_1, uRef_1;
420
+ if (vRef == null) {
421
+ if (u == null) {
422
+ if (uRef == null) {
423
+ matchResult = 3;
424
+ } else {
425
+ matchResult = 2;
426
+ uRef_1 = value(uRef);
427
+ }
428
+ } else if (uRef != null) {
429
+ matchResult = 2;
430
+ uRef_1 = value(uRef);
431
+ } else {
432
+ matchResult = 1;
433
+ u_1 = value(u);
434
+ }
435
+ } else if (u == null) {
436
+ if (uRef == null) {
437
+ matchResult = 0;
438
+ vr = value(vRef);
439
+ } else {
440
+ matchResult = 4;
441
+ }
442
+ } else {
443
+ matchResult = 4;
444
+ }
445
+ switch (matchResult) {
446
+ case 0:
447
+ return CompositeCell_Term(OntologyAnnotation.fromTermAnnotation(vr, unwrap(v)));
448
+ case 1:
449
+ return CompositeCell_Unitized(defaultArg(v, ""), new OntologyAnnotation(u_1));
450
+ case 2:
451
+ return CompositeCell_Unitized(defaultArg(v, ""), OntologyAnnotation.fromTermAnnotation(uRef_1, unwrap(u)));
452
+ case 3:
453
+ return CompositeCell_Term(new OntologyAnnotation(unwrap(v)));
454
+ default: {
455
+ const arg = defaultArg(v, "");
456
+ return toFail(printf("Could not parse value %s with unit %O and unit reference %O"))(arg)(u)(uRef);
457
+ }
458
+ }
459
+ }
460
+ function BaseTypes_decomposeComponent_Z2F770004(c, context) {
461
+ return [CompositeHeader_Component(BaseTypes_headerOntologyOfPropertyValue_Z2F770004(c, unwrap(context))), BaseTypes_cellOfPropertyValue_Z2F770004(c, unwrap(context))];
462
+ }
463
+ function BaseTypes_decomposeParameterValue_Z2F770004(c, context) {
464
+ return [CompositeHeader_Parameter(BaseTypes_headerOntologyOfPropertyValue_Z2F770004(c, unwrap(context))), BaseTypes_cellOfPropertyValue_Z2F770004(c, unwrap(context))];
465
+ }
466
+ function BaseTypes_decomposeFactorValue_Z2F770004(c, context) {
467
+ return [CompositeHeader_Factor(BaseTypes_headerOntologyOfPropertyValue_Z2F770004(c, unwrap(context))), BaseTypes_cellOfPropertyValue_Z2F770004(c, unwrap(context))];
468
+ }
469
+ function BaseTypes_decomposeCharacteristicValue_Z2F770004(c, context) {
470
+ return [CompositeHeader_Characteristic(BaseTypes_headerOntologyOfPropertyValue_Z2F770004(c, unwrap(context))), BaseTypes_cellOfPropertyValue_Z2F770004(c, unwrap(context))];
471
+ }
472
+ function BaseTypes_decomposeProcessInput_Z2F770004(pn, context) {
473
+ if (LDSample.validateSource(pn, unwrap(context))) {
474
+ return [CompositeHeader_Input(IOType_Source()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
475
+ } else if (LDSample.validateMaterial(pn, unwrap(context))) {
476
+ return [CompositeHeader_Input(IOType_Material()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
477
+ } else if (LDSample.validate(pn, unwrap(context))) {
478
+ return [CompositeHeader_Input(IOType_Sample()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
479
+ } else if (LDFile.validate(pn, unwrap(context))) {
480
+ return [CompositeHeader_Input(IOType_Data()), CompositeCell_Data(BaseTypes_decomposeFile_Z2F770004(pn, unwrap(context)))];
481
+ } else {
482
+ const n = pn;
483
+ return [CompositeHeader_Input(IOType_FreeText(n.SchemaType[0])), CompositeCell_FreeText(LDSample.getNameAsString(n, unwrap(context)))];
484
+ }
485
+ }
486
+ function BaseTypes_decomposeProcessOutput_Z2F770004(pn, context) {
487
+ if (LDSample.validateMaterial(pn, unwrap(context))) {
488
+ return [CompositeHeader_Output(IOType_Material()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
489
+ } else if (LDSample.validate(pn, unwrap(context))) {
490
+ return [CompositeHeader_Output(IOType_Sample()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
491
+ } else if (LDFile.validate(pn, unwrap(context))) {
492
+ return [CompositeHeader_Output(IOType_Data()), CompositeCell_Data(BaseTypes_decomposeFile_Z2F770004(pn, unwrap(context)))];
493
+ } else {
494
+ const n = pn;
495
+ return [CompositeHeader_Output(IOType_FreeText(n.SchemaType[0])), CompositeCell_FreeText(LDSample.getNameAsString(n, unwrap(context)))];
496
+ }
497
+ }
498
+ function ProcessConversion_tryGetProtocolType_Z6839B9E8(pv, graph, context) {
499
+ const matchValue = LDLabProtocol.tryGetIntendedUseAsDefinedTerm(pv, unwrap(graph), unwrap(context));
500
+ if (matchValue == null) {
501
+ const matchValue_1 = LDLabProtocol.tryGetIntendedUseAsString(pv, unwrap(context));
502
+ if (matchValue_1 == null) {
503
+ return void 0;
504
+ } else {
505
+ const s = value(matchValue_1);
506
+ return OntologyAnnotation.create(s);
507
+ }
508
+ } else {
509
+ return BaseTypes_decomposeDefinedTerm_Z2F770004(value(matchValue), unwrap(context));
510
+ }
511
+ }
512
+ function ProcessConversion_composeProcessName(processNameRoot, i) {
513
+ return `${processNameRoot}_${i}`;
514
+ }
515
+ function ProcessConversion_decomposeProcessName_Z721C83C5(name) {
516
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("(?<name>.+)_(?<num>\\d+)", name);
517
+ if (activePatternResult != null) {
518
+ const r = value(activePatternResult);
519
+ return [r.groups && r.groups.name || "", parse(r.groups && r.groups.num || "", 511, false, 32)];
520
+ } else {
521
+ return [name, void 0];
522
+ }
523
+ }
524
+ function ProcessConversion_tryComponentGetter(generalI, valueI, valueHeader) {
525
+ if (valueHeader.tag === /* Component */
526
+ 0) {
527
+ valueHeader.fields[0];
528
+ return (table) => (i) => {
529
+ let matchValue;
530
+ const c = BaseTypes_composeComponent(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
531
+ ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(c, valueI);
532
+ return c;
533
+ };
534
+ } else {
535
+ return void 0;
536
+ }
537
+ }
538
+ function ProcessConversion_tryParameterGetter(generalI, valueI, valueHeader) {
539
+ if (valueHeader.tag === /* Parameter */
540
+ 3) {
541
+ valueHeader.fields[0];
542
+ return (table) => (i) => {
543
+ let matchValue;
544
+ const p = BaseTypes_composeParameterValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
545
+ ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(p, valueI);
546
+ return p;
547
+ };
548
+ } else {
549
+ return void 0;
550
+ }
551
+ }
552
+ function ProcessConversion_tryFactorGetter(generalI, valueI, valueHeader) {
553
+ if (valueHeader.tag === /* Factor */
554
+ 2) {
555
+ valueHeader.fields[0];
556
+ return (table) => (i) => {
557
+ let matchValue;
558
+ const f = BaseTypes_composeFactorValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
559
+ ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(f, valueI);
560
+ return f;
561
+ };
562
+ } else {
563
+ return void 0;
564
+ }
565
+ }
566
+ function ProcessConversion_tryCharacteristicGetter(generalI, valueI, valueHeader) {
567
+ if (valueHeader.tag === /* Characteristic */
568
+ 1) {
569
+ valueHeader.fields[0];
570
+ return (table) => (i) => {
571
+ let matchValue;
572
+ const c = BaseTypes_composeCharacteristicValue(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_tryGetProtocolTypeGetter(generalI, header) {
581
+ if (header.tag === /* ProtocolType */
582
+ 4) {
583
+ return (table) => (i) => {
584
+ let matchValue, cell;
585
+ return BaseTypes_composeDefinedTerm_ZDED3A0F((matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? new OntologyAnnotation() : (cell = value(matchValue), cell.AsTerm)));
586
+ };
587
+ } else {
588
+ return void 0;
589
+ }
590
+ }
591
+ function ProcessConversion_tryGetProtocolREFGetter(generalI, header) {
592
+ if (header.tag === /* ProtocolREF */
593
+ 8) {
594
+ return (table) => (i) => {
595
+ const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
596
+ if (matchValue == null) {
597
+ return "";
598
+ } else {
599
+ const cell = value(matchValue);
600
+ return cell.AsFreeText;
601
+ }
602
+ };
603
+ } else {
604
+ return void 0;
605
+ }
606
+ }
607
+ function ProcessConversion_tryGetProtocolDescriptionGetter(generalI, header) {
608
+ if (header.tag === /* ProtocolDescription */
609
+ 5) {
610
+ return (table) => (i) => {
611
+ const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
612
+ if (matchValue == null) {
613
+ return "";
614
+ } else {
615
+ const cell = value(matchValue);
616
+ return cell.AsFreeText;
617
+ }
618
+ };
619
+ } else {
620
+ return void 0;
621
+ }
622
+ }
623
+ function ProcessConversion_tryGetProtocolURIGetter(generalI, header) {
624
+ if (header.tag === /* ProtocolUri */
625
+ 6) {
626
+ return (table) => (i) => {
627
+ const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
628
+ if (matchValue == null) {
629
+ return "";
630
+ } else {
631
+ const cell = value(matchValue);
632
+ return cell.AsFreeText;
633
+ }
634
+ };
635
+ } else {
636
+ return void 0;
637
+ }
638
+ }
639
+ function ProcessConversion_tryGetProtocolVersionGetter(generalI, header) {
640
+ if (header.tag === /* ProtocolVersion */
641
+ 7) {
642
+ return (table) => (i) => {
643
+ const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
644
+ if (matchValue == null) {
645
+ return "";
646
+ } else {
647
+ const cell = value(matchValue);
648
+ return cell.AsFreeText;
649
+ }
650
+ };
651
+ } else {
652
+ return void 0;
653
+ }
654
+ }
655
+ function ProcessConversion_tryGetInputGetter(generalI, header, fs) {
656
+ if (header.tag === /* Input */
657
+ 11) {
658
+ header.fields[0];
659
+ return (table) => (i) => {
660
+ let matchValue;
661
+ return BaseTypes_composeProcessInput(header, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(header, void 0) : value(matchValue)), fs);
662
+ };
663
+ } else {
664
+ return void 0;
665
+ }
666
+ }
667
+ function ProcessConversion_tryGetOutputGetter(generalI, header, fs) {
668
+ if (header.tag === /* Output */
669
+ 12) {
670
+ header.fields[0];
671
+ return (table) => (i) => {
672
+ let matchValue;
673
+ return BaseTypes_composeProcessOutput(header, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(header, void 0) : value(matchValue)), fs);
674
+ };
675
+ } else {
676
+ return void 0;
677
+ }
678
+ }
679
+ function ProcessConversion_tryGetCommentGetter(generalI, header) {
680
+ if (header.tag === /* Comment */
681
+ 14) {
682
+ const c = header.fields[0];
683
+ return (table) => (i) => {
684
+ let matchValue, cell;
685
+ return toString((matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? new Comment$(c) : (cell = value(matchValue), new Comment$(c, cell.AsFreeText))));
686
+ };
687
+ } else {
688
+ return void 0;
689
+ }
690
+ }
691
+ function ProcessConversion_tryGetPerformerGetter(generalI, header) {
692
+ if (header.tag === /* Performer */
693
+ 9) {
694
+ return (table) => (i) => {
695
+ let performer;
696
+ const matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values);
697
+ if (matchValue == null) {
698
+ performer = "";
699
+ } else {
700
+ const cell = value(matchValue);
701
+ performer = cell.AsFreeText;
702
+ }
703
+ return LDPerson.create(performer);
704
+ };
705
+ } else {
706
+ return void 0;
707
+ }
708
+ }
709
+ function ProcessConversion_getProcessGetter(assayName, studyName, processNameRoot, headers, fs) {
710
+ const headers_1 = indexed(headers);
711
+ const valueHeaders = toList(indexed(filter((arg) => arg[1].IsCvParamColumn, headers_1)));
712
+ const charGetters = choose((tupledArg) => {
713
+ const _arg = tupledArg[1];
714
+ return ProcessConversion_tryCharacteristicGetter(_arg[0], tupledArg[0], _arg[1]);
715
+ }, valueHeaders);
716
+ const factorValueGetters = choose((tupledArg_1) => {
717
+ const _arg_1 = tupledArg_1[1];
718
+ return ProcessConversion_tryFactorGetter(_arg_1[0], tupledArg_1[0], _arg_1[1]);
719
+ }, valueHeaders);
720
+ const parameterValueGetters = choose((tupledArg_2) => {
721
+ const _arg_2 = tupledArg_2[1];
722
+ return ProcessConversion_tryParameterGetter(_arg_2[0], tupledArg_2[0], _arg_2[1]);
723
+ }, valueHeaders);
724
+ const componentGetters = choose((tupledArg_3) => {
725
+ const _arg_3 = tupledArg_3[1];
726
+ return ProcessConversion_tryComponentGetter(_arg_3[0], tupledArg_3[0], _arg_3[1]);
727
+ }, valueHeaders);
728
+ const protocolTypeGetter = tryPick((tupledArg_4) => ProcessConversion_tryGetProtocolTypeGetter(tupledArg_4[0], tupledArg_4[1]), headers_1);
729
+ const protocolREFGetter = tryPick((tupledArg_5) => ProcessConversion_tryGetProtocolREFGetter(tupledArg_5[0], tupledArg_5[1]), headers_1);
730
+ const protocolDescriptionGetter = tryPick((tupledArg_6) => ProcessConversion_tryGetProtocolDescriptionGetter(tupledArg_6[0], tupledArg_6[1]), headers_1);
731
+ const protocolURIGetter = tryPick((tupledArg_7) => ProcessConversion_tryGetProtocolURIGetter(tupledArg_7[0], tupledArg_7[1]), headers_1);
732
+ const protocolVersionGetter = tryPick((tupledArg_8) => ProcessConversion_tryGetProtocolVersionGetter(tupledArg_8[0], tupledArg_8[1]), headers_1);
733
+ const performerGetter = tryPick((tupledArg_9) => ProcessConversion_tryGetPerformerGetter(tupledArg_9[0], tupledArg_9[1]), headers_1);
734
+ const commentGetters = toList(choose$1((tupledArg_10) => ProcessConversion_tryGetCommentGetter(tupledArg_10[0], tupledArg_10[1]), headers_1));
735
+ let inputGetter_1;
736
+ const matchValue = tryPick((tupledArg_11) => ProcessConversion_tryGetInputGetter(tupledArg_11[0], tupledArg_11[1], fs), headers_1);
737
+ if (matchValue == null) {
738
+ inputGetter_1 = length(charGetters) !== 0 ? (table_1) => (i_1) => {
739
+ let chars_1;
740
+ const collection_1 = map$2((f_1) => f_1(table_1)(i_1), charGetters);
741
+ chars_1 = Array.from(collection_1);
742
+ return ResizeArray_singleton(LDSample.createSample(`${processNameRoot}_Input_${i_1}`, void 0, chars_1));
743
+ } : (table_2) => (i_2) => [];
744
+ } else {
745
+ const inputGetter = value(matchValue);
746
+ inputGetter_1 = (table) => (i) => {
747
+ let chars;
748
+ const collection = map$2((f) => f(table)(i), charGetters);
749
+ chars = Array.from(collection);
750
+ const input = inputGetter(table)(i);
751
+ if (chars.length > 0) {
752
+ LDSample.setAdditionalProperties(input, chars);
753
+ }
754
+ return ResizeArray_singleton(input);
755
+ };
756
+ }
757
+ let outputGetter_1;
758
+ const matchValue_1 = tryPick((tupledArg_12) => ProcessConversion_tryGetOutputGetter(tupledArg_12[0], tupledArg_12[1], fs), headers_1);
759
+ if (matchValue_1 == null) {
760
+ outputGetter_1 = length(factorValueGetters) !== 0 ? (table_4) => (i_4) => {
761
+ let factors_1;
762
+ const collection_3 = map$2((f_3) => f_3(table_4)(i_4), factorValueGetters);
763
+ factors_1 = Array.from(collection_3);
764
+ return ResizeArray_singleton(LDSample.createSample(`${processNameRoot}_Output_${i_4}`, void 0, factors_1));
765
+ } : (table_5) => (i_5) => [];
766
+ } else {
767
+ const outputGetter = value(matchValue_1);
768
+ outputGetter_1 = (table_3) => (i_3) => {
769
+ let factors;
770
+ const collection_2 = map$2((f_2) => f_2(table_3)(i_3), factorValueGetters);
771
+ factors = Array.from(collection_2);
772
+ const output = outputGetter(table_3)(i_3);
773
+ if (factors.length > 0) {
774
+ LDSample.setAdditionalProperties(output, factors);
775
+ }
776
+ return ResizeArray_singleton(output);
777
+ };
778
+ }
779
+ return (table_6) => (i_6) => {
780
+ const pn = table_6.RowCount === 1 ? processNameRoot : ProcessConversion_composeProcessName(processNameRoot, i_6);
781
+ const paramvalues = map((collection_4) => Array.from(collection_4), Option_fromValueWithDefault(empty(), map$1((f_4) => f_4(table_6)(i_6), parameterValueGetters)));
782
+ const comments = map((collection_5) => Array.from(collection_5), Option_fromValueWithDefault(empty(), map$1((f_5) => f_5(table_6)(i_6), commentGetters)));
783
+ const components = map((collection_6) => Array.from(collection_6), Option_fromValueWithDefault(empty(), map$1((f_6) => f_6(table_6)(i_6), componentGetters)));
784
+ const id = LDLabProcess.genId(processNameRoot, unwrap(assayName), unwrap(studyName)) + `_${i_6}`;
785
+ let protocol;
786
+ const name = map((f_7) => f_7(table_6)(i_6), protocolREFGetter);
787
+ const protocolId = LDLabProtocol.genId(unwrap(name), processNameRoot);
788
+ 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)));
789
+ const matchValue_2 = inputGetter_1(table_6)(i_6);
790
+ const matchValue_3 = outputGetter_1(table_6)(i_6);
791
+ const agent = map((f_12) => f_12(table_6)(i_6), performerGetter);
792
+ return LDLabProcess.create(pn, matchValue_2, matchValue_3, id, unwrap(agent), unwrap(protocol), unwrap(paramvalues), void 0, unwrap(comments));
793
+ };
794
+ }
795
+ function ProcessConversion_groupProcesses_Z27F0B586(processes, graph, context) {
796
+ return List_groupBy((p) => {
797
+ let protocol, protocol_1;
798
+ const matchValue = LDLabProcess.tryGetNameAsString(p, unwrap(context));
799
+ const matchValue_1 = LDLabProcess.tryGetExecutesLabProtocol(p, unwrap(graph), unwrap(context));
800
+ let matchResult, name_1, protocol_2, name_2, protocol_3;
801
+ if (matchValue != null) {
802
+ if (ProcessConversion_decomposeProcessName_Z721C83C5(value(matchValue))[1] != null) {
803
+ matchResult = 0;
804
+ name_1 = value(matchValue);
805
+ } else if (matchValue_1 != null) {
806
+ if (protocol = value(matchValue_1), LDLabProtocol.tryGetNameAsString(protocol, unwrap(context)) != null) {
807
+ matchResult = 1;
808
+ protocol_2 = value(matchValue_1);
809
+ } else {
810
+ matchResult = 2;
811
+ name_2 = value(matchValue);
812
+ }
813
+ } else {
814
+ matchResult = 2;
815
+ name_2 = value(matchValue);
816
+ }
817
+ } else if (matchValue_1 != null) {
818
+ if (protocol_1 = value(matchValue_1), LDLabProtocol.tryGetNameAsString(protocol_1, unwrap(context)) != null) {
819
+ matchResult = 1;
820
+ protocol_2 = value(matchValue_1);
821
+ } else {
822
+ matchResult = 3;
823
+ protocol_3 = value(matchValue_1);
824
+ }
825
+ } else {
826
+ matchResult = 4;
827
+ }
828
+ switch (matchResult) {
829
+ case 0:
830
+ return ProcessConversion_decomposeProcessName_Z721C83C5(name_1)[0];
831
+ case 1:
832
+ return defaultArg(LDLabProtocol.tryGetNameAsString(protocol_2, unwrap(context)), "");
833
+ case 2:
834
+ return name_2;
835
+ case 3:
836
+ return protocol_3.Id;
837
+ default:
838
+ return createMissingIdentifier();
839
+ }
840
+ }, processes, {
841
+ Equals: (x, y) => x === y,
842
+ GetHashCode: stringHash
843
+ });
844
+ }
845
+ function ProcessConversion_processToRows_Z6839B9E8(p, graph, context) {
846
+ const pvs = ResizeArray_map((ppv) => [BaseTypes_decomposeParameterValue_Z2F770004(ppv, unwrap(context)), ColumnIndex_tryGetIndex(ppv)], LDLabProcess.getParameterValues(p, unwrap(graph), unwrap(context)));
847
+ let components;
848
+ const matchValue = LDLabProcess.tryGetExecutesLabProtocol(p, unwrap(graph), unwrap(context));
849
+ if (matchValue == null) {
850
+ components = [];
851
+ } else {
852
+ const prot = value(matchValue);
853
+ components = ResizeArray_map((ppv_1) => [BaseTypes_decomposeComponent_Z2F770004(ppv_1, unwrap(context)), ColumnIndex_tryGetIndex(ppv_1)], LDLabProtocol.getComponents(prot, unwrap(graph), unwrap(context)));
854
+ }
855
+ let protVals;
856
+ const matchValue_1 = LDLabProcess.tryGetExecutesLabProtocol(p, unwrap(graph), unwrap(context));
857
+ if (matchValue_1 == null) {
858
+ protVals = empty();
859
+ } else {
860
+ const prot_1 = value(matchValue_1);
861
+ protVals = toList(delay(() => {
862
+ let matchValue_2;
863
+ return append((matchValue_2 = LDLabProtocol.tryGetNameAsString(prot_1, unwrap(context)), matchValue_2 == null ? empty$1() : singleton$1([CompositeHeader_ProtocolREF(), CompositeCell_FreeText(value(matchValue_2))])), delay(() => {
864
+ let matchValue_3;
865
+ return append((matchValue_3 = LDLabProtocol.tryGetDescriptionAsString(prot_1, unwrap(context)), matchValue_3 == null ? empty$1() : singleton$1([CompositeHeader_ProtocolDescription(), CompositeCell_FreeText(value(matchValue_3))])), delay(() => {
866
+ let matchValue_4;
867
+ return append((matchValue_4 = LDLabProtocol.tryGetUrl(prot_1, unwrap(context)), matchValue_4 == null ? empty$1() : singleton$1([CompositeHeader_ProtocolUri(), CompositeCell_FreeText(value(matchValue_4))])), delay(() => {
868
+ let matchValue_5;
869
+ return append((matchValue_5 = LDLabProtocol.tryGetVersionAsString(prot_1, unwrap(context)), matchValue_5 == null ? empty$1() : singleton$1([CompositeHeader_ProtocolVersion(), CompositeCell_FreeText(value(matchValue_5))])), delay(() => {
870
+ const matchValue_6 = ProcessConversion_tryGetProtocolType_Z6839B9E8(prot_1, unwrap(graph), unwrap(context));
871
+ if (matchValue_6 == null) {
872
+ return empty$1();
873
+ } else {
874
+ return singleton$1([CompositeHeader_ProtocolType(), CompositeCell_Term(value(matchValue_6))]);
875
+ }
876
+ }));
877
+ }));
878
+ }));
879
+ }));
880
+ }));
881
+ }
882
+ const comments = ResizeArray_map((c) => {
883
+ const c_1 = Comment$.fromString(c);
884
+ return [CompositeHeader_Comment(defaultArg(c_1.Name, "")), CompositeCell_FreeText(defaultArg(c_1.Value, ""))];
885
+ }, LDLabProcess.getDisambiguatingDescriptionsAsString(p, unwrap(context)));
886
+ const inputs = LDLabProcess.getObjects(p, unwrap(graph), unwrap(context));
887
+ const outputs = LDLabProcess.getResults(p, unwrap(graph), unwrap(context));
888
+ 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)];
889
+ const outputs_1 = patternInput[1];
890
+ const inputs_1 = patternInput[0];
891
+ if (inputs_1.length === 0 && outputs_1.length === 0) {
892
+ const vals = map$1((tuple_1) => tuple_1[0], sortBy((arg) => defaultArg(arg[1], 1e4), toList(delay(() => append(components, delay(() => pvs)))), {
893
+ Compare: comparePrimitives
894
+ }));
895
+ return ResizeArray_singleton(toList(delay(() => append(protVals, delay(() => append(vals, delay(() => comments)))))));
896
+ } else {
897
+ return ResizeArray_map((tupledArg) => {
898
+ const i = tupledArg[0];
899
+ const o = tupledArg[1];
900
+ let chars;
901
+ if (i == null) {
902
+ chars = [];
903
+ } else {
904
+ const i_1 = value(i);
905
+ chars = ResizeArray_map((cv) => [BaseTypes_decomposeCharacteristicValue_Z2F770004(cv, unwrap(context)), ColumnIndex_tryGetIndex(cv)], LDSample.getCharacteristics(i_1, unwrap(graph), unwrap(context)));
906
+ }
907
+ let factors;
908
+ if (o == null) {
909
+ factors = [];
910
+ } else {
911
+ const o_1 = value(o);
912
+ factors = ResizeArray_map((fv) => [BaseTypes_decomposeFactorValue_Z2F770004(fv, unwrap(context)), ColumnIndex_tryGetIndex(fv)], LDSample.getFactors(o_1, unwrap(graph), unwrap(context)));
913
+ }
914
+ const vals_1 = map$1((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)))))))), {
915
+ Compare: comparePrimitives
916
+ }));
917
+ return toList(delay(() => append(i != null ? singleton$1(BaseTypes_decomposeProcessInput_Z2F770004(value(i), unwrap(context))) : empty$1(), delay(() => append(protVals, delay(() => append(vals_1, delay(() => append(comments, delay(() => o != null ? singleton$1(BaseTypes_decomposeProcessOutput_Z2F770004(value(o), unwrap(context))) : empty$1()))))))))));
918
+ }, ResizeArray_zip(inputs_1, outputs_1));
919
+ }
920
+ }
921
+ function ARCtrl_ArcTable__ArcTable_GetProcesses_5E660E5C(this$, assayName, studyName, fs) {
922
+ if (this$.RowCount === 0) {
923
+ return singleton(LDLabProcess.create(this$.Name));
924
+ } else {
925
+ const getter = ProcessConversion_getProcessGetter(assayName, studyName, this$.Name, this$.Headers, fs);
926
+ return toList(delay(() => map$2((i) => getter(this$)(i), rangeDouble(0, 1, this$.RowCount - 1))));
927
+ }
928
+ }
929
+ function ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(this$, assayName, studyName, fs) {
930
+ return collect((t) => ARCtrl_ArcTable__ArcTable_GetProcesses_5E660E5C(t, unwrap(assayName), unwrap(studyName), unwrap(fs)), toList(this$.Tables));
931
+ }
932
+ function ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586(ps, graph, context) {
933
+ let collection;
934
+ return new ArcTables((collection = map$1((tupledArg) => {
935
+ const tupledArg_1 = Unchecked_alignByHeaders(true, collect((p) => ofSeq(ProcessConversion_processToRows_Z6839B9E8(p, unwrap(graph), unwrap(context))), tupledArg[1]));
936
+ return ArcTable.fromArcTableValues(tupledArg[0], tupledArg_1[0], tupledArg_1[1]);
937
+ }, ProcessConversion_groupProcesses_Z27F0B586(ps, unwrap(graph), unwrap(context))), Array.from(collection)));
938
+ }
939
+ function DatamapConversion_composeFragmentDescriptors_Z8923FA3(datamap) {
940
+ return ResizeArray_map(BaseTypes_composeFragmentDescriptor_Z4C0BEF62, DataMap__get_DataContexts(datamap));
941
+ }
942
+ function DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(fragmentDescriptors, graph, context) {
943
+ return DataMap_$ctor_4E3220A7(ResizeArray_map((fd) => BaseTypes_decomposeFragmentDescriptor_Z6839B9E8(fd, unwrap(graph), unwrap(context)), fragmentDescriptors));
944
+ }
945
+ function PersonConversion_composeAffiliation_Z721C83C5(affiliation) {
946
+ let arg;
947
+ try {
948
+ const matchValue = fromString(decoder, affiliation);
949
+ if (matchValue.tag === /* Error */
950
+ 1) {
951
+ throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
952
+ } else {
953
+ return matchValue.fields[0];
954
+ }
955
+ } catch (matchValue_1) {
956
+ return LDOrganization.create(affiliation);
957
+ }
958
+ }
959
+ function PersonConversion_decomposeAffiliation_Z2F770004(affiliation, context) {
960
+ if (isEmpty(filter((n) => n !== LDOrganization.name, affiliation.GetPropertyNames(unwrap(context))))) {
961
+ return LDOrganization.getNameAsString(affiliation, unwrap(context));
962
+ } else {
963
+ return toString$1(0, encoder(affiliation));
964
+ }
965
+ }
966
+ function PersonConversion_composeAddress_Z721C83C5(address) {
967
+ let matchValue;
968
+ try {
969
+ return matchValue = fromString(decoder, address), matchValue.tag === /* Error */
970
+ 1 ? (() => {
971
+ let arg;
972
+ throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
973
+ })() : matchValue.fields[0];
974
+ } catch (matchValue_1) {
975
+ return address;
976
+ }
977
+ }
978
+ function PersonConversion_decomposeAddress_4E60E31B(address) {
979
+ if (typeof address === "string") {
980
+ return address;
981
+ } else if (address instanceof LDNode) {
982
+ return toString$1(0, encoder(address));
983
+ } else {
984
+ throw new Error("Address must be a string or a Json.LDNode");
985
+ }
986
+ }
987
+ function PersonConversion_composePerson_Z64D846DC(person) {
988
+ let givenName;
989
+ const matchValue = person.FirstName;
990
+ if (matchValue == null) {
991
+ throw new Error("Person must have a given name");
992
+ } else {
993
+ givenName = value(matchValue);
994
+ }
995
+ const jobTitles = Option_fromSeq(ResizeArray_map(BaseTypes_composeDefinedTerm_ZDED3A0F, person.Roles));
996
+ const disambiguatingDescriptions = Option_fromSeq(ResizeArray_map(toString, person.Comments));
997
+ const address_1 = map(PersonConversion_composeAddress_Z721C83C5, person.Address);
998
+ const affiliation_1 = map(PersonConversion_composeAffiliation_Z721C83C5, person.Affiliation);
999
+ 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));
1000
+ }
1001
+ function PersonConversion_decomposePerson_Z6839B9E8(person, graph, context) {
1002
+ const orcid = tryGetOrcidNumber(person.Id);
1003
+ let address;
1004
+ const matchValue = LDPerson.tryGetAddressAsString(person, unwrap(context));
1005
+ if (matchValue == null) {
1006
+ const matchValue_1 = LDPerson.tryGetAddressAsPostalAddress(person, unwrap(graph), unwrap(context));
1007
+ address = matchValue_1 == null ? void 0 : PersonConversion_decomposeAddress_4E60E31B(value(matchValue_1));
1008
+ } else {
1009
+ address = value(matchValue);
1010
+ }
1011
+ const roles = ResizeArray_map((r) => BaseTypes_decomposeDefinedTerm_Z2F770004(r, unwrap(context)), LDPerson.getJobTitlesAsDefinedTerm(person, unwrap(graph), unwrap(context)));
1012
+ const comments = ResizeArray_map((s_1) => Comment$.fromString(s_1), LDPerson.getDisambiguatingDescriptionsAsString(person, unwrap(context)));
1013
+ const affiliation = map((a_3) => PersonConversion_decomposeAffiliation_Z2F770004(a_3, unwrap(context)), LDPerson.tryGetAffiliation(person, unwrap(graph), unwrap(context)));
1014
+ 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);
1015
+ }
1016
+ function ScholarlyArticleConversion_composeAuthor_Z721C83C5(author) {
1017
+ let arg;
1018
+ try {
1019
+ const matchValue = fromString(decoder, author);
1020
+ if (matchValue.tag === /* Error */
1021
+ 1) {
1022
+ throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
1023
+ } else {
1024
+ return matchValue.fields[0];
1025
+ }
1026
+ } catch (matchValue_1) {
1027
+ return LDPerson.create(author);
1028
+ }
1029
+ }
1030
+ function ScholarlyArticleConversion_splitAuthors_Z721C83C5(a) {
1031
+ let bracketCount = 0;
1032
+ const authors = [];
1033
+ const sb = StringBuilder_$ctor();
1034
+ const enumerator = getEnumerator(a.split(""));
1035
+ try {
1036
+ while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
1037
+ const c = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
1038
+ switch (c) {
1039
+ case "{": {
1040
+ bracketCount = bracketCount + 1 | 0;
1041
+ StringBuilder__Append_244C7CD6(sb, c);
1042
+ break;
1043
+ }
1044
+ case "}": {
1045
+ bracketCount = bracketCount - 1 | 0;
1046
+ StringBuilder__Append_244C7CD6(sb, c);
1047
+ break;
1048
+ }
1049
+ default:
1050
+ if (c === "," && bracketCount === 0) {
1051
+ void authors.push(toString(sb));
1052
+ StringBuilder__Clear(sb);
1053
+ } else {
1054
+ StringBuilder__Append_244C7CD6(sb, c);
1055
+ }
1056
+ }
1057
+ }
1058
+ } finally {
1059
+ disposeSafe(enumerator);
1060
+ }
1061
+ void authors.push(toString(sb));
1062
+ return authors;
1063
+ }
1064
+ function ScholarlyArticleConversion_composeAuthors_Z721C83C5(authors) {
1065
+ const collection = map$2(ScholarlyArticleConversion_composeAuthor_Z721C83C5, ScholarlyArticleConversion_splitAuthors_Z721C83C5(authors));
1066
+ return Array.from(collection);
1067
+ }
1068
+ function ScholarlyArticleConversion_decomposeAuthor_Z2F770004(author, context) {
1069
+ if (isEmpty(filter((n) => n !== LDPerson.givenName, author.GetPropertyNames(unwrap(context))))) {
1070
+ return LDPerson.getGivenNameAsString(author, unwrap(context));
1071
+ } else {
1072
+ return toString$1(0, encoder(author));
1073
+ }
1074
+ }
1075
+ function ScholarlyArticleConversion_decomposeAuthors_1AAAE9A5(authors, context) {
1076
+ return join(",", ResizeArray_map((a) => ScholarlyArticleConversion_decomposeAuthor_Z2F770004(a, unwrap(context)), authors));
1077
+ }
1078
+ function ScholarlyArticleConversion_composeScholarlyArticle_D324A6D(publication) {
1079
+ let title;
1080
+ const matchValue = publication.Title;
1081
+ if (matchValue == null) {
1082
+ throw new Error("Publication must have a title");
1083
+ } else {
1084
+ title = value(matchValue);
1085
+ }
1086
+ const authors_1 = map(ScholarlyArticleConversion_composeAuthors_Z721C83C5, publication.Authors);
1087
+ const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, publication.Comments));
1088
+ const identifiers = Array.from(toList(delay(() => append(publication.DOI != null && value(publication.DOI) !== "" ? singleton$1(LDPropertyValue.createDOI(value(publication.DOI))) : empty$1(), delay(() => publication.PubMedID != null && value(publication.PubMedID) !== "" ? singleton$1(LDPropertyValue.createPubMedID(value(publication.PubMedID))) : empty$1())))));
1089
+ const status = map(BaseTypes_composeDefinedTerm_ZDED3A0F, publication.Status);
1090
+ return LDScholarlyArticle.create(title, identifiers, void 0, unwrap(authors_1), void 0, unwrap(status), unwrap(comments));
1091
+ }
1092
+ function ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8(sa, graph, context) {
1093
+ const title = LDScholarlyArticle.getHeadlineAsString(sa, unwrap(context));
1094
+ const authors = map((a) => ScholarlyArticleConversion_decomposeAuthors_1AAAE9A5(a, unwrap(context)), Option_fromSeq(LDScholarlyArticle.getAuthors(sa, unwrap(graph), unwrap(context))));
1095
+ const comments = ResizeArray_map((c) => BaseTypes_decomposeComment_Z2F770004(c, unwrap(context)), LDScholarlyArticle.getComments(sa, unwrap(graph), unwrap(context)));
1096
+ const status = map((s) => BaseTypes_decomposeDefinedTerm_Z2F770004(s, unwrap(context)), LDScholarlyArticle.tryGetCreativeWorkStatus(sa, unwrap(graph), unwrap(context)));
1097
+ const identifiers = LDScholarlyArticle.getIdentifiersAsPropertyValue(sa, unwrap(graph), unwrap(context));
1098
+ let doi;
1099
+ const _arg = ResizeArray_tryPick((i) => LDPropertyValue.tryGetAsDOI(i, unwrap(context)), identifiers);
1100
+ doi = _arg == null ? LDScholarlyArticle.tryGetSameAsAsString(sa, unwrap(context)) : value(_arg);
1101
+ let pubMedID;
1102
+ const _arg_1 = ResizeArray_tryPick((i_1) => LDPropertyValue.tryGetAsPubMedID(i_1, unwrap(context)), identifiers);
1103
+ pubMedID = _arg_1 == null ? LDScholarlyArticle.tryGetUrlAsString(sa, unwrap(context)) : value(_arg_1);
1104
+ return Publication.create(unwrap(pubMedID), unwrap(doi), unwrap(authors), title, unwrap(status), comments);
1105
+ }
1106
+ function AssayConversion_getDataFilesFromProcesses_6BABD1B0(processes, fragmentDescriptors, graph, context) {
1107
+ 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)));
1108
+ const files = ResizeArray_filter((d) => DataAux_pathAndSelectorFromName(d.Id)[1] == null, data);
1109
+ return ResizeArray_append(files, ResizeArray_map((tupledArg) => {
1110
+ const path = tupledArg[0];
1111
+ const fragments = tupledArg[1];
1112
+ let file;
1113
+ const matchValue = ResizeArray_tryFind((d_3) => d_3.Id === path, files);
1114
+ if (matchValue == null) {
1115
+ const comments = Option_fromSeq(LDFile.getComments(fragments[0], unwrap(graph), unwrap(context)));
1116
+ 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()));
1117
+ } else {
1118
+ file = value(matchValue);
1119
+ }
1120
+ LDDataset.setHasParts(file, fragments, unwrap(context));
1121
+ return file;
1122
+ }, ResizeArray_groupBy((d_2) => DataAux_pathAndSelectorFromName(d_2.Id)[0], ResizeArray_filter((d_1) => DataAux_pathAndSelectorFromName(d_1.Id)[1] != null, data))));
1123
+ }
1124
+ function AssayConversion_composeAssay_Z5C53FD5C(assay, fs) {
1125
+ let collection, fds_1, vm_1, fds, vm;
1126
+ const measurementMethod = map(BaseTypes_composeDefinedTerm_ZDED3A0F, assay.TechnologyType);
1127
+ const measurementTechnique = map(BaseTypes_composeDefinedTerm_ZDED3A0F, assay.TechnologyPlatform);
1128
+ const variableMeasured = map(BaseTypes_composePropertyValueFromOA_ZDED3A0F, assay.MeasurementType);
1129
+ const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, assay.Performers));
1130
+ const processSequence = Option_fromSeq((collection = ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(new ArcTables(assay.Tables), assay.Identifier, void 0, unwrap(fs)), Array.from(collection)));
1131
+ const fragmentDescriptors = map(DatamapConversion_composeFragmentDescriptors_Z8923FA3, assay.DataMap);
1132
+ const dataFiles = map((ps) => AssayConversion_getDataFilesFromProcesses_6BABD1B0(ps, unwrap(fragmentDescriptors)), processSequence);
1133
+ 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));
1134
+ const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, assay.Comments));
1135
+ 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));
1136
+ }
1137
+ function AssayConversion_decomposeAssay_Z6839B9E8(assay, graph, context) {
1138
+ const measurementMethod = map((m) => BaseTypes_decomposeDefinedTerm_Z2F770004(m, unwrap(context)), LDDataset.tryGetMeasurementMethodAsDefinedTerm(assay, unwrap(graph), unwrap(context)));
1139
+ const measurementTechnique = map((m_1) => BaseTypes_decomposeDefinedTerm_Z2F770004(m_1, unwrap(context)), LDDataset.tryGetMeasurementTechniqueAsDefinedTerm(assay, unwrap(graph), unwrap(context)));
1140
+ const variableMeasured = map((v) => BaseTypes_decomposePropertyValueToOA_Z2F770004(v, unwrap(context)), LDDataset.tryGetVariableMeasuredAsMeasurementType(assay, unwrap(graph), unwrap(context)));
1141
+ const perfomers = ResizeArray_map((c) => PersonConversion_decomposePerson_Z6839B9E8(c, unwrap(graph), unwrap(context)), LDDataset.getCreators(assay, unwrap(graph), unwrap(context)));
1142
+ let dataMap;
1143
+ const v_1 = DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(LDDataset.getVariableMeasuredAsFragmentDescriptors(assay, unwrap(graph), unwrap(context)), unwrap(graph), unwrap(context));
1144
+ dataMap = Option_fromValueWithDefault(DataMap_init(), v_1);
1145
+ const tables = ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586(ofSeq(LDDataset.getAboutsAsLabProcess(assay, unwrap(graph), unwrap(context))), unwrap(graph), unwrap(context));
1146
+ const comments = ResizeArray_map((c_1) => BaseTypes_decomposeComment_Z2F770004(c_1, unwrap(context)), LDDataset.getComments(assay, unwrap(graph), unwrap(context)));
1147
+ 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);
1148
+ }
1149
+ function StudyConversion_composeStudy_ZFE0E38E(study, fs) {
1150
+ let collection;
1151
+ const dateCreated = bind(DateTime_tryFromString, study.SubmissionDate);
1152
+ const datePublished = bind(DateTime_tryFromString, study.PublicReleaseDate);
1153
+ const dateModified = now();
1154
+ const publications = Option_fromSeq(ResizeArray_map(ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, study.Publications));
1155
+ const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, study.Contacts));
1156
+ const processSequence = Option_fromSeq((collection = ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(new ArcTables(study.Tables), void 0, study.Identifier, unwrap(fs)), Array.from(collection)));
1157
+ const fragmentDescriptors = map(DatamapConversion_composeFragmentDescriptors_Z8923FA3, study.DataMap);
1158
+ const dataFiles = map((ps) => AssayConversion_getDataFilesFromProcesses_6BABD1B0(ps, unwrap(fragmentDescriptors)), processSequence);
1159
+ const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, study.Comments));
1160
+ 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));
1161
+ }
1162
+ function StudyConversion_decomposeStudy_Z6839B9E8(study, graph, context) {
1163
+ const dateCreated = map(DateTime_toString, LDDataset.tryGetDateCreatedAsDateTime(study, unwrap(context)));
1164
+ const datePublished = map(DateTime_toString, LDDataset.tryGetDatePublishedAsDateTime(study, unwrap(context)));
1165
+ const publications = ResizeArray_map((p) => ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8(p, unwrap(graph), unwrap(context)), LDDataset.getCitations(study, unwrap(graph), unwrap(context)));
1166
+ const creators = ResizeArray_map((c) => PersonConversion_decomposePerson_Z6839B9E8(c, unwrap(graph), unwrap(context)), LDDataset.getCreators(study, unwrap(graph), unwrap(context)));
1167
+ let dataMap;
1168
+ const v = DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(LDDataset.getVariableMeasuredAsFragmentDescriptors(study, unwrap(graph), unwrap(context)), unwrap(graph), unwrap(context));
1169
+ dataMap = Option_fromValueWithDefault(DataMap_init(), v);
1170
+ const tables = ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586(ofSeq(LDDataset.getAboutsAsLabProcess(study, unwrap(graph), unwrap(context))), unwrap(graph), unwrap(context));
1171
+ const comments = ResizeArray_map((c_1) => BaseTypes_decomposeComment_Z2F770004(c_1, unwrap(context)), LDDataset.getComments(study, unwrap(graph), unwrap(context)));
1172
+ 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);
1173
+ }
1174
+ function InvestigationConversion_composeInvestigation_5AEC717D(investigation, fs) {
1175
+ let b;
1176
+ let name;
1177
+ const matchValue = investigation.Title;
1178
+ if (matchValue == null) {
1179
+ throw new Error("Investigation must have a title");
1180
+ } else {
1181
+ name = value(matchValue);
1182
+ }
1183
+ const dateCreated = bind(DateTime_tryFromString, investigation.SubmissionDate);
1184
+ const datePublished = defaultArg(bind(DateTime_tryFromString, investigation.PublicReleaseDate), now());
1185
+ const publications = Option_fromSeq(ResizeArray_map(ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, investigation.Publications));
1186
+ const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, investigation.Contacts));
1187
+ const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, investigation.Comments));
1188
+ 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)));
1189
+ const mentions = Option_fromSeq([]);
1190
+ 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));
1191
+ }
1192
+ function InvestigationConversion_decomposeInvestigation_Z6839B9E8(investigation, graph, context) {
1193
+ let title;
1194
+ const matchValue = LDDataset.tryGetNameAsString(investigation, unwrap(context));
1195
+ title = matchValue == null ? LDDataset.tryGetHeadlineAsString(investigation, unwrap(context)) : value(matchValue);
1196
+ const dateCreated = map(DateTime_toString, LDDataset.tryGetDateCreatedAsDateTime(investigation, unwrap(context)));
1197
+ const datePublished = map(DateTime_toString, LDDataset.tryGetDatePublishedAsDateTime(investigation, unwrap(context)));
1198
+ const publications = ResizeArray_map((p) => ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8(p, unwrap(graph), unwrap(context)), LDDataset.getCitations(investigation, unwrap(graph), unwrap(context)));
1199
+ const creators = ResizeArray_map((c) => PersonConversion_decomposePerson_Z6839B9E8(c, unwrap(graph), unwrap(context)), LDDataset.getCreators(investigation, unwrap(graph), unwrap(context)));
1200
+ const datasets = LDDataset.getHasPartsAsDataset(investigation, unwrap(graph), unwrap(context));
1201
+ 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));
1202
+ 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));
1203
+ const comments = ResizeArray_map((c_1) => BaseTypes_decomposeComment_Z2F770004(c_1, unwrap(context)), LDDataset.getComments(investigation, unwrap(graph), unwrap(context)));
1204
+ 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);
1205
+ }
1206
+ function ARCtrl_ArcAssay__ArcAssay_ToROCrateAssay_1695DD5C(this$, fs) {
1207
+ return AssayConversion_composeAssay_Z5C53FD5C(this$, unwrap(fs));
1208
+ }
1209
+ function ARCtrl_ArcAssay__ArcAssay_fromROCrateAssay_Static_Z6839B9E8(a, graph, context) {
1210
+ return AssayConversion_decomposeAssay_Z6839B9E8(a, unwrap(graph), unwrap(context));
1211
+ }
1212
+ function ARCtrl_ArcStudy__ArcStudy_ToROCrateStudy_1695DD5C(this$, fs) {
1213
+ return StudyConversion_composeStudy_ZFE0E38E(this$, unwrap(fs));
1214
+ }
1215
+ function ARCtrl_ArcStudy__ArcStudy_fromROCrateStudy_Static_Z6839B9E8(a, graph, context) {
1216
+ return StudyConversion_decomposeStudy_Z6839B9E8(a, unwrap(graph), unwrap(context));
1217
+ }
1218
+ function ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_1695DD5C(this$, fs) {
1219
+ return InvestigationConversion_composeInvestigation_5AEC717D(this$, unwrap(fs));
1220
+ }
1221
+ function ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(a, graph, context) {
1222
+ return InvestigationConversion_decomposeInvestigation_Z6839B9E8(a, unwrap(graph), unwrap(context));
1223
+ }
1224
+ class TypeExtensions_Conversion {
1225
+ constructor() {
1226
+ }
1227
+ static arcAssayToDataset(a, fs) {
1228
+ return ARCtrl_ArcAssay__ArcAssay_ToROCrateAssay_1695DD5C(a, unwrap(fs));
1229
+ }
1230
+ static datasetToArcAssay(a, graph, context) {
1231
+ return ARCtrl_ArcAssay__ArcAssay_fromROCrateAssay_Static_Z6839B9E8(a, unwrap(graph), unwrap(context));
1232
+ }
1233
+ static arcStudyToDataset(a, fs) {
1234
+ return ARCtrl_ArcStudy__ArcStudy_ToROCrateStudy_1695DD5C(a, unwrap(fs));
1235
+ }
1236
+ static datasetToArcStudy(a, graph, context) {
1237
+ return ARCtrl_ArcStudy__ArcStudy_fromROCrateStudy_Static_Z6839B9E8(a, unwrap(graph), unwrap(context));
1238
+ }
1239
+ static arcInvestigationToDataset(a, fs) {
1240
+ return ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_1695DD5C(a, unwrap(fs));
1241
+ }
1242
+ static datasetToArcInvestigation(a, graph, context) {
1243
+ return ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(a, unwrap(graph), unwrap(context));
1244
+ }
1245
+ }
1246
+
1247
+ 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_ArcTables__ArcTables_GetProcesses_5E660E5C, ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586, ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4, AssayConversion_composeAssay_Z5C53FD5C, AssayConversion_decomposeAssay_Z6839B9E8, AssayConversion_getDataFilesFromProcesses_6BABD1B0, 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_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_headerOntologyOfPropertyValue_Z2F770004, BaseTypes_ontologyTermFromNameAndID_40457300, BaseTypes_termOfHeader_6CAF647B, BaseTypes_tryOntologyTermFromNameAndID_40457300, BaseTypes_valuesOfCell_Z436420FE, ColumnIndex_orderName, ColumnIndex_setIndex, ColumnIndex_tryGetIndex, DatamapConversion_composeFragmentDescriptors_Z8923FA3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F, DateTime_toString, DateTime_tryFromString, InvestigationConversion_composeInvestigation_5AEC717D, InvestigationConversion_decomposeInvestigation_Z6839B9E8, PersonConversion_composeAddress_Z721C83C5, PersonConversion_composeAffiliation_Z721C83C5, PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposeAddress_4E60E31B, PersonConversion_decomposeAffiliation_Z2F770004, PersonConversion_decomposePerson_Z6839B9E8, 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_composeAuthor_Z721C83C5, ScholarlyArticleConversion_composeAuthors_Z721C83C5, ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, ScholarlyArticleConversion_decomposeAuthor_Z2F770004, ScholarlyArticleConversion_decomposeAuthors_1AAAE9A5, ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8, ScholarlyArticleConversion_splitAuthors_Z721C83C5, StudyConversion_composeStudy_ZFE0E38E, StudyConversion_decomposeStudy_Z6839B9E8, TypeExtensions_Conversion };