@nfdi4plants/arctrl 3.0.0-beta.12 → 3.0.0-beta.14
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 +17 -16
- package/dist/ts/index.d.ts.map +1 -1
- package/dist/ts/index.js +18 -17
- package/dist/ts/ts/ARC.d.ts +11 -6
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +79 -55
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +19 -0
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -0
- package/dist/ts/ts/CWL/CWLProcessingUnit.js +26 -0
- package/dist/ts/ts/CWL/CWLTypes.d.ts +92 -0
- package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -0
- package/dist/ts/ts/CWL/CWLTypes.js +173 -0
- package/dist/ts/ts/CWL/Decode.d.ts +94 -0
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Decode.js +649 -0
- package/dist/ts/ts/CWL/Encode.d.ts +28 -0
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Encode.js +546 -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 +28 -0
- package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Inputs.js +62 -0
- package/dist/ts/ts/CWL/Outputs.d.ts +25 -0
- package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Outputs.js +59 -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 +71 -0
- package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Requirements.js +116 -0
- package/dist/ts/ts/CWL/ToolDescription.d.ts +33 -0
- package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -0
- package/dist/ts/ts/CWL/ToolDescription.js +80 -0
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts +34 -0
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -0
- package/dist/ts/ts/CWL/WorkflowDescription.js +80 -0
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts +45 -0
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -0
- package/dist/ts/ts/CWL/WorkflowSteps.js +99 -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 +59 -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 +26 -0
- package/dist/ts/ts/Conversion/Run.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Run.js +190 -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 +45 -0
- package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Workflow.js +305 -0
- package/dist/ts/ts/Conversion.d.ts +23 -274
- package/dist/ts/ts/Conversion.d.ts.map +1 -1
- package/dist/ts/ts/Conversion.js +62 -1475
- 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 +34 -1
- 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/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.js +2 -2
- 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 -3
- package/dist/ts/ts/Json.js +3 -3
- package/dist/ts/ts/JsonIO/Datamap.d.ts +4 -4
- package/dist/ts/ts/JsonIO/Datamap.js +6 -6
- 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 +61 -0
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +338 -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}/Dataset.d.ts +32 -22
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.js +45 -0
- 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.js +6 -6
- 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/Xlsx.d.ts +5 -5
- package/dist/ts/ts/Xlsx.js +1 -1
- package/dist/ts/ts/fable_modules/DynamicObj.7.1.0/DynObj.fs.js +109 -0
- 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/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}/CreativeWork.js +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
|
@@ -4,7 +4,7 @@ import { Getters$2_$ctor_Z4BE6C149, string, Getters$2__get_Errors, resizeArray }
|
|
|
4
4
|
import { getEnumerator, disposeSafe } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
5
5
|
import { isEmpty, length, head } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
6
6
|
import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
|
|
7
|
-
import {
|
|
7
|
+
import { initV1_2, initV1_1 } from '../../ROCrate/ROCrateContext.js';
|
|
8
8
|
import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
9
9
|
import { map, append, toList, delay, singleton, empty } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
10
10
|
import { seq } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
@@ -40,7 +40,7 @@ const decoder = {
|
|
|
40
40
|
}
|
|
41
41
|
} else if (helpers.isString(value)) {
|
|
42
42
|
const s = helpers.asString(value);
|
|
43
|
-
return s === "https://w3id.org/ro/crate/1.2-DRAFT/context" ? FSharpResult$2_Ok(
|
|
43
|
+
return (s === "https://w3id.org/ro/crate/1.2-DRAFT/context" ? true : s === "https://w3id.org/ro/crate/1.2/context") ? FSharpResult$2_Ok(initV1_2()) : s === "https://w3id.org/ro/crate/1.1/context" ? FSharpResult$2_Ok(initV1_1()) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an object", value)]);
|
|
44
44
|
} else if (helpers.isArray(value)) {
|
|
45
45
|
const matchValue_1 = resizeArray(this$).Decode(helpers, value);
|
|
46
46
|
return matchValue_1.tag === /* Error */
|
|
@@ -63,15 +63,19 @@ function encoder(ctx_mut) {
|
|
|
63
63
|
matchResult = 0;
|
|
64
64
|
break;
|
|
65
65
|
}
|
|
66
|
-
case "https://w3id.org/ro/crate/1.
|
|
66
|
+
case "https://w3id.org/ro/crate/1.2/context": {
|
|
67
67
|
matchResult = 1;
|
|
68
68
|
break;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
case "https://w3id.org/ro/crate/1.1/context": {
|
|
71
71
|
matchResult = 2;
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
default:
|
|
75
|
+
matchResult = 3;
|
|
72
76
|
}
|
|
73
77
|
} else {
|
|
74
|
-
matchResult =
|
|
78
|
+
matchResult = 3;
|
|
75
79
|
}
|
|
76
80
|
switch (matchResult) {
|
|
77
81
|
case 0:
|
|
@@ -83,20 +87,26 @@ function encoder(ctx_mut) {
|
|
|
83
87
|
case 1:
|
|
84
88
|
return {
|
|
85
89
|
Encode(helpers_1) {
|
|
86
|
-
return helpers_1.encodeString("https://w3id.org/ro/crate/1.
|
|
90
|
+
return helpers_1.encodeString("https://w3id.org/ro/crate/1.2/context");
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
case 2:
|
|
94
|
+
return {
|
|
95
|
+
Encode(helpers_2) {
|
|
96
|
+
return helpers_2.encodeString("https://w3id.org/ro/crate/1.1/context");
|
|
87
97
|
}
|
|
88
98
|
};
|
|
89
99
|
default: {
|
|
90
100
|
let mappings;
|
|
91
101
|
const values = map((kv) => [kv[0], {
|
|
92
|
-
Encode(
|
|
93
|
-
return
|
|
102
|
+
Encode(helpers_3) {
|
|
103
|
+
return helpers_3.encodeString(kv[1]);
|
|
94
104
|
}
|
|
95
105
|
}], ctx.Mappings);
|
|
96
106
|
mappings = {
|
|
97
|
-
Encode(
|
|
98
|
-
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(
|
|
99
|
-
return
|
|
107
|
+
Encode(helpers_4) {
|
|
108
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_4)], values);
|
|
109
|
+
return helpers_4.encodeObject(arg);
|
|
100
110
|
}
|
|
101
111
|
};
|
|
102
112
|
if (ctx.BaseContexts.length === 0) {
|
|
@@ -8,7 +8,7 @@ import { list } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
|
8
8
|
import { toList, delay, map, enumerateFromFunctions, append, singleton, empty, collect } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
9
9
|
import { encoder as encoder$3, decoder as decoder$1 } from './LDContext.js';
|
|
10
10
|
import { value, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
11
|
-
import { Getters$2_$ctor_Z4BE6C149, string, Getters$2__get_Errors, map as map$1, oneOf, int, decimal } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
11
|
+
import { Getters$2_$ctor_Z4BE6C149, string, Getters$2__get_Errors, map as map$1, oneOf, int, decimal, bool } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
12
12
|
import { Decode_resizeArrayOrSingleton, Helpers_prependPath } from '../Decode.js';
|
|
13
13
|
import { isEmpty, length, head, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
14
14
|
import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
|
|
@@ -179,7 +179,7 @@ function getDecoder(expectObject) {
|
|
|
179
179
|
if (expectObject_1) {
|
|
180
180
|
return map$1((value_4) => value_4, decodeObject);
|
|
181
181
|
} else {
|
|
182
|
-
return oneOf(ofArray([map$1((value_5) => value_5, decoder$2), map$1((value_6) => value_6, decodeObject), map$1((value_7) => value_7, decoder$3), map$1((value_8) => value_8, resizeArray), map$1((value_9) => value_9, string), map$1((value_10) => value_10, int), map$1((value_11) => value_11, decimal)]));
|
|
182
|
+
return oneOf(ofArray([map$1((value_5) => value_5, decoder$2), map$1((value_6) => value_6, decodeObject), map$1((value_7) => value_7, decoder$3), map$1((value_8) => value_8, resizeArray), map$1((value_9) => value_9, string), map$1((value_10) => value_10, int), map$1((value_11) => value_11, decimal), map$1((value_12) => value_12, bool)]));
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
return decode(expectObject);
|
package/dist/ts/ts/Json/Run.js
CHANGED
|
@@ -2,7 +2,7 @@ import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/
|
|
|
2
2
|
import { map, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { tryInclude, tryIncludeSeq } from './Encode.js';
|
|
4
4
|
import { OntologyAnnotation_encoder, OntologyAnnotation_decoder } from './OntologyAnnotation.js';
|
|
5
|
-
import { encoder as encoder$1, decoder as decoder$2, encoderCompressed as encoderCompressed$1, decoderCompressed as decoderCompressed$2 } from './
|
|
5
|
+
import { encoder as encoder$1, decoder as decoder$2, encoderCompressed as encoderCompressed$1, decoderCompressed as decoderCompressed$2 } from './Datamap/Datamap.js';
|
|
6
6
|
import { encoder as encoder$2, decoder as decoder$1, encoderCompressed as encoderCompressed$2, decoderCompressed as decoderCompressed$1 } from './Table/ArcTable.js';
|
|
7
7
|
import { encoder as encoder$3, decoder as decoder$3 } from './Person.js';
|
|
8
8
|
import { encoder as encoder$4, decoder as decoder$4 } from './Comment.js';
|
|
@@ -24,7 +24,7 @@ function encoder(run) {
|
|
|
24
24
|
Encode(helpers_2) {
|
|
25
25
|
return helpers_2.encodeString(value_3);
|
|
26
26
|
}
|
|
27
|
-
}), run.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, run.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, run.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, run.TechnologyPlatform), tryInclude("
|
|
27
|
+
}), run.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, run.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, run.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, run.TechnologyPlatform), tryInclude("Datamap", encoder$1, run.Datamap), tryIncludeSeq("WorkflowIdentifiers", (value_5) => ({
|
|
28
28
|
Encode(helpers_3) {
|
|
29
29
|
return helpers_3.encodeString(value_5);
|
|
30
30
|
}
|
|
@@ -38,7 +38,7 @@ function encoder(run) {
|
|
|
38
38
|
}
|
|
39
39
|
const decoder = object((get$) => {
|
|
40
40
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10;
|
|
41
|
-
return ArcRun.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("WorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoder$1), objectArg_7 = get$.Optional, objectArg_7.Field("Tables", arg_15))), unwrap((objectArg_8 = get$.Optional, objectArg_8.Field("
|
|
41
|
+
return ArcRun.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("WorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoder$1), objectArg_7 = get$.Optional, objectArg_7.Field("Tables", arg_15))), unwrap((objectArg_8 = get$.Optional, objectArg_8.Field("Datamap", decoder$2))), unwrap((arg_19 = resizeArray(decoder$3), objectArg_9 = get$.Optional, objectArg_9.Field("Performers", arg_19))), void 0, void 0, unwrap((arg_21 = resizeArray(decoder$4), objectArg_10 = get$.Optional, objectArg_10.Field("Comments", arg_21))));
|
|
42
42
|
});
|
|
43
43
|
function encoderCompressed(stringTable, oaTable, cellTable, run) {
|
|
44
44
|
let value;
|
|
@@ -54,7 +54,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, run) {
|
|
|
54
54
|
Encode(helpers_2) {
|
|
55
55
|
return helpers_2.encodeString(value_3);
|
|
56
56
|
}
|
|
57
|
-
}), run.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, run.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, run.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, run.TechnologyPlatform), tryInclude("
|
|
57
|
+
}), run.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, run.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, run.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, run.TechnologyPlatform), tryInclude("Datamap", (dm) => encoderCompressed$1(stringTable, oaTable, cellTable, dm), run.Datamap), tryIncludeSeq("WorkflowIdentifiers", (value_5) => ({
|
|
58
58
|
Encode(helpers_3) {
|
|
59
59
|
return helpers_3.encodeString(value_5);
|
|
60
60
|
}
|
|
@@ -69,7 +69,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, run) {
|
|
|
69
69
|
function decoderCompressed(stringTable, oaTable, cellTable) {
|
|
70
70
|
return object((get$) => {
|
|
71
71
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10;
|
|
72
|
-
return ArcRun.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("WorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_7 = get$.Optional, objectArg_7.Field("Tables", arg_15))), unwrap((arg_17 = decoderCompressed$2(stringTable, oaTable, cellTable), objectArg_8 = get$.Optional, objectArg_8.Field("
|
|
72
|
+
return ArcRun.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("WorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_7 = get$.Optional, objectArg_7.Field("Tables", arg_15))), unwrap((arg_17 = decoderCompressed$2(stringTable, oaTable, cellTable), objectArg_8 = get$.Optional, objectArg_8.Field("Datamap", arg_17))), unwrap((arg_19 = resizeArray(decoder$3), objectArg_9 = get$.Optional, objectArg_9.Field("Performers", arg_19))), void 0, void 0, unwrap((arg_21 = resizeArray(decoder$4), objectArg_10 = get$.Optional, objectArg_10.Field("Comments", arg_21))));
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
|
package/dist/ts/ts/Json/Study.js
CHANGED
|
@@ -7,7 +7,7 @@ import { encoder as encoder$1, decoder as decoder$1, ROCrate_encoder as ROCrate_
|
|
|
7
7
|
import { encoder as encoder$2, decoder as decoder$2, ROCrate_encoder as ROCrate_encoder$2, ROCrate_decoder as ROCrate_decoder$4, ISAJson_encoder as ISAJson_encoder$3, ISAJson_decoder as ISAJson_decoder$3 } from './Person.js';
|
|
8
8
|
import { OntologyAnnotation_encoder, OntologyAnnotation_decoder, OntologyAnnotation_ROCrate_encoderDefinedTerm, OntologyAnnotation_ROCrate_decoderDefinedTerm, OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ISAJson_decoder } from './OntologyAnnotation.js';
|
|
9
9
|
import { encoder as encoder$3, decoder as decoder$3, encoderCompressed as encoderCompressed$1, decoderCompressed as decoderCompressed$1 } from './Table/ArcTable.js';
|
|
10
|
-
import { encoder as encoder$4, decoder as decoder$4, encoderCompressed as encoderCompressed$2, decoderCompressed as decoderCompressed$2 } from './
|
|
10
|
+
import { encoder as encoder$4, decoder as decoder$4, encoderCompressed as encoderCompressed$2, decoderCompressed as decoderCompressed$2 } from './Datamap/Datamap.js';
|
|
11
11
|
import { encoder as encoder$5, decoder as decoder$5, ROCrate_encoder as ROCrate_encoder$6, ROCrate_decoder as ROCrate_decoder$5, ISAJson_encoder as ISAJson_encoder$6, ISAJson_decoder as ISAJson_decoder$5 } from './Comment.js';
|
|
12
12
|
import { map as map$1, isEmpty } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
13
13
|
import { object, string, resizeArray, list as list$1 } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
@@ -57,7 +57,7 @@ function encoder(study) {
|
|
|
57
57
|
Encode(helpers_4) {
|
|
58
58
|
return helpers_4.encodeString(value_7);
|
|
59
59
|
}
|
|
60
|
-
}), study.PublicReleaseDate), tryIncludeSeq("Publications", encoder$1, study.Publications), tryIncludeSeq("Contacts", encoder$2, study.Contacts), tryIncludeSeq("StudyDesignDescriptors", OntologyAnnotation_encoder, study.StudyDesignDescriptors), tryIncludeSeq("Tables", encoder$3, study.Tables), tryInclude("
|
|
60
|
+
}), study.PublicReleaseDate), tryIncludeSeq("Publications", encoder$1, study.Publications), tryIncludeSeq("Contacts", encoder$2, study.Contacts), tryIncludeSeq("StudyDesignDescriptors", OntologyAnnotation_encoder, study.StudyDesignDescriptors), tryIncludeSeq("Tables", encoder$3, study.Tables), tryInclude("Datamap", encoder$4, study.Datamap), tryIncludeSeq("RegisteredAssayIdentifiers", (value_9) => ({
|
|
61
61
|
Encode(helpers_5) {
|
|
62
62
|
return helpers_5.encodeString(value_9);
|
|
63
63
|
}
|
|
@@ -71,7 +71,7 @@ function encoder(study) {
|
|
|
71
71
|
}
|
|
72
72
|
const decoder = object((get$) => {
|
|
73
73
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, arg_11, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, objectArg_9, arg_21, objectArg_10, arg_23, objectArg_11;
|
|
74
|
-
return new ArcStudy((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("SubmissionDate", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("PublicReleaseDate", string))), unwrap((arg_11 = resizeArray(decoder$1), objectArg_5 = get$.Optional, objectArg_5.Field("Publications", arg_11))), unwrap((arg_13 = resizeArray(decoder$2), objectArg_6 = get$.Optional, objectArg_6.Field("Contacts", arg_13))), unwrap((arg_15 = resizeArray(OntologyAnnotation_decoder), objectArg_7 = get$.Optional, objectArg_7.Field("StudyDesignDescriptors", arg_15))), unwrap((arg_17 = resizeArray(decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("Tables", arg_17))), unwrap((objectArg_9 = get$.Optional, objectArg_9.Field("
|
|
74
|
+
return new ArcStudy((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("SubmissionDate", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("PublicReleaseDate", string))), unwrap((arg_11 = resizeArray(decoder$1), objectArg_5 = get$.Optional, objectArg_5.Field("Publications", arg_11))), unwrap((arg_13 = resizeArray(decoder$2), objectArg_6 = get$.Optional, objectArg_6.Field("Contacts", arg_13))), unwrap((arg_15 = resizeArray(OntologyAnnotation_decoder), objectArg_7 = get$.Optional, objectArg_7.Field("StudyDesignDescriptors", arg_15))), unwrap((arg_17 = resizeArray(decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("Tables", arg_17))), unwrap((objectArg_9 = get$.Optional, objectArg_9.Field("Datamap", decoder$4))), unwrap((arg_21 = resizeArray(string), objectArg_10 = get$.Optional, objectArg_10.Field("RegisteredAssayIdentifiers", arg_21))), unwrap((arg_23 = resizeArray(decoder$5), objectArg_11 = get$.Optional, objectArg_11.Field("Comments", arg_23))));
|
|
75
75
|
});
|
|
76
76
|
function encoderCompressed(stringTable, oaTable, cellTable, study) {
|
|
77
77
|
let value;
|
|
@@ -95,7 +95,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, study) {
|
|
|
95
95
|
Encode(helpers_4) {
|
|
96
96
|
return helpers_4.encodeString(value_7);
|
|
97
97
|
}
|
|
98
|
-
}), study.PublicReleaseDate), tryIncludeSeq("Publications", encoder$1, study.Publications), tryIncludeSeq("Contacts", encoder$2, study.Contacts), tryIncludeSeq("StudyDesignDescriptors", OntologyAnnotation_encoder, study.StudyDesignDescriptors), tryIncludeSeq("Tables", (table) => encoderCompressed$1(stringTable, oaTable, cellTable, table), study.Tables), tryInclude("
|
|
98
|
+
}), study.PublicReleaseDate), tryIncludeSeq("Publications", encoder$1, study.Publications), tryIncludeSeq("Contacts", encoder$2, study.Contacts), tryIncludeSeq("StudyDesignDescriptors", OntologyAnnotation_encoder, study.StudyDesignDescriptors), tryIncludeSeq("Tables", (table) => encoderCompressed$1(stringTable, oaTable, cellTable, table), study.Tables), tryInclude("Datamap", (dm) => encoderCompressed$2(stringTable, oaTable, cellTable, dm), study.Datamap), tryIncludeSeq("RegisteredAssayIdentifiers", (value_9) => ({
|
|
99
99
|
Encode(helpers_5) {
|
|
100
100
|
return helpers_5.encodeString(value_9);
|
|
101
101
|
}
|
|
@@ -110,7 +110,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, study) {
|
|
|
110
110
|
function decoderCompressed(stringTable, oaTable, cellTable) {
|
|
111
111
|
return object((get$) => {
|
|
112
112
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, arg_11, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10, arg_23, objectArg_11;
|
|
113
|
-
return new ArcStudy((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("SubmissionDate", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("PublicReleaseDate", string))), unwrap((arg_11 = resizeArray(decoder$1), objectArg_5 = get$.Optional, objectArg_5.Field("Publications", arg_11))), unwrap((arg_13 = resizeArray(decoder$2), objectArg_6 = get$.Optional, objectArg_6.Field("Contacts", arg_13))), unwrap((arg_15 = resizeArray(OntologyAnnotation_decoder), objectArg_7 = get$.Optional, objectArg_7.Field("StudyDesignDescriptors", arg_15))), unwrap((arg_17 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_8 = get$.Optional, objectArg_8.Field("Tables", arg_17))), unwrap((arg_19 = decoderCompressed$2(stringTable, oaTable, cellTable), objectArg_9 = get$.Optional, objectArg_9.Field("
|
|
113
|
+
return new ArcStudy((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("SubmissionDate", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("PublicReleaseDate", string))), unwrap((arg_11 = resizeArray(decoder$1), objectArg_5 = get$.Optional, objectArg_5.Field("Publications", arg_11))), unwrap((arg_13 = resizeArray(decoder$2), objectArg_6 = get$.Optional, objectArg_6.Field("Contacts", arg_13))), unwrap((arg_15 = resizeArray(OntologyAnnotation_decoder), objectArg_7 = get$.Optional, objectArg_7.Field("StudyDesignDescriptors", arg_15))), unwrap((arg_17 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_8 = get$.Optional, objectArg_8.Field("Tables", arg_17))), unwrap((arg_19 = decoderCompressed$2(stringTable, oaTable, cellTable), objectArg_9 = get$.Optional, objectArg_9.Field("Datamap", arg_19))), unwrap((arg_21 = resizeArray(string), objectArg_10 = get$.Optional, objectArg_10.Field("RegisteredAssayIdentifiers", arg_21))), unwrap((arg_23 = resizeArray(decoder$5), objectArg_11 = get$.Optional, objectArg_11.Field("Comments", arg_23))));
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
function ROCrate_genID(a) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Workflow.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Json/Workflow.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAqB,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAG9G,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"Workflow.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Json/Workflow.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAqB,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAG9G,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAUnE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,wBAAgB,OAAO,CAAC,QAAQ,EAAE,WAAW,GAAG,UAAU,CAiCzD;AAED,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAGzC,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,EAAE,QAAQ,EAAE,WAAW,GAAG,UAAU,CAiC7L;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,SAAS,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,CAKjJ"}
|
|
@@ -2,11 +2,10 @@ import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/
|
|
|
2
2
|
import { map, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { tryInclude, tryIncludeSeq } from './Encode.js';
|
|
4
4
|
import { OntologyAnnotation_encoder, OntologyAnnotation_decoder } from './OntologyAnnotation.js';
|
|
5
|
-
import { encoder as encoder$1, decoder as decoder$
|
|
6
|
-
import { encoder as encoder$2, decoder as decoder$1 } from './Process/
|
|
7
|
-
import { encoder as encoder$3, decoder as decoder$
|
|
8
|
-
import { encoder as encoder$4, decoder as decoder$4 } from './
|
|
9
|
-
import { encoder as encoder$5, decoder as decoder$5 } from './Comment.js';
|
|
5
|
+
import { encoder as encoder$1, decoder as decoder$2, encoderCompressed as encoderCompressed$1, decoderCompressed as decoderCompressed$1 } from './Datamap/Datamap.js';
|
|
6
|
+
import { encoder as encoder$2, decoder as decoder$1 } from './Process/Component.js';
|
|
7
|
+
import { encoder as encoder$3, decoder as decoder$3 } from './Person.js';
|
|
8
|
+
import { encoder as encoder$4, decoder as decoder$4 } from './Comment.js';
|
|
10
9
|
import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
11
10
|
import { ArcWorkflow } from '../Core/ArcTypes.js';
|
|
12
11
|
import { object, string, resizeArray } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
@@ -33,11 +32,11 @@ function encoder(workflow) {
|
|
|
33
32
|
Encode(helpers_4) {
|
|
34
33
|
return helpers_4.encodeString(value_7);
|
|
35
34
|
}
|
|
36
|
-
}), workflow.Version), tryInclude("
|
|
35
|
+
}), workflow.Version), tryInclude("Datamap", encoder$1, workflow.Datamap), tryIncludeSeq("SubWorkflowIdentifiers", (value_9) => ({
|
|
37
36
|
Encode(helpers_5) {
|
|
38
37
|
return helpers_5.encodeString(value_9);
|
|
39
38
|
}
|
|
40
|
-
}), workflow.SubWorkflowIdentifiers), tryIncludeSeq("Parameters",
|
|
39
|
+
}), workflow.SubWorkflowIdentifiers), tryIncludeSeq("Parameters", OntologyAnnotation_encoder, workflow.Parameters), tryIncludeSeq("Components", encoder$2, workflow.Components), tryIncludeSeq("Contacts", encoder$3, workflow.Contacts), tryIncludeSeq("Comments", encoder$4, workflow.Comments)]));
|
|
41
40
|
return {
|
|
42
41
|
Encode(helpers_6) {
|
|
43
42
|
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
@@ -47,7 +46,7 @@ function encoder(workflow) {
|
|
|
47
46
|
}
|
|
48
47
|
const decoder = object((get$) => {
|
|
49
48
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, objectArg_9, arg_21, objectArg_10, arg_23, objectArg_11;
|
|
50
|
-
return ArcWorkflow.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("WorkflowType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("URI", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("Version", string))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("SubWorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(
|
|
49
|
+
return ArcWorkflow.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("WorkflowType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("URI", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("Version", string))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("SubWorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(OntologyAnnotation_decoder), objectArg_7 = get$.Optional, objectArg_7.Field("Parameters", arg_15))), unwrap((arg_17 = resizeArray(decoder$1), objectArg_8 = get$.Optional, objectArg_8.Field("Components", arg_17))), unwrap((objectArg_9 = get$.Optional, objectArg_9.Field("Datamap", decoder$2))), unwrap((arg_21 = resizeArray(decoder$3), objectArg_10 = get$.Optional, objectArg_10.Field("Contacts", arg_21))), void 0, unwrap((arg_23 = resizeArray(decoder$4), objectArg_11 = get$.Optional, objectArg_11.Field("Comments", arg_23))));
|
|
51
50
|
});
|
|
52
51
|
function encoderCompressed(stringTable, oaTable, cellTable, workflow) {
|
|
53
52
|
let value;
|
|
@@ -71,11 +70,11 @@ function encoderCompressed(stringTable, oaTable, cellTable, workflow) {
|
|
|
71
70
|
Encode(helpers_4) {
|
|
72
71
|
return helpers_4.encodeString(value_7);
|
|
73
72
|
}
|
|
74
|
-
}), workflow.Version), tryInclude("
|
|
73
|
+
}), workflow.Version), tryInclude("Datamap", (dm) => encoderCompressed$1(stringTable, oaTable, cellTable, dm), workflow.Datamap), tryIncludeSeq("SubWorkflowIdentifiers", (value_9) => ({
|
|
75
74
|
Encode(helpers_5) {
|
|
76
75
|
return helpers_5.encodeString(value_9);
|
|
77
76
|
}
|
|
78
|
-
}), workflow.SubWorkflowIdentifiers), tryIncludeSeq("Parameters",
|
|
77
|
+
}), workflow.SubWorkflowIdentifiers), tryIncludeSeq("Parameters", OntologyAnnotation_encoder, workflow.Parameters), tryIncludeSeq("Components", encoder$2, workflow.Components), tryIncludeSeq("Contacts", encoder$3, workflow.Contacts), tryIncludeSeq("Comments", encoder$4, workflow.Comments)]));
|
|
79
78
|
return {
|
|
80
79
|
Encode(helpers_6) {
|
|
81
80
|
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
@@ -86,7 +85,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, workflow) {
|
|
|
86
85
|
function decoderCompressed(stringTable, oaTable, cellTable) {
|
|
87
86
|
return object((get$) => {
|
|
88
87
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10, arg_23, objectArg_11;
|
|
89
|
-
return ArcWorkflow.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("WorkflowType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("URI", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("Version", string))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("SubWorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(
|
|
88
|
+
return ArcWorkflow.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("WorkflowType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("URI", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("Version", string))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("SubWorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(OntologyAnnotation_decoder), objectArg_7 = get$.Optional, objectArg_7.Field("Parameters", arg_15))), unwrap((arg_17 = resizeArray(decoder$1), objectArg_8 = get$.Optional, objectArg_8.Field("Components", arg_17))), unwrap((arg_19 = decoderCompressed$1(stringTable, oaTable, cellTable), objectArg_9 = get$.Optional, objectArg_9.Field("Datamap", arg_19))), unwrap((arg_21 = resizeArray(decoder$3), objectArg_10 = get$.Optional, objectArg_10.Field("Contacts", arg_21))), void 0, unwrap((arg_23 = resizeArray(decoder$4), objectArg_11 = get$.Optional, objectArg_11.Field("Comments", arg_23))));
|
|
90
89
|
});
|
|
91
90
|
}
|
|
92
91
|
|
package/dist/ts/ts/Json.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
|
3
3
|
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
4
4
|
import { Person } from './Core/Person.js';
|
|
5
5
|
import { LDGraph, LDNode } from './ROCrate/LDObject.js';
|
|
6
|
-
import {
|
|
6
|
+
import { Datamap } from './Core/Datamap.js';
|
|
7
7
|
import { ArcInvestigation, ArcRun, ArcWorkflow, ArcStudy, ArcAssay } from './Core/ArcTypes.js';
|
|
8
8
|
import { FSharpList } from '@fable-org/fable-library-js/List.js';
|
|
9
9
|
import { ARC } from './ARC.js';
|
|
@@ -31,8 +31,8 @@ export declare function JsonHelper_PersonJson_$reflection(): TypeInfo;
|
|
|
31
31
|
export declare function JsonHelper_PersonJson_$ctor(): JsonHelper_PersonJson;
|
|
32
32
|
export declare class JsonHelper_DatamapJson {
|
|
33
33
|
constructor();
|
|
34
|
-
fromJsonString(s: string):
|
|
35
|
-
toJsonString(datamap:
|
|
34
|
+
fromJsonString(s: string): Datamap;
|
|
35
|
+
toJsonString(datamap: Datamap, spaces?: int32): string;
|
|
36
36
|
}
|
|
37
37
|
export declare function JsonHelper_DatamapJson_$reflection(): TypeInfo;
|
|
38
38
|
export declare function JsonHelper_DatamapJson_$ctor(): JsonHelper_DatamapJson;
|
package/dist/ts/ts/Json.js
CHANGED
|
@@ -3,7 +3,7 @@ import { unwrap } from '../node_modules/@fable-org/fable-library-js/Option.js';
|
|
|
3
3
|
import { class_type } from '../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
4
4
|
import { ARCtrl_Person__Person_fromJsonString_Static_Z721C83C5, ARCtrl_Person__Person_fromISAJsonString_Static_Z721C83C5, ARCtrl_Person__Person_toJsonString_Static_71136F3F, ARCtrl_Person__Person_toISAJsonString_Static_Z3B036AA, ARCtrl_Person__Person_toROCrateJsonString_Static_71136F3F } from './JsonIO/Person.js';
|
|
5
5
|
import { ARCtrl_ROCrate_LDNode__LDNode_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ROCrate_LDGraph__LDGraph_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ROCrate_LDGraph__LDGraph_toROCrateJsonString_Static_71136F3F, ARCtrl_ROCrate_LDNode__LDNode_toROCrateJsonString_Static_71136F3F } from './JsonIO/LDObject.js';
|
|
6
|
-
import {
|
|
6
|
+
import { ARCtrl_Datamap__Datamap_fromJsonString_Static_Z721C83C5, ARCtrl_Datamap__Datamap_toJsonString_Static_71136F3F } from './JsonIO/Datamap.js';
|
|
7
7
|
import { ARCtrl_ArcAssay__ArcAssay_fromJsonString_Static_Z721C83C5, ARCtrl_ArcAssay__ArcAssay_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcAssay__ArcAssay_fromISAJsonString_Static_Z721C83C5, ARCtrl_ArcAssay__ArcAssay_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ArcAssay__ArcAssay_toJsonString_Static_71136F3F, ARCtrl_ArcAssay__ArcAssay_toCompressedJsonString_Static_71136F3F, ARCtrl_ArcAssay__ArcAssay_toISAJsonString_Static_Z3B036AA, ARCtrl_ArcAssay__ArcAssay_toROCrateJsonString_Static_5CABCA47 } from './JsonIO/Assay.js';
|
|
8
8
|
import { ARCtrl_ArcStudy__ArcStudy_fromJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_fromISAJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_toJsonString_Static_71136F3F, ARCtrl_ArcStudy__ArcStudy_toCompressedJsonString_Static_71136F3F, ARCtrl_ArcStudy__ArcStudy_toISAJsonString_Static_Z3FD920F1, ARCtrl_ArcStudy__ArcStudy_toROCrateJsonString_Static_3BA23086 } from './JsonIO/Study.js';
|
|
9
9
|
import { ARCtrl_ArcWorkflow__ArcWorkflow_fromJsonString_Static_Z721C83C5, ARCtrl_ArcWorkflow__ArcWorkflow_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcWorkflow__ArcWorkflow_toJsonString_Static_71136F3F, ARCtrl_ArcWorkflow__ArcWorkflow_toCompressedJsonString_Static_71136F3F } from './JsonIO/Workflow.js';
|
|
@@ -71,10 +71,10 @@ class JsonHelper_DatamapJson {
|
|
|
71
71
|
constructor() {
|
|
72
72
|
}
|
|
73
73
|
fromJsonString(s) {
|
|
74
|
-
return
|
|
74
|
+
return ARCtrl_Datamap__Datamap_fromJsonString_Static_Z721C83C5(s);
|
|
75
75
|
}
|
|
76
76
|
toJsonString(datamap, spaces) {
|
|
77
|
-
return
|
|
77
|
+
return ARCtrl_Datamap__Datamap_toJsonString_Static_71136F3F(unwrap(spaces))(datamap);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
function JsonHelper_DatamapJson_$reflection() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Datamap } from '../Core/Datamap.js';
|
|
2
2
|
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
3
3
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
4
|
+
export declare function ARCtrl_Datamap__Datamap_fromJsonString_Static_Z721C83C5(s: string): Datamap;
|
|
5
|
+
export declare function ARCtrl_Datamap__Datamap_toJsonString_Static_71136F3F(spaces?: int32): ((arg0: Datamap) => string);
|
|
6
|
+
export declare function ARCtrl_Datamap__Datamap_ToJsonString_71136F3F(this$: Datamap, spaces: Option<int32>): string;
|
|
7
7
|
//# sourceMappingURL=Datamap.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { fromString } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js';
|
|
2
|
-
import { decoder, encoder } from '../Json/
|
|
2
|
+
import { decoder, encoder } from '../Json/Datamap/Datamap.js';
|
|
3
3
|
import { toText, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
4
4
|
import { toString } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js';
|
|
5
5
|
import { defaultSpaces } from '../Json/Encode.js';
|
|
6
6
|
import { unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
7
7
|
|
|
8
|
-
function
|
|
8
|
+
function ARCtrl_Datamap__Datamap_fromJsonString_Static_Z721C83C5(s) {
|
|
9
9
|
let arg;
|
|
10
10
|
const matchValue = fromString(decoder, s);
|
|
11
11
|
if (matchValue.tag === /* Error */
|
|
@@ -15,14 +15,14 @@ function ARCtrl_DataMap__DataMap_fromJsonString_Static_Z721C83C5(s) {
|
|
|
15
15
|
return matchValue.fields[0];
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ARCtrl_Datamap__Datamap_toJsonString_Static_71136F3F(spaces) {
|
|
19
19
|
return (obj) => {
|
|
20
20
|
const value = encoder(obj);
|
|
21
21
|
return toString(defaultSpaces(spaces), value);
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
return
|
|
24
|
+
function ARCtrl_Datamap__Datamap_ToJsonString_71136F3F(this$, spaces) {
|
|
25
|
+
return ARCtrl_Datamap__Datamap_toJsonString_Static_71136F3F(unwrap(spaces))(this$);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export {
|
|
28
|
+
export { ARCtrl_Datamap__Datamap_ToJsonString_71136F3F, ARCtrl_Datamap__Datamap_fromJsonString_Static_Z721C83C5, ARCtrl_Datamap__Datamap_toJsonString_Static_71136F3F };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LDContext.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/ROCrate/LDContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAwC,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAGrG,OAAO,EAAkF,IAAI,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"LDContext.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/ROCrate/LDContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAwC,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAGrG,OAAO,EAAkF,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAM3I,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,eAAO,MAAM,yBAAyB,4CAA4C,CAAC;AAEnF,wBAAgB,oCAAoC,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CASnG;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAO3E;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAmB3G;AAED,qBAAa,SAAS;IAClB,iBAAiB,EAAE,SAAS,EAAE,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACrB,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/C,QAAQ,CAAC,sBAAsB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;gBACpD,QAAQ,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,CAAC,EAAE,SAAS,EAAE;IAiBvE,IAAI,QAAQ,IAAI,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAGnC;IACD,IAAI,YAAY,IAAI,SAAS,EAAE,CAG9B;IACD,IAAI,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,EAGlC;IACD,IAAI,IAAI,IAAI,MAAM,GAAG,SAAS,CAG7B;IACD,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAG7B;IACD,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAmBlD,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAI5C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAIvC,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO;IAYnD,MAAM,CAAC,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS;IAGtE,MAAM,CAAC,eAAe,CAAC,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,SAAS,GAAG,SAAS;IAIrF,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,SAAS,GAAG,SAAS;IAG7E,MAAM,CAAC,kBAAkB,CAAC,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,EAAE,eAAe,EAAE,MAAM,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC;IAIhH,WAAW,IAAI,SAAS;IAexB,QAAQ,IAAI,SAAS;IA0BrB,kBAAkB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAI7C,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAI1C,MAAM,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO;IAK3B,WAAW,IAAI,KAAK;IAWpB,yBAAyB,IAAI,GAAG;IAIhC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAkEnD,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAoBzC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAWvC,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,EAAE;CAGjC;AAED,wBAAgB,qBAAqB,IAAI,QAAQ,CAEhD;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,SAAS,CAE/G"}
|
|
@@ -3,6 +3,7 @@ import { value, defaultArg, unwrap } from '../../node_modules/@fable-org/fable-l
|
|
|
3
3
|
import { toString, FSharpRef } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
4
4
|
import { Uri } from '../../node_modules/@fable-org/fable-library-js/Uri.js';
|
|
5
5
|
import { getEnumerator, disposeSafe, safeHash, comparePrimitives, stringHash, defaultOf } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
6
|
+
import { toFail, printf, replace } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
6
7
|
import { addToDict, getItemFromDict, tryGetValue } from '../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
7
8
|
import { reduce, map, sort, tryPick } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
8
9
|
import { StringDictionary_ofSeq } from '../Core/Helper/Collections.js';
|
|
@@ -82,15 +83,20 @@ class LDContext {
|
|
|
82
83
|
}
|
|
83
84
|
AddMapping(term, definition) {
|
|
84
85
|
const this$ = this;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
dict.
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
try {
|
|
87
|
+
const key = term;
|
|
88
|
+
const value = definition;
|
|
89
|
+
const dict = this$["mappings@45"];
|
|
90
|
+
if (dict.has(key)) {
|
|
91
|
+
dict.set(key, value);
|
|
92
|
+
} else {
|
|
93
|
+
addToDict(dict, key, value);
|
|
94
|
+
}
|
|
95
|
+
this$.addReverseMapping(term, definition);
|
|
96
|
+
} catch (ex) {
|
|
97
|
+
const arg_2 = ex.message;
|
|
98
|
+
toFail(printf("Failed to add mapping to context: %s -> %s: %s"))(term)(definition)(arg_2);
|
|
92
99
|
}
|
|
93
|
-
this$.addReverseMapping(term, definition);
|
|
94
100
|
}
|
|
95
101
|
TryResolveTerm(term) {
|
|
96
102
|
const this$ = this;
|
|
@@ -193,7 +199,9 @@ class LDContext {
|
|
|
193
199
|
}
|
|
194
200
|
addReverseMapping(key, value$1) {
|
|
195
201
|
const this$ = this;
|
|
196
|
-
const
|
|
202
|
+
const http = replace(value$1, "https://", "http://");
|
|
203
|
+
const https = replace(value$1, "http://", "https://");
|
|
204
|
+
const key_1 = http;
|
|
197
205
|
const value_1 = key;
|
|
198
206
|
const dict = this$.reverseMappings;
|
|
199
207
|
if (dict.has(key_1)) {
|
|
@@ -201,17 +209,25 @@ class LDContext {
|
|
|
201
209
|
} else {
|
|
202
210
|
addToDict(dict, key_1, value_1);
|
|
203
211
|
}
|
|
212
|
+
const key_2 = https;
|
|
213
|
+
const value_2 = key;
|
|
214
|
+
const dict_1 = this$.reverseMappings;
|
|
215
|
+
if (dict_1.has(key_2)) {
|
|
216
|
+
dict_1.set(key_2, value_2);
|
|
217
|
+
} else {
|
|
218
|
+
addToDict(dict_1, key_2, value_2);
|
|
219
|
+
}
|
|
204
220
|
const activePatternResult = IRIHelper_$007CCompactIri$007C_$007C(value$1);
|
|
205
221
|
if (activePatternResult != null) {
|
|
206
222
|
const prefix = value(activePatternResult)[0];
|
|
207
223
|
const suffix = value(activePatternResult)[1];
|
|
208
|
-
const
|
|
209
|
-
const
|
|
210
|
-
const
|
|
211
|
-
if (
|
|
212
|
-
|
|
224
|
+
const key_3 = prefix;
|
|
225
|
+
const value_3 = [suffix, key];
|
|
226
|
+
const dict_2 = this$.compactReverseMappings;
|
|
227
|
+
if (dict_2.has(key_3)) {
|
|
228
|
+
dict_2.set(key_3, value_3);
|
|
213
229
|
} else {
|
|
214
|
-
addToDict(
|
|
230
|
+
addToDict(dict_2, key_3, value_3);
|
|
215
231
|
}
|
|
216
232
|
let matchValue;
|
|
217
233
|
let patternInput;
|
|
@@ -222,14 +238,8 @@ class LDContext {
|
|
|
222
238
|
matchValue = patternInput[0] ? patternInput[1] : void 0;
|
|
223
239
|
if (matchValue == null) {
|
|
224
240
|
} else {
|
|
225
|
-
const
|
|
226
|
-
|
|
227
|
-
const dict_3 = this$.reverseMappings;
|
|
228
|
-
if (dict_3.has(key_4)) {
|
|
229
|
-
dict_3.set(key_4, value_3);
|
|
230
|
-
} else {
|
|
231
|
-
addToDict(dict_3, key_4, value_3);
|
|
232
|
-
}
|
|
241
|
+
const iri = IRIHelper_combine(value(matchValue), suffix);
|
|
242
|
+
this$.addReverseMapping(key, iri);
|
|
233
243
|
}
|
|
234
244
|
} else {
|
|
235
245
|
let matchValue_1;
|
|
@@ -242,14 +252,8 @@ class LDContext {
|
|
|
242
252
|
if (matchValue_1 == null) {
|
|
243
253
|
} else {
|
|
244
254
|
const term = value(matchValue_1)[1];
|
|
245
|
-
const
|
|
246
|
-
|
|
247
|
-
const dict_5 = this$.reverseMappings;
|
|
248
|
-
if (dict_5.has(key_6)) {
|
|
249
|
-
dict_5.set(key_6, value_4);
|
|
250
|
-
} else {
|
|
251
|
-
addToDict(dict_5, key_6, value_4);
|
|
252
|
-
}
|
|
255
|
+
const iri_1 = IRIHelper_combine(value$1, value(matchValue_1)[0]);
|
|
256
|
+
this$.addReverseMapping(term, iri_1);
|
|
253
257
|
}
|
|
254
258
|
}
|
|
255
259
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IMap } from '@fable-org/fable-library-js/Util.js';
|
|
2
2
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
3
|
-
import { DynamicObj } from '../fable_modules/DynamicObj.7.0
|
|
3
|
+
import { DynamicObj } from '../fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js';
|
|
4
4
|
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
5
5
|
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
6
6
|
import { LDContext } from './LDContext.js';
|
|
7
|
-
import { PropertyHelper } from '../fable_modules/DynamicObj.7.0
|
|
7
|
+
import { PropertyHelper } from '../fable_modules/DynamicObj.7.1.0/PropertyHelper.fs.js';
|
|
8
8
|
export declare function ActivePattern_$007CNonStringEnumerable$007C_$007C(o: any): Option<Iterable<any>>;
|
|
9
9
|
export declare function DynamicObj_DynamicObj__DynamicObj_HasProperty_Z721C83C5(this$: DynamicObj, propertyName: string): boolean;
|
|
10
10
|
export interface ILDObject {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isIterable, equals, identityHash, stringHash, defaultOf, getEnumerator, curry2, structuralHash, isArrayLike } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
2
2
|
import { defaultArg, value, unwrap, some, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
-
import { DynamicObj, DynamicObj_$reflection } from '../fable_modules/DynamicObj.7.0
|
|
4
|
-
import { mergeHashes } from '../fable_modules/DynamicObj.7.0
|
|
3
|
+
import { DynamicObj, DynamicObj_$reflection } from '../fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js';
|
|
4
|
+
import { mergeHashes } from '../fable_modules/DynamicObj.7.1.0/HashCodes.fs.js';
|
|
5
5
|
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
6
6
|
import { addToDict, getItemFromDict, tryGetValue } from '../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
7
7
|
import { FSharpRef } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Comment.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/ROCrate/
|
|
1
|
+
{"version":3,"file":"Comment.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/ROCrate/LDTypes/Comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAU,MAAM,uCAAuC,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,qBAAa,SAAS;;IAGlB,MAAM,KAAK,UAAU,IAAI,MAAM,CAE9B;IACD,MAAM,KAAK,IAAI,IAAI,MAAM,CAExB;IACD,MAAM,KAAK,IAAI,IAAI,MAAM,CAExB;IACD,MAAM,CAAC,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC;IAsB1E,MAAM,CAAC,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM;IAe/D,MAAM,CAAC,eAAe,CAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,EAAE;IAG7E,MAAM,CAAC,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC;IAsB1E,MAAM,CAAC,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM;IAe/D,MAAM,CAAC,eAAe,CAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,EAAE;IAG7E,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;IAGjD,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO;IAGzD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM;CAMvF;AAED,wBAAgB,qBAAqB,IAAI,QAAQ,CAEhD"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { LDGraph, LDNode } from '../LDObject.js';
|
|
3
|
+
import { LDContext } from '../LDContext.js';
|
|
4
|
+
import { FSharpList } from '@fable-org/fable-library-js/List.js';
|
|
5
|
+
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
6
|
+
export declare class LDComputationalWorkflow {
|
|
7
|
+
constructor();
|
|
8
|
+
static get schemaType(): string;
|
|
9
|
+
static get input(): string;
|
|
10
|
+
static get inputDeprecated(): string;
|
|
11
|
+
static get output(): string;
|
|
12
|
+
static get outputDeprecated(): string;
|
|
13
|
+
static get creator(): string;
|
|
14
|
+
static get dateCreated(): string;
|
|
15
|
+
static get license(): string;
|
|
16
|
+
static get name(): string;
|
|
17
|
+
static get programmingLanguage(): string;
|
|
18
|
+
static get sdPublisher(): string;
|
|
19
|
+
static get url(): string;
|
|
20
|
+
static get version(): string;
|
|
21
|
+
static get description(): string;
|
|
22
|
+
static get hasPart(): string;
|
|
23
|
+
static get additionalType(): string;
|
|
24
|
+
static get comment(): string;
|
|
25
|
+
static getInputs(cw: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
|
|
26
|
+
static getInputsAsFormalParameters(cw: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
|
|
27
|
+
static setInputs<$n>(cw: LDNode, inputs: LDNode[], context?: LDContext): $n;
|
|
28
|
+
static getOutputs(cw: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
|
|
29
|
+
static getOutputsAsFormalParameter(cw: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
|
|
30
|
+
static setOutputs<$m>(cw: LDNode, outputs: LDNode[], context?: LDContext): $m;
|
|
31
|
+
static getCreator(cw: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
|
|
32
|
+
static setCreator<$l>(cw: LDNode, creator: LDNode, context?: LDContext): $l;
|
|
33
|
+
static tryGetDateCreated(cw: LDNode, context?: LDContext): Option<string>;
|
|
34
|
+
static setDateCreated<$k>(cw: LDNode, date: string, context?: LDContext): $k;
|
|
35
|
+
static getLicenses(cw: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
|
|
36
|
+
static setLicenses<$j>(cw: LDNode, licenses: LDNode[], context?: LDContext): $j;
|
|
37
|
+
static tryGetNameAsString(cw: LDNode, context?: LDContext): Option<string>;
|
|
38
|
+
static getNameAsString(cw: LDNode, context?: LDContext): string;
|
|
39
|
+
static setNameAsString<$i>(cw: LDNode, name: string, context?: LDContext): $i;
|
|
40
|
+
static getProgrammingLanguages(cw: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
|
|
41
|
+
static setProgrammingLanguages<$h>(cw: LDNode, programmingLanguages: LDNode[], context?: LDContext): $h;
|
|
42
|
+
static tryGetSdPublisher(cw: LDNode, graph?: LDGraph, context?: LDContext): Option<LDNode>;
|
|
43
|
+
static setSdPublisher<$g>(cw: LDNode, sdPublisher: LDNode, context?: LDContext): $g;
|
|
44
|
+
static tryGetUrl(cw: LDNode, context?: LDContext): Option<string>;
|
|
45
|
+
static setUrl<$f>(cw: LDNode, url: string, context?: LDContext): $f;
|
|
46
|
+
static tryGetVersion(cw: LDNode, context?: LDContext): Option<string>;
|
|
47
|
+
static setVersion<$e>(cw: LDNode, version: string, context?: LDContext): $e;
|
|
48
|
+
static tryGetDescription(cw: LDNode, context?: LDContext): Option<string>;
|
|
49
|
+
static setDescription<$d>(cw: LDNode, description: string, context?: LDContext): $d;
|
|
50
|
+
static getHasPart(cw: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
|
|
51
|
+
static setHasPart<$c>(cw: LDNode, hasParts: FSharpList<string>, context?: LDContext): $c;
|
|
52
|
+
static tryGetAdditionalTypeAsString(cw: LDNode, context?: LDContext): Option<string>;
|
|
53
|
+
static getAdditionalTypeAsString(cw: LDNode, context?: LDContext): string;
|
|
54
|
+
static setAdditionalTypeAsString<$b>(cw: LDNode, additionalType: string, context?: LDContext): $b;
|
|
55
|
+
static getComments(cw: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
|
|
56
|
+
static setComments<$a>(cw: LDNode, comments: LDNode[], context?: LDContext): $a;
|
|
57
|
+
static validate(lp: LDNode, context?: LDContext): boolean;
|
|
58
|
+
static create(id?: string, inputs?: LDNode[], outputs?: LDNode[], creator?: LDNode, dateCreated?: string, licenses?: LDNode[], name?: string, programmingLanguages?: LDNode[], sdPublisher?: LDNode, url?: string, version?: string, description?: string, hasParts?: LDNode[], comments?: LDNode[], context?: LDContext): LDNode;
|
|
59
|
+
}
|
|
60
|
+
export declare function LDComputationalWorkflow_$reflection(): TypeInfo;
|
|
61
|
+
//# sourceMappingURL=ComputationalWorkflow.d.ts.map
|