@nfdi4plants/arctrl 1.0.7 → 1.2.0
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 +47 -11
- package/Contract/Contract.js +3 -3
- package/Contracts/Contracts.ArcTypes.js +30 -18
- package/Contracts/Contracts.Git.js +4 -4
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +8 -8
- package/FileSystem/Path.js +2 -2
- package/FileSystemTree.js +1 -1
- package/ISA/ISA/ArcTypes/ArcTable.js +23 -31
- package/ISA/ISA/ArcTypes/ArcTableAux.js +27 -16
- package/ISA/ISA/ArcTypes/ArcTables.js +11 -11
- package/ISA/ISA/ArcTypes/ArcTypes.js +118 -83
- package/ISA/ISA/ArcTypes/CompositeCell.js +4 -4
- package/ISA/ISA/ArcTypes/CompositeColumn.js +8 -7
- package/ISA/ISA/ArcTypes/CompositeHeader.js +5 -5
- package/ISA/ISA/ArcTypes/CompositeRow.js +1 -1
- package/ISA/ISA/Builder/Types.js +5 -5
- package/ISA/ISA/Fable.js +6 -6
- package/ISA/ISA/Helper.js +15 -13
- package/ISA/ISA/Identifier.js +1 -1
- package/ISA/ISA/JsonTypes/Assay.js +8 -8
- package/ISA/ISA/JsonTypes/AssayMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/ColumnIndex.js +5 -5
- package/ISA/ISA/JsonTypes/Comment.js +3 -3
- package/ISA/ISA/JsonTypes/CommentList.js +4 -4
- package/ISA/ISA/JsonTypes/Component.js +4 -4
- package/ISA/ISA/JsonTypes/Data.js +4 -4
- package/ISA/ISA/JsonTypes/DataFile.js +2 -2
- package/ISA/ISA/JsonTypes/Factor.js +6 -6
- package/ISA/ISA/JsonTypes/FactorValue.js +5 -5
- package/ISA/ISA/JsonTypes/Investigation.js +6 -6
- package/ISA/ISA/JsonTypes/Material.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +3 -3
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialType.js +2 -2
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +6 -6
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +6 -6
- package/ISA/ISA/JsonTypes/Person.js +23 -8
- package/ISA/ISA/JsonTypes/Process.js +13 -13
- package/ISA/ISA/JsonTypes/ProcessInput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessOutput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessSequence.js +6 -6
- package/ISA/ISA/JsonTypes/Protocol.js +6 -6
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +3 -3
- package/ISA/ISA/JsonTypes/Publication.js +6 -6
- package/ISA/ISA/JsonTypes/Sample.js +5 -5
- package/ISA/ISA/JsonTypes/Source.js +5 -5
- package/ISA/ISA/JsonTypes/Study.js +8 -8
- package/ISA/ISA/JsonTypes/StudyMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/Value.js +22 -29
- package/ISA/ISA/Regex.js +3 -3
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +157 -65
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +78 -49
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +136 -24
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +183 -21
- package/ISA/ISA.Json/ArcTypes/CellTable.js +40 -0
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +34 -23
- package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +18 -46
- package/ISA/ISA.Json/ArcTypes/IOType.js +11 -13
- package/ISA/ISA.Json/ArcTypes/OATable.js +42 -0
- package/ISA/ISA.Json/Assay.js +71 -47
- package/ISA/ISA.Json/Comment.js +31 -35
- package/ISA/ISA.Json/ConverterOptions.js +19 -1
- package/ISA/ISA.Json/Data.js +119 -137
- package/ISA/ISA.Json/Decode.js +51 -36
- package/ISA/ISA.Json/Factor.js +90 -90
- package/ISA/ISA.Json/GEncode.js +31 -6
- package/ISA/ISA.Json/Investigation.js +54 -79
- package/ISA/ISA.Json/Material.js +103 -104
- package/ISA/ISA.Json/Ontology.js +99 -92
- package/ISA/ISA.Json/Person.js +47 -65
- package/ISA/ISA.Json/Process.js +144 -130
- package/ISA/ISA.Json/Protocol.js +144 -105
- package/ISA/ISA.Json/Publication.js +34 -40
- package/ISA/ISA.Json/StringTable.js +44 -0
- package/ISA/ISA.Json/Study.js +70 -96
- package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +34 -0
- package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_component_context.js +24 -0
- package/ISA/ISA.Json/context/rocrate/isa_data_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_investigation_context.js +33 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +22 -0
- package/ISA/ISA.Json/context/rocrate/isa_person_context.js +31 -0
- package/ISA/ISA.Json/context/rocrate/isa_process_context.js +31 -0
- package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +30 -0
- package/ISA/ISA.Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +27 -0
- package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_source_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_study_context.js +42 -0
- package/ISA/ISA.Json/context/rocrate/rocrate_context.js +25 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +56 -43
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +3 -3
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +11 -11
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +5 -5
- package/ISA/ISA.Spreadsheet/ArcAssay.js +100 -88
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +12 -12
- package/ISA/ISA.Spreadsheet/ArcStudy.js +36 -24
- package/ISA/ISA.Spreadsheet/CollectionAux.js +8 -8
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +31 -20
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +28 -23
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +8 -8
- package/README.md +20 -3
- package/SemVer.js +6 -6
- package/Templates/Template.Json.js +43 -36
- package/Templates/Template.Spreadsheet.js +12 -12
- package/Templates/Template.Web.js +4 -4
- package/Templates/Template.js +7 -7
- package/Templates/Templates.js +7 -7
- package/WebRequest/WebRequest.Node.js +15 -0
- package/WebRequest/WebRequest.js +10 -29
- 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.2 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs.js +14 -14
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/DSL.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Expression.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Transform.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Types.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsAddress.fs +22 -8
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsAddress.fs.js +24 -14
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsRow.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorkbook.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorksheet.fs +12 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorksheet.fs.js +21 -17
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs.js +4 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/SheetBuilder.fs.js +8 -8
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
- 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.13.0}/Array.d.ts +4 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.js +124 -86
- package/fable_modules/fable-library-js.4.13.0/CHANGELOG.md +29 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.d.ts +0 -17
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.js +0 -43
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.js +3 -2
- package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.js +27 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.js +7 -7
- package/fable_modules/fable-library-js.4.13.0/Result.d.ts +37 -0
- package/fable_modules/fable-library-js.4.13.0/Result.js +165 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.js +2 -2
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.d.ts +1 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.js +8 -5
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.d.ts +15 -7
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.js +46 -36
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.d.ts +9 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.js +60 -8
- package/fable_modules/fable-library-js.4.13.0/big.d.ts +338 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/package.json +4 -3
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- 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/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/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Operators.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Transform.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Types.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsSpreadsheet.fableproj +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/README.md +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.js +0 -0
package/ISA/ISA.Json/Factor.js
CHANGED
|
@@ -1,71 +1,73 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
2
2
|
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontology.js";
|
|
3
|
-
import { object
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { array, object, string, float, int } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
4
|
+
import { FSharpResult$2 } from "../../fable_modules/fable-library-js.4.13.0/Result.js";
|
|
5
|
+
import { Value } from "../ISA/JsonTypes/Value.js";
|
|
6
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
7
|
+
import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions__get_IncludeContext, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID, ConverterOptions_$ctor } from "./ConverterOptions.js";
|
|
8
|
+
import { replace, printf, toText } from "../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
9
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
10
10
|
import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
|
|
11
|
-
import { choose } from "../../fable_modules/fable-library.4.
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
11
|
+
import { ofArray, choose } from "../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
12
|
+
import { equals } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
13
|
+
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
14
|
+
import { tryIncludeArray, tryInclude } from "./GEncode.js";
|
|
15
|
+
import { list as list_1 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
|
|
14
16
|
import { decoder as decoder_1, encoder } from "./Comment.js";
|
|
17
|
+
import { context_jsonvalue } from "./context/rocrate/isa_factor_context.js";
|
|
18
|
+
import { uri } from "./Decode.js";
|
|
15
19
|
import { Factor } from "../ISA/JsonTypes/Factor.js";
|
|
20
|
+
import { context_jsonvalue as context_jsonvalue_1 } from "./context/rocrate/isa_factor_value_context.js";
|
|
16
21
|
import { FactorValue } from "../ISA/JsonTypes/FactorValue.js";
|
|
17
22
|
|
|
18
23
|
export function Value_encoder(options, value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return value.fields[0];
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
else if (value.tag === 0) {
|
|
24
|
+
switch (value.tag) {
|
|
25
|
+
case 1:
|
|
26
|
+
return new Json(7, [value.fields[0] >>> 0]);
|
|
27
|
+
case 3:
|
|
28
|
+
return new Json(0, [value.fields[0]]);
|
|
29
|
+
case 0:
|
|
27
30
|
return OntologyAnnotation_encoder(options, value.fields[0]);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return value.fields[0];
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return nil;
|
|
31
|
+
default:
|
|
32
|
+
return new Json(2, [value.fields[0]]);
|
|
35
33
|
}
|
|
36
34
|
}
|
|
37
35
|
|
|
38
|
-
export function Value_decoder(options
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
export function Value_decoder(options) {
|
|
37
|
+
return {
|
|
38
|
+
Decode(s, json) {
|
|
39
|
+
const matchValue = int.Decode(s, json);
|
|
40
|
+
if (matchValue.tag === 1) {
|
|
41
|
+
const matchValue_1 = float.Decode(s, json);
|
|
42
|
+
if (matchValue_1.tag === 1) {
|
|
43
|
+
const matchValue_2 = OntologyAnnotation_decoder(options).Decode(s, json);
|
|
44
|
+
if (matchValue_2.tag === 1) {
|
|
45
|
+
const matchValue_3 = string.Decode(s, json);
|
|
46
|
+
return (matchValue_3.tag === 1) ? (new FSharpResult$2(1, [matchValue_3.fields[0]])) : (new FSharpResult$2(0, [new Value(3, [matchValue_3.fields[0]])]));
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
return new FSharpResult$2(0, [new Value(0, [matchValue_2.fields[0]])]);
|
|
50
|
+
}
|
|
48
51
|
}
|
|
49
52
|
else {
|
|
50
|
-
return new FSharpResult$2(0, [new Value(
|
|
53
|
+
return new FSharpResult$2(0, [new Value(2, [matchValue_1.fields[0]])]);
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
56
|
else {
|
|
54
|
-
return new FSharpResult$2(0, [new Value(
|
|
57
|
+
return new FSharpResult$2(0, [new Value(1, [matchValue.fields[0]])]);
|
|
55
58
|
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return new FSharpResult$2(0, [new Value(2, [matchValue_1.fields[0]])]);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
return new FSharpResult$2(0, [new Value(1, [matchValue.fields[0]])]);
|
|
63
|
-
}
|
|
59
|
+
},
|
|
60
|
+
};
|
|
64
61
|
}
|
|
65
62
|
|
|
66
63
|
export function Value_fromJsonString(s) {
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
const matchValue = fromString(Value_decoder(ConverterOptions_$ctor()), s);
|
|
65
|
+
if (matchValue.tag === 1) {
|
|
66
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
return matchValue.fields[0];
|
|
70
|
+
}
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
export function Value_toJsonString(v) {
|
|
@@ -89,40 +91,32 @@ export function Factor_genID(f) {
|
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
export function Factor_encoder(options, oa) {
|
|
92
|
-
return
|
|
94
|
+
return new Json(5, [choose((tupledArg) => {
|
|
93
95
|
const v = tupledArg[1];
|
|
94
|
-
if (equals(v,
|
|
96
|
+
if (equals(v, new Json(3, []))) {
|
|
95
97
|
return void 0;
|
|
96
98
|
}
|
|
97
99
|
else {
|
|
98
100
|
return [tupledArg[0], v];
|
|
99
101
|
}
|
|
100
|
-
}, toList(delay(() =>
|
|
101
|
-
let value, s;
|
|
102
|
-
return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = Factor_genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
|
|
103
|
-
let s_1;
|
|
104
|
-
const value_3 = value_2;
|
|
105
|
-
return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
|
|
106
|
-
}, oa["ID"])), delay(() => {
|
|
107
|
-
let value_5, s_2;
|
|
108
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "Factor", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("factorName", (value_7) => {
|
|
109
|
-
let s_3;
|
|
110
|
-
const value_8 = value_7;
|
|
111
|
-
return (typeof value_8 === "string") ? ((s_3 = value_8, s_3)) : nil;
|
|
112
|
-
}, oa["Name"])), delay(() => append(singleton(tryInclude("factorType", (oa_1) => OntologyAnnotation_encoder(options, oa_1), oa["FactorType"])), delay(() => singleton(tryInclude("comments", (comment) => encoder(options, comment), oa["Comments"]))))))));
|
|
113
|
-
}));
|
|
114
|
-
}))));
|
|
102
|
+
}, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [Factor_genID(oa)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), oa.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", list_1(ofArray([new Json(0, ["Factor"]), new Json(0, ["ArcFactor"])]))]) : empty(), delay(() => append(singleton(tryInclude("factorName", (value_5) => (new Json(0, [value_5])), oa.Name)), delay(() => append(singleton(tryInclude("factorType", (oa_1) => OntologyAnnotation_encoder(options, oa_1), oa.FactorType)), delay(() => append(singleton(tryIncludeArray("comments", (comment) => encoder(options, comment), oa.Comments)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue]) : empty()))))))))))))))]);
|
|
115
103
|
}
|
|
116
104
|
|
|
117
105
|
export function Factor_decoder(options) {
|
|
118
|
-
return (
|
|
119
|
-
let objectArg, objectArg_1, arg_5, objectArg_2, arg_7,
|
|
120
|
-
return new Factor((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("factorName", string)), (arg_5 = OntologyAnnotation_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("factorType",
|
|
121
|
-
}
|
|
106
|
+
return object((get$) => {
|
|
107
|
+
let objectArg, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3;
|
|
108
|
+
return new Factor((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("factorName", string)), (arg_5 = OntologyAnnotation_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("factorType", arg_5))), (arg_7 = array(decoder_1(options)), (objectArg_3 = get$.Optional, objectArg_3.Field("comments", arg_7))));
|
|
109
|
+
});
|
|
122
110
|
}
|
|
123
111
|
|
|
124
112
|
export function Factor_fromJsonString(s) {
|
|
125
|
-
|
|
113
|
+
const matchValue = fromString(Factor_decoder(ConverterOptions_$ctor()), s);
|
|
114
|
+
if (matchValue.tag === 1) {
|
|
115
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
return matchValue.fields[0];
|
|
119
|
+
}
|
|
126
120
|
}
|
|
127
121
|
|
|
128
122
|
export function Factor_toJsonString(f) {
|
|
@@ -132,11 +126,16 @@ export function Factor_toJsonString(f) {
|
|
|
132
126
|
/**
|
|
133
127
|
* exports in json-ld format
|
|
134
128
|
*/
|
|
135
|
-
export function
|
|
129
|
+
export function Factor_toJsonldString(f) {
|
|
136
130
|
let returnVal;
|
|
137
131
|
return toString(2, Factor_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), f));
|
|
138
132
|
}
|
|
139
133
|
|
|
134
|
+
export function Factor_toJsonldStringWithContext(a) {
|
|
135
|
+
let returnVal;
|
|
136
|
+
return toString(2, Factor_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a));
|
|
137
|
+
}
|
|
138
|
+
|
|
140
139
|
export function FactorValue_genID(fv) {
|
|
141
140
|
const matchValue = fv.ID;
|
|
142
141
|
if (matchValue == null) {
|
|
@@ -148,36 +147,32 @@ export function FactorValue_genID(fv) {
|
|
|
148
147
|
}
|
|
149
148
|
|
|
150
149
|
export function FactorValue_encoder(options, oa) {
|
|
151
|
-
return
|
|
150
|
+
return new Json(5, [choose((tupledArg) => {
|
|
152
151
|
const v = tupledArg[1];
|
|
153
|
-
if (equals(v,
|
|
152
|
+
if (equals(v, new Json(3, []))) {
|
|
154
153
|
return void 0;
|
|
155
154
|
}
|
|
156
155
|
else {
|
|
157
156
|
return [tupledArg[0], v];
|
|
158
157
|
}
|
|
159
|
-
}, toList(delay(() =>
|
|
160
|
-
let value, s;
|
|
161
|
-
return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = FactorValue_genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
|
|
162
|
-
let s_1;
|
|
163
|
-
const value_3 = value_2;
|
|
164
|
-
return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
|
|
165
|
-
}, oa["ID"])), delay(() => {
|
|
166
|
-
let value_5, s_2;
|
|
167
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "FactorValue", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("category", (oa_1) => Factor_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"]))))))));
|
|
168
|
-
}));
|
|
169
|
-
}))));
|
|
158
|
+
}, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [FactorValue_genID(oa)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), oa.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", list_1(ofArray([new Json(0, ["FactorValue"]), new Json(0, ["ArcFactorValue"])]))]) : empty(), delay(() => append(singleton(tryInclude("category", (oa_1) => Factor_encoder(options, oa_1), oa.Category)), delay(() => append(singleton(tryInclude("value", (value_5) => Value_encoder(options, value_5), oa.Value)), delay(() => append(singleton(tryInclude("unit", (oa_2) => OntologyAnnotation_encoder(options, oa_2), oa.Unit)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue_1]) : empty()))))))))))))))]);
|
|
170
159
|
}
|
|
171
160
|
|
|
172
161
|
export function FactorValue_decoder(options) {
|
|
173
|
-
return (
|
|
174
|
-
let objectArg, arg_3, objectArg_1, objectArg_2, arg_7, objectArg_3;
|
|
175
|
-
return new FactorValue((objectArg = get$.Optional, objectArg.Field("@id", uri)), (arg_3 = Factor_decoder(options), (objectArg_1 = get$.Optional, objectArg_1.Field("category",
|
|
176
|
-
}
|
|
162
|
+
return object((get$) => {
|
|
163
|
+
let objectArg, arg_3, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3;
|
|
164
|
+
return new FactorValue((objectArg = get$.Optional, objectArg.Field("@id", uri)), (arg_3 = Factor_decoder(options), (objectArg_1 = get$.Optional, objectArg_1.Field("category", arg_3))), (arg_5 = Value_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("value", arg_5))), (arg_7 = OntologyAnnotation_decoder(options), (objectArg_3 = get$.Optional, objectArg_3.Field("unit", arg_7))));
|
|
165
|
+
});
|
|
177
166
|
}
|
|
178
167
|
|
|
179
168
|
export function FactorValue_fromJsonString(s) {
|
|
180
|
-
|
|
169
|
+
const matchValue = fromString(FactorValue_decoder(ConverterOptions_$ctor()), s);
|
|
170
|
+
if (matchValue.tag === 1) {
|
|
171
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
return matchValue.fields[0];
|
|
175
|
+
}
|
|
181
176
|
}
|
|
182
177
|
|
|
183
178
|
export function FactorValue_toJsonString(f) {
|
|
@@ -187,8 +182,13 @@ export function FactorValue_toJsonString(f) {
|
|
|
187
182
|
/**
|
|
188
183
|
* exports in json-ld format
|
|
189
184
|
*/
|
|
190
|
-
export function
|
|
185
|
+
export function FactorValue_toJsonldString(f) {
|
|
191
186
|
let returnVal;
|
|
192
187
|
return toString(2, FactorValue_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), f));
|
|
193
188
|
}
|
|
194
189
|
|
|
190
|
+
export function FactorValue_toJsonldStringWithContext(a) {
|
|
191
|
+
let returnVal;
|
|
192
|
+
return toString(2, FactorValue_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a));
|
|
193
|
+
}
|
|
194
|
+
|
package/ISA/ISA.Json/GEncode.js
CHANGED
|
@@ -1,15 +1,40 @@
|
|
|
1
|
-
import { value as value_1 } from "../../fable_modules/fable-library.4.
|
|
2
|
-
import { isIterable } from "../../fable_modules/fable-library.4.
|
|
3
|
-
import {
|
|
4
|
-
import { map } from "../../fable_modules/fable-library.4.
|
|
1
|
+
import { value as value_1 } from "../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
2
|
+
import { isIterable } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
3
|
+
import { list as list_1, seq } from "../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
|
|
4
|
+
import { map } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
5
|
+
import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
6
|
+
import { map as map_1 } from "../../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
7
|
+
import { map as map_2 } from "../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
5
8
|
|
|
6
9
|
/**
|
|
7
10
|
* Try to encode the given object using the given encoder, or return Encode.nil if the object is null
|
|
8
11
|
*
|
|
9
12
|
* If the object is a sequence, encode each element using the given encoder and return the resulting sequence
|
|
10
13
|
*/
|
|
11
|
-
export function
|
|
14
|
+
export function tryIncludeObj(name, encoder, value) {
|
|
12
15
|
let v, o;
|
|
13
|
-
return [name, (value != null) ? (isIterable(value_1(value)) ? ((v = value_1(value), seq(map(encoder, v)))) : ((o = value_1(value), encoder(o)))) :
|
|
16
|
+
return [name, (value != null) ? (isIterable(value_1(value)) ? ((v = value_1(value), seq(map(encoder, v)))) : ((o = value_1(value), encoder(o)))) : (new Json(3, []))];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Try to encode the given object using the given encoder, or return Encode.nil if the object is null
|
|
21
|
+
*/
|
|
22
|
+
export function tryInclude(name, encoder, value) {
|
|
23
|
+
return [name, (value != null) ? encoder(value_1(value)) : (new Json(3, []))];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Try to encode the given object using the given encoder, or return Encode.nil if the object is null
|
|
28
|
+
*/
|
|
29
|
+
export function tryIncludeSeq(name, encoder, value) {
|
|
30
|
+
return [name, (value != null) ? seq(map(encoder, value_1(value))) : (new Json(3, []))];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function tryIncludeArray(name, encoder, value) {
|
|
34
|
+
return [name, (value != null) ? (new Json(6, [map_1(encoder, value)])) : (new Json(3, []))];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function tryIncludeList(name, encoder, value) {
|
|
38
|
+
return [name, (value != null) ? list_1(map_2(encoder, value)) : (new Json(3, []))];
|
|
14
39
|
}
|
|
15
40
|
|
|
@@ -1,103 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { empty
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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";
|
|
1
|
+
import { empty as empty_1, ofArray, choose } from "../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
2
|
+
import { equals } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
3
|
+
import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
4
|
+
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
5
|
+
import { ConverterOptions__set_IsRoCrate_Z1FBCCD16, ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeContext, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
|
|
6
|
+
import { tryIncludeList, tryInclude } from "./GEncode.js";
|
|
9
7
|
import { OntologySourceReference_decoder, OntologySourceReference_encoder } from "./Ontology.js";
|
|
10
|
-
import { decoder as
|
|
11
|
-
import { decoder as
|
|
8
|
+
import { decoder as decoder_2, encoder as encoder_1 } from "./Publication.js";
|
|
9
|
+
import { decoder as decoder_3, encoder as encoder_2 } from "./Person.js";
|
|
12
10
|
import { Study_decoder, Study_encoder } from "./Study.js";
|
|
13
|
-
import { decoder as
|
|
14
|
-
import {
|
|
11
|
+
import { decoder as decoder_4, encoder as encoder_3 } from "./Comment.js";
|
|
12
|
+
import { context_jsonvalue } from "./context/rocrate/isa_investigation_context.js";
|
|
13
|
+
import { context_jsonvalue as context_jsonvalue_1, conformsTo_jsonvalue } from "./context/rocrate/rocrate_context.js";
|
|
14
|
+
import { object } from "./Decode.js";
|
|
15
|
+
import { list as list_1, string } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
15
16
|
import { Investigation } from "../ISA/JsonTypes/Investigation.js";
|
|
16
|
-
import {
|
|
17
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
18
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
19
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
17
20
|
|
|
18
21
|
export function genID(i) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return "#EmptyStudy";
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
return "#Study_" + replace(matchValue_3, " ", "_");
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return "#Study_" + replace(matchValue_2, " ", "_");
|
|
35
|
-
}
|
|
22
|
+
return "./";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function encoder(options, oa) {
|
|
26
|
+
return new Json(5, [choose((tupledArg) => {
|
|
27
|
+
const v = tupledArg[1];
|
|
28
|
+
if (equals(v, new Json(3, []))) {
|
|
29
|
+
return void 0;
|
|
36
30
|
}
|
|
37
31
|
else {
|
|
38
|
-
return
|
|
32
|
+
return [tupledArg[0], v];
|
|
39
33
|
}
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
return URIModule_toString(matchValue);
|
|
43
|
-
}
|
|
34
|
+
}, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [genID(oa)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), oa.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", new Json(0, ["Investigation"])]) : empty(), delay(() => append(singleton(tryInclude("filename", (value_4) => (new Json(0, [value_4])), oa.FileName)), delay(() => append(singleton(tryInclude("identifier", (value_6) => (new Json(0, [value_6])), oa.Identifier)), delay(() => append(singleton(tryInclude("title", (value_8) => (new Json(0, [value_8])), oa.Title)), delay(() => append(singleton(tryInclude("description", (value_10) => (new Json(0, [value_10])), oa.Description)), delay(() => append(singleton(tryInclude("submissionDate", (value_12) => (new Json(0, [value_12])), oa.SubmissionDate)), delay(() => append(singleton(tryInclude("publicReleaseDate", (value_14) => (new Json(0, [value_14])), oa.PublicReleaseDate)), delay(() => append(singleton(tryIncludeList("ontologySourceReferences", (osr) => OntologySourceReference_encoder(options, osr), oa.OntologySourceReferences)), delay(() => append(singleton(tryIncludeList("publications", (oa_1) => encoder_1(options, oa_1), oa.Publications)), delay(() => append(singleton(tryIncludeList("people", (oa_2) => encoder_2(options, oa_2), oa.Contacts)), delay(() => append(singleton(tryIncludeList("studies", (oa_3) => Study_encoder(options, oa_3), oa.Studies)), delay(() => append(singleton(tryIncludeList("comments", (comment) => encoder_3(options, comment), oa.Comments)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue]) : empty()))))))))))))))))))))))))))))))]);
|
|
44
35
|
}
|
|
45
36
|
|
|
46
|
-
export function
|
|
47
|
-
return
|
|
37
|
+
export function encodeRoCrate(options, oa) {
|
|
38
|
+
return new Json(5, [choose((tupledArg) => {
|
|
48
39
|
const v = tupledArg[1];
|
|
49
|
-
if (equals(v,
|
|
40
|
+
if (equals(v, new Json(3, []))) {
|
|
50
41
|
return void 0;
|
|
51
42
|
}
|
|
52
43
|
else {
|
|
53
44
|
return [tupledArg[0], v];
|
|
54
45
|
}
|
|
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
|
-
}))));
|
|
46
|
+
}, toList(delay(() => append(singleton(tryInclude("@type", (value) => (new Json(0, [value])), "CreativeWork")), delay(() => append(singleton(tryInclude("@id", (value_2) => (new Json(0, [value_2])), "ro-crate-metadata.json")), delay(() => append(singleton(tryInclude("about", (oa_1) => encoder(options, oa_1), oa)), delay(() => append(singleton(["conformsTo", conformsTo_jsonvalue]), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue_1]) : empty()))))))))))))]);
|
|
90
47
|
}
|
|
91
48
|
|
|
49
|
+
export const allowedFields = ofArray(["@id", "filename", "identifier", "title", "description", "submissionDate", "publicReleaseDate", "ontologySourceReferences", "publications", "people", "studies", "comments", "@type", "@context"]);
|
|
50
|
+
|
|
92
51
|
export function decoder(options) {
|
|
93
|
-
return (
|
|
94
|
-
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, arg_15,
|
|
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 = (
|
|
96
|
-
}
|
|
52
|
+
return object(allowedFields, (get$) => {
|
|
53
|
+
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10, arg_23, objectArg_11;
|
|
54
|
+
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 = list_1(OntologySourceReference_decoder(options)), (objectArg_7 = get$.Optional, objectArg_7.Field("ontologySourceReferences", arg_15))), (arg_17 = list_1(decoder_2(options)), (objectArg_8 = get$.Optional, objectArg_8.Field("publications", arg_17))), (arg_19 = list_1(decoder_3(options)), (objectArg_9 = get$.Optional, objectArg_9.Field("people", arg_19))), (arg_21 = list_1(Study_decoder(options)), (objectArg_10 = get$.Optional, objectArg_10.Field("studies", arg_21))), (arg_23 = list_1(decoder_4(options)), (objectArg_11 = get$.Optional, objectArg_11.Field("comments", arg_23))), empty_1());
|
|
55
|
+
});
|
|
97
56
|
}
|
|
98
57
|
|
|
99
58
|
export function fromJsonString(s) {
|
|
100
|
-
|
|
59
|
+
const matchValue = fromString(decoder(ConverterOptions_$ctor()), s);
|
|
60
|
+
if (matchValue.tag === 1) {
|
|
61
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
return matchValue.fields[0];
|
|
65
|
+
}
|
|
101
66
|
}
|
|
102
67
|
|
|
103
68
|
export function toJsonString(p) {
|
|
@@ -107,8 +72,18 @@ export function toJsonString(p) {
|
|
|
107
72
|
/**
|
|
108
73
|
* exports in json-ld format
|
|
109
74
|
*/
|
|
110
|
-
export function
|
|
75
|
+
export function toJsonldString(i) {
|
|
111
76
|
let returnVal;
|
|
112
77
|
return toString(2, encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), i));
|
|
113
78
|
}
|
|
114
79
|
|
|
80
|
+
export function toJsonldStringWithContext(i) {
|
|
81
|
+
let returnVal;
|
|
82
|
+
return toString(2, encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), i));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function toRoCrateString(i) {
|
|
86
|
+
let returnVal;
|
|
87
|
+
return toString(2, encodeRoCrate((returnVal = ConverterOptions_$ctor(), ((((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IsRoCrate_Z1FBCCD16(returnVal, true)), returnVal)), i));
|
|
88
|
+
}
|
|
89
|
+
|