@nfdi4plants/arctrl 3.0.0-beta.9 → 3.0.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/README.md +30 -3
- package/dist/ts/index.d.ts +54 -16
- package/dist/ts/index.d.ts.map +1 -1
- package/dist/ts/index.js +56 -18
- package/dist/ts/ts/ARC.d.ts +26 -9
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +148 -63
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +62 -0
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -0
- package/dist/ts/ts/CWL/CWLProcessingUnit.js +250 -0
- package/dist/ts/ts/CWL/CWLTypes.d.ts +148 -0
- package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -0
- package/dist/ts/ts/CWL/CWLTypes.js +384 -0
- package/dist/ts/ts/CWL/Decode.d.ts +210 -0
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Decode.js +2617 -0
- package/dist/ts/ts/CWL/Encode.d.ts +96 -0
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Encode.js +1509 -0
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +50 -0
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -0
- package/dist/ts/ts/CWL/ExpressionToolDescription.js +152 -0
- package/dist/ts/ts/CWL/HashHelpers.d.ts +9 -0
- package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -0
- package/dist/ts/ts/CWL/HashHelpers.js +35 -0
- package/dist/ts/ts/CWL/Inputs.d.ts +31 -0
- package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Inputs.js +86 -0
- package/dist/ts/ts/CWL/OperationDescription.d.ts +46 -0
- package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -0
- package/dist/ts/ts/CWL/OperationDescription.js +133 -0
- package/dist/ts/ts/CWL/Outputs.d.ts +44 -0
- package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Outputs.js +143 -0
- package/dist/ts/ts/CWL/ParameterReference.d.ts +23 -0
- package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -0
- package/dist/ts/ts/CWL/ParameterReference.js +60 -0
- package/dist/ts/ts/CWL/Requirements.d.ts +206 -0
- package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Requirements.js +384 -0
- package/dist/ts/ts/CWL/ToolDescription.d.ts +50 -0
- package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -0
- package/dist/ts/ts/CWL/ToolDescription.js +152 -0
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts +50 -0
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -0
- package/dist/ts/ts/CWL/WorkflowDescription.js +142 -0
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts +160 -0
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -0
- package/dist/ts/ts/CWL/WorkflowSteps.js +317 -0
- package/dist/ts/ts/CWLRunResolver.d.ts +45 -0
- package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -0
- package/dist/ts/ts/CWLRunResolver.js +181 -0
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +27 -9
- package/dist/ts/ts/Contract/ArcRun.d.ts +6 -0
- package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcRun.js +131 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts +3 -0
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcWorkflow.js +70 -4
- package/dist/ts/ts/Contract/Datamap.d.ts +25 -25
- package/dist/ts/ts/Contract/Datamap.js +34 -34
- package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/ContractIO.js +3 -1
- package/dist/ts/ts/Conversion/Assay.d.ts +13 -0
- package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Assay.js +69 -0
- package/dist/ts/ts/Conversion/Basic.d.ts +105 -0
- package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Basic.js +452 -0
- package/dist/ts/ts/Conversion/ColumnIndex.d.ts +11 -0
- package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/ColumnIndex.js +71 -0
- package/dist/ts/ts/Conversion/Datamap.d.ts +11 -0
- package/dist/ts/ts/Conversion/Datamap.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Datamap.js +21 -0
- package/dist/ts/ts/Conversion/DateTime.d.ts +4 -0
- package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/DateTime.js +23 -0
- package/dist/ts/ts/Conversion/Investigation.d.ts +12 -0
- package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Investigation.js +79 -0
- package/dist/ts/ts/Conversion/Person.d.ts +16 -0
- package/dist/ts/ts/Conversion/Person.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Person.js +100 -0
- package/dist/ts/ts/Conversion/Process.d.ts +84 -0
- package/dist/ts/ts/Conversion/Process.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Process.js +455 -0
- package/dist/ts/ts/Conversion/Run.d.ts +35 -0
- package/dist/ts/ts/Conversion/Run.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Run.js +254 -0
- package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts +16 -0
- package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/ScholarlyArticle.js +116 -0
- package/dist/ts/ts/Conversion/Study.d.ts +12 -0
- package/dist/ts/ts/Conversion/Study.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Study.js +51 -0
- package/dist/ts/ts/Conversion/Table.d.ts +45 -0
- package/dist/ts/ts/Conversion/Table.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Table.js +203 -0
- package/dist/ts/ts/Conversion/Workflow.d.ts +91 -0
- package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Workflow.js +455 -0
- package/dist/ts/ts/Conversion.d.ts +25 -276
- package/dist/ts/ts/Conversion.d.ts.map +1 -1
- package/dist/ts/ts/Conversion.js +64 -1477
- package/dist/ts/ts/Core/ArcTypes.d.ts +69 -59
- package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
- package/dist/ts/ts/Core/ArcTypes.js +222 -142
- package/dist/ts/ts/Core/{DataMap.d.ts → Datamap.d.ts} +24 -24
- package/dist/ts/ts/Core/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
- package/dist/ts/ts/Core/{DataMap.js → Datamap.js} +36 -36
- package/dist/ts/ts/Core/Helper/Identifier.d.ts +24 -0
- package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Identifier.js +35 -2
- package/dist/ts/ts/Core/Table/ArcTable.d.ts +8 -8
- package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +20 -20
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +4 -4
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -27
- package/dist/ts/ts/FileSystem/Path.d.ts +22 -0
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +173 -3
- package/dist/ts/ts/Json/Assay.js +5 -5
- package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts.map +1 -1
- package/dist/ts/ts/Json/{DataMap/DataMap.d.ts → Datamap/Datamap.d.ts} +6 -6
- package/dist/ts/ts/Json/{DataMap/DataMap.d.ts.map → Datamap/Datamap.d.ts.map} +1 -1
- package/dist/ts/ts/Json/{DataMap/DataMap.js → Datamap/Datamap.js} +2 -2
- package/dist/ts/ts/Json/ROCrate/LDContext.d.ts.map +1 -1
- package/dist/ts/ts/Json/ROCrate/LDContext.js +21 -11
- package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -0
- package/dist/ts/ts/Json/ROCrate/LDNode.d.ts.map +1 -1
- package/dist/ts/ts/Json/ROCrate/LDNode.js +18 -7
- package/dist/ts/ts/Json/Run.js +5 -5
- package/dist/ts/ts/Json/Study.js +5 -5
- package/dist/ts/ts/Json/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Json/Workflow.js +10 -11
- package/dist/ts/ts/Json.d.ts +3 -5
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +4 -10
- package/dist/ts/ts/JsonIO/Datamap.d.ts +4 -4
- package/dist/ts/ts/JsonIO/Datamap.js +6 -6
- package/dist/ts/ts/JsonIO/Investigation.d.ts +0 -6
- package/dist/ts/ts/JsonIO/Investigation.d.ts.map +1 -1
- package/dist/ts/ts/JsonIO/Investigation.js +2 -21
- package/dist/ts/ts/License.js +1 -1
- package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDContext.js +35 -31
- package/dist/ts/ts/ROCrate/LDObject.d.ts +2 -2
- package/dist/ts/ts/ROCrate/LDObject.js +2 -2
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts +63 -0
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +361 -0
- package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts +39 -0
- package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +219 -0
- package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts +43 -0
- package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +224 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.js +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.d.ts +34 -22
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.js +59 -2
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.d.ts +10 -4
- package/dist/ts/ts/ROCrate/LDTypes/File.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.js +34 -1
- package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts +59 -0
- package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +344 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.d.ts +2 -0
- package/dist/ts/ts/ROCrate/LDTypes/LabProcess.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.js +31 -5
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.d.ts +6 -2
- package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.js +66 -15
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.d.ts +35 -11
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.js +191 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts +46 -0
- package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +247 -0
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts +12 -0
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +40 -0
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts +11 -0
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +46 -0
- package/dist/ts/ts/ROCrate/ROCrateContext.d.ts +2 -2
- package/dist/ts/ts/ROCrate/ROCrateContext.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/ROCrateContext.js +6 -6
- package/dist/ts/ts/ROCrateIO.d.ts +7 -3
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +82 -13
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +3 -3
- package/dist/ts/ts/Spreadsheet/ArcRun.js +2 -2
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +2 -2
- package/dist/ts/ts/Spreadsheet/Datamap.d.ts +8 -0
- package/dist/ts/ts/Spreadsheet/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMap.js → Datamap.js} +9 -9
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts → DatamapTable/DatamapColumn.d.ts} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts.map → DatamapTable/DatamapColumn.d.ts.map} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.js → DatamapTable/DatamapColumn.js} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts → DatamapTable/DatamapHeader.d.ts} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts.map → DatamapTable/DatamapHeader.d.ts.map} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts → DatamapTable/DatamapTable.d.ts} +5 -5
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts.map → DatamapTable/DatamapTable.d.ts.map} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.js → DatamapTable/DatamapTable.js} +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +4 -4
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +36 -0
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -0
- package/dist/ts/ts/WorkflowGraph/Adapters.js +94 -0
- package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts +37 -0
- package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts.map +1 -0
- package/dist/ts/ts/WorkflowGraph/BuildOptions.js +35 -0
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts +160 -0
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -0
- package/dist/ts/ts/WorkflowGraph/Builder.js +556 -0
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +182 -0
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -0
- package/dist/ts/ts/WorkflowGraph/GraphTypes.js +281 -0
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +27 -0
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -0
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +49 -0
- package/dist/ts/ts/Xlsx.d.ts +5 -5
- package/dist/ts/ts/Xlsx.js +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +5 -5
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -5
- package/dist/ts/ts/Yaml.d.ts +24 -0
- package/dist/ts/ts/Yaml.d.ts.map +1 -0
- package/dist/ts/ts/Yaml.js +56 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.1.0/DynObj.fs.js +109 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Encode.fs.js +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/FlowToBlock.fs.js +954 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Interop/JsInterop.fs.js +10 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Persil.fs.js +1 -1
- package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Reader.fs.js +208 -152
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Regex.fs.js +15 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/RegexActivePatterns.fs.js +14 -10
- package/package.json +1 -1
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +0 -1
- package/dist/ts/ts/ROCrate/Generic/File.d.ts.map +0 -1
- package/dist/ts/ts/ROCrate/Generic/LabProcess.d.ts.map +0 -1
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.d.ts.map +0 -1
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.d.ts.map +0 -1
- package/dist/ts/ts/Spreadsheet/DataMap.d.ts +0 -8
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +0 -10
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +0 -11
- /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts +0 -0
- /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.js +0 -0
- /package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.js → DatamapTable/DatamapHeader.js} +0 -0
- /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/DynamicObj.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/FableJS.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/HashCodes.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/PropertyHelper.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/ReflectionUtils.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Decode.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Preprocessing.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Writer.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/YAMLiciousTypes.fs.js +0 -0
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
2
|
+
import { value, unwrap, map, defaultArg, bind } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { LDComment } from '../ROCrate/LDTypes/Comment.js';
|
|
4
|
+
import { Comment$ } from '../Core/Comment.js';
|
|
5
|
+
import { LDRef, LDNode } from '../ROCrate/LDObject.js';
|
|
6
|
+
import { OntologyAnnotation } from '../Core/OntologyAnnotation.js';
|
|
7
|
+
import { Option_fromValueWithDefault, Option_fromSeq, ResizeArray_map } from '../Core/Helper/Collections.js';
|
|
8
|
+
import { LDDefinedTerm } from '../ROCrate/LDTypes/DefinedTerm.js';
|
|
9
|
+
import { LDPropertyValue } from '../ROCrate/LDTypes/PropertyValue.js';
|
|
10
|
+
import { Data } from '../Core/Data.js';
|
|
11
|
+
import { CompositeCell_Term, CompositeCell_Unitized, CompositeCell_FreeText, CompositeCell_Data } from '../Core/Table/CompositeCell.js';
|
|
12
|
+
import { toFail, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
13
|
+
import { CompositeHeader_Component, CompositeHeader_Parameter, CompositeHeader_Factor, CompositeHeader_Characteristic, CompositeHeader_Input, IOType_Source, IOType_Material, IOType_Sample, IOType_Data, IOType_FreeText, CompositeHeader_Output } from '../Core/Table/CompositeHeader.js';
|
|
14
|
+
import { DataFile__get_AsString, DataFile_fromString_Z721C83C5 } from '../Core/DataFile.js';
|
|
15
|
+
import { LDFile } from '../ROCrate/LDTypes/File.js';
|
|
16
|
+
import { LDDataset } from '../ROCrate/LDTypes/Dataset.js';
|
|
17
|
+
import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
18
|
+
import { combine } from '../FileSystem/Path.js';
|
|
19
|
+
import { DataContext__get_Explication, DataContext__get_Unit, DataContext__get_ObjectType, DataContext__get_GeneratedBy, DataContext__get_Description, DataContext__get_Label, DataContext_$ctor_Z780A8A2A } from '../Core/DataContext.js';
|
|
20
|
+
import { toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
21
|
+
import { LDSample } from '../ROCrate/LDTypes/Sample.js';
|
|
22
|
+
import { Value_Name, Value_Ontology } from '../Core/Value.js';
|
|
23
|
+
import { ActivePatterns_$007CRegex$007C_$007C } from '../Core/Helper/Regex.js';
|
|
24
|
+
|
|
25
|
+
class BaseTypes {
|
|
26
|
+
constructor() {
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function BaseTypes_$reflection() {
|
|
30
|
+
return class_type("ARCtrl.Conversion.BaseTypes", void 0, BaseTypes);
|
|
31
|
+
}
|
|
32
|
+
function BaseTypes_composeComment_Z13201A7E(comment) {
|
|
33
|
+
let name;
|
|
34
|
+
const matchValue = comment.Name;
|
|
35
|
+
if (matchValue == null) {
|
|
36
|
+
throw new Error("Comment must have a name");
|
|
37
|
+
} else {
|
|
38
|
+
name = value(matchValue);
|
|
39
|
+
}
|
|
40
|
+
return LDComment.create(name, void 0, unwrap(comment.Value));
|
|
41
|
+
}
|
|
42
|
+
function BaseTypes_decomposeComment_Z2F770004(comment, context) {
|
|
43
|
+
return new Comment$(LDComment.getNameAsString(comment, unwrap(context)), unwrap(LDComment.tryGetTextAsString(comment, unwrap(context))));
|
|
44
|
+
}
|
|
45
|
+
function BaseTypes_ontologyTermFromNameAndID_40457300(name, id) {
|
|
46
|
+
if (id == null) {
|
|
47
|
+
return OntologyAnnotation.create(unwrap(name));
|
|
48
|
+
} else {
|
|
49
|
+
const t = value(id);
|
|
50
|
+
return OntologyAnnotation.fromTermAnnotation(t, unwrap(name));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function BaseTypes_tryOntologyTermFromNameAndID_40457300(name, id) {
|
|
54
|
+
if (name == null && id == null) {
|
|
55
|
+
return void 0;
|
|
56
|
+
} else {
|
|
57
|
+
return BaseTypes_ontologyTermFromNameAndID_40457300(unwrap(name), unwrap(id));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function BaseTypes_composeDefinedTerm_ZDED3A0F(term) {
|
|
61
|
+
const tan = Option_fromValueWithDefault("", term.TermAccessionAndOntobeeUrlIfShort);
|
|
62
|
+
return LDDefinedTerm.create(term.NameText, void 0, unwrap(tan));
|
|
63
|
+
}
|
|
64
|
+
function BaseTypes_decomposeDefinedTerm_Z2F770004(term, context) {
|
|
65
|
+
return BaseTypes_ontologyTermFromNameAndID_40457300(LDDefinedTerm.getNameAsString(term, unwrap(context)), unwrap(LDDefinedTerm.tryGetTermCodeAsString(term, unwrap(context))));
|
|
66
|
+
}
|
|
67
|
+
function BaseTypes_composePropertyValueFromOA_ZDED3A0F(term) {
|
|
68
|
+
const tan = Option_fromValueWithDefault("", term.TermAccessionAndOntobeeUrlIfShort);
|
|
69
|
+
return LDPropertyValue.create(term.NameText, void 0, void 0, unwrap(tan));
|
|
70
|
+
}
|
|
71
|
+
function BaseTypes_decomposePropertyValueToOA_Z2F770004(term, context) {
|
|
72
|
+
return BaseTypes_ontologyTermFromNameAndID_40457300(LDPropertyValue.getNameAsString(term, unwrap(context)), unwrap(LDPropertyValue.tryGetPropertyIDAsString(term, unwrap(context))));
|
|
73
|
+
}
|
|
74
|
+
function BaseTypes_valuesOfCell_Z436420FE(value) {
|
|
75
|
+
let term, term_1;
|
|
76
|
+
switch (value.tag) {
|
|
77
|
+
case /* Term */
|
|
78
|
+
0:
|
|
79
|
+
if (term = value.fields[0], term.isEmpty()) {
|
|
80
|
+
const term_2 = value.fields[0];
|
|
81
|
+
return [void 0, void 0, void 0, void 0];
|
|
82
|
+
} else if (term_1 = value.fields[0], term_1.TANInfo != null) {
|
|
83
|
+
const term_3 = value.fields[0];
|
|
84
|
+
return [term_3.Name, term_3.TermAccessionAndOntobeeUrlIfShort, void 0, void 0];
|
|
85
|
+
} else {
|
|
86
|
+
const term_4 = value.fields[0];
|
|
87
|
+
return [term_4.Name, void 0, void 0, void 0];
|
|
88
|
+
}
|
|
89
|
+
case /* Unitized */
|
|
90
|
+
2: {
|
|
91
|
+
const text_1 = value.fields[0];
|
|
92
|
+
const unit = value.fields[1];
|
|
93
|
+
const patternInput = unit.isEmpty() ? [void 0, void 0] : [unit.Name, Option_fromValueWithDefault("", unit.TermAccessionAndOntobeeUrlIfShort)];
|
|
94
|
+
return [Option_fromValueWithDefault("", text_1), void 0, patternInput[0], patternInput[1]];
|
|
95
|
+
}
|
|
96
|
+
case /* Data */
|
|
97
|
+
3: {
|
|
98
|
+
const data = value.fields[0];
|
|
99
|
+
throw new Error("Data cell should not be parsed to isa value");
|
|
100
|
+
}
|
|
101
|
+
default:
|
|
102
|
+
if (value.fields[0] === "") {
|
|
103
|
+
return [void 0, void 0, void 0, void 0];
|
|
104
|
+
} else {
|
|
105
|
+
const text = value.fields[0];
|
|
106
|
+
return [text, void 0, void 0, void 0];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function BaseTypes_termOfHeader_6CAF647B(header) {
|
|
111
|
+
let matchResult, oa;
|
|
112
|
+
switch (header.tag) {
|
|
113
|
+
case /* Component */
|
|
114
|
+
0: {
|
|
115
|
+
matchResult = 0;
|
|
116
|
+
oa = header.fields[0];
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
case /* Parameter */
|
|
120
|
+
3: {
|
|
121
|
+
matchResult = 0;
|
|
122
|
+
oa = header.fields[0];
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
case /* Factor */
|
|
126
|
+
2: {
|
|
127
|
+
matchResult = 0;
|
|
128
|
+
oa = header.fields[0];
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
case /* Characteristic */
|
|
132
|
+
1: {
|
|
133
|
+
matchResult = 0;
|
|
134
|
+
oa = header.fields[0];
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
default:
|
|
138
|
+
matchResult = 1;
|
|
139
|
+
}
|
|
140
|
+
switch (matchResult) {
|
|
141
|
+
case 0:
|
|
142
|
+
return [oa.NameText, oa.TANInfo != null ? oa.TermAccessionAndOntobeeUrlIfShort : void 0];
|
|
143
|
+
default:
|
|
144
|
+
return toFail(printf("header %O should not be parsed to isa value"))(header);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
function BaseTypes_composeComponent(header, value) {
|
|
148
|
+
const patternInput = BaseTypes_valuesOfCell_Z436420FE(value);
|
|
149
|
+
const patternInput_1 = BaseTypes_termOfHeader_6CAF647B(header);
|
|
150
|
+
return LDPropertyValue.createComponent(patternInput_1[0], unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput[3]), unwrap(patternInput[2]), unwrap(patternInput[1]));
|
|
151
|
+
}
|
|
152
|
+
function BaseTypes_composeParameterValue(header, value) {
|
|
153
|
+
const patternInput = BaseTypes_valuesOfCell_Z436420FE(value);
|
|
154
|
+
const patternInput_1 = BaseTypes_termOfHeader_6CAF647B(header);
|
|
155
|
+
return LDPropertyValue.createParameterValue(patternInput_1[0], unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput[3]), unwrap(patternInput[2]), unwrap(patternInput[1]));
|
|
156
|
+
}
|
|
157
|
+
function BaseTypes_composeFactorValue(header, value) {
|
|
158
|
+
const patternInput = BaseTypes_valuesOfCell_Z436420FE(value);
|
|
159
|
+
const patternInput_1 = BaseTypes_termOfHeader_6CAF647B(header);
|
|
160
|
+
return LDPropertyValue.createFactorValue(patternInput_1[0], unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput[3]), unwrap(patternInput[2]), unwrap(patternInput[1]));
|
|
161
|
+
}
|
|
162
|
+
function BaseTypes_composeCharacteristicValue(header, value) {
|
|
163
|
+
const patternInput = BaseTypes_valuesOfCell_Z436420FE(value);
|
|
164
|
+
const patternInput_1 = BaseTypes_termOfHeader_6CAF647B(header);
|
|
165
|
+
return LDPropertyValue.createCharacteristicValue(patternInput_1[0], unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput[3]), unwrap(patternInput[2]), unwrap(patternInput[1]));
|
|
166
|
+
}
|
|
167
|
+
function BaseTypes_composeFreetextMaterialName(headerFT, name) {
|
|
168
|
+
return `${headerFT}=${name}`;
|
|
169
|
+
}
|
|
170
|
+
function BaseTypes_composeFile_6CE21C7D(d, fs) {
|
|
171
|
+
const createFile = () => {
|
|
172
|
+
const dataType = map(DataFile__get_AsString, d.DataType);
|
|
173
|
+
return LDFile.create(d.NameText, d.NameText, void 0, unwrap(dataType), unwrap(d.Format), unwrap(d.SelectorFormat));
|
|
174
|
+
};
|
|
175
|
+
if (fs == null) {
|
|
176
|
+
return createFile();
|
|
177
|
+
} else {
|
|
178
|
+
const fs_1 = value(fs);
|
|
179
|
+
const matchValue = fs_1.Tree.TryGetPath(d.NameText);
|
|
180
|
+
if (matchValue != null) {
|
|
181
|
+
if (value(matchValue).tag === /* Folder */
|
|
182
|
+
1) {
|
|
183
|
+
const fs_2 = value(matchValue);
|
|
184
|
+
const file = createFile();
|
|
185
|
+
file.SchemaType = [LDFile.schemaType, LDDataset.schemaType];
|
|
186
|
+
let subFiles;
|
|
187
|
+
const collection = map$1((fp) => {
|
|
188
|
+
const fullPath = combine(d.NameText, fp);
|
|
189
|
+
return LDFile.create(fullPath, fullPath);
|
|
190
|
+
}, fs_2.ToFilePaths(true));
|
|
191
|
+
subFiles = Array.from(collection);
|
|
192
|
+
LDDataset.setHasParts(file, subFiles);
|
|
193
|
+
return file;
|
|
194
|
+
} else {
|
|
195
|
+
return createFile();
|
|
196
|
+
}
|
|
197
|
+
} else {
|
|
198
|
+
return createFile();
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
function BaseTypes_decomposeFile_Z2F770004(f, context) {
|
|
203
|
+
const dataType = map(DataFile_fromString_Z721C83C5, LDFile.tryGetDisambiguatingDescriptionAsString(f, unwrap(context)));
|
|
204
|
+
const format = LDFile.tryGetEncodingFormatAsString(f, unwrap(context));
|
|
205
|
+
const selectorFormat = LDFile.tryGetUsageInfoAsString(f, unwrap(context));
|
|
206
|
+
return new Data(void 0, LDFile.getNameAsString(f, unwrap(context)), unwrap(dataType), unwrap(format), unwrap(selectorFormat));
|
|
207
|
+
}
|
|
208
|
+
function BaseTypes_composeFragmentDescriptor_Z4C0BEF62(dc) {
|
|
209
|
+
if (dc.Name == null) {
|
|
210
|
+
throw new Error("RO-Crate parsing of DataContext failed: Cannot create a fragment descriptor without a name.");
|
|
211
|
+
}
|
|
212
|
+
const id = LDPropertyValue.genIdFragmentDescriptor(dc.NameText);
|
|
213
|
+
const patternInput = defaultArg(map((e) => [e.Name, Option_fromValueWithDefault("", e.TermAccessionAndOntobeeUrlIfShort)], DataContext__get_Explication(dc)), [void 0, void 0]);
|
|
214
|
+
const patternInput_1 = defaultArg(map((u) => [u.Name, Option_fromValueWithDefault("", u.TermAccessionAndOntobeeUrlIfShort)], DataContext__get_Unit(dc)), [void 0, void 0]);
|
|
215
|
+
const disambiguatingDescriptions = Option_fromSeq(ResizeArray_map(toString, dc.Comments));
|
|
216
|
+
const dataFragment = BaseTypes_composeFile_6CE21C7D(dc);
|
|
217
|
+
const pattern = map(BaseTypes_composeDefinedTerm_ZDED3A0F, DataContext__get_ObjectType(dc));
|
|
218
|
+
dataFragment.SetProperty(LDFile.about, new LDRef(id));
|
|
219
|
+
dataFragment.SetOptionalProperty(LDFile.pattern, pattern);
|
|
220
|
+
return LDPropertyValue.createFragmentDescriptor(dc.NameText, unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput_1[0]), unwrap(patternInput[1]), unwrap(DataContext__get_GeneratedBy(dc)), unwrap(DataContext__get_Description(dc)), unwrap(DataContext__get_Label(dc)), unwrap(disambiguatingDescriptions), dataFragment);
|
|
221
|
+
}
|
|
222
|
+
function BaseTypes_decomposeFragmentDescriptor_Z6839B9E8(fd, graph, context) {
|
|
223
|
+
const file = LDPropertyValue.tryGetSubjectOf(fd, unwrap(graph), unwrap(context));
|
|
224
|
+
let name;
|
|
225
|
+
if (file == null) {
|
|
226
|
+
throw new Error("RO-Crate parsing of DataContext failed: Cannot decompose a fragment descriptor without a name.");
|
|
227
|
+
} else {
|
|
228
|
+
const f = value(file);
|
|
229
|
+
name = LDFile.getNameAsString(f, unwrap(context));
|
|
230
|
+
}
|
|
231
|
+
const objectType = map((pa) => BaseTypes_decomposeDefinedTerm_Z2F770004(pa, unwrap(context)), bind((f_1) => LDFile.tryGetPatternAsDefinedTerm(f_1, unwrap(graph), unwrap(context)), file));
|
|
232
|
+
const format = bind((f_2) => LDFile.tryGetEncodingFormatAsString(f_2, unwrap(context)), file);
|
|
233
|
+
const selectorFormat = bind((f_3) => LDFile.tryGetUsageInfoAsString(f_3, unwrap(context)), file);
|
|
234
|
+
const explication = BaseTypes_tryOntologyTermFromNameAndID_40457300(unwrap(LDPropertyValue.tryGetValueAsString(fd)), unwrap(LDPropertyValue.tryGetValueReferenceAsString(fd)));
|
|
235
|
+
const unit = BaseTypes_tryOntologyTermFromNameAndID_40457300(unwrap(LDPropertyValue.tryGetUnitTextAsString(fd)), unwrap(LDPropertyValue.tryGetUnitCodeAsString(fd)));
|
|
236
|
+
const generatedBy = LDPropertyValue.tryGetMeasurementMethodAsString(fd);
|
|
237
|
+
const description = LDPropertyValue.tryGetDescriptionAsString(fd);
|
|
238
|
+
return DataContext_$ctor_Z780A8A2A(void 0, name, void 0, unwrap(format), unwrap(selectorFormat), unwrap(explication), unwrap(unit), unwrap(objectType), unwrap(LDPropertyValue.tryGetAlternateNameAsString(fd)), unwrap(description), unwrap(generatedBy), ResizeArray_map((s) => Comment$.fromString(s), LDPropertyValue.getDisambiguatingDescriptionsAsString(fd)));
|
|
239
|
+
}
|
|
240
|
+
function BaseTypes_composeProcessInput(header, value, fs) {
|
|
241
|
+
if (header.tag === /* Input */
|
|
242
|
+
11) {
|
|
243
|
+
switch (header.fields[0].tag) {
|
|
244
|
+
case /* Sample */
|
|
245
|
+
1:
|
|
246
|
+
return LDSample.createSample(value.AsFreeText);
|
|
247
|
+
case /* Material */
|
|
248
|
+
3:
|
|
249
|
+
return LDSample.createMaterial(value.AsFreeText);
|
|
250
|
+
case /* Data */
|
|
251
|
+
2:
|
|
252
|
+
switch (value.tag) {
|
|
253
|
+
case /* FreeText */
|
|
254
|
+
1: {
|
|
255
|
+
const ft = value.fields[0];
|
|
256
|
+
return LDFile.create(ft, ft);
|
|
257
|
+
}
|
|
258
|
+
case /* Data */
|
|
259
|
+
3:
|
|
260
|
+
return BaseTypes_composeFile_6CE21C7D(value.fields[0], unwrap(fs));
|
|
261
|
+
default:
|
|
262
|
+
return toFail(printf("Could not parse input data %O"))(value);
|
|
263
|
+
}
|
|
264
|
+
case /* FreeText */
|
|
265
|
+
4: {
|
|
266
|
+
const ft_1 = header.fields[0].fields[0];
|
|
267
|
+
const n = new LDNode(BaseTypes_composeFreetextMaterialName(ft_1, value.AsFreeText), [ft_1]);
|
|
268
|
+
n.SetProperty(LDSample.name, value.AsFreeText);
|
|
269
|
+
return n;
|
|
270
|
+
}
|
|
271
|
+
default:
|
|
272
|
+
return LDSample.createSource(value.AsFreeText);
|
|
273
|
+
}
|
|
274
|
+
} else {
|
|
275
|
+
return toFail(printf("Could not parse input header %O"))(header);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
function BaseTypes_composeProcessOutput(header, value, fs) {
|
|
279
|
+
let matchResult, ft_1;
|
|
280
|
+
if (header.tag === /* Output */
|
|
281
|
+
12) {
|
|
282
|
+
switch (header.fields[0].tag) {
|
|
283
|
+
case /* Material */
|
|
284
|
+
3: {
|
|
285
|
+
matchResult = 1;
|
|
286
|
+
break;
|
|
287
|
+
}
|
|
288
|
+
case /* Data */
|
|
289
|
+
2: {
|
|
290
|
+
matchResult = 2;
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
case /* FreeText */
|
|
294
|
+
4: {
|
|
295
|
+
matchResult = 3;
|
|
296
|
+
ft_1 = header.fields[0].fields[0];
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
default:
|
|
300
|
+
matchResult = 0;
|
|
301
|
+
}
|
|
302
|
+
} else {
|
|
303
|
+
matchResult = 4;
|
|
304
|
+
}
|
|
305
|
+
switch (matchResult) {
|
|
306
|
+
case 0:
|
|
307
|
+
return LDSample.createSample(value.AsFreeText);
|
|
308
|
+
case 1:
|
|
309
|
+
return LDSample.createMaterial(value.AsFreeText);
|
|
310
|
+
case 2:
|
|
311
|
+
switch (value.tag) {
|
|
312
|
+
case /* FreeText */
|
|
313
|
+
1: {
|
|
314
|
+
const ft = value.fields[0];
|
|
315
|
+
return LDFile.create(ft, ft);
|
|
316
|
+
}
|
|
317
|
+
case /* Data */
|
|
318
|
+
3:
|
|
319
|
+
return BaseTypes_composeFile_6CE21C7D(value.fields[0], unwrap(fs));
|
|
320
|
+
default:
|
|
321
|
+
return toFail(printf("Could not parse output data %O"))(value);
|
|
322
|
+
}
|
|
323
|
+
case 3: {
|
|
324
|
+
const n = new LDNode(BaseTypes_composeFreetextMaterialName(ft_1, value.AsFreeText), [ft_1]);
|
|
325
|
+
n.SetProperty(LDSample.name, value.AsFreeText);
|
|
326
|
+
return n;
|
|
327
|
+
}
|
|
328
|
+
default:
|
|
329
|
+
return toFail(printf("Could not parse output header %O"))(header);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
function BaseTypes_headerOntologyOfPropertyValue_Z2F770004(pv, context) {
|
|
333
|
+
const n = LDPropertyValue.getNameAsString(pv, unwrap(context));
|
|
334
|
+
const matchValue = LDPropertyValue.tryGetPropertyIDAsString(pv, unwrap(context));
|
|
335
|
+
if (matchValue == null) {
|
|
336
|
+
return new OntologyAnnotation(n);
|
|
337
|
+
} else {
|
|
338
|
+
const nRef = value(matchValue);
|
|
339
|
+
return OntologyAnnotation.fromTermAnnotation(nRef, n);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
function BaseTypes_cellOfPropertyValue_Z2F770004(pv, context) {
|
|
343
|
+
const v = LDPropertyValue.tryGetValueAsString(pv, unwrap(context));
|
|
344
|
+
const vRef = LDPropertyValue.tryGetValueReferenceAsString(pv, unwrap(context));
|
|
345
|
+
const u = LDPropertyValue.tryGetUnitTextAsString(pv, unwrap(context));
|
|
346
|
+
const uRef = LDPropertyValue.tryGetUnitCodeAsString(pv, unwrap(context));
|
|
347
|
+
let matchResult, vr, u_1, uRef_1;
|
|
348
|
+
if (vRef == null) {
|
|
349
|
+
if (u == null) {
|
|
350
|
+
if (uRef == null) {
|
|
351
|
+
matchResult = 3;
|
|
352
|
+
} else {
|
|
353
|
+
matchResult = 2;
|
|
354
|
+
uRef_1 = value(uRef);
|
|
355
|
+
}
|
|
356
|
+
} else if (uRef != null) {
|
|
357
|
+
matchResult = 2;
|
|
358
|
+
uRef_1 = value(uRef);
|
|
359
|
+
} else {
|
|
360
|
+
matchResult = 1;
|
|
361
|
+
u_1 = value(u);
|
|
362
|
+
}
|
|
363
|
+
} else if (u == null) {
|
|
364
|
+
if (uRef == null) {
|
|
365
|
+
matchResult = 0;
|
|
366
|
+
vr = value(vRef);
|
|
367
|
+
} else {
|
|
368
|
+
matchResult = 4;
|
|
369
|
+
}
|
|
370
|
+
} else {
|
|
371
|
+
matchResult = 4;
|
|
372
|
+
}
|
|
373
|
+
switch (matchResult) {
|
|
374
|
+
case 0:
|
|
375
|
+
return CompositeCell_Term(OntologyAnnotation.fromTermAnnotation(vr, unwrap(v)));
|
|
376
|
+
case 1:
|
|
377
|
+
return CompositeCell_Unitized(defaultArg(v, ""), new OntologyAnnotation(u_1));
|
|
378
|
+
case 2:
|
|
379
|
+
return CompositeCell_Unitized(defaultArg(v, ""), OntologyAnnotation.fromTermAnnotation(uRef_1, unwrap(u)));
|
|
380
|
+
case 3:
|
|
381
|
+
return CompositeCell_Term(new OntologyAnnotation(unwrap(v)));
|
|
382
|
+
default: {
|
|
383
|
+
const arg = defaultArg(v, "");
|
|
384
|
+
return toFail(printf("Could not parse value %s with unit %O and unit reference %O"))(arg)(u)(uRef);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
function BaseTypes_decomposePropertyValue_Z2F770004(pv, context) {
|
|
389
|
+
let v, vRef, vr, u, uRef, uRef_1, u_1;
|
|
390
|
+
return [BaseTypes_headerOntologyOfPropertyValue_Z2F770004(pv, unwrap(context)), (v = LDPropertyValue.tryGetValueAsString(pv, unwrap(context)), vRef = LDPropertyValue.tryGetValueReferenceAsString(pv, unwrap(context)), vRef == null ? v == null ? void 0 : Value_Name(value(v)) : (vr = value(vRef), Value_Ontology(OntologyAnnotation.fromTermAnnotation(vr, unwrap(v))))), (u = LDPropertyValue.tryGetUnitTextAsString(pv, unwrap(context)), uRef = LDPropertyValue.tryGetUnitCodeAsString(pv, unwrap(context)), u == null ? uRef == null ? void 0 : (uRef_1 = value(uRef), OntologyAnnotation.fromTermAnnotation(uRef_1, unwrap(u))) : uRef != null ? (uRef_1 = value(uRef), OntologyAnnotation.fromTermAnnotation(uRef_1, unwrap(u))) : (u_1 = value(u), new OntologyAnnotation(u_1)))];
|
|
391
|
+
}
|
|
392
|
+
function BaseTypes_decomposeComponent_Z2F770004(c, context) {
|
|
393
|
+
return [CompositeHeader_Component(BaseTypes_headerOntologyOfPropertyValue_Z2F770004(c, unwrap(context))), BaseTypes_cellOfPropertyValue_Z2F770004(c, unwrap(context))];
|
|
394
|
+
}
|
|
395
|
+
function BaseTypes_decomposeParameterValue_Z2F770004(c, context) {
|
|
396
|
+
return [CompositeHeader_Parameter(BaseTypes_headerOntologyOfPropertyValue_Z2F770004(c, unwrap(context))), BaseTypes_cellOfPropertyValue_Z2F770004(c, unwrap(context))];
|
|
397
|
+
}
|
|
398
|
+
function BaseTypes_decomposeFactorValue_Z2F770004(c, context) {
|
|
399
|
+
return [CompositeHeader_Factor(BaseTypes_headerOntologyOfPropertyValue_Z2F770004(c, unwrap(context))), BaseTypes_cellOfPropertyValue_Z2F770004(c, unwrap(context))];
|
|
400
|
+
}
|
|
401
|
+
function BaseTypes_decomposeCharacteristicValue_Z2F770004(c, context) {
|
|
402
|
+
return [CompositeHeader_Characteristic(BaseTypes_headerOntologyOfPropertyValue_Z2F770004(c, unwrap(context))), BaseTypes_cellOfPropertyValue_Z2F770004(c, unwrap(context))];
|
|
403
|
+
}
|
|
404
|
+
function BaseTypes_decomposeProcessInput_Z2F770004(pn, context) {
|
|
405
|
+
if (LDSample.validateSource(pn, unwrap(context))) {
|
|
406
|
+
return [CompositeHeader_Input(IOType_Source()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
|
|
407
|
+
} else if (LDSample.validateMaterial(pn, unwrap(context))) {
|
|
408
|
+
return [CompositeHeader_Input(IOType_Material()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
|
|
409
|
+
} else if (LDSample.validate(pn, unwrap(context))) {
|
|
410
|
+
return [CompositeHeader_Input(IOType_Sample()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
|
|
411
|
+
} else if (LDFile.validate(pn, unwrap(context))) {
|
|
412
|
+
return [CompositeHeader_Input(IOType_Data()), CompositeCell_Data(BaseTypes_decomposeFile_Z2F770004(pn, unwrap(context)))];
|
|
413
|
+
} else {
|
|
414
|
+
const n = pn;
|
|
415
|
+
return [CompositeHeader_Input(IOType_FreeText(n.SchemaType[0])), CompositeCell_FreeText(LDSample.getNameAsString(n, unwrap(context)))];
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
function BaseTypes_decomposeProcessOutput_Z2F770004(pn, context) {
|
|
419
|
+
if (LDSample.validateMaterial(pn, unwrap(context))) {
|
|
420
|
+
return [CompositeHeader_Output(IOType_Material()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
|
|
421
|
+
} else if (LDSample.validate(pn, unwrap(context))) {
|
|
422
|
+
return [CompositeHeader_Output(IOType_Sample()), CompositeCell_FreeText(LDSample.getNameAsString(pn, unwrap(context)))];
|
|
423
|
+
} else if (LDFile.validate(pn, unwrap(context))) {
|
|
424
|
+
return [CompositeHeader_Output(IOType_Data()), CompositeCell_Data(BaseTypes_decomposeFile_Z2F770004(pn, unwrap(context)))];
|
|
425
|
+
} else {
|
|
426
|
+
const n = pn;
|
|
427
|
+
return [CompositeHeader_Output(IOType_FreeText(n.SchemaType[0])), CompositeCell_FreeText(LDSample.getNameAsString(n, unwrap(context)))];
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
function BaseTypes_composeTechnologyPlatform_ZDED3A0F(tp) {
|
|
431
|
+
const matchValue = tp.TANInfo;
|
|
432
|
+
if (matchValue == null) {
|
|
433
|
+
return `${tp.NameText}`;
|
|
434
|
+
} else {
|
|
435
|
+
return `${tp.NameText} (${tp.TermAccessionShort})`;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
function BaseTypes_decomposeTechnologyPlatform_Z721C83C5(name) {
|
|
439
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("^(?<value>.+) \\((?<ontology>[^(]*:[^)]*)\\)$", name);
|
|
440
|
+
if (activePatternResult != null) {
|
|
441
|
+
const r = value(activePatternResult);
|
|
442
|
+
let oa;
|
|
443
|
+
const tan = r.groups && r.groups.ontology || "";
|
|
444
|
+
oa = OntologyAnnotation.fromTermAnnotation(tan);
|
|
445
|
+
const v = r.groups && r.groups.value || "";
|
|
446
|
+
return OntologyAnnotation.create(v, unwrap(oa.TermSourceREF), unwrap(oa.TermAccessionNumber));
|
|
447
|
+
} else {
|
|
448
|
+
return OntologyAnnotation.create(name);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export { BaseTypes, BaseTypes_$reflection, BaseTypes_cellOfPropertyValue_Z2F770004, BaseTypes_composeCharacteristicValue, BaseTypes_composeComment_Z13201A7E, BaseTypes_composeComponent, BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composeFactorValue, BaseTypes_composeFile_6CE21C7D, BaseTypes_composeFragmentDescriptor_Z4C0BEF62, BaseTypes_composeFreetextMaterialName, BaseTypes_composeParameterValue, BaseTypes_composeProcessInput, BaseTypes_composeProcessOutput, BaseTypes_composePropertyValueFromOA_ZDED3A0F, BaseTypes_composeTechnologyPlatform_ZDED3A0F, BaseTypes_decomposeCharacteristicValue_Z2F770004, BaseTypes_decomposeComment_Z2F770004, BaseTypes_decomposeComponent_Z2F770004, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposeFactorValue_Z2F770004, BaseTypes_decomposeFile_Z2F770004, BaseTypes_decomposeFragmentDescriptor_Z6839B9E8, BaseTypes_decomposeParameterValue_Z2F770004, BaseTypes_decomposeProcessInput_Z2F770004, BaseTypes_decomposeProcessOutput_Z2F770004, BaseTypes_decomposePropertyValueToOA_Z2F770004, BaseTypes_decomposePropertyValue_Z2F770004, BaseTypes_decomposeTechnologyPlatform_Z721C83C5, BaseTypes_headerOntologyOfPropertyValue_Z2F770004, BaseTypes_ontologyTermFromNameAndID_40457300, BaseTypes_termOfHeader_6CAF647B, BaseTypes_tryOntologyTermFromNameAndID_40457300, BaseTypes_valuesOfCell_Z436420FE };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
2
|
+
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { LDNode } from '../ROCrate/LDObject.js';
|
|
4
|
+
export declare const orderName = "columnIndex";
|
|
5
|
+
export declare const columndIndexProperty = "https://w3id.org/ro/terms/arc#columnIndex";
|
|
6
|
+
export declare function tryGetIndex(node: LDNode): Option<int32>;
|
|
7
|
+
export declare function setIndex(node: LDNode, index: int32): void;
|
|
8
|
+
export declare function ARCtrl_ROCrate_LDNode__LDNode_GetColumnIndex(this$: LDNode): int32;
|
|
9
|
+
export declare function ARCtrl_ROCrate_LDNode__LDNode_TryGetColumnIndex(this$: LDNode): Option<int32>;
|
|
10
|
+
export declare function ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(this$: LDNode, index: int32): void;
|
|
11
|
+
//# sourceMappingURL=ColumnIndex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnIndex.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/ColumnIndex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAS,MAAM,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAiBhD,eAAO,MAAM,SAAS,gBAAgB,CAAC;AAEvC,eAAO,MAAM,oBAAoB,8CAA8C,CAAC;AAEhF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAyCvD;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAEzD;AAED,wBAAgB,4CAA4C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAEjF;AAED,wBAAgB,+CAA+C,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAE5F;AAED,wBAAgB,sDAAsD,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAExG"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { tryParse } from '../../node_modules/@fable-org/fable-library-js/Int32.js';
|
|
2
|
+
import { FSharpRef } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
3
|
+
import { value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
|
+
import { int32ToString } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
5
|
+
|
|
6
|
+
function tryInt(str) {
|
|
7
|
+
let matchValue;
|
|
8
|
+
let outArg = 0;
|
|
9
|
+
matchValue = [tryParse(str, 511, false, 32, new FSharpRef(() => outArg, (v) => {
|
|
10
|
+
outArg = v | 0;
|
|
11
|
+
})), outArg];
|
|
12
|
+
if (matchValue[0]) {
|
|
13
|
+
return matchValue[1];
|
|
14
|
+
} else {
|
|
15
|
+
return void 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const orderName = "columnIndex";
|
|
19
|
+
const columndIndexProperty = "https://w3id.org/ro/terms/arc#columnIndex";
|
|
20
|
+
function tryGetIndex(node) {
|
|
21
|
+
const matchValue = node.TryGetPropertyAsSingleton(columndIndexProperty);
|
|
22
|
+
let matchResult, ci;
|
|
23
|
+
if (matchValue != null) {
|
|
24
|
+
if (typeof value(matchValue) === "string") {
|
|
25
|
+
matchResult = 0;
|
|
26
|
+
ci = value(matchValue);
|
|
27
|
+
} else {
|
|
28
|
+
matchResult = 1;
|
|
29
|
+
}
|
|
30
|
+
} else {
|
|
31
|
+
matchResult = 1;
|
|
32
|
+
}
|
|
33
|
+
switch (matchResult) {
|
|
34
|
+
case 0:
|
|
35
|
+
return tryInt(ci);
|
|
36
|
+
default: {
|
|
37
|
+
const matchValue_1 = node.TryGetPropertyAsSingleton(orderName);
|
|
38
|
+
let matchResult_1, ci_1;
|
|
39
|
+
if (matchValue_1 != null) {
|
|
40
|
+
if (typeof value(matchValue_1) === "string") {
|
|
41
|
+
matchResult_1 = 0;
|
|
42
|
+
ci_1 = value(matchValue_1);
|
|
43
|
+
} else {
|
|
44
|
+
matchResult_1 = 1;
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
matchResult_1 = 1;
|
|
48
|
+
}
|
|
49
|
+
switch (matchResult_1) {
|
|
50
|
+
case 0:
|
|
51
|
+
return tryInt(ci_1);
|
|
52
|
+
default:
|
|
53
|
+
return void 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function setIndex(node, index) {
|
|
59
|
+
node.SetProperty(columndIndexProperty, int32ToString(index));
|
|
60
|
+
}
|
|
61
|
+
function ARCtrl_ROCrate_LDNode__LDNode_GetColumnIndex(this$) {
|
|
62
|
+
return value(tryGetIndex(this$));
|
|
63
|
+
}
|
|
64
|
+
function ARCtrl_ROCrate_LDNode__LDNode_TryGetColumnIndex(this$) {
|
|
65
|
+
return tryGetIndex(this$);
|
|
66
|
+
}
|
|
67
|
+
function ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(this$, index) {
|
|
68
|
+
setIndex(this$, index);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export { ARCtrl_ROCrate_LDNode__LDNode_GetColumnIndex, ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4, ARCtrl_ROCrate_LDNode__LDNode_TryGetColumnIndex, columndIndexProperty, orderName, setIndex, tryGetIndex };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
2
|
+
import { LDGraph, LDNode } from '../ROCrate/LDObject.js';
|
|
3
|
+
import { Datamap } from '../Core/Datamap.js';
|
|
4
|
+
import { LDContext } from '../ROCrate/LDContext.js';
|
|
5
|
+
export declare class DatamapConversion {
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
8
|
+
export declare function DatamapConversion_$reflection(): TypeInfo;
|
|
9
|
+
export declare function DatamapConversion_composeFragmentDescriptors_Z892BFC3(datamap: Datamap): LDNode[];
|
|
10
|
+
export declare function DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(fragmentDescriptors: LDNode[], graph?: LDGraph, context?: LDContext): Datamap;
|
|
11
|
+
//# sourceMappingURL=Datamap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Datamap.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Datamap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAIjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBAAa,iBAAiB;;CAG7B;AAED,wBAAgB,6BAA6B,IAAI,QAAQ,CAExD;AAED,wBAAgB,qDAAqD,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAEhG;AAED,wBAAgB,wDAAwD,CAAC,mBAAmB,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAErJ"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
2
|
+
import { ResizeArray_map } from '../Core/Helper/Collections.js';
|
|
3
|
+
import { BaseTypes_composeFragmentDescriptor_Z4C0BEF62, BaseTypes_decomposeFragmentDescriptor_Z6839B9E8 } from './Basic.js';
|
|
4
|
+
import { Datamap } from '../Core/Datamap.js';
|
|
5
|
+
import { unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
6
|
+
|
|
7
|
+
class DatamapConversion {
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function DatamapConversion_$reflection() {
|
|
12
|
+
return class_type("ARCtrl.Conversion.DatamapConversion", void 0, DatamapConversion);
|
|
13
|
+
}
|
|
14
|
+
function DatamapConversion_composeFragmentDescriptors_Z892BFC3(datamap) {
|
|
15
|
+
return ResizeArray_map(BaseTypes_composeFragmentDescriptor_Z4C0BEF62, datamap.DataContexts);
|
|
16
|
+
}
|
|
17
|
+
function DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(fragmentDescriptors, graph, context) {
|
|
18
|
+
return new Datamap(ResizeArray_map((fd) => BaseTypes_decomposeFragmentDescriptor_Z6839B9E8(fd, unwrap(graph), unwrap(context)), fragmentDescriptors));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { DatamapConversion, DatamapConversion_$reflection, DatamapConversion_composeFragmentDescriptors_Z892BFC3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/DateTime.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAI/D,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAWrD;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAExC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { fromString } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js';
|
|
2
|
+
import { Decode_datetime } from '../Json/Decode.js';
|
|
3
|
+
import { toText, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
4
|
+
import { toString as toString$1 } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js';
|
|
5
|
+
import { dateTime } from '../Json/Encode.js';
|
|
6
|
+
|
|
7
|
+
function tryFromString(s) {
|
|
8
|
+
let matchValue;
|
|
9
|
+
try {
|
|
10
|
+
return matchValue = fromString(Decode_datetime, s), matchValue.tag === /* Error */
|
|
11
|
+
1 ? (() => {
|
|
12
|
+
let arg;
|
|
13
|
+
throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
|
|
14
|
+
})() : matchValue.fields[0];
|
|
15
|
+
} catch (matchValue_1) {
|
|
16
|
+
return void 0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function toString(d) {
|
|
20
|
+
return toString$1(0, dateTime(d));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { toString, tryFromString };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
2
|
+
import { LDGraph, LDNode } from '../ROCrate/LDObject.js';
|
|
3
|
+
import { ArcInvestigation } from '../Core/ArcTypes.js';
|
|
4
|
+
import { FileSystem } from '../FileSystem/FileSystem.js';
|
|
5
|
+
import { LDContext } from '../ROCrate/LDContext.js';
|
|
6
|
+
export declare class InvestigationConversion {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
export declare function InvestigationConversion_$reflection(): TypeInfo;
|
|
10
|
+
export declare function InvestigationConversion_composeInvestigation_Z284BC0AC(investigation: ArcInvestigation, fs?: FileSystem, ignoreBrokenWR?: boolean): LDNode;
|
|
11
|
+
export declare function InvestigationConversion_decomposeInvestigation_Z6839B9E8(investigation: LDNode, graph?: LDGraph, context?: LDContext): ArcInvestigation;
|
|
12
|
+
//# sourceMappingURL=Investigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Investigation.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Investigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAOjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAOzD,OAAO,EAAE,gBAAgB,EAA2C,MAAM,qBAAqB,CAAC;AAKhG,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBAAa,uBAAuB;;CAGnC;AAED,wBAAgB,mCAAmC,IAAI,QAAQ,CAE9D;AAED,wBAAgB,sDAAsD,CAAC,aAAa,EAAE,gBAAgB,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,OAAO,GAAG,MAAM,CA0CzJ;AAED,wBAAgB,wDAAwD,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,gBAAgB,CAetJ"}
|