@nfdi4plants/arctrl 1.2.0 → 2.0.0-alpha.2

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 (366) hide show
  1. package/ARC.js +53 -35
  2. package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
  3. package/Contract/ArcAssay.js +102 -0
  4. package/Contract/ArcInvestigation.js +78 -0
  5. package/Contract/ArcStudy.js +102 -0
  6. package/Contract/Contract.js +3 -3
  7. package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
  8. package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
  9. package/Core/Comment.js +97 -0
  10. package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
  11. package/Core/Conversion.js +1056 -0
  12. package/Core/Helper/Collections.js +318 -0
  13. package/Core/Helper/HashCodes.js +39 -0
  14. package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
  15. package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
  16. package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
  17. package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
  18. package/Core/OntologyAnnotation.js +186 -0
  19. package/Core/OntologySourceReference.js +92 -0
  20. package/Core/Person.js +194 -0
  21. package/Core/Process/ColumnIndex.js +248 -0
  22. package/Core/Process/Component.js +188 -0
  23. package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
  24. package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
  25. package/Core/Process/Factor.js +109 -0
  26. package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
  27. package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
  28. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
  29. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
  30. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
  31. package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
  32. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
  33. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
  34. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
  35. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
  36. package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
  37. package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
  38. package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
  39. package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
  40. package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +13 -13
  41. package/Core/Publication.js +116 -0
  42. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +43 -149
  43. package/Core/Table/ArcTableAux.js +532 -0
  44. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
  45. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
  46. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +6 -6
  47. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
  48. package/{Templates → Core}/Template.js +16 -17
  49. package/Core/Templates.js +84 -0
  50. package/FileSystem/Commit.js +2 -2
  51. package/FileSystem/FileSystem.js +4 -4
  52. package/FileSystem/FileSystemTree.js +46 -8
  53. package/FileSystem/Path.js +10 -2
  54. package/Json/ARC.js +25 -0
  55. package/Json/Assay.js +202 -0
  56. package/Json/Comment.js +130 -0
  57. package/Json/ConverterOptions.js +18 -0
  58. package/Json/Decode.js +128 -0
  59. package/Json/Encode.js +45 -0
  60. package/Json/Investigation.js +220 -0
  61. package/Json/OntologyAnnotation.js +169 -0
  62. package/Json/OntologySourceReference.js +122 -0
  63. package/Json/Person.js +250 -0
  64. package/Json/Process/AssayMaterials.js +22 -0
  65. package/Json/Process/Component.js +79 -0
  66. package/Json/Process/Data.js +102 -0
  67. package/Json/Process/DataFile.js +81 -0
  68. package/Json/Process/Factor.js +48 -0
  69. package/Json/Process/FactorValue.js +53 -0
  70. package/Json/Process/Material.js +107 -0
  71. package/Json/Process/MaterialAttribute.js +45 -0
  72. package/Json/Process/MaterialAttributeValue.js +70 -0
  73. package/Json/Process/MaterialType.js +60 -0
  74. package/Json/Process/Process.js +107 -0
  75. package/Json/Process/ProcessInput.js +59 -0
  76. package/Json/Process/ProcessOutput.js +71 -0
  77. package/Json/Process/ProcessParameterValue.js +69 -0
  78. package/Json/Process/ProcessSequence.js +53 -0
  79. package/Json/Process/PropertyValue.js +82 -0
  80. package/Json/Process/Protocol.js +147 -0
  81. package/Json/Process/ProtocolParameter.js +45 -0
  82. package/Json/Process/Sample.js +134 -0
  83. package/Json/Process/Source.js +101 -0
  84. package/Json/Process/StudyMaterials.js +24 -0
  85. package/Json/Process/Value.js +42 -0
  86. package/Json/Publication.js +142 -0
  87. package/Json/StringTable.js +44 -0
  88. package/Json/Study.js +306 -0
  89. package/{ISA/ISA.Json/ArcTypes → Json/Table}/ArcTable.js +53 -49
  90. package/Json/Table/CellTable.js +40 -0
  91. package/Json/Table/CompositeCell.js +65 -0
  92. package/{ISA/ISA.Json/ArcTypes → Json/Table}/CompositeHeader.js +22 -19
  93. package/Json/Table/Compression.js +38 -0
  94. package/Json/Table/IOType.js +37 -0
  95. package/Json/Table/OATable.js +40 -0
  96. package/Json/Table/Templates.js +107 -0
  97. package/Json/context/rocrate/isa_assay_context.js +32 -0
  98. package/Json/context/rocrate/isa_comment_context.js +23 -0
  99. package/Json/context/rocrate/isa_component_context.js +24 -0
  100. package/Json/context/rocrate/isa_data_context.js +25 -0
  101. package/Json/context/rocrate/isa_factor_context.js +25 -0
  102. package/Json/context/rocrate/isa_factor_value_context.js +23 -0
  103. package/{ISA/ISA.Json → Json}/context/rocrate/isa_investigation_context.js +5 -5
  104. package/{ISA/ISA.Json → Json}/context/rocrate/isa_material_attribute_context.js +4 -4
  105. package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
  106. package/Json/context/rocrate/isa_material_context.js +26 -0
  107. package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
  108. package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
  109. package/Json/context/rocrate/isa_organization_context.js +22 -0
  110. package/Json/context/rocrate/isa_person_context.js +33 -0
  111. package/Json/context/rocrate/isa_process_context.js +29 -0
  112. package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
  113. package/Json/context/rocrate/isa_protocol_context.js +28 -0
  114. package/{ISA/ISA.Json → Json}/context/rocrate/isa_protocol_parameter_context.js +4 -4
  115. package/Json/context/rocrate/isa_publication_context.js +25 -0
  116. package/Json/context/rocrate/isa_sample_context.js +24 -0
  117. package/Json/context/rocrate/isa_source_context.js +25 -0
  118. package/Json/context/rocrate/isa_study_context.js +40 -0
  119. package/Json/context/rocrate/property_value_context.js +4 -0
  120. package/Json/context/rocrate/rocrate_context.js +23 -0
  121. package/Json.js +193 -0
  122. package/README.md +33 -12
  123. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
  124. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
  125. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeColumn.js +10 -10
  126. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
  127. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
  128. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
  129. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
  130. package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +7 -7
  131. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
  132. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Comment.js +5 -5
  133. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
  134. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
  135. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
  136. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
  137. package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
  138. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
  139. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
  140. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
  141. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +23 -22
  142. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
  143. package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
  144. package/Template.Web.js +27 -0
  145. package/WebRequest/WebRequest.Node.js +2 -2
  146. package/WebRequest/WebRequest.js +2 -2
  147. package/Xlsx.js +85 -0
  148. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
  149. package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
  150. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
  151. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
  152. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
  153. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
  154. package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
  155. package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
  156. package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
  157. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
  158. package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
  159. package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
  160. package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
  161. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
  162. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
  163. package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
  164. package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
  165. package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
  166. package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
  167. package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
  168. package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
  169. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
  170. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +3 -3
  171. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
  172. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
  173. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
  174. package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
  175. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
  176. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
  177. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
  178. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +19 -19
  179. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +5 -5
  180. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +2 -2
  181. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +1 -1
  182. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +2 -2
  183. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
  184. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/CHANGELOG.md +18 -0
  185. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
  186. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
  187. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.js +337 -40
  188. package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
  189. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
  190. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
  191. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.js +2 -13
  192. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/package.json +1 -1
  193. package/fable_modules/project_cracked.json +1 -1
  194. package/index.js +14 -12
  195. package/package.json +1 -1
  196. package/Contracts/Contracts.ArcTypes.js +0 -268
  197. package/FileSystemTree.js +0 -51
  198. package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
  199. package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
  200. package/ISA/ISA/Builder/Types.js +0 -243
  201. package/ISA/ISA/Fable.js +0 -123
  202. package/ISA/ISA/Helper.js +0 -505
  203. package/ISA/ISA/JsonTypes/Assay.js +0 -620
  204. package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
  205. package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
  206. package/ISA/ISA/JsonTypes/Comment.js +0 -58
  207. package/ISA/ISA/JsonTypes/Component.js +0 -165
  208. package/ISA/ISA/JsonTypes/Factor.js +0 -128
  209. package/ISA/ISA/JsonTypes/Investigation.js +0 -204
  210. package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
  211. package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
  212. package/ISA/ISA/JsonTypes/Person.js +0 -152
  213. package/ISA/ISA/JsonTypes/Publication.js +0 -105
  214. package/ISA/ISA/JsonTypes/Study.js +0 -942
  215. package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
  216. package/ISA/ISA/UIHelper.js +0 -19
  217. package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -303
  218. package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -122
  219. package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -203
  220. package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -40
  221. package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -62
  222. package/ISA/ISA.Json/ArcTypes/IOType.js +0 -33
  223. package/ISA/ISA.Json/ArcTypes/OATable.js +0 -42
  224. package/ISA/ISA.Json/Assay.js +0 -129
  225. package/ISA/ISA.Json/Comment.js +0 -80
  226. package/ISA/ISA.Json/ConverterOptions.js +0 -51
  227. package/ISA/ISA.Json/Data.js +0 -253
  228. package/ISA/ISA.Json/Decode.js +0 -61
  229. package/ISA/ISA.Json/Factor.js +0 -194
  230. package/ISA/ISA.Json/GEncode.js +0 -40
  231. package/ISA/ISA.Json/Investigation.js +0 -89
  232. package/ISA/ISA.Json/Material.js +0 -232
  233. package/ISA/ISA.Json/Ontology.js +0 -200
  234. package/ISA/ISA.Json/Person.js +0 -186
  235. package/ISA/ISA.Json/Process.js +0 -305
  236. package/ISA/ISA.Json/Protocol.js +0 -281
  237. package/ISA/ISA.Json/Publication.js +0 -86
  238. package/ISA/ISA.Json/StringTable.js +0 -44
  239. package/ISA/ISA.Json/Study.js +0 -186
  240. package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +0 -34
  241. package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +0 -23
  242. package/ISA/ISA.Json/context/rocrate/isa_component_context.js +0 -24
  243. package/ISA/ISA.Json/context/rocrate/isa_data_context.js +0 -25
  244. package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +0 -25
  245. package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +0 -25
  246. package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +0 -25
  247. package/ISA/ISA.Json/context/rocrate/isa_material_context.js +0 -26
  248. package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +0 -25
  249. package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +0 -26
  250. package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +0 -22
  251. package/ISA/ISA.Json/context/rocrate/isa_person_context.js +0 -31
  252. package/ISA/ISA.Json/context/rocrate/isa_process_context.js +0 -31
  253. package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +0 -25
  254. package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +0 -30
  255. package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +0 -27
  256. package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +0 -26
  257. package/ISA/ISA.Json/context/rocrate/isa_source_context.js +0 -25
  258. package/ISA/ISA.Json/context/rocrate/isa_study_context.js +0 -42
  259. package/ISA/ISA.Json/context/rocrate/rocrate_context.js +0 -25
  260. package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
  261. package/Path.js +0 -10
  262. package/Templates/Template.Json.js +0 -90
  263. package/Templates/Template.Web.js +0 -27
  264. package/Templates/Templates.js +0 -82
  265. package/fable_modules/fable-library-js.4.13.0/MapUtil.d.ts +0 -10
  266. /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
  267. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.d.ts +0 -0
  268. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.js +0 -0
  269. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
  270. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.js +0 -0
  271. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
  272. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
  273. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
  274. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
  275. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
  276. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
  277. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
  278. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
  279. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.js +0 -0
  280. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -0
  281. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.js +0 -0
  282. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
  283. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
  284. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
  285. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
  286. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
  287. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
  288. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
  289. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
  290. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.js +0 -0
  291. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
  292. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
  293. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
  294. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.js +0 -0
  295. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
  296. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
  297. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.d.ts +0 -0
  298. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.js +0 -0
  299. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
  300. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
  301. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
  302. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.js +0 -0
  303. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
  304. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.js +0 -0
  305. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
  306. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.js +0 -0
  307. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
  308. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.js +0 -0
  309. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
  310. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.js +0 -0
  311. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
  312. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
  313. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
  314. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.js +0 -0
  315. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
  316. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.js +0 -0
  317. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
  318. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.js +0 -0
  319. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
  320. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.js +0 -0
  321. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
  322. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
  323. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
  324. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.js +0 -0
  325. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
  326. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.js +0 -0
  327. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/README.md +0 -0
  328. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
  329. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.js +0 -0
  330. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
  331. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.js +0 -0
  332. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
  333. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
  334. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
  335. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
  336. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.d.ts +0 -0
  337. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.js +0 -0
  338. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
  339. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.js +0 -0
  340. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
  341. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
  342. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
  343. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.js +0 -0
  344. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.d.ts +0 -0
  345. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.js +0 -0
  346. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +0 -0
  347. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +0 -0
  348. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.d.ts +0 -0
  349. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.js +0 -0
  350. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
  351. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
  352. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
  353. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
  354. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
  355. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
  356. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
  357. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.js +0 -0
  358. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
  359. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.js +0 -0
  360. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
  361. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
  362. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
  363. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.js +0 -0
  364. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/big.d.ts +0 -0
  365. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
  366. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
@@ -1,31 +0,0 @@
1
- import { Record } from "../../../../fable_modules/fable-library-js.4.13.0/Types.js";
2
- import { record_type, string_type } from "../../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
3
- import { Json } from "../../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
4
-
5
- export class IContext extends Record {
6
- constructor(sdo, arc, Person, firstName, lastName, midInitials, email, address, phone, fax, comments, roles, affiliation) {
7
- super();
8
- this.sdo = sdo;
9
- this.arc = arc;
10
- this.Person = Person;
11
- this.firstName = firstName;
12
- this.lastName = lastName;
13
- this.midInitials = midInitials;
14
- this.email = email;
15
- this.address = address;
16
- this.phone = phone;
17
- this.fax = fax;
18
- this.comments = comments;
19
- this.roles = roles;
20
- this.affiliation = affiliation;
21
- }
22
- }
23
-
24
- export function IContext_$reflection() {
25
- return record_type("ARCtrl.ISA.Json.ROCrateContext.Person.IContext", [], IContext, () => [["sdo", string_type], ["arc", string_type], ["Person", string_type], ["firstName", string_type], ["lastName", string_type], ["midInitials", string_type], ["email", string_type], ["address", string_type], ["phone", string_type], ["fax", string_type], ["comments", string_type], ["roles", string_type], ["affiliation", string_type]]);
26
- }
27
-
28
- export const context_jsonvalue = new Json(5, [[["sdo", new Json(0, ["http://schema.org/"])], ["arc", new Json(0, ["http://purl.org/nfdi4plants/ontology/"])], ["Person", new Json(0, ["sdo:Person"])], ["firstName", new Json(0, ["sdo:givenName"])], ["lastName", new Json(0, ["sdo:familyName"])], ["midInitials", new Json(0, ["sdo:additionalName"])], ["email", new Json(0, ["sdo:email"])], ["address", new Json(0, ["sdo:address"])], ["phone", new Json(0, ["sdo:telephone"])], ["fax", new Json(0, ["sdo:faxNumber"])], ["comments", new Json(0, ["sdo:disambiguatingDescription"])], ["roles", new Json(0, ["sdo:jobTitle"])], ["affiliation", new Json(0, ["sdo:affiliation"])]]]);
29
-
30
- export const context_str = "\r\n{\r\n \"@context\": {\r\n \"sdo\": \"http://schema.org/\",\r\n \"arc\": \"http://purl.org/nfdi4plants/ontology/\",\r\n\r\n \"Person\": \"sdo:Person\",\r\n \r\n \"firstName\": \"sdo:givenName\",\r\n \"lastName\": \"sdo:familyName\",\r\n \"midInitials\": \"sdo:additionalName\",\r\n \"email\": \"sdo:email\",\r\n \"address\": \"sdo:address\",\r\n \"phone\": \"sdo:telephone\",\r\n \"fax\": \"sdo:faxNumber\",\r\n \"comments\": \"sdo:disambiguatingDescription\",\r\n \"roles\": \"sdo:jobTitle\",\r\n \"affiliation\": \"sdo:affiliation\"\r\n }\r\n}\r\n ";
31
-
@@ -1,31 +0,0 @@
1
- import { Record } from "../../../../fable_modules/fable-library-js.4.13.0/Types.js";
2
- import { record_type, string_type } from "../../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
3
- import { Json } from "../../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
4
-
5
- export class IContext extends Record {
6
- constructor(sdo, arc, Process, ArcProcess, name, executesProtocol, performer, date, previousProcess, nextProcess, input, output, comments) {
7
- super();
8
- this.sdo = sdo;
9
- this.arc = arc;
10
- this.Process = Process;
11
- this.ArcProcess = ArcProcess;
12
- this.name = name;
13
- this.executesProtocol = executesProtocol;
14
- this.performer = performer;
15
- this.date = date;
16
- this.previousProcess = previousProcess;
17
- this.nextProcess = nextProcess;
18
- this.input = input;
19
- this.output = output;
20
- this.comments = comments;
21
- }
22
- }
23
-
24
- export function IContext_$reflection() {
25
- return record_type("ARCtrl.ISA.Json.ROCrateContext.Process.IContext", [], IContext, () => [["sdo", string_type], ["arc", string_type], ["Process", string_type], ["ArcProcess", string_type], ["name", string_type], ["executesProtocol", string_type], ["performer", string_type], ["date", string_type], ["previousProcess", string_type], ["nextProcess", string_type], ["input", string_type], ["output", string_type], ["comments", string_type]]);
26
- }
27
-
28
- export const context_jsonvalue = new Json(5, [[["sdo", new Json(0, ["http://schema.org/"])], ["arc", new Json(0, ["http://purl.org/nfdi4plants/ontology/"])], ["Process", new Json(0, ["sdo:Thing"])], ["ArcProcess", new Json(0, ["arc:ARC#ARC_00000048"])], ["name", new Json(0, ["arc:ARC#ARC_00000019"])], ["executesProtocol", new Json(0, ["arc:ARC#ARC_00000086"])], ["performer", new Json(0, ["arc:ARC#ARC_00000089"])], ["date", new Json(0, ["arc:ARC#ARC_00000090"])], ["previousProcess", new Json(0, ["arc:ARC#ARC_00000091"])], ["nextProcess", new Json(0, ["arc:ARC#ARC_00000092"])], ["input", new Json(0, ["arc:ARC#ARC_00000095"])], ["output", new Json(0, ["arc:ARC#ARC_00000096"])], ["comments", new Json(0, ["sdo:disambiguatingDescription"])]]]);
29
-
30
- export const context_str = "\r\n{\r\n \"@context\": {\r\n \"sdo\": \"http://schema.org/\",\r\n \"arc\": \"http://purl.org/nfdi4plants/ontology/\",\r\n\r\n \"Process\": \"sdo:Thing\",\r\n \"ArcProcess\": \"arc:ARC#ARC_00000048\",\r\n\r\n \"name\": \"arc:ARC#ARC_00000019\",\r\n \"executesProtocol\": \"arc:ARC#ARC_00000086\",\r\n \"performer\": \"arc:ARC#ARC_00000089\",\r\n \"date\": \"arc:ARC#ARC_00000090\",\r\n \"previousProcess\": \"arc:ARC#ARC_00000091\",\r\n \"nextProcess\": \"arc:ARC#ARC_00000092\",\r\n \"input\": \"arc:ARC#ARC_00000095\",\r\n \"output\": \"arc:ARC#ARC_00000096\",\r\n\r\n \"comments\": \"sdo:disambiguatingDescription\"\r\n }\r\n}\r\n ";
31
-
@@ -1,25 +0,0 @@
1
- import { Record } from "../../../../fable_modules/fable-library-js.4.13.0/Types.js";
2
- import { record_type, string_type } from "../../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
3
- import { Json } from "../../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
4
-
5
- export class IContext extends Record {
6
- constructor(sdo, arc, ProcessParameterValue, ArcProcessParameterValue, category, value, unit) {
7
- super();
8
- this.sdo = sdo;
9
- this.arc = arc;
10
- this.ProcessParameterValue = ProcessParameterValue;
11
- this.ArcProcessParameterValue = ArcProcessParameterValue;
12
- this.category = category;
13
- this.value = value;
14
- this.unit = unit;
15
- }
16
- }
17
-
18
- export function IContext_$reflection() {
19
- return record_type("ARCtrl.ISA.Json.ROCrateContext.ProcessParameterValue.IContext", [], IContext, () => [["sdo", string_type], ["arc", string_type], ["ProcessParameterValue", string_type], ["ArcProcessParameterValue", string_type], ["category", string_type], ["value", string_type], ["unit", string_type]]);
20
- }
21
-
22
- export const context_jsonvalue = new Json(5, [[["sdo", new Json(0, ["http://schema.org/"])], ["arc", new Json(0, ["http://purl.org/nfdi4plants/ontology/"])], ["ProcessParameterValue", new Json(0, ["sdo:PropertyValue"])], ["ArcProcessParameterValue", new Json(0, ["arc:ARC#ARC_00000088"])], ["category", new Json(0, ["arc:ARC#ARC_00000062"])], ["value", new Json(0, ["arc:ARC#ARC_00000087"])], ["unit", new Json(0, ["arc:ARC#ARC_00000106"])]]]);
23
-
24
- export const context_str = "\r\n{\r\n \"@context\": {\r\n \"sdo\": \"http://schema.org/\",\r\n \"arc\": \"http://purl.org/nfdi4plants/ontology/\",\r\n\r\n \"ProcessParameterValue\": \"sdo:PropertyValue\",\r\n \"ArcProcessParameterValue\": \"arc:ARC#ARC_00000088\",\r\n\r\n \"category\": \"arc:ARC#ARC_00000062\",\r\n \"value\": \"arc:ARC#ARC_00000087\",\r\n \"unit\": \"arc:ARC#ARC_00000106\"\r\n }\r\n}\r\n ";
25
-
@@ -1,30 +0,0 @@
1
- import { Record } from "../../../../fable_modules/fable-library-js.4.13.0/Types.js";
2
- import { record_type, string_type } from "../../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
3
- import { Json } from "../../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
4
-
5
- export class IContext extends Record {
6
- constructor(sdo, arc, Protocol, ArcProtocol, name, protocolType, description, version, components, parameters, uri, comments) {
7
- super();
8
- this.sdo = sdo;
9
- this.arc = arc;
10
- this.Protocol = Protocol;
11
- this.ArcProtocol = ArcProtocol;
12
- this.name = name;
13
- this.protocolType = protocolType;
14
- this.description = description;
15
- this.version = version;
16
- this.components = components;
17
- this.parameters = parameters;
18
- this.uri = uri;
19
- this.comments = comments;
20
- }
21
- }
22
-
23
- export function IContext_$reflection() {
24
- return record_type("ARCtrl.ISA.Json.ROCrateContext.Protocol.IContext", [], IContext, () => [["sdo", string_type], ["arc", string_type], ["Protocol", string_type], ["ArcProtocol", string_type], ["name", string_type], ["protocolType", string_type], ["description", string_type], ["version", string_type], ["components", string_type], ["parameters", string_type], ["uri", string_type], ["comments", string_type]]);
25
- }
26
-
27
- export const context_jsonvalue = new Json(5, [[["sdo", new Json(0, ["http://schema.org/"])], ["arc", new Json(0, ["http://purl.org/nfdi4plants/ontology/"])], ["Protocol", new Json(0, ["sdo:Thing"])], ["ArcProtocol", new Json(0, ["arc:ARC#ARC_00000040"])], ["name", new Json(0, ["arc:ARC#ARC_00000019"])], ["protocolType", new Json(0, ["arc:ARC#ARC_00000060"])], ["description", new Json(0, ["arc:ARC#ARC_00000004"])], ["version", new Json(0, ["arc:ARC#ARC_00000020"])], ["components", new Json(0, ["arc:ARC#ARC_00000064"])], ["parameters", new Json(0, ["arc:ARC#ARC_00000062"])], ["uri", new Json(0, ["arc:ARC#ARC_00000061"])], ["comments", new Json(0, ["arc:ARC#ARC_00000016"])]]]);
28
-
29
- export const context_str = "\r\n{\r\n \"@context\": {\r\n \"sdo\": \"http://schema.org/\",\r\n \"arc\": \"http://purl.org/nfdi4plants/ontology/\",\r\n\r\n \"Protocol\": \"sdo:Thing\",\r\n \"ArcProtocol\": \"arc:ARC#ARC_00000040\",\r\n\r\n \"name\": \"arc:ARC#ARC_00000019\",\r\n \"protocolType\": \"arc:ARC#ARC_00000060\",\r\n \"description\": \"arc:ARC#ARC_00000004\",\r\n \"version\": \"arc:ARC#ARC_00000020\",\r\n \"components\": \"arc:ARC#ARC_00000064\",\r\n \"parameters\": \"arc:ARC#ARC_00000062\",\r\n \"uri\": \"arc:ARC#ARC_00000061\",\r\n \"comments\": \"arc:ARC#ARC_00000016\"\r\n }\r\n}\r\n ";
30
-
@@ -1,27 +0,0 @@
1
- import { Record } from "../../../../fable_modules/fable-library-js.4.13.0/Types.js";
2
- import { record_type, string_type } from "../../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
3
- import { Json } from "../../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
4
-
5
- export class IContext extends Record {
6
- constructor(sdo, arc, Publication, pubMedID, doi, title, status, authorList, comments) {
7
- super();
8
- this.sdo = sdo;
9
- this.arc = arc;
10
- this.Publication = Publication;
11
- this.pubMedID = pubMedID;
12
- this.doi = doi;
13
- this.title = title;
14
- this.status = status;
15
- this.authorList = authorList;
16
- this.comments = comments;
17
- }
18
- }
19
-
20
- export function IContext_$reflection() {
21
- return record_type("ARCtrl.ISA.Json.ROCrateContext.Publication.IContext", [], IContext, () => [["sdo", string_type], ["arc", string_type], ["Publication", string_type], ["pubMedID", string_type], ["doi", string_type], ["title", string_type], ["status", string_type], ["authorList", string_type], ["comments", string_type]]);
22
- }
23
-
24
- export const context_jsonvalue = new Json(5, [[["sdo", new Json(0, ["http://schema.org/"])], ["arc", new Json(0, ["http://purl.org/nfdi4plants/ontology/"])], ["Publication", new Json(0, ["sdo:ScholarlyArticle"])], ["pubMedID", new Json(0, ["sdo:url"])], ["doi", new Json(0, ["sdo:sameAs"])], ["title", new Json(0, ["sdo:headline"])], ["status", new Json(0, ["sdo:creativeWorkStatus"])], ["authorList", new Json(0, ["sdo:author"])], ["comments", new Json(0, ["sdo:disambiguatingDescription"])]]]);
25
-
26
- export const context_str = "\r\n{\r\n \"@context\": {\r\n \"sdo\": \"http://schema.org/\",\r\n \"arc\": \"http://purl.org/nfdi4plants/ontology/\",\r\n\r\n \"Publication\": \"sdo:ScholarlyArticle\",\r\n \r\n \"pubMedID\": \"sdo:url\",\r\n \"doi\": \"sdo:sameAs\",\r\n \"title\": \"sdo:headline\",\r\n \"status\": \"sdo:creativeWorkStatus\",\r\n \"authorList\": \"sdo:author\",\r\n \"comments\": \"sdo:disambiguatingDescription\"\r\n }\r\n}\r\n ";
27
-
@@ -1,26 +0,0 @@
1
- import { Record } from "../../../../fable_modules/fable-library-js.4.13.0/Types.js";
2
- import { record_type, string_type } from "../../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
3
- import { Json } from "../../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
4
-
5
- export class IContext extends Record {
6
- constructor(sdo, arc, Sample, ArcSample, name, characteristics, factorValues, derivesFrom) {
7
- super();
8
- this.sdo = sdo;
9
- this.arc = arc;
10
- this.Sample = Sample;
11
- this.ArcSample = ArcSample;
12
- this.name = name;
13
- this.characteristics = characteristics;
14
- this.factorValues = factorValues;
15
- this.derivesFrom = derivesFrom;
16
- }
17
- }
18
-
19
- export function IContext_$reflection() {
20
- return record_type("ARCtrl.ISA.Json.ROCrateContext.Sample.IContext", [], IContext, () => [["sdo", string_type], ["arc", string_type], ["Sample", string_type], ["ArcSample", string_type], ["name", string_type], ["characteristics", string_type], ["factorValues", string_type], ["derivesFrom", string_type]]);
21
- }
22
-
23
- export const context_jsonvalue = new Json(5, [[["sdo", new Json(0, ["http://schema.org/"])], ["arc", new Json(0, ["http://purl.org/nfdi4plants/ontology/"])], ["Sample", new Json(0, ["sdo:Thing"])], ["ArcSample", new Json(0, ["arc:ARC#ARC_00000070"])], ["name", new Json(0, ["arc:name"])], ["characteristics", new Json(0, ["arc:ARC#ARC_00000080"])], ["factorValues", new Json(0, ["arc:ARC#ARC_00000083"])], ["derivesFrom", new Json(0, ["arc:ARC#ARC_00000082"])]]]);
24
-
25
- export const context_str = "\r\n{\r\n \"@context\": {\r\n \"sdo\": \"http://schema.org/\",\r\n \"arc\": \"http://purl.org/nfdi4plants/ontology/\",\r\n\r\n \"Sample\": \"sdo:Thing\",\r\n \"ArcSample\": \"arc:ARC#ARC_00000070\",\r\n\r\n \"name\": \"arc:name\",\r\n \"characteristics\": \"arc:ARC#ARC_00000080\",\r\n \"factorValues\": \"arc:ARC#ARC_00000083\",\r\n \"derivesFrom\": \"arc:ARC#ARC_00000082\"\r\n }\r\n}\r\n ";
26
-
@@ -1,25 +0,0 @@
1
- import { Record } from "../../../../fable_modules/fable-library-js.4.13.0/Types.js";
2
- import { record_type, string_type } from "../../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
3
- import { Json } from "../../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
4
-
5
- export class IContext extends Record {
6
- constructor(sdo, arc, Source, ArcSource, identifier, characteristics, name) {
7
- super();
8
- this.sdo = sdo;
9
- this.arc = arc;
10
- this.Source = Source;
11
- this.ArcSource = ArcSource;
12
- this.identifier = identifier;
13
- this.characteristics = characteristics;
14
- this.name = name;
15
- }
16
- }
17
-
18
- export function IContext_$reflection() {
19
- return record_type("ARCtrl.ISA.Json.ROCrateContext.Source.IContext", [], IContext, () => [["sdo", string_type], ["arc", string_type], ["Source", string_type], ["ArcSource", string_type], ["identifier", string_type], ["characteristics", string_type], ["name", string_type]]);
20
- }
21
-
22
- export const context_jsonvalue = new Json(5, [[["sdo", new Json(0, ["http://schema.org/"])], ["arc", new Json(0, ["http://purl.org/nfdi4plants/ontology/"])], ["Source", new Json(0, ["sdo:Thing"])], ["ArcSource", new Json(0, ["arc:ARC#ARC_00000071"])], ["identifier", new Json(0, ["sdo:identifier"])], ["name", new Json(0, ["arc:ARC#ARC_00000019"])], ["characteristics", new Json(0, ["arc:ARC#ARC_00000080"])]]]);
23
-
24
- export const context_str = "\r\n{\r\n \"@context\": {\r\n \"sdo\": \"http://schema.org/\",\r\n \"arc\": \"http://purl.org/nfdi4plants/ontology/\",\r\n\r\n \"Source\": \"sdo:Thing\",\r\n \"ArcSource\": \"arc:ARC#ARC_00000071\",\r\n\r\n \"identifier\": \"sdo:identifier\",\r\n\r\n \"name\": \"arc:ARC#ARC_00000019\",\r\n \"characteristics\": \"arc:ARC#ARC_00000080\"\r\n }\r\n}\r\n ";
25
-
@@ -1,42 +0,0 @@
1
- import { Record } from "../../../../fable_modules/fable-library-js.4.13.0/Types.js";
2
- import { record_type, string_type } from "../../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
3
- import { Json } from "../../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
4
-
5
- export class IContext extends Record {
6
- constructor(sdo, arc, Study, ArcStudy, identifier, title, description, submissionDate, publicReleaseDate, publications, people, assays, filename, comments, protocols, materials, otherMaterials, sources, samples, processSequence, factors, characteristicCategories, unitCategories, studyDesignDescriptors) {
7
- super();
8
- this.sdo = sdo;
9
- this.arc = arc;
10
- this.Study = Study;
11
- this.ArcStudy = ArcStudy;
12
- this.identifier = identifier;
13
- this.title = title;
14
- this.description = description;
15
- this.submissionDate = submissionDate;
16
- this.publicReleaseDate = publicReleaseDate;
17
- this.publications = publications;
18
- this.people = people;
19
- this.assays = assays;
20
- this.filename = filename;
21
- this.comments = comments;
22
- this.protocols = protocols;
23
- this.materials = materials;
24
- this.otherMaterials = otherMaterials;
25
- this.sources = sources;
26
- this.samples = samples;
27
- this.processSequence = processSequence;
28
- this.factors = factors;
29
- this.characteristicCategories = characteristicCategories;
30
- this.unitCategories = unitCategories;
31
- this.studyDesignDescriptors = studyDesignDescriptors;
32
- }
33
- }
34
-
35
- export function IContext_$reflection() {
36
- return record_type("ARCtrl.ISA.Json.ROCrateContext.Study.IContext", [], IContext, () => [["sdo", string_type], ["arc", string_type], ["Study", string_type], ["ArcStudy", string_type], ["identifier", string_type], ["title", string_type], ["description", string_type], ["submissionDate", string_type], ["publicReleaseDate", string_type], ["publications", string_type], ["people", string_type], ["assays", string_type], ["filename", string_type], ["comments", string_type], ["protocols", string_type], ["materials", string_type], ["otherMaterials", string_type], ["sources", string_type], ["samples", string_type], ["processSequence", string_type], ["factors", string_type], ["characteristicCategories", string_type], ["unitCategories", string_type], ["studyDesignDescriptors", string_type]]);
37
- }
38
-
39
- export const context_jsonvalue = new Json(5, [[["sdo", new Json(0, ["http://schema.org/"])], ["arc", new Json(0, ["http://purl.org/nfdi4plants/ontology/"])], ["Study", new Json(0, ["sdo:Dataset"])], ["ArcStudy", new Json(0, ["arc:ARC#ARC_00000014"])], ["identifier", new Json(0, ["sdo:identifier"])], ["title", new Json(0, ["sdo:headline"])], ["description", new Json(0, ["sdo:description"])], ["submissionDate", new Json(0, ["sdo:dateCreated"])], ["publicReleaseDate", new Json(0, ["sdo:datePublished"])], ["publications", new Json(0, ["sdo:citation"])], ["people", new Json(0, ["sdo:creator"])], ["assays", new Json(0, ["sdo:hasPart"])], ["filename", new Json(0, ["sdo:description"])], ["comments", new Json(0, ["sdo:disambiguatingDescription"])], ["protocols", new Json(0, ["arc:ARC#ARC_00000039"])], ["materials", new Json(0, ["arc:ARC#ARC_00000045"])], ["otherMaterials", new Json(0, ["arc:ARC#ARC_00000045"])], ["sources", new Json(0, ["arc:ARC#ARC_00000045"])], ["samples", new Json(0, ["arc:ARC#ARC_00000045"])], ["processSequence", new Json(0, ["arc:ARC#ARC_00000047"])], ["factors", new Json(0, ["arc:ARC#ARC_00000043"])], ["characteristicCategories", new Json(0, ["arc:ARC#ARC_00000049"])], ["unitCategories", new Json(0, ["arc:ARC#ARC_00000051"])], ["studyDesignDescriptors", new Json(0, ["arc:ARC#ARC_00000037"])]]]);
40
-
41
- export const context_str = "\r\n{\r\n \"@context\": {\r\n \"sdo\": \"http://schema.org/\",\r\n \"arc\": \"http://purl.org/nfdi4plants/ontology/\",\r\n\r\n \"Study\": \"sdo:Dataset\",\r\n \"ArcStudy\": \"arc:ARC#ARC_00000014\",\r\n\r\n \"identifier\": \"sdo:identifier\",\r\n \"title\": \"sdo:headline\",\r\n \"description\": \"sdo:description\",\r\n \"submissionDate\": \"sdo:dateCreated\",\r\n \"publicReleaseDate\": \"sdo:datePublished\",\r\n \"publications\": \"sdo:citation\",\r\n \"people\": \"sdo:creator\",\r\n \"assays\": \"sdo:hasPart\",\r\n \"filename\": \"sdo:description\",\r\n \"comments\": \"sdo:disambiguatingDescription\",\r\n\r\n \"protocols\": \"arc:ARC#ARC_00000039\",\r\n \"materials\": \"arc:ARC#ARC_00000045\",\r\n \"otherMaterials\": \"arc:ARC#ARC_00000045\",\r\n \"sources\": \"arc:ARC#ARC_00000045\",\r\n \"samples\": \"arc:ARC#ARC_00000045\",\r\n \"processSequence\": \"arc:ARC#ARC_00000047\",\r\n \"factors\": \"arc:ARC#ARC_00000043\",\r\n \"characteristicCategories\": \"arc:ARC#ARC_00000049\",\r\n \"unitCategories\": \"arc:ARC#ARC_00000051\",\r\n \"studyDesignDescriptors\": \"arc:ARC#ARC_00000037\"\r\n }\r\n}\r\n ";
42
-
@@ -1,25 +0,0 @@
1
- import { Record } from "../../../../fable_modules/fable-library-js.4.13.0/Types.js";
2
- import { record_type, string_type } from "../../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
3
- import { Json } from "../../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
4
-
5
- export class IContext extends Record {
6
- constructor(sdo, arc, CreativeWork, about, conformsTo) {
7
- super();
8
- this.sdo = sdo;
9
- this.arc = arc;
10
- this.CreativeWork = CreativeWork;
11
- this.about = about;
12
- this.conformsTo = conformsTo;
13
- }
14
- }
15
-
16
- export function IContext_$reflection() {
17
- return record_type("ARCtrl.ISA.Json.ROCrateContext.ROCrate.IContext", [], IContext, () => [["sdo", string_type], ["arc", string_type], ["CreativeWork", string_type], ["about", string_type], ["conformsTo", string_type]]);
18
- }
19
-
20
- export const conformsTo_jsonvalue = new Json(5, [[["@id", new Json(0, ["https://w3id.org/ro/crate/1.1"])]]]);
21
-
22
- export const context_jsonvalue = new Json(5, [[["sdo", new Json(0, ["http://schema.org/"])], ["arc", new Json(0, ["http://purl.org/nfdi4plants/ontology/"])], ["CreativeWork", new Json(0, ["sdo:CreativeWork"])], ["about", new Json(0, ["sdo:about"])], ["conformsTo", new Json(0, ["sdo:conformsTo"])]]]);
23
-
24
- export const context_str = "\r\n{\r\n \"@context\": {\r\n \"sdo\": \"http://schema.org/\",\r\n \"arc\": \"http://purl.org/nfdi4plants/ontology/\",\r\n \r\n \"CreativeWork\": \"sdo:CreativeWork\",\r\n\r\n \"about\": \"sdo:about\",\r\n \"conformsTo\": \"sdo:conformsTo\"\r\n }\r\n}\r\n ";
25
-
@@ -1,65 +0,0 @@
1
- import { reverse, cons, iterateIndexed, empty, ofArray, map, toArray, initialize, singleton, length } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
2
- import { SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_651559CC } from "./SparseTable.js";
3
- import { OntologyAnnotation } from "../../ISA/JsonTypes/OntologyAnnotation.js";
4
- import { Option_fromValueWithDefault } from "./Conversions.js";
5
- import { Comment_toString, Comment_fromString } from "./Comment.js";
6
- import { unwrap } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
7
- import { addToDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
8
- import { List_distinct } from "../../../fable_modules/fable-library-js.4.13.0/Seq2.js";
9
- import { stringHash } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
10
-
11
- export function fromSparseTable(label, labelTSR, labelTAN, matrix) {
12
- if ((matrix.ColumnCount === 0) && (length(matrix.CommentKeys) !== 0)) {
13
- const comments = SparseTable_GetEmptyComments_651559CC(matrix);
14
- return singleton(OntologyAnnotation.create(void 0, void 0, void 0, void 0, comments));
15
- }
16
- else {
17
- return initialize(matrix.ColumnCount, (i) => {
18
- const comments_1 = Option_fromValueWithDefault([], toArray(map((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, i])), matrix.CommentKeys)));
19
- return OntologyAnnotation.fromString(unwrap(SparseTable__TryGetValue_11FD62A8(matrix, [label, i])), unwrap(SparseTable__TryGetValue_11FD62A8(matrix, [labelTSR, i])), unwrap(SparseTable__TryGetValue_11FD62A8(matrix, [labelTAN, i])), unwrap(comments_1));
20
- });
21
- }
22
- }
23
-
24
- export function toSparseTable(label, labelTSR, labelTAN, designs) {
25
- const matrix = SparseTable_Create_Z2192E64B(void 0, ofArray([label, labelTAN, labelTSR]), void 0, length(designs) + 1);
26
- let commentKeys = empty();
27
- iterateIndexed((i, d) => {
28
- const i_1 = (i + 1) | 0;
29
- const oa = OntologyAnnotation.toString(d, true);
30
- addToDict(matrix.Matrix, [label, i_1], oa.TermName);
31
- addToDict(matrix.Matrix, [labelTAN, i_1], oa.TermAccessionNumber);
32
- addToDict(matrix.Matrix, [labelTSR, i_1], oa.TermSourceREF);
33
- const matchValue = d.Comments;
34
- if (matchValue != null) {
35
- const array = matchValue;
36
- array.forEach((comment) => {
37
- const patternInput = Comment_toString(comment);
38
- const n = patternInput[0];
39
- commentKeys = cons(n, commentKeys);
40
- addToDict(matrix.Matrix, [n, i_1], patternInput[1]);
41
- });
42
- }
43
- }, designs);
44
- return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
45
- Equals: (x, y) => (x === y),
46
- GetHashCode: stringHash,
47
- })), matrix.ColumnCount);
48
- }
49
-
50
- export function fromRows(prefix, label, labelTSR, labelTAN, lineNumber, rows) {
51
- const labels = ofArray([label, labelTAN, labelTSR]);
52
- const tupledArg = (prefix == null) ? SparseTable_FromRows_Z5579EC29(rows, labels, lineNumber) : SparseTable_FromRows_Z5579EC29(rows, labels, lineNumber, prefix);
53
- return [tupledArg[0], tupledArg[1], tupledArg[2], fromSparseTable(label, labelTSR, labelTAN, tupledArg[3])];
54
- }
55
-
56
- export function toRows(prefix, label, labelTSR, labelTAN, designs) {
57
- const m = toSparseTable(label, labelTSR, labelTAN, designs);
58
- if (prefix == null) {
59
- return SparseTable_ToRows_6A3D4534(m);
60
- }
61
- else {
62
- return SparseTable_ToRows_6A3D4534(m, prefix);
63
- }
64
- }
65
-
package/Path.js DELETED
@@ -1,10 +0,0 @@
1
- import { combine } from "./FileSystem/Path.js";
2
-
3
- export function getAssayFolderPath(assayIdentifier) {
4
- return combine("assays", assayIdentifier);
5
- }
6
-
7
- export function getStudyFolderPath(studyIdentifier) {
8
- return combine("studies", studyIdentifier);
9
- }
10
-
@@ -1,90 +0,0 @@
1
- import { toString } from "../fable_modules/fable-library-js.4.13.0/Types.js";
2
- import { Json } from "../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
3
- import { dict, datetimeUtc, array as array_1, guid, object, string, succeed, andThen } from "../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
4
- import { Template, Organisation } from "./Template.js";
5
- import { ConverterOptions_$ctor } from "../ISA/ISA.Json/ConverterOptions.js";
6
- import { decoder as decoder_1, encoder } from "../ISA/ISA.Json/Person.js";
7
- import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "../ISA/ISA.Json/Ontology.js";
8
- import { ArcTable_decoder, ArcTable_encoder } from "../ISA/ISA.Json/ArcTypes/ArcTable.js";
9
- import { list as list_1 } from "../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
10
- import { map, delay, toList } from "../fable_modules/fable-library-js.4.13.0/Seq.js";
11
- import { toString as toString_1 } from "../fable_modules/fable-library-js.4.13.0/Date.js";
12
- import { toText, printf, toFail } from "../fable_modules/fable-library-js.4.13.0/String.js";
13
- import { fromString } from "../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
14
- import { toString as toString_2 } from "../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
15
- import { ofArray, map as map_1 } from "../fable_modules/fable-library-js.4.13.0/List.js";
16
- import { defaultArg } from "../fable_modules/fable-library-js.4.13.0/Option.js";
17
-
18
- export const Organisation_encode = (arg) => (new Json(0, [toString(arg)]));
19
-
20
- export const Organisation_decode = andThen((textValue) => succeed(Organisation.ofString(textValue)), string);
21
-
22
- export function Template_encode(template) {
23
- let copyOfStruct;
24
- let personEncoder;
25
- const options = ConverterOptions_$ctor();
26
- personEncoder = ((oa) => encoder(options, oa));
27
- let oaEncoder;
28
- const options_1 = ConverterOptions_$ctor();
29
- oaEncoder = ((oa_1) => OntologyAnnotation_encoder(options_1, oa_1));
30
- return new Json(5, [[["id", new Json(0, [(copyOfStruct = template.Id, copyOfStruct)])], ["table", ArcTable_encoder(template.Table)], ["name", new Json(0, [template.Name])], ["description", new Json(0, [template.Description])], ["organisation", Organisation_encode(template.Organisation)], ["version", new Json(0, [template.Version])], ["authors", list_1(toList(delay(() => map(personEncoder, template.Authors))))], ["endpoint_repositories", list_1(toList(delay(() => map(oaEncoder, template.EndpointRepositories))))], ["tags", list_1(toList(delay(() => map(oaEncoder, template.Tags))))], ["last_updated", new Json(0, [toString_1(template.LastUpdated, "O", {})])]]]);
31
- }
32
-
33
- export const Template_decode = (() => {
34
- const personDecoder = decoder_1(ConverterOptions_$ctor());
35
- const oaDecoder = OntologyAnnotation_decoder(ConverterOptions_$ctor());
36
- return object((get$) => {
37
- let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, objectArg_9;
38
- return Template.create((objectArg = get$.Required, objectArg.Field("id", guid)), (objectArg_1 = get$.Required, objectArg_1.Field("table", ArcTable_decoder)), (objectArg_2 = get$.Required, objectArg_2.Field("name", string)), (objectArg_3 = get$.Required, objectArg_3.Field("description", string)), (objectArg_4 = get$.Required, objectArg_4.Field("organisation", Organisation_decode)), (objectArg_5 = get$.Required, objectArg_5.Field("version", string)), (arg_13 = array_1(personDecoder), (objectArg_6 = get$.Required, objectArg_6.Field("authors", arg_13))), (arg_15 = array_1(oaDecoder), (objectArg_7 = get$.Required, objectArg_7.Field("endpoint_repositories", arg_15))), (arg_17 = array_1(oaDecoder), (objectArg_8 = get$.Required, objectArg_8.Field("tags", arg_17))), (objectArg_9 = get$.Required, objectArg_9.Field("last_updated", datetimeUtc)));
39
- });
40
- })();
41
-
42
- export function Template_fromJsonString(jsonString) {
43
- try {
44
- const matchValue = fromString(Template_decode, jsonString);
45
- if (matchValue.tag === 1) {
46
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
47
- }
48
- else {
49
- return matchValue.fields[0];
50
- }
51
- }
52
- catch (exn) {
53
- return toFail(printf("Error. Given json string cannot be parsed to Template: %A"))(exn);
54
- }
55
- }
56
-
57
- export function Template_toJsonString(spaces, template) {
58
- return toString_2(spaces, Template_encode(template));
59
- }
60
-
61
- export function Templates_encode(templateList) {
62
- return new Json(5, [map_1((tupledArg) => [tupledArg[0], Template_encode(tupledArg[1])], ofArray(templateList))]);
63
- }
64
-
65
- export const Templates_decode = dict(Template_decode);
66
-
67
- export function Templates_fromJsonString(jsonString) {
68
- try {
69
- const matchValue = fromString(Templates_decode, jsonString);
70
- if (matchValue.tag === 1) {
71
- throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
72
- }
73
- else {
74
- return matchValue.fields[0];
75
- }
76
- }
77
- catch (exn) {
78
- return toFail(printf("Error. Given json string cannot be parsed to Templates map: %A"))(exn);
79
- }
80
- }
81
-
82
- export function Templates_toJsonString(spaces, templateList) {
83
- return toString_2(spaces, Templates_encode(templateList));
84
- }
85
-
86
- export function ARCtrl_Template_Template__Template_ToJson_71136F3F(this$, spaces) {
87
- const spaces_1 = defaultArg(spaces, 0) | 0;
88
- return (template) => Template_toJsonString(spaces_1, template);
89
- }
90
-
@@ -1,27 +0,0 @@
1
- import { defaultArg } from "../fable_modules/fable-library-js.4.13.0/Option.js";
2
- import { singleton } from "../fable_modules/fable-library-js.4.13.0/AsyncBuilder.js";
3
- import { downloadFile } from "../WebRequest/WebRequest.js";
4
- import { Templates_fromJsonString } from "./Template.Json.js";
5
- import { startAsPromise } from "../fable_modules/fable-library-js.4.13.0/Async.js";
6
- import { class_type } from "../fable_modules/fable-library-js.4.13.0/Reflection.js";
7
-
8
- export function getTemplates(url) {
9
- const url_1 = defaultArg(url, "https://github.com/nfdi4plants/Swate-templates/releases/download/latest/templates.json");
10
- return singleton.Delay(() => singleton.Bind(downloadFile(url_1), (_arg) => {
11
- const mapResult = Templates_fromJsonString(_arg);
12
- return singleton.Return(mapResult);
13
- }));
14
- }
15
-
16
- export class JsWeb {
17
- constructor() {
18
- }
19
- static getTemplates(url) {
20
- return startAsPromise(singleton.Delay(() => singleton.Bind(getTemplates(url), (_arg) => singleton.Return(_arg))));
21
- }
22
- }
23
-
24
- export function JsWeb_$reflection() {
25
- return class_type("ARCtrl.Template.Web.JsWeb", void 0, JsWeb);
26
- }
27
-
@@ -1,82 +0,0 @@
1
- import { defaultArg } from "../fable_modules/fable-library-js.4.13.0/Option.js";
2
- import { append, addRangeInPlace, collect, item, contains as contains_1 } from "../fable_modules/fable-library-js.4.13.0/Array.js";
3
- import { uncurry2, safeHash, equals } from "../fable_modules/fable-library-js.4.13.0/Util.js";
4
- import { Array_distinct } from "../fable_modules/fable-library-js.4.13.0/Seq2.js";
5
- import { class_type } from "../fable_modules/fable-library-js.4.13.0/Reflection.js";
6
-
7
- export function TemplatesAux_getComparer(matchAll) {
8
- if (defaultArg(matchAll, false)) {
9
- return (e) => ((e_1) => (e && e_1));
10
- }
11
- else {
12
- return (e_2) => ((e_3) => (e_2 || e_3));
13
- }
14
- }
15
-
16
- export function TemplatesAux_filterOnTags(tagGetter, queryTags, comparer, templates) {
17
- return templates.filter((t) => {
18
- const templateTags = tagGetter(t);
19
- let isValid = void 0;
20
- for (let idx = 0; idx <= (queryTags.length - 1); idx++) {
21
- const contains = contains_1(item(idx, queryTags), templateTags, {
22
- Equals: equals,
23
- GetHashCode: safeHash,
24
- });
25
- const isValid_1 = isValid;
26
- if (isValid_1 != null) {
27
- const maybe = isValid_1;
28
- isValid = comparer(maybe, contains);
29
- }
30
- else {
31
- isValid = contains;
32
- }
33
- }
34
- return defaultArg(isValid, false);
35
- });
36
- }
37
-
38
- export class Templates {
39
- constructor() {
40
- }
41
- static getDistinctTags(templates) {
42
- return Array_distinct(collect((t) => t.Tags, templates), {
43
- Equals: equals,
44
- GetHashCode: safeHash,
45
- });
46
- }
47
- static getDistinctEndpointRepositories(templates) {
48
- return Array_distinct(collect((t) => t.EndpointRepositories, templates), {
49
- Equals: equals,
50
- GetHashCode: safeHash,
51
- });
52
- }
53
- static getDistinctOntologyAnnotations(templates) {
54
- const oas = [];
55
- for (let idx = 0; idx <= (templates.length - 1); idx++) {
56
- const t = item(idx, templates);
57
- addRangeInPlace(t.Tags, oas);
58
- addRangeInPlace(t.EndpointRepositories, oas);
59
- }
60
- return Array_distinct(Array.from(oas), {
61
- Equals: equals,
62
- GetHashCode: safeHash,
63
- });
64
- }
65
- static filterByTags(queryTags, matchAll) {
66
- return (templates) => TemplatesAux_filterOnTags((t) => t.Tags, queryTags, uncurry2(TemplatesAux_getComparer(matchAll)), templates);
67
- }
68
- static filterByEndpointRepositories(queryTags, matchAll) {
69
- return (templates) => TemplatesAux_filterOnTags((t) => t.EndpointRepositories, queryTags, uncurry2(TemplatesAux_getComparer(matchAll)), templates);
70
- }
71
- static filterByOntologyAnnotation(queryTags, matchAll) {
72
- return (templates) => TemplatesAux_filterOnTags((t) => append(t.Tags, t.EndpointRepositories), queryTags, uncurry2(TemplatesAux_getComparer(matchAll)), templates);
73
- }
74
- static filterByDataPLANT(templates) {
75
- return templates.filter((t) => t.Organisation.IsOfficial());
76
- }
77
- }
78
-
79
- export function Templates_$reflection() {
80
- return class_type("ARCtrl.Template.Templates", void 0, Templates);
81
- }
82
-
@@ -1,10 +0,0 @@
1
- import { IMap, ISet } from "./Util.js";
2
- import { FSharpRef } from "./Types.js";
3
- export declare function keyValueList(fields: Iterable<any>, caseRule?: number): {
4
- [k: string]: any;
5
- };
6
- export declare function containsValue<K, V>(v: V, map: IMap<K, V>): boolean;
7
- export declare function tryGetValue<K, V>(map: IMap<K, V>, key: K, defaultValue: FSharpRef<V>): boolean;
8
- export declare function addToSet<T>(v: T, set: ISet<T>): boolean;
9
- export declare function addToDict<K, V>(dict: IMap<K, V>, k: K, v: V): void;
10
- export declare function getItemFromDict<K, V>(map: IMap<K, V>, key: K): V;
File without changes