@nfdi4plants/arctrl 3.2.3 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ts/index.d.ts +44 -7
- package/dist/ts/index.d.ts.map +1 -1
- package/dist/ts/index.js +45 -8
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
- package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
- package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
- package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
- package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
- package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
- package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
- package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
- package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
- package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
- package/dist/ts/ts/ARC.d.ts +19 -2
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +128 -89
- package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
- package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
- package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
- package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLTypes.js +887 -201
- package/dist/ts/ts/CWL/Decode.d.ts +480 -211
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Decode.js +3614 -2462
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
- package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
- package/dist/ts/ts/CWL/Encode.d.ts +225 -85
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Encode.js +1858 -970
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
- package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
- package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
- package/dist/ts/ts/CWL/HashHelpers.js +255 -6
- package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
- package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Inputs.js +107 -16
- package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
- package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/OperationDescription.js +35 -9
- package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
- package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Outputs.js +101 -19
- package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
- package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ParameterReference.js +18 -25
- package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
- package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ParameterValue.js +59 -35
- package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
- package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Requirements.js +462 -89
- package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
- package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
- package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
- package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
- package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ToolDescription.js +34 -13
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
- package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
- package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
- package/dist/ts/ts/CWLRunResolver.js +221 -86
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +13 -14
- package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcAssay.js +4 -4
- package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
- package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
- package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcRun.js +47 -20
- package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcStudy.js +4 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
- package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Datamap.js +16 -17
- package/dist/ts/ts/Contract/Git.js +1 -1
- package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
- package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/ContractIO.js +15 -16
- package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Assay.js +26 -18
- package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
- package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Basic.js +55 -31
- package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
- package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/DateTime.js +1 -2
- package/dist/ts/ts/Conversion/Investigation.js +11 -11
- package/dist/ts/ts/Conversion/Person.js +11 -11
- package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Process.js +107 -86
- package/dist/ts/ts/Conversion/Run.d.ts +36 -6
- package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Run.js +320 -136
- package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
- package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Study.js +23 -12
- package/dist/ts/ts/Conversion/Table.js +5 -5
- package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
- package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Workflow.js +655 -163
- package/dist/ts/ts/Conversion.js +6 -6
- package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
- package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
- package/dist/ts/ts/Core/ArcTypes.js +219 -129
- package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Core/Comment.js +2 -2
- package/dist/ts/ts/Core/CommentList.js +7 -7
- package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
- package/dist/ts/ts/Core/Conversion.js +41 -41
- package/dist/ts/ts/Core/Data.d.ts.map +1 -1
- package/dist/ts/ts/Core/Data.js +14 -11
- package/dist/ts/ts/Core/DataContext.d.ts +1 -1
- package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
- package/dist/ts/ts/Core/DataContext.js +4 -4
- package/dist/ts/ts/Core/DataFile.d.ts +11 -8
- package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
- package/dist/ts/ts/Core/DataFile.js +55 -61
- package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Core/Datamap.js +2 -3
- package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Collections.js +2 -4
- package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
- package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
- package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Regex.js +52 -53
- package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
- package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
- package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Url.js +1 -1
- package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
- package/dist/ts/ts/Core/Person.d.ts.map +1 -1
- package/dist/ts/ts/Core/Person.js +2 -2
- package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
- package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Component.js +22 -22
- package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Factor.js +7 -7
- package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
- package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Material.js +2 -2
- package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
- package/dist/ts/ts/Core/Process/Process.js +21 -21
- package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
- package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
- package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
- package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
- package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Protocol.js +9 -9
- package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
- package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Core/Publication.js +3 -3
- package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/ScalarValue.js +9 -13
- package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTableAux.js +50 -70
- package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
- package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
- package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
- package/dist/ts/ts/Core/Templates.js +2 -2
- package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +37 -19
- package/dist/ts/ts/Json/Assay.js +22 -22
- package/dist/ts/ts/Json/Comment.js +9 -9
- package/dist/ts/ts/Json/Data.d.ts.map +1 -1
- package/dist/ts/ts/Json/Data.js +11 -11
- package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
- package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
- package/dist/ts/ts/Json/Decode.js +3 -5
- package/dist/ts/ts/Json/Encode.js +2 -2
- package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
- package/dist/ts/ts/Json/Investigation.js +20 -20
- package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
- package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
- package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
- package/dist/ts/ts/Json/Person.d.ts.map +1 -1
- package/dist/ts/ts/Json/Person.js +20 -20
- package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
- package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Component.js +5 -6
- package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Factor.js +7 -7
- package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
- package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Material.js +9 -10
- package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
- package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Process.js +8 -9
- package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
- package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Protocol.js +17 -17
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
- package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Sample.js +9 -9
- package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Source.js +10 -11
- package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
- package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +24 -24
- package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Json/Publication.js +10 -10
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
- package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
- package/dist/ts/ts/Json/Run.js +9 -9
- package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
- package/dist/ts/ts/Json/StringTable.js +4 -7
- package/dist/ts/ts/Json/Study.js +20 -20
- package/dist/ts/ts/Json/Table/CellTable.js +1 -2
- package/dist/ts/ts/Json/Table/OATable.js +1 -2
- package/dist/ts/ts/Json/Workflow.js +9 -9
- package/dist/ts/ts/Json.d.ts +121 -1
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +310 -2
- package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
- package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Comment.js +67 -0
- package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
- package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Data.js +49 -0
- package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
- package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/DataFile.js +48 -0
- package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
- package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
- package/dist/ts/ts/JsonIO/LDObject.js +173 -17
- package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
- package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
- package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
- package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Publication.js +68 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
- package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
- package/dist/ts/ts/License.d.ts.map +1 -1
- package/dist/ts/ts/License.js +6 -6
- package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDContext.js +31 -39
- package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDObject.js +56 -49
- package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
- package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
- package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
- package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
- package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
- package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts +11 -0
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +61 -50
- package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
- package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
- package/dist/ts/ts/ROCrateIO.d.ts +18 -4
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +49 -38
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +8 -8
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
- package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
- package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +3 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +7 -7
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
- package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +8 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
- package/dist/ts/ts/Xlsx.js +3 -3
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
- package/package.json +5 -4
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
|
@@ -2,11 +2,10 @@ import { unwrap, value, defaultArg } from '../../../node_modules/@fable-org/fabl
|
|
|
2
2
|
import { tryParse } from '../../../node_modules/@fable-org/fable-library-ts/Int32.js';
|
|
3
3
|
import { LDNode } from '../LDObject.js';
|
|
4
4
|
import { Exception, stringHash, int32ToString } from '../../../node_modules/@fable-org/fable-library-ts/Util.js';
|
|
5
|
-
import { concat, join, replace } from '../../../node_modules/@fable-org/fable-library-ts/String.js';
|
|
5
|
+
import { concat, join, replace, substring } from '../../../node_modules/@fable-org/fable-library-ts/String.js';
|
|
6
6
|
import { ResizeArray_map } from '../../Core/Helper/Collections.js';
|
|
7
7
|
import { LDFormalParameter } from './FormalParameter.js';
|
|
8
8
|
import { contains } from '../../../node_modules/@fable-org/fable-library-ts/Array.js';
|
|
9
|
-
import { Operators_IsNull } from '../../../node_modules/@fable-org/fable-library-ts/FSharp.Core.js';
|
|
10
9
|
import { clean } from '../Helper.js';
|
|
11
10
|
import { FSharpRef } from '../../../node_modules/@fable-org/fable-library-ts/Types.js';
|
|
12
11
|
import { class_type } from '../../../node_modules/@fable-org/fable-library-ts/Reflection.js';
|
|
@@ -335,7 +334,7 @@ class LDPropertyValue {
|
|
|
335
334
|
}
|
|
336
335
|
static tryGetSubjectOf(pv, graph, context) {
|
|
337
336
|
const matchValue = pv.TryGetPropertyAsSingleNode(LDPropertyValue.subjectOf, unwrap(graph), unwrap(context));
|
|
338
|
-
return matchValue != null ?
|
|
337
|
+
return matchValue != null ? matchValue : void 0;
|
|
339
338
|
}
|
|
340
339
|
static setSubjectOf(pv, subjectOf, context) {
|
|
341
340
|
return pv.SetProperty(LDPropertyValue.subjectOf, subjectOf, unwrap(context));
|
|
@@ -347,8 +346,8 @@ class LDPropertyValue {
|
|
|
347
346
|
let fp = void 0;
|
|
348
347
|
const matchValue = dt.TryGetPropertyAsSingleNode(LDPropertyValue.exampleOfWork, unwrap(graph), unwrap(context));
|
|
349
348
|
if (matchValue != null) {
|
|
350
|
-
if (fp =
|
|
351
|
-
const fp_1 =
|
|
349
|
+
if (fp = matchValue, LDFormalParameter.validate(fp, unwrap(context))) {
|
|
350
|
+
const fp_1 = matchValue;
|
|
352
351
|
return fp_1;
|
|
353
352
|
} else {
|
|
354
353
|
throw new Exception(concat("Property of `exampleOfWork` of object with @id `", dt.Id, "` was not a FormalParameter"));
|
|
@@ -401,7 +400,7 @@ class LDPropertyValue {
|
|
|
401
400
|
const matchValue = LDPropertyValue.tryGetValueObject(pv, unwrap(context));
|
|
402
401
|
let matchResult = void 0, value_1 = void 0;
|
|
403
402
|
if (matchValue != null) {
|
|
404
|
-
if (!
|
|
403
|
+
if (!(value(matchValue) == null)) {
|
|
405
404
|
matchResult = 0;
|
|
406
405
|
value_1 = value(matchValue);
|
|
407
406
|
} else {
|
|
@@ -433,11 +432,11 @@ class LDPropertyValue {
|
|
|
433
432
|
if (matchValue != null) {
|
|
434
433
|
if (matchValue_1 != null) {
|
|
435
434
|
if (matchValue_2 != null) {
|
|
436
|
-
if (
|
|
435
|
+
if (matchValue_1, id = matchValue_2, matchValue === LDPropertyValue.doiKey && id === LDPropertyValue.doiURL) {
|
|
437
436
|
matchResult = 0;
|
|
438
|
-
id_1 =
|
|
439
|
-
name_1 =
|
|
440
|
-
value_1 =
|
|
437
|
+
id_1 = matchValue_2;
|
|
438
|
+
name_1 = matchValue;
|
|
439
|
+
value_1 = matchValue_1;
|
|
441
440
|
} else {
|
|
442
441
|
matchResult = 1;
|
|
443
442
|
}
|
|
@@ -470,11 +469,11 @@ class LDPropertyValue {
|
|
|
470
469
|
if (matchValue != null) {
|
|
471
470
|
if (matchValue_1 != null) {
|
|
472
471
|
if (matchValue_2 != null) {
|
|
473
|
-
if (
|
|
472
|
+
if (matchValue_1, id = matchValue_2, matchValue === LDPropertyValue.pubmedIDKey && id === LDPropertyValue.pubmedIDURL) {
|
|
474
473
|
matchResult = 0;
|
|
475
|
-
id_1 =
|
|
476
|
-
name_1 =
|
|
477
|
-
value_1 =
|
|
474
|
+
id_1 = matchValue_2;
|
|
475
|
+
name_1 = matchValue;
|
|
476
|
+
value_1 = matchValue_1;
|
|
478
477
|
} else {
|
|
479
478
|
matchResult = 1;
|
|
480
479
|
}
|
|
@@ -504,10 +503,10 @@ class LDPropertyValue {
|
|
|
504
503
|
let matchResult = void 0, name_1 = void 0, value_1 = void 0;
|
|
505
504
|
if (matchValue != null) {
|
|
506
505
|
if (matchValue_1 != null) {
|
|
507
|
-
if (
|
|
506
|
+
if (matchValue_1, matchValue === LDPropertyValue.prefixKey) {
|
|
508
507
|
matchResult = 0;
|
|
509
|
-
name_1 =
|
|
510
|
-
value_1 =
|
|
508
|
+
name_1 = matchValue;
|
|
509
|
+
value_1 = matchValue_1;
|
|
511
510
|
} else {
|
|
512
511
|
matchResult = 1;
|
|
513
512
|
}
|
|
@@ -534,10 +533,10 @@ class LDPropertyValue {
|
|
|
534
533
|
let matchResult = void 0, name_1 = void 0, value_1 = void 0;
|
|
535
534
|
if (matchValue != null) {
|
|
536
535
|
if (matchValue_1 != null) {
|
|
537
|
-
if (
|
|
536
|
+
if (matchValue_1, matchValue === LDPropertyValue.positionKey) {
|
|
538
537
|
matchResult = 0;
|
|
539
|
-
name_1 =
|
|
540
|
-
value_1 =
|
|
538
|
+
name_1 = matchValue;
|
|
539
|
+
value_1 = matchValue_1;
|
|
541
540
|
} else {
|
|
542
541
|
matchResult = 1;
|
|
543
542
|
}
|
|
@@ -564,10 +563,10 @@ class LDPropertyValue {
|
|
|
564
563
|
let matchResult = void 0, name_1 = void 0, value_1 = void 0;
|
|
565
564
|
if (matchValue != null) {
|
|
566
565
|
if (matchValue_1 != null) {
|
|
567
|
-
if (
|
|
566
|
+
if (matchValue_1, matchValue === LDPropertyValue.globKey) {
|
|
568
567
|
matchResult = 0;
|
|
569
|
-
name_1 =
|
|
570
|
-
value_1 =
|
|
568
|
+
name_1 = matchValue;
|
|
569
|
+
value_1 = matchValue_1;
|
|
571
570
|
} else {
|
|
572
571
|
matchResult = 1;
|
|
573
572
|
}
|
|
@@ -587,10 +586,10 @@ class LDPropertyValue {
|
|
|
587
586
|
return false;
|
|
588
587
|
}
|
|
589
588
|
}
|
|
590
|
-
static genId(name, value
|
|
589
|
+
static genId(name, value, propertyID, prefix) {
|
|
591
590
|
let pid_1 = void 0, value_2 = void 0, pid = void 0, value_1 = void 0;
|
|
592
591
|
const prefix_1 = defaultArg(prefix, "PV");
|
|
593
|
-
return clean(value
|
|
592
|
+
return clean(value == null ? propertyID != null ? (pid_1 = propertyID, concat("#", prefix_1, "_", name)) : concat("#", prefix_1, "_", name) : propertyID == null ? (value_2 = value, `#${prefix_1}_${name}_${value_2}`) : (pid = propertyID, value_1 = value, `#${prefix_1}_${name}_${value_1}`));
|
|
594
593
|
}
|
|
595
594
|
static genIdComponent(name, value, propertyID) {
|
|
596
595
|
return LDPropertyValue.genId(name, unwrap(value), unwrap(propertyID), "Component");
|
|
@@ -610,6 +609,17 @@ class LDPropertyValue {
|
|
|
610
609
|
static genIdCWLParameter(name, values) {
|
|
611
610
|
return concat("#WorkflowParameter_", name, "_", values.length > 0 ? join("_", ResizeArray_map((v) => replace(v, " ", "_"), values)) : "");
|
|
612
611
|
}
|
|
612
|
+
/**
|
|
613
|
+
* The PropertyValue id repeats the id of the FormalParameter that the value realizes, as the Workflow Run Crate
|
|
614
|
+
* examples do. Two PropertyValues of the same FormalParameter get the same id and merge in a flattened crate,
|
|
615
|
+
* whatever their values. ARCtrl gives every run its own FormalParameters (LDFormalParameter.genID with a run name),
|
|
616
|
+
* so runs with an input of the same name keep separate PropertyValues as long as their FormalParameter ids differ.
|
|
617
|
+
* An id without the FormalParameter prefix keeps everything after its leading "#", or the whole id when it has none.
|
|
618
|
+
*/
|
|
619
|
+
static genIdCWLParameterFromFormalParameter(formalParameter) {
|
|
620
|
+
const id = formalParameter.Id;
|
|
621
|
+
return id.startsWith("#FormalParameter_") ? concat("#WorkflowParameter_", substring(id, "#FormalParameter_".length)) : id.startsWith("#") ? concat("#WorkflowParameter_", substring(id, 1)) : concat("#WorkflowParameter_", id);
|
|
622
|
+
}
|
|
613
623
|
static genIdPrefix(prefix) {
|
|
614
624
|
return concat("#Prefix_", prefix);
|
|
615
625
|
}
|
|
@@ -619,58 +629,58 @@ class LDPropertyValue {
|
|
|
619
629
|
static genIdGlob(glob) {
|
|
620
630
|
return concat("#Glob_", glob);
|
|
621
631
|
}
|
|
622
|
-
static create(name, value
|
|
623
|
-
const pv = new LDNode(id == null ? LDPropertyValue.genId(name, unwrap(value
|
|
632
|
+
static create(name, value, id, propertyID, unitCode, unitText, valueReference, context) {
|
|
633
|
+
const pv = new LDNode(id == null ? LDPropertyValue.genId(name, unwrap(value), unwrap(propertyID)) : id, [LDPropertyValue.schemaType], void 0, unwrap(context));
|
|
624
634
|
LDPropertyValue.setNameAsString(pv, name, unwrap(context));
|
|
625
|
-
pv.SetOptionalProperty(LDPropertyValue.value, value
|
|
635
|
+
pv.SetOptionalProperty(LDPropertyValue.value, value, unwrap(context));
|
|
626
636
|
const option_1 = propertyID;
|
|
627
637
|
if (option_1 != null) {
|
|
628
|
-
const pid =
|
|
638
|
+
const pid = option_1;
|
|
629
639
|
LDPropertyValue.setPropertyIDAsString(pv, pid, unwrap(context));
|
|
630
640
|
}
|
|
631
641
|
const option_3 = unitCode;
|
|
632
642
|
if (option_3 != null) {
|
|
633
|
-
const uc =
|
|
643
|
+
const uc = option_3;
|
|
634
644
|
LDPropertyValue.setUnitCodeAsString(pv, uc, unwrap(context));
|
|
635
645
|
}
|
|
636
646
|
const option_5 = unitText;
|
|
637
647
|
if (option_5 != null) {
|
|
638
|
-
const ut =
|
|
648
|
+
const ut = option_5;
|
|
639
649
|
LDPropertyValue.setUnitTextAsString(pv, ut, unwrap(context));
|
|
640
650
|
}
|
|
641
651
|
const option_7 = valueReference;
|
|
642
652
|
if (option_7 != null) {
|
|
643
|
-
const vr =
|
|
653
|
+
const vr = option_7;
|
|
644
654
|
LDPropertyValue.setValueReferenceAsString(pv, vr, unwrap(context));
|
|
645
655
|
}
|
|
646
656
|
return pv;
|
|
647
657
|
}
|
|
648
|
-
static createComponent(name, value
|
|
649
|
-
const id_1 = id == null ? LDPropertyValue.genIdComponent(name, unwrap(value
|
|
650
|
-
const c = LDPropertyValue.create(name, unwrap(value
|
|
658
|
+
static createComponent(name, value, id, propertyID, unitCode, unitText, valueReference, context) {
|
|
659
|
+
const id_1 = id == null ? LDPropertyValue.genIdComponent(name, unwrap(value), unwrap(propertyID)) : id;
|
|
660
|
+
const c = LDPropertyValue.create(name, unwrap(value), id_1, unwrap(propertyID), unwrap(unitCode), unwrap(unitText), unwrap(valueReference), unwrap(context));
|
|
651
661
|
c.AdditionalType = ["Component"];
|
|
652
662
|
return c;
|
|
653
663
|
}
|
|
654
|
-
static createParameterValue(name, value
|
|
655
|
-
const id_1 = id == null ? LDPropertyValue.genIdParameterValue(name, unwrap(value
|
|
656
|
-
const pv = LDPropertyValue.create(name, unwrap(value
|
|
664
|
+
static createParameterValue(name, value, id, propertyID, unitCode, unitText, valueReference, context) {
|
|
665
|
+
const id_1 = id == null ? LDPropertyValue.genIdParameterValue(name, unwrap(value), unwrap(propertyID)) : id;
|
|
666
|
+
const pv = LDPropertyValue.create(name, unwrap(value), id_1, unwrap(propertyID), unwrap(unitCode), unwrap(unitText), unwrap(valueReference), unwrap(context));
|
|
657
667
|
pv.AdditionalType = ["ParameterValue"];
|
|
658
668
|
return pv;
|
|
659
669
|
}
|
|
660
|
-
static createCharacteristicValue(name, value
|
|
661
|
-
const id_1 = id == null ? LDPropertyValue.genIdCharacteristicValue(name, unwrap(value
|
|
662
|
-
const cv = LDPropertyValue.create(name, unwrap(value
|
|
670
|
+
static createCharacteristicValue(name, value, id, propertyID, unitCode, unitText, valueReference, context) {
|
|
671
|
+
const id_1 = id == null ? LDPropertyValue.genIdCharacteristicValue(name, unwrap(value), unwrap(propertyID)) : id;
|
|
672
|
+
const cv = LDPropertyValue.create(name, unwrap(value), id_1, unwrap(propertyID), unwrap(unitCode), unwrap(unitText), unwrap(valueReference), unwrap(context));
|
|
663
673
|
cv.AdditionalType = ["CharacteristicValue"];
|
|
664
674
|
return cv;
|
|
665
675
|
}
|
|
666
|
-
static createFactorValue(name, value
|
|
667
|
-
const id_1 = id == null ? LDPropertyValue.genIdFactorValue(name, unwrap(value
|
|
668
|
-
const fv = LDPropertyValue.create(name, unwrap(value
|
|
676
|
+
static createFactorValue(name, value, id, propertyID, unitCode, unitText, valueReference, context) {
|
|
677
|
+
const id_1 = id == null ? LDPropertyValue.genIdFactorValue(name, unwrap(value), unwrap(propertyID)) : id;
|
|
678
|
+
const fv = LDPropertyValue.create(name, unwrap(value), id_1, unwrap(propertyID), unwrap(unitCode), unwrap(unitText), unwrap(valueReference), unwrap(context));
|
|
669
679
|
fv.AdditionalType = ["FactorValue"];
|
|
670
680
|
return fv;
|
|
671
681
|
}
|
|
672
682
|
static createFragmentDescriptor(fileName, value$1, id, unitCode, unitText, valueReference, measurementMethod, description, alternateName, disambiguatingDescriptions, subjectOf, context) {
|
|
673
|
-
const id_1 = id == null ? LDPropertyValue.genIdFragmentDescriptor(fileName) :
|
|
683
|
+
const id_1 = id == null ? LDPropertyValue.genIdFragmentDescriptor(fileName) : id;
|
|
674
684
|
const fd = LDPropertyValue.create("FragmentDescriptor", unwrap(value$1), id_1, "https://github.com/nfdi4plants/ARC-specification/blob/dev/ISA-XLSX.md#datamap-table-sheets", unwrap(unitCode), unwrap(unitText), unwrap(valueReference), unwrap(context));
|
|
675
685
|
if (measurementMethod != null) {
|
|
676
686
|
LDPropertyValue.setMeasurementMethodAsString(fd, value(measurementMethod), unwrap(context));
|
|
@@ -689,8 +699,11 @@ class LDPropertyValue {
|
|
|
689
699
|
}
|
|
690
700
|
return fd;
|
|
691
701
|
}
|
|
702
|
+
/**
|
|
703
|
+
* The id comes from exampleOfWork, and the values do not change it.
|
|
704
|
+
*/
|
|
692
705
|
static createCWLParameter(exampleOfWork, name, values, context) {
|
|
693
|
-
const id = LDPropertyValue.
|
|
706
|
+
const id = LDPropertyValue.genIdCWLParameterFromFormalParameter(exampleOfWork);
|
|
694
707
|
const pv = LDPropertyValue.create(name, void 0, id, void 0, void 0, void 0, void 0, unwrap(context));
|
|
695
708
|
if (values.length > 0) {
|
|
696
709
|
pv.SetProperty(LDPropertyValue.value, values, unwrap(context));
|
|
@@ -729,10 +742,8 @@ class LDPropertyValue {
|
|
|
729
742
|
static tryGetAsPosition(pv, context) {
|
|
730
743
|
if (LDPropertyValue.validatePosition(pv, unwrap(context))) {
|
|
731
744
|
let matchValue;
|
|
732
|
-
|
|
733
|
-
matchValue = [tryParse(LDPropertyValue.getValueAsString(pv, unwrap(context)), 511, false, 32,
|
|
734
|
-
outArg = v | 0;
|
|
735
|
-
})), outArg];
|
|
745
|
+
const cell = new FSharpRef(0);
|
|
746
|
+
matchValue = [tryParse(LDPropertyValue.getValueAsString(pv, unwrap(context)), 511, false, 32, cell), cell.contents];
|
|
736
747
|
return matchValue[0] ? matchValue[1] : void 0;
|
|
737
748
|
} else {
|
|
738
749
|
return void 0;
|
|
@@ -111,19 +111,19 @@ class LDSample {
|
|
|
111
111
|
return s;
|
|
112
112
|
}
|
|
113
113
|
static createSample(name, id, additionalProperties, context) {
|
|
114
|
-
const id_2 = id == null ? LDSample.genIDSample(name) :
|
|
114
|
+
const id_2 = id == null ? LDSample.genIDSample(name) : id;
|
|
115
115
|
const s = LDSample.create(id_2, name, unwrap(additionalProperties), unwrap(context));
|
|
116
116
|
s.AdditionalType = ["Sample"];
|
|
117
117
|
return s;
|
|
118
118
|
}
|
|
119
119
|
static createSource(name, id, additionalProperties, context) {
|
|
120
|
-
const id_2 = id == null ? LDSample.genIDSource(name) :
|
|
120
|
+
const id_2 = id == null ? LDSample.genIDSource(name) : id;
|
|
121
121
|
const s = LDSample.create(id_2, name, unwrap(additionalProperties), unwrap(context));
|
|
122
122
|
s.AdditionalType = ["Source"];
|
|
123
123
|
return s;
|
|
124
124
|
}
|
|
125
125
|
static createMaterial(name, id, additionalProperties, context) {
|
|
126
|
-
const id_2 = id == null ? LDSample.genIDMaterial(name) :
|
|
126
|
+
const id_2 = id == null ? LDSample.genIDMaterial(name) : id;
|
|
127
127
|
const s = LDSample.create(id_2, name, unwrap(additionalProperties), unwrap(context));
|
|
128
128
|
s.AdditionalType = ["Material"];
|
|
129
129
|
return s;
|
|
@@ -130,9 +130,9 @@ class LDScholarlyArticle {
|
|
|
130
130
|
const matchValue = s.TryGetPropertyAsSingleNode(LDScholarlyArticle.creativeWorkStatus, unwrap(graph), unwrap(context));
|
|
131
131
|
let matchResult = void 0, cws_1 = void 0;
|
|
132
132
|
if (matchValue != null) {
|
|
133
|
-
if (cws =
|
|
133
|
+
if (cws = matchValue, LDDefinedTerm.validate(cws, unwrap(context))) {
|
|
134
134
|
matchResult = 0;
|
|
135
|
-
cws_1 =
|
|
135
|
+
cws_1 = matchValue;
|
|
136
136
|
} else {
|
|
137
137
|
matchResult = 1;
|
|
138
138
|
}
|
|
@@ -156,13 +156,13 @@ class LDScholarlyArticle {
|
|
|
156
156
|
return s.SetProperty(LDScholarlyArticle.comment, comments, unwrap(context));
|
|
157
157
|
}
|
|
158
158
|
static genID(headline, url) {
|
|
159
|
-
return clean(url == null ? concat("#", headline) :
|
|
159
|
+
return clean(url == null ? concat("#", headline) : url);
|
|
160
160
|
}
|
|
161
161
|
static validate(s, context) {
|
|
162
162
|
return s.HasType(LDScholarlyArticle.schemaType, unwrap(context)) && s.HasProperty(LDScholarlyArticle.headline, unwrap(context));
|
|
163
163
|
}
|
|
164
164
|
static create(headline, identifiers, id, authors, url, creativeWorkStatus, comments, context) {
|
|
165
|
-
const s = new LDNode(id == null ? LDScholarlyArticle.genID(headline, unwrap(url)) :
|
|
165
|
+
const s = new LDNode(id == null ? LDScholarlyArticle.genID(headline, unwrap(url)) : id, [LDScholarlyArticle.schemaType], void 0, unwrap(context));
|
|
166
166
|
s.SetProperty(LDScholarlyArticle.headline, headline, unwrap(context));
|
|
167
167
|
s.SetProperty(LDScholarlyArticle.identifier, identifiers, unwrap(context));
|
|
168
168
|
s.SetOptionalProperty(LDScholarlyArticle.author, authors, unwrap(context));
|
|
@@ -122,9 +122,9 @@ class LDSoftwareSourceCode {
|
|
|
122
122
|
const matchValue = ssc.TryGetPropertyAsSingleNode(LDSoftwareSourceCode.sdPublisher, unwrap(graph), unwrap(context));
|
|
123
123
|
let matchResult = void 0, a_1 = void 0;
|
|
124
124
|
if (matchValue != null) {
|
|
125
|
-
if (ldObject =
|
|
125
|
+
if (ldObject = matchValue, context_1 = context, LDPerson.validate(ldObject, unwrap(context_1)) ? true : LDOrganization.validate(ldObject, unwrap(context_1))) {
|
|
126
126
|
matchResult = 0;
|
|
127
|
-
a_1 =
|
|
127
|
+
a_1 = matchValue;
|
|
128
128
|
} else {
|
|
129
129
|
matchResult = 1;
|
|
130
130
|
}
|
|
@@ -226,7 +226,7 @@ class LDSoftwareSourceCode {
|
|
|
226
226
|
return lp.HasType(LDSoftwareSourceCode.schemaType, unwrap(context));
|
|
227
227
|
}
|
|
228
228
|
static create(id, creator, dateCreated, licenses, name, programmingLanguages, sdPublisher, url, version, description, hasParts, comments, context) {
|
|
229
|
-
const ssc = new LDNode(id == null ? clean(concat("#ComputationalWorkflow_", createMissingIdentifier())) :
|
|
229
|
+
const ssc = new LDNode(id == null ? clean(concat("#ComputationalWorkflow_", createMissingIdentifier())) : id, [LDSoftwareSourceCode.schemaType], void 0, unwrap(context));
|
|
230
230
|
ssc.SetOptionalProperty(LDSoftwareSourceCode.creator, creator, unwrap(context));
|
|
231
231
|
ssc.SetOptionalProperty(LDSoftwareSourceCode.dateCreated, dateCreated, unwrap(context));
|
|
232
232
|
ssc.SetOptionalProperty(LDSoftwareSourceCode.license, licenses, unwrap(context));
|
|
@@ -2,7 +2,7 @@ import { LDCreateAction } from './CreateAction.js';
|
|
|
2
2
|
import { LDLabProcess } from './LabProcess.js';
|
|
3
3
|
import { clean } from '../Helper.js';
|
|
4
4
|
import { concat } from '../../../node_modules/@fable-org/fable-library-ts/String.js';
|
|
5
|
-
import {
|
|
5
|
+
import { unwrap } from '../../../node_modules/@fable-org/fable-library-ts/Option.js';
|
|
6
6
|
import { LDNode } from '../LDObject.js';
|
|
7
7
|
import { class_type } from '../../../node_modules/@fable-org/fable-library-ts/Reflection.js';
|
|
8
8
|
|
|
@@ -13,14 +13,14 @@ class LDWorkflowInvocation {
|
|
|
13
13
|
return [LDCreateAction.schemaType, LDLabProcess.schemaType];
|
|
14
14
|
}
|
|
15
15
|
static genID(name, runName) {
|
|
16
|
-
return runName == null ? clean(concat("#WorkflowInvocation_", name)) : clean(concat("#WorkflowInvocation_R_",
|
|
16
|
+
return runName == null ? clean(concat("#WorkflowInvocation_", name)) : clean(concat("#WorkflowInvocation_R_", runName, "_", name));
|
|
17
17
|
}
|
|
18
18
|
static validate(wp, context) {
|
|
19
19
|
return LDCreateAction.validate(wp, unwrap(context)) && LDLabProcess.validate(wp, unwrap(context));
|
|
20
20
|
}
|
|
21
21
|
static create(name, instrument, objects, results, description, agents, id, endTime, disambiguatingDescriptions, executesLabProtocol, parameterValues, context) {
|
|
22
22
|
const at = ["WorkflowInvocation"];
|
|
23
|
-
const ca = new LDNode(id == null ? LDWorkflowInvocation.genID(name) :
|
|
23
|
+
const ca = new LDNode(id == null ? LDWorkflowInvocation.genID(name) : id, LDWorkflowInvocation.schemaType, at, unwrap(context));
|
|
24
24
|
ca.SetProperty(LDCreateAction.name, name, unwrap(context));
|
|
25
25
|
ca.SetOptionalProperty(LDCreateAction.object_, objects, unwrap(context));
|
|
26
26
|
ca.SetOptionalProperty(LDCreateAction.result, results, unwrap(context));
|
|
@@ -2,7 +2,7 @@ import { LDFile } from './File.js';
|
|
|
2
2
|
import { LDComputationalWorkflow } from './ComputationalWorkflow.js';
|
|
3
3
|
import { LDSoftwareSourceCode } from './SoftwareSourceCode.js';
|
|
4
4
|
import { LDLabProtocol } from './LabProtocol.js';
|
|
5
|
-
import { unwrap
|
|
5
|
+
import { unwrap } from '../../../node_modules/@fable-org/fable-library-ts/Option.js';
|
|
6
6
|
import { LDNode } from '../LDObject.js';
|
|
7
7
|
import { clean } from '../Helper.js';
|
|
8
8
|
import { concat } from '../../../node_modules/@fable-org/fable-library-ts/String.js';
|
|
@@ -20,7 +20,7 @@ class LDWorkflowProtocol {
|
|
|
20
20
|
}
|
|
21
21
|
static create(id, inputs, outputs, creator, dateCreated, licenses, name, programmingLanguages, sdPublisher, url, version, description, hasParts, intendedUse, comments, computationalTools, additionalType, context) {
|
|
22
22
|
const at = ["WorkflowProtocol"];
|
|
23
|
-
const wp = new LDNode(id == null ? clean(concat("#ComputationalWorkflow_", createMissingIdentifier())) :
|
|
23
|
+
const wp = new LDNode(id == null ? clean(concat("#ComputationalWorkflow_", createMissingIdentifier())) : id, LDWorkflowProtocol.schemaType, at, unwrap(context));
|
|
24
24
|
wp.SetOptionalProperty(LDComputationalWorkflow.input, inputs, unwrap(context));
|
|
25
25
|
wp.SetOptionalProperty(LDComputationalWorkflow.output, outputs, unwrap(context));
|
|
26
26
|
wp.SetOptionalProperty(LDComputationalWorkflow.creator, creator, unwrap(context));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TypeInfo } from '@fable-org/fable-library-ts/Reflection.ts';
|
|
2
2
|
import { LDGraph, LDNode } from './ROCrate/LDObject.ts';
|
|
3
|
-
import { Option } from '@fable-org/fable-library-ts/Option.ts';
|
|
4
3
|
import { License } from './License.ts';
|
|
4
|
+
import { Option } from '@fable-org/fable-library-ts/Option.ts';
|
|
5
5
|
import { LDContext } from './ROCrate/LDContext.ts';
|
|
6
6
|
import { ArcWorkflow, ArcRun, ArcInvestigation } from './Core/ArcTypes.ts';
|
|
7
7
|
import { FileSystem } from './FileSystem/FileSystem.ts';
|
|
@@ -25,8 +25,22 @@ export declare function ROCrate_encoder_Z7FE34C43(isa: ArcInvestigation, license
|
|
|
25
25
|
* Returns ArcInvestigation, list of file Ids, and optional License
|
|
26
26
|
*/
|
|
27
27
|
export declare function ROCrate_get_decoder(): Decoder$1<[ArcInvestigation, string[], Option<License>]>;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Packs a dataset as the root of a crate. The root is created and published at the given time, and now when none
|
|
30
|
+
* is given. Both dates are in UTC. A time of kind Unspecified counts as local time, as in .NET.
|
|
31
|
+
*/
|
|
32
|
+
export declare function ROCrate_packDatasetAsCrate_Z51E5569B(dataset: LDNode, datasetName: string, datasetDescription: string, metadataFileDescriptor: Option<LDNode>, license: License, timestamp?: Date): LDGraph;
|
|
33
|
+
/**
|
|
34
|
+
* Writes a run as a Workflow Run Crate. A license is required. The crate and its workflow are created and the crate
|
|
35
|
+
* is published at the given time, and now when none is given. The dates are in UTC, so the same time gives the
|
|
36
|
+
* same crate. A time of kind Unspecified counts as local time, as in .NET.
|
|
37
|
+
*/
|
|
38
|
+
export declare function ROCrate_writeRunAsCrate_Z656C4A0F(arcRun: ArcRun, fileSystem: FileSystem, license: License, timestamp?: Date): string;
|
|
39
|
+
/**
|
|
40
|
+
* Writes a workflow as a Workflow RO-Crate. A license is required. The crate and its workflow are created and the
|
|
41
|
+
* crate is published at the given time, and now when none is given. The dates are in UTC, so the same time gives
|
|
42
|
+
* the same crate. A time of kind Unspecified counts as local time, as in .NET.
|
|
43
|
+
*/
|
|
44
|
+
export declare function ROCrate_writeWorkflowAsCrate_Z38FC00B5(arcWorkflow: ArcWorkflow, fileSystem: FileSystem, license: License, timestamp?: Date): string;
|
|
31
45
|
export declare function ROCrate_get_decoderDeprecated(): Decoder$1<ArcInvestigation>;
|
|
32
46
|
//# sourceMappingURL=ROCrateIO.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ROCrateIO.d.ts","sourceRoot":"","sources":["../../../src/ARCtrl/ts/ROCrateIO.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAA2D,OAAO,EAAS,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAGxH,OAAO,
|
|
1
|
+
{"version":3,"file":"ROCrateIO.d.ts","sourceRoot":"","sources":["../../../src/ARCtrl/ts/ROCrateIO.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAA2D,OAAO,EAAS,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAGxH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAwC,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAErG,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAMnD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAc1F;;;;GAIG;AACH,qBAAa,OAAO;;CAGnB;AAED,wBAAgB,mBAAmB,IAAI,QAAQ,CAE9C;AAED,wBAAgB,kCAAkC,IAAI,MAAM,CAK3D;AAED,wBAAgB,uCAAuC,IAAI,MAAM,CAKhE;AAED,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,CAWnF;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,CAqClG;AAED,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAWzI;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,CAEzI;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,SAAS,CAAC,CAAC,gBAAgB,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAsB9F;AAOD;;;GAGG;AACH,wBAAgB,oCAAoC,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,IAAI,GAAG,OAAO,CAiB1M;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAsBpI;AAED;;;;GAIG;AACH,wBAAgB,sCAAsC,CAAC,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAsBnJ;AAED,wBAAgB,6BAA6B,IAAI,SAAS,CAAC,gBAAgB,CAAC,CAE3E"}
|
package/dist/ts/ts/ROCrateIO.js
CHANGED
|
@@ -2,22 +2,25 @@ import { class_type } from '../node_modules/@fable-org/fable-library-ts/Reflecti
|
|
|
2
2
|
import { LDNode, LDRef, DynamicObj_DynamicObj__DynamicObj_HasProperty_Z721C83C5 } from './ROCrate/LDObject.js';
|
|
3
3
|
import { ofArray, filter, isEmpty, map as map$1 } from '../node_modules/@fable-org/fable-library-ts/List.js';
|
|
4
4
|
import { LDCreativeWork } from './ROCrate/LDTypes/CreativeWork.js';
|
|
5
|
-
import { value, unwrap, defaultArg } from '../node_modules/@fable-org/fable-library-ts/Option.js';
|
|
6
5
|
import { License } from './License.js';
|
|
6
|
+
import { unwrap, defaultArg, value } from '../node_modules/@fable-org/fable-library-ts/Option.js';
|
|
7
7
|
import { LDContext } from './ROCrate/LDContext.js';
|
|
8
|
-
import { ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_Z7960E96B, ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8
|
|
8
|
+
import { ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_Z7960E96B, ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8 } from './Conversion.js';
|
|
9
9
|
import { LDDataset } from './ROCrate/LDTypes/Dataset.js';
|
|
10
|
-
import { now } from '../node_modules/@fable-org/fable-library-ts/Date.js';
|
|
10
|
+
import { now, utcNow, toUniversalTime } from '../node_modules/@fable-org/fable-library-ts/Date.js';
|
|
11
|
+
import { ARCtrl_ROCrate_LDGraph__LDGraph_normalizeDataEntityIds_Static_34DF9647, ARCtrl_ROCrate_LDGraph__LDGraph_toROCrateJsonString_Static_71136F3F } from './JsonIO/LDObject.js';
|
|
11
12
|
import { initV1_2, initBioschemasContext, initV1_1 } from './ROCrate/ROCrateContext.js';
|
|
12
13
|
import { encoder, decoder } from './Json/ROCrate/LDGraph.js';
|
|
13
14
|
import { map } from './fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js';
|
|
14
15
|
import { Exception } from '../node_modules/@fable-org/fable-library-ts/Util.js';
|
|
15
16
|
import { ResizeArray_choose } from './Core/Helper/Collections.js';
|
|
16
17
|
import { LDFile } from './ROCrate/LDTypes/File.js';
|
|
18
|
+
import { hasUriScheme } from './FileSystem/Path.js';
|
|
17
19
|
import { iterate, tryHead, exactlyOne } from '../node_modules/@fable-org/fable-library-ts/Seq.js';
|
|
20
|
+
import { RunConversion_composeRun_3F79BD1 } from './Conversion/Run.js';
|
|
18
21
|
import { join, replace, toFail, printf } from '../node_modules/@fable-org/fable-library-ts/String.js';
|
|
19
22
|
import { LDCreateAction } from './ROCrate/LDTypes/CreateAction.js';
|
|
20
|
-
import {
|
|
23
|
+
import { WorkflowConversion_composeWorkflow_38B68F62 } from './Conversion/Workflow.js';
|
|
21
24
|
import { LDComputationalWorkflow } from './ROCrate/LDTypes/ComputationalWorkflow.js';
|
|
22
25
|
import { decoder as decoder$1 } from './Json/ROCrate/LDNode.js';
|
|
23
26
|
|
|
@@ -44,7 +47,7 @@ function ROCrate_createLicenseNode_29619109(license) {
|
|
|
44
47
|
if (license == null) {
|
|
45
48
|
return LDCreativeWork.create("#LICENSE", void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, "ALL RIGHTS RESERVED BY THE AUTHORS");
|
|
46
49
|
} else {
|
|
47
|
-
const license_1 =
|
|
50
|
+
const license_1 = license;
|
|
48
51
|
let text;
|
|
49
52
|
license_1.Type;
|
|
50
53
|
text = license_1.Content;
|
|
@@ -57,11 +60,11 @@ function ROCrate_getLicense_Z2F770004(license, context) {
|
|
|
57
60
|
let matchResult = void 0, text_1 = void 0, path = void 0, text_2 = void 0, path_1 = void 0;
|
|
58
61
|
if (matchValue === "#LICENSE") {
|
|
59
62
|
if (text != null) {
|
|
60
|
-
if (
|
|
63
|
+
if (text === "ALL RIGHTS RESERVED BY THE AUTHORS") {
|
|
61
64
|
matchResult = 0;
|
|
62
65
|
} else {
|
|
63
66
|
matchResult = 1;
|
|
64
|
-
text_1 =
|
|
67
|
+
text_1 = text;
|
|
65
68
|
}
|
|
66
69
|
} else {
|
|
67
70
|
matchResult = 0;
|
|
@@ -72,7 +75,7 @@ function ROCrate_getLicense_Z2F770004(license, context) {
|
|
|
72
75
|
} else {
|
|
73
76
|
matchResult = 2;
|
|
74
77
|
path = matchValue;
|
|
75
|
-
text_2 =
|
|
78
|
+
text_2 = text;
|
|
76
79
|
}
|
|
77
80
|
switch (matchResult) {
|
|
78
81
|
case 0:
|
|
@@ -90,55 +93,62 @@ function ROCrate_getAsGraph_Z7FE34C43(isa, license, fs, ignoreBrokenWR) {
|
|
|
90
93
|
const isa_1 = ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_Z7960E96B(isa, unwrap(fs), unwrap(ignoreBrokenWR));
|
|
91
94
|
LDDataset.setSDDatePublishedAsDateTime(isa_1, now());
|
|
92
95
|
LDDataset.setLicenseAsCreativeWork(isa_1, license_1);
|
|
93
|
-
const
|
|
96
|
+
const graph_1 = ARCtrl_ROCrate_LDGraph__LDGraph_normalizeDataEntityIds_Static_34DF9647(isa_1.Flatten());
|
|
94
97
|
const context = new LDContext(void 0, [initV1_2(), initBioschemasContext()]);
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
return
|
|
98
|
+
graph_1.SetContext(context);
|
|
99
|
+
graph_1.AddNode(ROCrate_get_metadataFileDescriptor());
|
|
100
|
+
graph_1.Compact_InPlace();
|
|
101
|
+
return graph_1;
|
|
99
102
|
}
|
|
100
103
|
function ROCrate_encoder_Z7FE34C43(isa, license, fs, ignoreBrokenWR) {
|
|
101
104
|
return encoder(ROCrate_getAsGraph_Z7FE34C43(isa, unwrap(license), unwrap(fs), unwrap(ignoreBrokenWR)));
|
|
102
105
|
}
|
|
103
106
|
function ROCrate_get_decoder() {
|
|
104
|
-
return map((
|
|
105
|
-
const matchValue =
|
|
107
|
+
return map((graph_1) => {
|
|
108
|
+
const matchValue = graph_1.TryGetNode("./");
|
|
106
109
|
if (matchValue == null) {
|
|
107
110
|
throw new Exception("RO-Crate graph did not contain root data Entity");
|
|
108
111
|
} else {
|
|
109
|
-
const node =
|
|
112
|
+
const node = matchValue;
|
|
110
113
|
const files = ResizeArray_choose((n) => {
|
|
111
|
-
if (LDFile.validate(n, unwrap(
|
|
114
|
+
if (LDFile.validate(n, unwrap(graph_1.TryGetContext())) && !(n.Id.indexOf("#") >= 0) && !hasUriScheme(n.Id) && !n.HasType(LDDataset.schemaType, unwrap(graph_1.TryGetContext()))) {
|
|
112
115
|
return n.Id;
|
|
113
116
|
} else {
|
|
114
117
|
return void 0;
|
|
115
118
|
}
|
|
116
|
-
},
|
|
119
|
+
}, graph_1.Nodes);
|
|
117
120
|
let license;
|
|
118
|
-
const option_1 = LDDataset.tryGetLicenseAsCreativeWork(node,
|
|
119
|
-
license = option_1 != null ? ROCrate_getLicense_Z2F770004(
|
|
120
|
-
return [ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(node,
|
|
121
|
+
const option_1 = LDDataset.tryGetLicenseAsCreativeWork(node, graph_1, unwrap(graph_1.TryGetContext()));
|
|
122
|
+
license = option_1 != null ? ROCrate_getLicense_Z2F770004(option_1, unwrap(graph_1.TryGetContext())) : void 0;
|
|
123
|
+
return [ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(node, graph_1, unwrap(graph_1.TryGetContext())), files, license];
|
|
121
124
|
}
|
|
122
|
-
}, decoder);
|
|
125
|
+
}, map(ARCtrl_ROCrate_LDGraph__LDGraph_normalizeDataEntityIds_Static_34DF9647, decoder));
|
|
123
126
|
}
|
|
124
|
-
function
|
|
127
|
+
function ROCrate_utcTimestamp_Z4DAFACB4(timestamp) {
|
|
128
|
+
let copyOfStruct = defaultArg(timestamp, utcNow());
|
|
129
|
+
return toUniversalTime(copyOfStruct);
|
|
130
|
+
}
|
|
131
|
+
function ROCrate_packDatasetAsCrate_Z51E5569B(dataset, datasetName, datasetDescription, metadataFileDescriptor, license, timestamp) {
|
|
132
|
+
const timestamp_1 = ROCrate_utcTimestamp_Z4DAFACB4(timestamp);
|
|
125
133
|
const metadataFileDescriptor_1 = defaultArg(metadataFileDescriptor, ROCrate_get_metadataFileDescriptor());
|
|
126
134
|
const license_1 = ROCrate_createLicenseNode_29619109(license);
|
|
127
135
|
const mainEntity = LDDataset.create("./", void 0, void 0, void 0, void 0, void 0, datasetDescription, void 0, datasetName);
|
|
128
136
|
iterate((kv) => {
|
|
129
137
|
mainEntity.SetProperty(kv[0], kv[1]);
|
|
130
138
|
}, dataset.GetProperties(false));
|
|
131
|
-
LDDataset.setDateCreatedAsDateTime(mainEntity,
|
|
139
|
+
LDDataset.setDateCreatedAsDateTime(mainEntity, timestamp_1);
|
|
140
|
+
LDDataset.setDatePublishedAsDateTime(mainEntity, timestamp_1);
|
|
132
141
|
LDDataset.setLicenseAsCreativeWork(mainEntity, license_1);
|
|
133
|
-
const
|
|
142
|
+
const graph_1 = ARCtrl_ROCrate_LDGraph__LDGraph_normalizeDataEntityIds_Static_34DF9647(mainEntity.Flatten());
|
|
134
143
|
const context = new LDContext(void 0, [initV1_2(), initBioschemasContext()]);
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
return
|
|
144
|
+
graph_1.SetContext(context);
|
|
145
|
+
graph_1.AddNode(metadataFileDescriptor_1);
|
|
146
|
+
graph_1.Compact_InPlace();
|
|
147
|
+
return graph_1;
|
|
139
148
|
}
|
|
140
|
-
function
|
|
141
|
-
const
|
|
149
|
+
function ROCrate_writeRunAsCrate_Z656C4A0F(arcRun, fileSystem, license, timestamp) {
|
|
150
|
+
const timestamp_1 = ROCrate_utcTimestamp_Z4DAFACB4(timestamp);
|
|
151
|
+
const runDataset = RunConversion_composeRun_3F79BD1(arcRun, fileSystem, timestamp_1, true);
|
|
142
152
|
const missingDatasetProps = filter((prop) => !DynamicObj_DynamicObj__DynamicObj_HasProperty_Z721C83C5(runDataset, prop), ofArray([LDDataset.identifier, LDDataset.name, LDDataset.description, LDDataset.about, LDDataset.mentions, LDDataset.creator, LDDataset.hasPart]));
|
|
143
153
|
if (!isEmpty(missingDatasetProps)) {
|
|
144
154
|
const missingPropsStr = join(", ", map$1((p) => replace(p, "http://schema.org/", ""), missingDatasetProps));
|
|
@@ -149,17 +159,18 @@ function ROCrate_writeRunAsCrate_5E53831D(arcRun, fileSystem, license) {
|
|
|
149
159
|
if (matchValue == null) {
|
|
150
160
|
throw new Exception("Run dataset 'about' property must contain a workflowInvocation");
|
|
151
161
|
} else {
|
|
152
|
-
workflowInvocation =
|
|
162
|
+
workflowInvocation = matchValue;
|
|
153
163
|
}
|
|
154
164
|
const missingWfInvocationProps = filter((prop_1) => !DynamicObj_DynamicObj__DynamicObj_HasProperty_Z721C83C5(workflowInvocation, prop_1), ofArray([LDCreateAction.name, LDCreateAction.instrument, LDCreateAction.result, LDCreateAction.object_]));
|
|
155
165
|
if (!isEmpty(missingWfInvocationProps)) {
|
|
156
166
|
const missingPropsStr_1 = join(", ", map$1((p_1) => replace(p_1, "http://schema.org/", ""), missingWfInvocationProps));
|
|
157
167
|
toFail(printf("WorkflowInvocation is missing required properties: %s"))(missingPropsStr_1);
|
|
158
168
|
}
|
|
159
|
-
return ARCtrl_ROCrate_LDGraph__LDGraph_toROCrateJsonString_Static_71136F3F(2)(
|
|
169
|
+
return ARCtrl_ROCrate_LDGraph__LDGraph_toROCrateJsonString_Static_71136F3F(2)(ROCrate_packDatasetAsCrate_Z51E5569B(runDataset, value(arcRun.Title), value(arcRun.Description), ROCrate_get_metadataFileDescriptorWfRun(), license, timestamp_1));
|
|
160
170
|
}
|
|
161
|
-
function
|
|
162
|
-
const
|
|
171
|
+
function ROCrate_writeWorkflowAsCrate_Z38FC00B5(arcWorkflow, fileSystem, license, timestamp) {
|
|
172
|
+
const timestamp_1 = ROCrate_utcTimestamp_Z4DAFACB4(timestamp);
|
|
173
|
+
const workflowDataset = WorkflowConversion_composeWorkflow_38B68F62(arcWorkflow, fileSystem, timestamp_1);
|
|
163
174
|
const missingDatasetProps = filter((prop) => !DynamicObj_DynamicObj__DynamicObj_HasProperty_Z721C83C5(workflowDataset, prop), ofArray([LDDataset.identifier, LDDataset.name, LDDataset.description, LDDataset.mainEntity, LDDataset.hasPart, LDDataset.creator]));
|
|
164
175
|
if (!isEmpty(missingDatasetProps)) {
|
|
165
176
|
const missingPropsStr = join(", ", map$1((p) => replace(p, "http://schema.org/", ""), missingDatasetProps));
|
|
@@ -170,17 +181,17 @@ function ROCrate_writeWorkflowAsCrate_Z4A0538D9(arcWorkflow, fileSystem, license
|
|
|
170
181
|
if (matchValue == null) {
|
|
171
182
|
throw new Exception("Workflow dataset 'mainEntity' property must contain a workflow protocol");
|
|
172
183
|
} else {
|
|
173
|
-
workflowProtocol =
|
|
184
|
+
workflowProtocol = matchValue;
|
|
174
185
|
}
|
|
175
186
|
const missingProtocolProps = filter((prop_1) => !DynamicObj_DynamicObj__DynamicObj_HasProperty_Z721C83C5(workflowProtocol, prop_1), ofArray([LDComputationalWorkflow.creator, LDComputationalWorkflow.name, LDComputationalWorkflow.input, LDComputationalWorkflow.output, LDComputationalWorkflow.programmingLanguage, LDComputationalWorkflow.url, LDComputationalWorkflow.version, LDComputationalWorkflow.dateCreated]));
|
|
176
187
|
if (!isEmpty(missingProtocolProps)) {
|
|
177
188
|
const missingPropsStr_1 = join(", ", map$1((p_1) => replace(p_1, "http://schema.org/", ""), missingProtocolProps));
|
|
178
189
|
toFail(printf("Workflow protocol is missing required properties: %s"))(missingPropsStr_1);
|
|
179
190
|
}
|
|
180
|
-
return ARCtrl_ROCrate_LDGraph__LDGraph_toROCrateJsonString_Static_71136F3F(2)(
|
|
191
|
+
return ARCtrl_ROCrate_LDGraph__LDGraph_toROCrateJsonString_Static_71136F3F(2)(ROCrate_packDatasetAsCrate_Z51E5569B(workflowDataset, value(arcWorkflow.Title), value(arcWorkflow.Description), ROCrate_get_metadataFileDescriptorWfRun(), license, timestamp_1));
|
|
181
192
|
}
|
|
182
193
|
function ROCrate_get_decoderDeprecated() {
|
|
183
194
|
return map((ldnode) => ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(exactlyOne(LDDataset.getAbouts(ldnode)), void 0, initV1_1()), decoder$1);
|
|
184
195
|
}
|
|
185
196
|
|
|
186
|
-
export { ROCrate, ROCrate_$reflection, ROCrate_createLicenseNode_29619109, ROCrate_encoder_Z7FE34C43, ROCrate_getAsGraph_Z7FE34C43, ROCrate_getLicense_Z2F770004, ROCrate_get_decoder, ROCrate_get_decoderDeprecated, ROCrate_get_metadataFileDescriptor, ROCrate_get_metadataFileDescriptorWfRun,
|
|
197
|
+
export { ROCrate, ROCrate_$reflection, ROCrate_createLicenseNode_29619109, ROCrate_encoder_Z7FE34C43, ROCrate_getAsGraph_Z7FE34C43, ROCrate_getLicense_Z2F770004, ROCrate_get_decoder, ROCrate_get_decoderDeprecated, ROCrate_get_metadataFileDescriptor, ROCrate_get_metadataFileDescriptorWfRun, ROCrate_packDatasetAsCrate_Z51E5569B, ROCrate_writeRunAsCrate_Z656C4A0F, ROCrate_writeWorkflowAsCrate_Z38FC00B5 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArcTable.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Spreadsheet/AnnotationTable/ArcTable.ts"],"names":[],"mappings":"AACA,OAAO,EAA4I,UAAU,EAAgB,MAAM,qCAAqC,CAAC;AACzN,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAA2B,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAE5F,OAAO,EAAE,OAAO,EAAE,MAAM,8DAA8D,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AACxF,OAAO,
|
|
1
|
+
{"version":3,"file":"ArcTable.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Spreadsheet/AnnotationTable/ArcTable.ts"],"names":[],"mappings":"AACA,OAAO,EAA4I,UAAU,EAAgB,MAAM,qCAAqC,CAAC;AACzN,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,EAA2B,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAE5F,OAAO,EAAE,OAAO,EAAE,MAAM,8DAA8D,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAC;AACxF,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAG/D,OAAO,EAAE,cAAc,EAA0B,MAAM,iCAAiC,CAAC;AAIzF,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAOxD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,KAAK,OAAO,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAanH;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,sBAAsB,GAAG,KAAK,CAsBzE;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,eAAe,GAAG,KAAK,CAElE;AAED,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,MAAM,CAAwG,CAAC;AAE5J,wBAAgB,oBAAoB,CAAC,iBAAiB,EAAE,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,YAAY,CAAC,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAK5I;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,CAEtE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,iBAAiB,EAAE,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,YAAY,CAAC,eAAe,CAAC,CAEnH;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,iBAAiB,EAAE,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC,sBAAsB,CAAC,EAAE,cAAc,CAAC,CAKnJ;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CA0BvE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,QAAQ,GAAG,WAAW,CAwChF"}
|