@nfdi4plants/arctrl 1.1.0 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARC.js +53 -35
- package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
- package/Contract/ArcAssay.js +102 -0
- package/Contract/ArcInvestigation.js +78 -0
- package/Contract/ArcStudy.js +102 -0
- package/Contract/Contract.js +3 -3
- package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
- package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
- package/Core/Comment.js +97 -0
- package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
- package/Core/Conversion.js +1056 -0
- package/Core/Helper/Collections.js +318 -0
- package/Core/Helper/HashCodes.js +39 -0
- package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
- package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
- package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
- package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
- package/Core/OntologyAnnotation.js +186 -0
- package/Core/OntologySourceReference.js +92 -0
- package/Core/Person.js +194 -0
- package/Core/Process/ColumnIndex.js +248 -0
- package/Core/Process/Component.js +188 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
- package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
- package/Core/Process/Factor.js +109 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
- package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
- package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
- package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
- package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
- package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
- package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +24 -31
- package/Core/Publication.js +116 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +49 -155
- package/Core/Table/ArcTableAux.js +532 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +9 -8
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
- package/{Templates → Core}/Template.js +16 -17
- package/Core/Templates.js +84 -0
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +46 -8
- package/FileSystem/Path.js +10 -2
- package/Json/ARC.js +25 -0
- package/Json/Assay.js +202 -0
- package/Json/Comment.js +130 -0
- package/Json/ConverterOptions.js +18 -0
- package/Json/Decode.js +128 -0
- package/Json/Encode.js +45 -0
- package/Json/Investigation.js +220 -0
- package/Json/OntologyAnnotation.js +169 -0
- package/Json/OntologySourceReference.js +122 -0
- package/Json/Person.js +250 -0
- package/Json/Process/AssayMaterials.js +22 -0
- package/Json/Process/Component.js +79 -0
- package/Json/Process/Data.js +102 -0
- package/Json/Process/DataFile.js +81 -0
- package/Json/Process/Factor.js +48 -0
- package/Json/Process/FactorValue.js +53 -0
- package/Json/Process/Material.js +107 -0
- package/Json/Process/MaterialAttribute.js +45 -0
- package/Json/Process/MaterialAttributeValue.js +70 -0
- package/Json/Process/MaterialType.js +60 -0
- package/Json/Process/Process.js +107 -0
- package/Json/Process/ProcessInput.js +59 -0
- package/Json/Process/ProcessOutput.js +71 -0
- package/Json/Process/ProcessParameterValue.js +69 -0
- package/Json/Process/ProcessSequence.js +53 -0
- package/Json/Process/PropertyValue.js +82 -0
- package/Json/Process/Protocol.js +147 -0
- package/Json/Process/ProtocolParameter.js +45 -0
- package/Json/Process/Sample.js +134 -0
- package/Json/Process/Source.js +101 -0
- package/Json/Process/StudyMaterials.js +24 -0
- package/Json/Process/Value.js +42 -0
- package/Json/Publication.js +142 -0
- package/Json/StringTable.js +44 -0
- package/Json/Study.js +306 -0
- package/Json/Table/ArcTable.js +223 -0
- package/Json/Table/CellTable.js +40 -0
- package/Json/Table/CompositeCell.js +65 -0
- package/Json/Table/CompositeHeader.js +57 -0
- package/Json/Table/Compression.js +38 -0
- package/Json/Table/IOType.js +37 -0
- package/Json/Table/OATable.js +40 -0
- package/Json/Table/Templates.js +107 -0
- package/Json/context/rocrate/isa_assay_context.js +32 -0
- package/Json/context/rocrate/isa_comment_context.js +23 -0
- package/Json/context/rocrate/isa_component_context.js +24 -0
- package/Json/context/rocrate/isa_data_context.js +25 -0
- package/Json/context/rocrate/isa_factor_context.js +25 -0
- package/Json/context/rocrate/isa_factor_value_context.js +23 -0
- package/Json/context/rocrate/isa_investigation_context.js +33 -0
- package/Json/context/rocrate/isa_material_attribute_context.js +23 -0
- package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
- package/Json/context/rocrate/isa_material_context.js +26 -0
- package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
- package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
- package/Json/context/rocrate/isa_organization_context.js +22 -0
- package/Json/context/rocrate/isa_person_context.js +33 -0
- package/Json/context/rocrate/isa_process_context.js +29 -0
- package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
- package/Json/context/rocrate/isa_protocol_context.js +28 -0
- package/Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
- package/Json/context/rocrate/isa_publication_context.js +25 -0
- package/Json/context/rocrate/isa_sample_context.js +24 -0
- package/Json/context/rocrate/isa_source_context.js +25 -0
- package/Json/context/rocrate/isa_study_context.js +40 -0
- package/Json/context/rocrate/property_value_context.js +4 -0
- package/Json/context/rocrate/rocrate_context.js +23 -0
- package/Json.js +193 -0
- package/README.md +50 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
- package/Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +8 -8
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
- package/Spreadsheet/Metadata/Comment.js +71 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
- package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +34 -28
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
- package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
- package/Template.Web.js +27 -0
- package/WebRequest/WebRequest.Node.js +15 -0
- package/WebRequest/WebRequest.js +10 -29
- package/Xlsx.js +85 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +4 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +1390 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +1230 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs +233 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +113 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +28 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs +76 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +33 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/{Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs → Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs} +8 -7
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs +79 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +85 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs +32 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +45 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +21 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +18 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +19 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.d.ts +4 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.js +124 -86
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
- package/fable_modules/fable-library-js.4.16.0/CHANGELOG.md +47 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -17
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.js +0 -43
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.js +340 -42
- package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.js +27 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.js +3 -3
- package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.js +7 -7
- package/fable_modules/fable-library-js.4.16.0/Result.d.ts +37 -0
- package/fable_modules/fable-library-js.4.16.0/Result.js +165 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.js +2 -2
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.d.ts +1 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.js +8 -5
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +15 -7
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +46 -36
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.d.ts +9 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.js +60 -8
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.js +2 -13
- package/fable_modules/fable-library-js.4.16.0/big.d.ts +338 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/package.json +4 -3
- package/fable_modules/project_cracked.json +1 -1
- package/index.js +14 -12
- package/package.json +1 -1
- package/Contracts/Contracts.ArcTypes.js +0 -268
- package/FileSystemTree.js +0 -51
- package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
- package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
- package/ISA/ISA/Builder/Types.js +0 -243
- package/ISA/ISA/Fable.js +0 -123
- package/ISA/ISA/Helper.js +0 -503
- package/ISA/ISA/JsonTypes/Assay.js +0 -620
- package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
- package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
- package/ISA/ISA/JsonTypes/Comment.js +0 -58
- package/ISA/ISA/JsonTypes/Component.js +0 -165
- package/ISA/ISA/JsonTypes/Factor.js +0 -128
- package/ISA/ISA/JsonTypes/Investigation.js +0 -204
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
- package/ISA/ISA/JsonTypes/Person.js +0 -137
- package/ISA/ISA/JsonTypes/Publication.js +0 -105
- package/ISA/ISA/JsonTypes/Study.js +0 -942
- package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
- package/ISA/ISA/UIHelper.js +0 -19
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -282
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -93
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -170
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +0 -178
- package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -46
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -77
- package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +0 -82
- package/ISA/ISA.Json/ArcTypes/IOType.js +0 -35
- package/ISA/ISA.Json/ArcTypes/OATable.js +0 -48
- package/ISA/ISA.Json/Assay.js +0 -105
- package/ISA/ISA.Json/Comment.js +0 -84
- package/ISA/ISA.Json/ConverterOptions.js +0 -33
- package/ISA/ISA.Json/Data.js +0 -271
- package/ISA/ISA.Json/Decode.js +0 -46
- package/ISA/ISA.Json/Factor.js +0 -194
- package/ISA/ISA.Json/GEncode.js +0 -15
- package/ISA/ISA.Json/Investigation.js +0 -114
- package/ISA/ISA.Json/Material.js +0 -233
- package/ISA/ISA.Json/Ontology.js +0 -223
- package/ISA/ISA.Json/Person.js +0 -204
- package/ISA/ISA.Json/Process.js +0 -291
- package/ISA/ISA.Json/Protocol.js +0 -242
- package/ISA/ISA.Json/Publication.js +0 -92
- package/ISA/ISA.Json/StringTable.js +0 -43
- package/ISA/ISA.Json/Study.js +0 -212
- package/ISA/ISA.Json/Validation/Fable.js +0 -69
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +0 -88
- package/ISA/ISA.Json/Validation/ValidationResult.js +0 -45
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +0 -59
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +0 -60
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
- package/Path.js +0 -10
- package/Templates/Template.Json.js +0 -83
- package/Templates/Template.Web.js +0 -27
- package/Templates/Templates.js +0 -82
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs +0 -1366
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +0 -1798
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs +0 -621
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +0 -472
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs +0 -31
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +0 -8
- package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +0 -30
- package/fable_modules/Thoth.Json.10.1.0/Types.fs +0 -59
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +0 -98
- package/fable_modules/Thoth.Json.10.1.0/package.json +0 -5
- package/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
- package/fable_modules/fable-library.4.5.0/MapUtil.d.ts +0 -10
- /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/README.md +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { replace } from "../../fable_modules/fable-library.4.5.0/String.js";
|
|
2
|
-
import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
|
|
3
|
-
import { toString, nil, object as object_24 } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
|
|
4
|
-
import { empty as empty_1, choose } from "../../fable_modules/fable-library.4.5.0/List.js";
|
|
5
|
-
import { uncurry2, equals } from "../../fable_modules/fable-library.4.5.0/Util.js";
|
|
6
|
-
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.5.0/Seq.js";
|
|
7
|
-
import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
|
|
8
|
-
import { tryInclude } from "./GEncode.js";
|
|
9
|
-
import { OntologySourceReference_decoder, OntologySourceReference_encoder } from "./Ontology.js";
|
|
10
|
-
import { decoder as decoder_6, encoder as encoder_1 } from "./Publication.js";
|
|
11
|
-
import { decoder as decoder_7, encoder as encoder_2 } from "./Person.js";
|
|
12
|
-
import { Study_decoder, Study_encoder } from "./Study.js";
|
|
13
|
-
import { decoder as decoder_8, encoder as encoder_3 } from "./Comment.js";
|
|
14
|
-
import { list as list_1, string, object as object_25 } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
|
|
15
|
-
import { Investigation } from "../ISA/JsonTypes/Investigation.js";
|
|
16
|
-
import { fromJsonString as fromJsonString_1 } from "./Decode.js";
|
|
17
|
-
|
|
18
|
-
export function genID(i) {
|
|
19
|
-
const matchValue = i.ID;
|
|
20
|
-
if (matchValue == null) {
|
|
21
|
-
const matchValue_1 = i.FileName;
|
|
22
|
-
if (matchValue_1 == null) {
|
|
23
|
-
const matchValue_2 = i.Identifier;
|
|
24
|
-
if (matchValue_2 == null) {
|
|
25
|
-
const matchValue_3 = i.Title;
|
|
26
|
-
if (matchValue_3 == null) {
|
|
27
|
-
return "#EmptyStudy";
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
return "#Study_" + replace(matchValue_3, " ", "_");
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return "#Study_" + replace(matchValue_2, " ", "_");
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
return "#Study_" + replace(matchValue_1, " ", "_");
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
return URIModule_toString(matchValue);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function encoder(options, oa) {
|
|
47
|
-
return object_24(choose((tupledArg) => {
|
|
48
|
-
const v = tupledArg[1];
|
|
49
|
-
if (equals(v, nil)) {
|
|
50
|
-
return void 0;
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return [tupledArg[0], v];
|
|
54
|
-
}
|
|
55
|
-
}, toList(delay(() => {
|
|
56
|
-
let value, s;
|
|
57
|
-
return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
|
|
58
|
-
let s_1;
|
|
59
|
-
const value_3 = value_2;
|
|
60
|
-
return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
|
|
61
|
-
}, oa["ID"])), delay(() => {
|
|
62
|
-
let value_5, s_2;
|
|
63
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "Investigation", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("filename", (value_7) => {
|
|
64
|
-
let s_3;
|
|
65
|
-
const value_8 = value_7;
|
|
66
|
-
return (typeof value_8 === "string") ? ((s_3 = value_8, s_3)) : nil;
|
|
67
|
-
}, oa["FileName"])), delay(() => append(singleton(tryInclude("identifier", (value_10) => {
|
|
68
|
-
let s_4;
|
|
69
|
-
const value_11 = value_10;
|
|
70
|
-
return (typeof value_11 === "string") ? ((s_4 = value_11, s_4)) : nil;
|
|
71
|
-
}, oa["Identifier"])), delay(() => append(singleton(tryInclude("title", (value_13) => {
|
|
72
|
-
let s_5;
|
|
73
|
-
const value_14 = value_13;
|
|
74
|
-
return (typeof value_14 === "string") ? ((s_5 = value_14, s_5)) : nil;
|
|
75
|
-
}, oa["Title"])), delay(() => append(singleton(tryInclude("description", (value_16) => {
|
|
76
|
-
let s_6;
|
|
77
|
-
const value_17 = value_16;
|
|
78
|
-
return (typeof value_17 === "string") ? ((s_6 = value_17, s_6)) : nil;
|
|
79
|
-
}, oa["Description"])), delay(() => append(singleton(tryInclude("submissionDate", (value_19) => {
|
|
80
|
-
let s_7;
|
|
81
|
-
const value_20 = value_19;
|
|
82
|
-
return (typeof value_20 === "string") ? ((s_7 = value_20, s_7)) : nil;
|
|
83
|
-
}, oa["SubmissionDate"])), delay(() => append(singleton(tryInclude("publicReleaseDate", (value_22) => {
|
|
84
|
-
let s_8;
|
|
85
|
-
const value_23 = value_22;
|
|
86
|
-
return (typeof value_23 === "string") ? ((s_8 = value_23, s_8)) : nil;
|
|
87
|
-
}, oa["PublicReleaseDate"])), delay(() => append(singleton(tryInclude("ontologySourceReferences", (osr) => OntologySourceReference_encoder(options, osr), oa["OntologySourceReferences"])), delay(() => append(singleton(tryInclude("publications", (oa_1) => encoder_1(options, oa_1), oa["Publications"])), delay(() => append(singleton(tryInclude("people", (oa_2) => encoder_2(options, oa_2), oa["Contacts"])), delay(() => append(singleton(tryInclude("studies", (oa_3) => Study_encoder(options, oa_3), oa["Studies"])), delay(() => singleton(tryInclude("comments", (comment) => encoder_3(options, comment), oa["Comments"]))))))))))))))))))))))));
|
|
88
|
-
}));
|
|
89
|
-
}))));
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function decoder(options) {
|
|
93
|
-
return (path_12) => ((v) => object_25((get$) => {
|
|
94
|
-
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, arg_15, decoder_1, objectArg_7, arg_17, decoder_2, objectArg_8, arg_19, decoder_3, objectArg_9, arg_21, decoder_4, objectArg_10, arg_23, decoder_5, objectArg_11;
|
|
95
|
-
return new Investigation((objectArg = get$.Optional, objectArg.Field("@id", string)), (objectArg_1 = get$.Optional, objectArg_1.Field("filename", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("identifier", string)), (objectArg_3 = get$.Optional, objectArg_3.Field("title", string)), (objectArg_4 = get$.Optional, objectArg_4.Field("description", string)), (objectArg_5 = get$.Optional, objectArg_5.Field("submissionDate", string)), (objectArg_6 = get$.Optional, objectArg_6.Field("publicReleaseDate", string)), (arg_15 = ((decoder_1 = OntologySourceReference_decoder(options), (path_7) => ((value_7) => list_1(uncurry2(decoder_1), path_7, value_7)))), (objectArg_7 = get$.Optional, objectArg_7.Field("ontologySourceReferences", uncurry2(arg_15)))), (arg_17 = ((decoder_2 = decoder_6(options), (path_8) => ((value_8) => list_1(uncurry2(decoder_2), path_8, value_8)))), (objectArg_8 = get$.Optional, objectArg_8.Field("publications", uncurry2(arg_17)))), (arg_19 = ((decoder_3 = decoder_7(options), (path_9) => ((value_9) => list_1(uncurry2(decoder_3), path_9, value_9)))), (objectArg_9 = get$.Optional, objectArg_9.Field("people", uncurry2(arg_19)))), (arg_21 = ((decoder_4 = Study_decoder(options), (path_10) => ((value_10) => list_1(uncurry2(decoder_4), path_10, value_10)))), (objectArg_10 = get$.Optional, objectArg_10.Field("studies", uncurry2(arg_21)))), (arg_23 = ((decoder_5 = decoder_8(options), (path_11) => ((value_11) => list_1(uncurry2(decoder_5), path_11, value_11)))), (objectArg_11 = get$.Optional, objectArg_11.Field("comments", uncurry2(arg_23)))), empty_1());
|
|
96
|
-
}, path_12, v));
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function fromJsonString(s) {
|
|
100
|
-
return fromJsonString_1(uncurry2(decoder(ConverterOptions_$ctor())), s);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function toJsonString(p) {
|
|
104
|
-
return toString(2, encoder(ConverterOptions_$ctor(), p));
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* exports in json-ld format
|
|
109
|
-
*/
|
|
110
|
-
export function toStringLD(i) {
|
|
111
|
-
let returnVal;
|
|
112
|
-
return toString(2, encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), i));
|
|
113
|
-
}
|
|
114
|
-
|
package/ISA/ISA.Json/Material.js
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import { MaterialType } from "../ISA/JsonTypes/MaterialType.js";
|
|
2
|
-
import { toString, object as object_10, nil } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
|
|
3
|
-
import { list as list_1, object as object_11, string } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
|
|
4
|
-
import { FSharpResult$2 } from "../../fable_modules/fable-library.4.5.0/Choice.js";
|
|
5
|
-
import { ErrorReason } from "../../fable_modules/Thoth.Json.10.1.0/Types.fs.js";
|
|
6
|
-
import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
|
|
7
|
-
import { ofArray, choose } from "../../fable_modules/fable-library.4.5.0/List.js";
|
|
8
|
-
import { uncurry2, equals } from "../../fable_modules/fable-library.4.5.0/Util.js";
|
|
9
|
-
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.5.0/Seq.js";
|
|
10
|
-
import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
|
|
11
|
-
import { tryInclude } from "./GEncode.js";
|
|
12
|
-
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontology.js";
|
|
13
|
-
import { hasUnknownFields, fromJsonString, uri } from "./Decode.js";
|
|
14
|
-
import { MaterialAttribute } from "../ISA/JsonTypes/MaterialAttribute.js";
|
|
15
|
-
import { Value_decoder, Value_encoder } from "./Factor.js";
|
|
16
|
-
import { MaterialAttributeValue } from "../ISA/JsonTypes/MaterialAttributeValue.js";
|
|
17
|
-
import { replace } from "../../fable_modules/fable-library.4.5.0/String.js";
|
|
18
|
-
import { Material } from "../ISA/JsonTypes/Material.js";
|
|
19
|
-
|
|
20
|
-
export function MaterialType_encoder(options, value) {
|
|
21
|
-
if (value instanceof MaterialType) {
|
|
22
|
-
if (value.tag === 1) {
|
|
23
|
-
return "Labeled Extract Name";
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
return "Extract Name";
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
return nil;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function MaterialType_decoder(options, s, json) {
|
|
35
|
-
const matchValue = string(s, json);
|
|
36
|
-
if (matchValue.tag === 1) {
|
|
37
|
-
return new FSharpResult$2(1, [matchValue.fields[0]]);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
switch (matchValue.fields[0]) {
|
|
41
|
-
case "Extract Name":
|
|
42
|
-
return new FSharpResult$2(0, [new MaterialType(0, [])]);
|
|
43
|
-
case "Labeled Extract Name":
|
|
44
|
-
return new FSharpResult$2(0, [new MaterialType(1, [])]);
|
|
45
|
-
default: {
|
|
46
|
-
const s_1 = matchValue.fields[0];
|
|
47
|
-
return new FSharpResult$2(1, [[`Could not parse ${s_1}No other value than "Extract Name" or "Labeled Extract Name" allowed for materialtype`, new ErrorReason(0, [s_1, nil])]]);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function MaterialAttribute_genID(m) {
|
|
54
|
-
const matchValue = m.ID;
|
|
55
|
-
if (matchValue == null) {
|
|
56
|
-
return "#EmptyMaterialAttribute";
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
return URIModule_toString(matchValue);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function MaterialAttribute_encoder(options, oa) {
|
|
64
|
-
return object_10(choose((tupledArg) => {
|
|
65
|
-
const v = tupledArg[1];
|
|
66
|
-
if (equals(v, nil)) {
|
|
67
|
-
return void 0;
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
return [tupledArg[0], v];
|
|
71
|
-
}
|
|
72
|
-
}, toList(delay(() => {
|
|
73
|
-
let value, s;
|
|
74
|
-
return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = MaterialAttribute_genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
|
|
75
|
-
let s_1;
|
|
76
|
-
const value_3 = value_2;
|
|
77
|
-
return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
|
|
78
|
-
}, oa["ID"])), delay(() => {
|
|
79
|
-
let value_5, s_2;
|
|
80
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "MaterialAttribute", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => singleton(tryInclude("characteristicType", (oa_1) => OntologyAnnotation_encoder(options, oa_1), oa["CharacteristicType"]))));
|
|
81
|
-
}));
|
|
82
|
-
}))));
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function MaterialAttribute_decoder(options) {
|
|
86
|
-
return (path) => ((v) => object_11((get$) => {
|
|
87
|
-
let objectArg, arg_3, objectArg_1;
|
|
88
|
-
return new MaterialAttribute((objectArg = get$.Optional, objectArg.Field("@id", uri)), (arg_3 = OntologyAnnotation_decoder(options), (objectArg_1 = get$.Optional, objectArg_1.Field("characteristicType", uncurry2(arg_3)))));
|
|
89
|
-
}, path, v));
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function MaterialAttribute_fromJsonString(s) {
|
|
93
|
-
return fromJsonString(uncurry2(MaterialAttribute_decoder(ConverterOptions_$ctor())), s);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export function MaterialAttribute_toJsonString(m) {
|
|
97
|
-
return toString(2, MaterialAttribute_encoder(ConverterOptions_$ctor(), m));
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* exports in json-ld format
|
|
102
|
-
*/
|
|
103
|
-
export function MaterialAttribute_toStringLD(m) {
|
|
104
|
-
let returnVal;
|
|
105
|
-
return toString(2, MaterialAttribute_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), m));
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export function MaterialAttributeValue_genID(m) {
|
|
109
|
-
const matchValue = m.ID;
|
|
110
|
-
if (matchValue == null) {
|
|
111
|
-
return "#EmptyMaterialAttributeValue";
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
return URIModule_toString(matchValue);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export function MaterialAttributeValue_encoder(options, oa) {
|
|
119
|
-
return object_10(choose((tupledArg) => {
|
|
120
|
-
const v = tupledArg[1];
|
|
121
|
-
if (equals(v, nil)) {
|
|
122
|
-
return void 0;
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
return [tupledArg[0], v];
|
|
126
|
-
}
|
|
127
|
-
}, toList(delay(() => {
|
|
128
|
-
let value, s;
|
|
129
|
-
return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = MaterialAttributeValue_genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
|
|
130
|
-
let s_1;
|
|
131
|
-
const value_3 = value_2;
|
|
132
|
-
return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
|
|
133
|
-
}, oa["ID"])), delay(() => {
|
|
134
|
-
let value_5, s_2;
|
|
135
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "MaterialAttributeValue", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("category", (oa_1) => MaterialAttribute_encoder(options, oa_1), oa["Category"])), delay(() => append(singleton(tryInclude("value", (value_7) => Value_encoder(options, value_7), oa["Value"])), delay(() => singleton(tryInclude("unit", (oa_2) => OntologyAnnotation_encoder(options, oa_2), oa["Unit"]))))))));
|
|
136
|
-
}));
|
|
137
|
-
}))));
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export function MaterialAttributeValue_decoder(options) {
|
|
141
|
-
return (path) => ((v) => object_11((get$) => {
|
|
142
|
-
let objectArg, arg_3, objectArg_1, objectArg_2, arg_7, objectArg_3;
|
|
143
|
-
return new MaterialAttributeValue((objectArg = get$.Optional, objectArg.Field("@id", uri)), (arg_3 = MaterialAttribute_decoder(options), (objectArg_1 = get$.Optional, objectArg_1.Field("category", uncurry2(arg_3)))), (objectArg_2 = get$.Optional, objectArg_2.Field("value", (s_1, json_1) => Value_decoder(options, s_1, json_1))), (arg_7 = OntologyAnnotation_decoder(options), (objectArg_3 = get$.Optional, objectArg_3.Field("unit", uncurry2(arg_7)))));
|
|
144
|
-
}, path, v));
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export function MaterialAttributeValue_fromJsonString(s) {
|
|
148
|
-
return fromJsonString(uncurry2(MaterialAttributeValue_decoder(ConverterOptions_$ctor())), s);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export function MaterialAttributeValue_toJsonString(m) {
|
|
152
|
-
return toString(2, MaterialAttributeValue_encoder(ConverterOptions_$ctor(), m));
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* exports in json-ld format
|
|
157
|
-
*/
|
|
158
|
-
export function MaterialAttributeValue_toStringLD(m) {
|
|
159
|
-
let returnVal;
|
|
160
|
-
return toString(2, MaterialAttributeValue_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), m));
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export function Material_genID(m) {
|
|
164
|
-
const matchValue = m.ID;
|
|
165
|
-
if (matchValue == null) {
|
|
166
|
-
const matchValue_1 = m.Name;
|
|
167
|
-
if (matchValue_1 == null) {
|
|
168
|
-
return "#EmptyMaterial";
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
return "#Material_" + replace(matchValue_1, " ", "_");
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
return matchValue;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export function Material_encoder(options, oa) {
|
|
180
|
-
return object_10(choose((tupledArg) => {
|
|
181
|
-
const v = tupledArg[1];
|
|
182
|
-
if (equals(v, nil)) {
|
|
183
|
-
return void 0;
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
return [tupledArg[0], v];
|
|
187
|
-
}
|
|
188
|
-
}, toList(delay(() => {
|
|
189
|
-
let value, s;
|
|
190
|
-
return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = Material_genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
|
|
191
|
-
let s_1;
|
|
192
|
-
const value_3 = value_2;
|
|
193
|
-
return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
|
|
194
|
-
}, oa["ID"])), delay(() => {
|
|
195
|
-
let value_5, s_2;
|
|
196
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "Material", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("name", (value_7) => {
|
|
197
|
-
let s_3;
|
|
198
|
-
const value_8 = value_7;
|
|
199
|
-
return (typeof value_8 === "string") ? ((s_3 = value_8, s_3)) : nil;
|
|
200
|
-
}, oa["Name"])), delay(() => append(singleton(tryInclude("type", (value_10) => MaterialType_encoder(options, value_10), oa["MaterialType"])), delay(() => append(singleton(tryInclude("characteristics", (oa_1) => MaterialAttributeValue_encoder(options, oa_1), oa["Characteristics"])), delay(() => singleton(tryInclude("derivesFrom", (oa_2) => Material_encoder(options, oa_2), oa["DerivesFrom"]))))))))));
|
|
201
|
-
}));
|
|
202
|
-
}))));
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export function Material_decoder(options, s, json) {
|
|
206
|
-
if (hasUnknownFields(ofArray(["@id", "@type", "name", "type", "characteristics", "derivesFrom"]), json)) {
|
|
207
|
-
return new FSharpResult$2(1, [["Unknown fields in material", new ErrorReason(0, [s, nil])]]);
|
|
208
|
-
}
|
|
209
|
-
else {
|
|
210
|
-
return object_11((get$) => {
|
|
211
|
-
let objectArg, objectArg_1, objectArg_2, arg_7, decoder, objectArg_3, objectArg_4;
|
|
212
|
-
return new Material((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("type", (s_2, json_2) => MaterialType_decoder(options, s_2, json_2))), (arg_7 = ((decoder = MaterialAttributeValue_decoder(options), (path_1) => ((value_1) => list_1(uncurry2(decoder), path_1, value_1)))), (objectArg_3 = get$.Optional, objectArg_3.Field("characteristics", uncurry2(arg_7)))), (objectArg_4 = get$.Optional, objectArg_4.Field("derivesFrom", (path_2, value_2) => list_1((s_3, json_3) => Material_decoder(options, s_3, json_3), path_2, value_2))));
|
|
213
|
-
}, s, json);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
export function Material_fromJsonString(s) {
|
|
218
|
-
let options;
|
|
219
|
-
return fromJsonString(uncurry2((options = ConverterOptions_$ctor(), (s_1) => ((json) => Material_decoder(options, s_1, json)))), s);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
export function Material_toJsonString(m) {
|
|
223
|
-
return toString(2, Material_encoder(ConverterOptions_$ctor(), m));
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* exports in json-ld format
|
|
228
|
-
*/
|
|
229
|
-
export function Material_toStringLD(m) {
|
|
230
|
-
let returnVal;
|
|
231
|
-
return toString(2, Material_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), m));
|
|
232
|
-
}
|
|
233
|
-
|
package/ISA/ISA.Json/Ontology.js
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import { array, object as object_11, string, float, int } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
|
|
2
|
-
import { FSharpResult$2 } from "../../fable_modules/fable-library.4.5.0/Choice.js";
|
|
3
|
-
import { uncurry2, equals, int32ToString } from "../../fable_modules/fable-library.4.5.0/Util.js";
|
|
4
|
-
import { replace } from "../../fable_modules/fable-library.4.5.0/String.js";
|
|
5
|
-
import { toString, nil, object as object_10 } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
|
|
6
|
-
import { choose } from "../../fable_modules/fable-library.4.5.0/List.js";
|
|
7
|
-
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.5.0/Seq.js";
|
|
8
|
-
import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
|
|
9
|
-
import { tryInclude } from "./GEncode.js";
|
|
10
|
-
import { decoder as decoder_1, encoder } from "./Comment.js";
|
|
11
|
-
import { fromJsonString, uri } from "./Decode.js";
|
|
12
|
-
import { OntologySourceReference } from "../ISA/JsonTypes/OntologySourceReference.js";
|
|
13
|
-
import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
|
|
14
|
-
import { OntologyAnnotation } from "../ISA/JsonTypes/OntologyAnnotation.js";
|
|
15
|
-
import { unwrap } from "../../fable_modules/fable-library.4.5.0/Option.js";
|
|
16
|
-
import { StringTable_decodeString, StringTable_encodeString } from "./StringTable.js";
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* This decodes from integer, float or string to string only!
|
|
20
|
-
*/
|
|
21
|
-
export function AnnotationValue_decoder(options, s, json) {
|
|
22
|
-
const matchValue = int(s)(json);
|
|
23
|
-
if (matchValue.tag === 1) {
|
|
24
|
-
const matchValue_1 = float(s, json);
|
|
25
|
-
if (matchValue_1.tag === 1) {
|
|
26
|
-
const matchValue_2 = string(s, json);
|
|
27
|
-
if (matchValue_2.tag === 1) {
|
|
28
|
-
return new FSharpResult$2(1, [matchValue_2.fields[0]]);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
return new FSharpResult$2(0, [matchValue_2.fields[0]]);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return new FSharpResult$2(0, [matchValue_1.fields[0].toString()]);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return new FSharpResult$2(0, [int32ToString(matchValue.fields[0])]);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function OntologySourceReference_genID(o) {
|
|
44
|
-
const matchValue = o.File;
|
|
45
|
-
if (matchValue == null) {
|
|
46
|
-
const matchValue_1 = o.Name;
|
|
47
|
-
if (matchValue_1 == null) {
|
|
48
|
-
return "#DummyOntologySourceRef";
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return "#OntologySourceRef_" + replace(matchValue_1, " ", "_");
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
return matchValue;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function OntologySourceReference_encoder(options, osr) {
|
|
60
|
-
return object_10(choose((tupledArg) => {
|
|
61
|
-
const v = tupledArg[1];
|
|
62
|
-
if (equals(v, nil)) {
|
|
63
|
-
return void 0;
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return [tupledArg[0], v];
|
|
67
|
-
}
|
|
68
|
-
}, toList(delay(() => {
|
|
69
|
-
let value, s;
|
|
70
|
-
return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = OntologySourceReference_genID(osr), (typeof value === "string") ? ((s = value, s)) : nil)]) : empty(), delay(() => {
|
|
71
|
-
let value_2, s_1;
|
|
72
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_2 = "OntologySourceReference", (typeof value_2 === "string") ? ((s_1 = value_2, s_1)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("description", (value_4) => {
|
|
73
|
-
let s_2;
|
|
74
|
-
const value_5 = value_4;
|
|
75
|
-
return (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil;
|
|
76
|
-
}, osr["Description"])), delay(() => append(singleton(tryInclude("file", (value_7) => {
|
|
77
|
-
let s_3;
|
|
78
|
-
const value_8 = value_7;
|
|
79
|
-
return (typeof value_8 === "string") ? ((s_3 = value_8, s_3)) : nil;
|
|
80
|
-
}, osr["File"])), delay(() => append(singleton(tryInclude("name", (value_10) => {
|
|
81
|
-
let s_4;
|
|
82
|
-
const value_11 = value_10;
|
|
83
|
-
return (typeof value_11 === "string") ? ((s_4 = value_11, s_4)) : nil;
|
|
84
|
-
}, osr["Name"])), delay(() => append(singleton(tryInclude("version", (value_13) => {
|
|
85
|
-
let s_5;
|
|
86
|
-
const value_14 = value_13;
|
|
87
|
-
return (typeof value_14 === "string") ? ((s_5 = value_14, s_5)) : nil;
|
|
88
|
-
}, osr["Version"])), delay(() => singleton(tryInclude("comments", (comment) => encoder(options, comment), osr["Comments"]))))))))))));
|
|
89
|
-
}));
|
|
90
|
-
}))));
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function OntologySourceReference_decoder(options) {
|
|
94
|
-
return (path_4) => ((v) => object_11((get$) => {
|
|
95
|
-
let objectArg, objectArg_1, objectArg_2, objectArg_3, arg_9, decoder, objectArg_4;
|
|
96
|
-
return new OntologySourceReference((objectArg = get$.Optional, objectArg.Field("description", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("file", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("name", string)), (objectArg_3 = get$.Optional, objectArg_3.Field("version", string)), (arg_9 = ((decoder = decoder_1(options), (path_3) => ((value_3) => array(uncurry2(decoder), path_3, value_3)))), (objectArg_4 = get$.Optional, objectArg_4.Field("comments", uncurry2(arg_9)))));
|
|
97
|
-
}, path_4, v));
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function OntologySourceReference_fromJsonString(s) {
|
|
101
|
-
return fromJsonString(uncurry2(OntologySourceReference_decoder(ConverterOptions_$ctor())), s);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export function OntologySourceReference_toJsonString(oa) {
|
|
105
|
-
return toString(2, OntologySourceReference_encoder(ConverterOptions_$ctor(), oa));
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* exports in json-ld format
|
|
110
|
-
*/
|
|
111
|
-
export function OntologySourceReference_toStringLD(oa) {
|
|
112
|
-
let returnVal;
|
|
113
|
-
return toString(2, OntologySourceReference_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), oa));
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export function OntologyAnnotation_genID(o) {
|
|
117
|
-
const matchValue = o.ID;
|
|
118
|
-
if (matchValue == null) {
|
|
119
|
-
const matchValue_1 = o.TermAccessionNumber;
|
|
120
|
-
if (matchValue_1 == null) {
|
|
121
|
-
const matchValue_2 = o.TermSourceREF;
|
|
122
|
-
if (matchValue_2 == null) {
|
|
123
|
-
return "#DummyOntologyAnnotation";
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
return "#" + replace(matchValue_2, " ", "_");
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
return matchValue_1;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
return URIModule_toString(matchValue);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export function OntologyAnnotation_encoder(options, oa) {
|
|
139
|
-
return object_10(choose((tupledArg) => {
|
|
140
|
-
const v = tupledArg[1];
|
|
141
|
-
if (equals(v, nil)) {
|
|
142
|
-
return void 0;
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
return [tupledArg[0], v];
|
|
146
|
-
}
|
|
147
|
-
}, toList(delay(() => {
|
|
148
|
-
let value, s;
|
|
149
|
-
return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = OntologyAnnotation_genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
|
|
150
|
-
let s_1;
|
|
151
|
-
const value_3 = value_2;
|
|
152
|
-
return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
|
|
153
|
-
}, oa["ID"])), delay(() => {
|
|
154
|
-
let value_5, s_2;
|
|
155
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "OntologyAnnotation", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("annotationValue", (value_7) => {
|
|
156
|
-
let s_3;
|
|
157
|
-
const value_8 = value_7;
|
|
158
|
-
return (typeof value_8 === "string") ? ((s_3 = value_8, s_3)) : nil;
|
|
159
|
-
}, oa["Name"])), delay(() => append(singleton(tryInclude("termSource", (value_10) => {
|
|
160
|
-
let s_4;
|
|
161
|
-
const value_11 = value_10;
|
|
162
|
-
return (typeof value_11 === "string") ? ((s_4 = value_11, s_4)) : nil;
|
|
163
|
-
}, oa["TermSourceREF"])), delay(() => append(singleton(tryInclude("termAccession", (value_13) => {
|
|
164
|
-
let s_5;
|
|
165
|
-
const value_14 = value_13;
|
|
166
|
-
return (typeof value_14 === "string") ? ((s_5 = value_14, s_5)) : nil;
|
|
167
|
-
}, oa["TermAccessionNumber"])), delay(() => singleton(tryInclude("comments", (comment) => encoder(options, comment), oa["Comments"]))))))))));
|
|
168
|
-
}));
|
|
169
|
-
}))));
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export function OntologyAnnotation_decoder(options) {
|
|
173
|
-
return (path_3) => ((v) => object_11((get$) => {
|
|
174
|
-
let objectArg, objectArg_1, objectArg_2, objectArg_3, arg_9, decoder, objectArg_4;
|
|
175
|
-
return OntologyAnnotation.create(unwrap((objectArg = get$.Optional, objectArg.Field("@id", uri))), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("annotationValue", (s_1, json_1) => AnnotationValue_decoder(options, s_1, json_1)))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("termSource", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("termAccession", string))), unwrap((arg_9 = ((decoder = decoder_1(options), (path_2) => ((value_2) => array(uncurry2(decoder), path_2, value_2)))), (objectArg_4 = get$.Optional, objectArg_4.Field("comments", uncurry2(arg_9))))));
|
|
176
|
-
}, path_3, v));
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export function OntologyAnnotation_compressedEncoder(stringTable, options, oa) {
|
|
180
|
-
return object_10(choose((tupledArg) => {
|
|
181
|
-
const v = tupledArg[1];
|
|
182
|
-
if (equals(v, nil)) {
|
|
183
|
-
return void 0;
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
return [tupledArg[0], v];
|
|
187
|
-
}
|
|
188
|
-
}, toList(delay(() => {
|
|
189
|
-
let value, s;
|
|
190
|
-
return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = OntologyAnnotation_genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
|
|
191
|
-
let s_1;
|
|
192
|
-
const value_3 = value_2;
|
|
193
|
-
return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
|
|
194
|
-
}, oa["ID"])), delay(() => {
|
|
195
|
-
let value_5, s_2;
|
|
196
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "OntologyAnnotation", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("a", (s_3) => StringTable_encodeString(stringTable, s_3), oa["Name"])), delay(() => append(singleton(tryInclude("ts", (s_4) => StringTable_encodeString(stringTable, s_4), oa["TermSourceREF"])), delay(() => append(singleton(tryInclude("ta", (s_5) => StringTable_encodeString(stringTable, s_5), oa["TermAccessionNumber"])), delay(() => singleton(tryInclude("comments", (comment) => encoder(options, comment), oa["Comments"]))))))))));
|
|
197
|
-
}));
|
|
198
|
-
}))));
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
export function OntologyAnnotation_compressedDecoder(stringTable, options) {
|
|
202
|
-
return (path_1) => ((v) => object_11((get$) => {
|
|
203
|
-
let objectArg, objectArg_1, objectArg_2, objectArg_3, arg_9, decoder, objectArg_4;
|
|
204
|
-
return OntologyAnnotation.create(unwrap((objectArg = get$.Optional, objectArg.Field("@id", uri))), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("a", (s_1, o) => StringTable_decodeString(stringTable, s_1, o)))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("ts", (s_2, o_1) => StringTable_decodeString(stringTable, s_2, o_1)))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("ta", (s_3, o_2) => StringTable_decodeString(stringTable, s_3, o_2)))), unwrap((arg_9 = ((decoder = decoder_1(options), (path) => ((value) => array(uncurry2(decoder), path, value)))), (objectArg_4 = get$.Optional, objectArg_4.Field("comments", uncurry2(arg_9))))));
|
|
205
|
-
}, path_1, v));
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export function OntologyAnnotation_fromJsonString(s) {
|
|
209
|
-
return fromJsonString(uncurry2(OntologyAnnotation_decoder(ConverterOptions_$ctor())), s);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export function OntologyAnnotation_toJsonString(oa) {
|
|
213
|
-
return toString(2, OntologyAnnotation_encoder(ConverterOptions_$ctor(), oa));
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* exports in json-ld format
|
|
218
|
-
*/
|
|
219
|
-
export function OntologyAnnotation_toStringLD(oa) {
|
|
220
|
-
let returnVal;
|
|
221
|
-
return toString(2, OntologyAnnotation_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), oa));
|
|
222
|
-
}
|
|
223
|
-
|