@nfdi4plants/arctrl 2.0.0-beta.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/ARC.js +55 -18
  2. package/Contract/ArcAssay.js +4 -4
  3. package/Contract/ArcInvestigation.js +4 -4
  4. package/Contract/ArcStudy.js +3 -3
  5. package/Contract/Datamap.js +1 -1
  6. package/Contract/ValidationPackagesConfig.js +96 -0
  7. package/Core/ArcTypes.js +93 -90
  8. package/Core/Conversion.js +13 -13
  9. package/Core/DataContext.js +53 -6
  10. package/Core/{Table/DataMap.js → DataMap.js} +34 -22
  11. package/Core/Process/Component.js +15 -5
  12. package/Core/Process/FactorValue.js +14 -5
  13. package/Core/Process/MaterialAttributeValue.js +14 -5
  14. package/Core/Process/ProcessParameterValue.js +11 -2
  15. package/Core/Table/ArcTable.js +99 -11
  16. package/Core/Table/CompositeCell.js +38 -23
  17. package/Core/Table/CompositeColumn.js +7 -30
  18. package/Core/Table/CompositeHeader.js +5 -215
  19. package/Core/{Process/Value.js → Value.js} +9 -9
  20. package/Json/Assay.js +10 -9
  21. package/Json/{Process/Data.js → Data.js} +17 -17
  22. package/Json/{Process/DataFile.js → DataFile.js} +9 -9
  23. package/Json/DataMap/DataContext.js +30 -0
  24. package/Json/DataMap/DataMap.js +25 -0
  25. package/Json/Encode.js +10 -1
  26. package/Json/Process/Component.js +1 -1
  27. package/Json/Process/FactorValue.js +1 -1
  28. package/Json/Process/MaterialAttributeValue.js +1 -1
  29. package/Json/Process/ProcessInput.js +1 -1
  30. package/Json/Process/ProcessOutput.js +1 -1
  31. package/Json/Process/ProcessParameterValue.js +2 -2
  32. package/Json/Process/Value.js +3 -3
  33. package/Json/{Process/PropertyValue.js → PropertyValue.js} +30 -21
  34. package/Json/Study.js +9 -8
  35. package/Json/Table/CompositeCell.js +1 -1
  36. package/Json/context/rocrate/isa_data_context.js +1 -1
  37. package/Json/context/rocrate/isa_investigation_context.js +1 -1
  38. package/Json/context/rocrate/property_value_context.js +1 -1
  39. package/Spreadsheet/AnnotationTable/ArcTable.js +3 -2
  40. package/Spreadsheet/AnnotationTable/CompositeColumn.js +9 -7
  41. package/Spreadsheet/ArcAssay.js +62 -26
  42. package/Spreadsheet/ArcInvestigation.js +59 -38
  43. package/Spreadsheet/ArcStudy.js +51 -20
  44. package/Spreadsheet/DataMap.js +1 -1
  45. package/Spreadsheet/DataMapTable/DataMapTable.js +3 -3
  46. package/Spreadsheet/Template.js +1 -1
  47. package/ValidationPackages/ValidationPackage.js +61 -0
  48. package/ValidationPackages/ValidationPackagesConfig.js +88 -0
  49. package/Xlsx.js +9 -9
  50. package/Yaml/Encode.js +8 -0
  51. package/Yaml/ValidationPackage.js +47 -0
  52. package/Yaml/ValidationPackagesConfig.js +48 -0
  53. package/fable_modules/YAMLicious.0.0.1/Decode.fs +374 -0
  54. package/fable_modules/YAMLicious.0.0.1/Decode.fs.js +1684 -0
  55. package/fable_modules/YAMLicious.0.0.1/Encode.fs +148 -0
  56. package/fable_modules/YAMLicious.0.0.1/Encode.fs.js +74 -0
  57. package/fable_modules/YAMLicious.0.0.1/Interop/JsInterop.fs +14 -0
  58. package/fable_modules/YAMLicious.0.0.1/Interop/JsInterop.fs.js +11 -0
  59. package/fable_modules/YAMLicious.0.0.1/Interop/PyInterop.fs +9 -0
  60. package/fable_modules/YAMLicious.0.0.1/Library.fs +138 -0
  61. package/fable_modules/YAMLicious.0.0.1/Library.fs.js +7 -0
  62. package/fable_modules/YAMLicious.0.0.1/Persil.fs +86 -0
  63. package/fable_modules/YAMLicious.0.0.1/Persil.fs.js +49 -0
  64. package/fable_modules/YAMLicious.0.0.1/Preprocessing.fs +59 -0
  65. package/fable_modules/YAMLicious.0.0.1/Preprocessing.fs.js +102 -0
  66. package/fable_modules/YAMLicious.0.0.1/Reader.fs +295 -0
  67. package/fable_modules/YAMLicious.0.0.1/Reader.fs.js +530 -0
  68. package/fable_modules/YAMLicious.0.0.1/Regex.fs +108 -0
  69. package/fable_modules/YAMLicious.0.0.1/Regex.fs.js +19 -0
  70. package/fable_modules/YAMLicious.0.0.1/RegexActivePatterns.fs +166 -0
  71. package/fable_modules/YAMLicious.0.0.1/RegexActivePatterns.fs.js +225 -0
  72. package/fable_modules/YAMLicious.0.0.1/Writer.fs +84 -0
  73. package/fable_modules/YAMLicious.0.0.1/Writer.fs.js +161 -0
  74. package/fable_modules/YAMLicious.0.0.1/YAMLicious.fableproj +39 -0
  75. package/fable_modules/YAMLicious.0.0.1/YAMLiciousTypes.fs +82 -0
  76. package/fable_modules/YAMLicious.0.0.1/YAMLiciousTypes.fs.js +130 -0
  77. package/fable_modules/YAMLicious.0.0.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  78. package/fable_modules/YAMLicious.0.0.1/obj/Debug/netstandard2.0/YAMLicious.AssemblyInfo.fs +19 -0
  79. package/fable_modules/YAMLicious.0.0.1/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  80. package/fable_modules/YAMLicious.0.0.1/obj/Release/netstandard2.0/YAMLicious.AssemblyInfo.fs +19 -0
  81. package/fable_modules/project_cracked.json +1 -1
  82. package/index.js +1 -0
  83. package/package.json +1 -1
package/Core/ArcTypes.js CHANGED
@@ -2,11 +2,12 @@ import { value as value_4, defaultArg, map, unwrap } from "../fable_modules/fabl
2
2
  import { collect, append as append_3, tryFind, removeAt, iterate, tryFindIndex, exists, choose, item, map as map_1, delay, toList, fold, length, forAll, contains, filter, toArray } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
3
3
  import { defaultOf, safeHash, equals, disposeSafe, getEnumerator, stringHash } from "../fable_modules/fable-library-js.4.16.0/Util.js";
4
4
  import { ResizeArray_choose, ResizeArray_filter, ResizeArray_map } from "./Helper/Collections.js";
5
- import { DataMap__Copy } from "./Table/DataMap.js";
5
+ import { DataMap__Copy } from "./DataMap.js";
6
6
  import { addRangeInPlace, removeInPlace, contains as contains_1 } from "../fable_modules/fable-library-js.4.16.0/Array.js";
7
7
  import { printf, toText } from "../fable_modules/fable-library-js.4.16.0/String.js";
8
8
  import { rangeDouble } from "../fable_modules/fable-library-js.4.16.0/Range.js";
9
9
  import { boxHashSeq, boxHashOption, boxHashArray } from "./Helper/HashCodes.js";
10
+ import { checkValidCharacters } from "./Helper/Identifier.js";
10
11
  import { ArcTablesAux_applyIOMap, ArcTablesAux_getIOMap, ArcTables_$reflection, ArcTables } from "./Table/ArcTables.js";
11
12
  import { class_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
12
13
  import { Array_distinct } from "../fable_modules/fable-library-js.4.16.0/Seq2.js";
@@ -15,16 +16,17 @@ import { FSharpRef } from "../fable_modules/fable-library-js.4.16.0/Types.js";
15
16
  export class ArcAssay extends ArcTables {
16
17
  constructor(identifier, measurementType, technologyType, technologyPlatform, tables, datamap, performers, comments) {
17
18
  super(defaultArg(tables, []));
19
+ let identifier_1;
18
20
  const performers_1 = defaultArg(performers, []);
19
21
  const comments_1 = defaultArg(comments, []);
20
- this["identifier@109"] = identifier;
22
+ this["identifier@109"] = ((identifier_1 = identifier.trim(), (checkValidCharacters(identifier_1), identifier_1)));
21
23
  this.investigation = void 0;
22
- this["measurementType@111"] = measurementType;
23
- this["technologyType@112"] = technologyType;
24
- this["technologyPlatform@113"] = technologyPlatform;
24
+ this["measurementType@114"] = measurementType;
25
+ this["technologyType@115"] = technologyType;
26
+ this["technologyPlatform@116"] = technologyPlatform;
25
27
  this.dataMap = datamap;
26
- this["performers@115-1"] = performers_1;
27
- this["comments@116-1"] = comments_1;
28
+ this["performers@118-1"] = performers_1;
29
+ this["comments@119-1"] = comments_1;
28
30
  this.staticHash = 0;
29
31
  }
30
32
  get Identifier() {
@@ -45,27 +47,27 @@ export class ArcAssay extends ArcTables {
45
47
  }
46
48
  get MeasurementType() {
47
49
  const this$ = this;
48
- return unwrap(this$["measurementType@111"]);
50
+ return unwrap(this$["measurementType@114"]);
49
51
  }
50
52
  set MeasurementType(n) {
51
53
  const this$ = this;
52
- this$["measurementType@111"] = n;
54
+ this$["measurementType@114"] = n;
53
55
  }
54
56
  get TechnologyType() {
55
57
  const this$ = this;
56
- return unwrap(this$["technologyType@112"]);
58
+ return unwrap(this$["technologyType@115"]);
57
59
  }
58
60
  set TechnologyType(n) {
59
61
  const this$ = this;
60
- this$["technologyType@112"] = n;
62
+ this$["technologyType@115"] = n;
61
63
  }
62
64
  get TechnologyPlatform() {
63
65
  const this$ = this;
64
- return unwrap(this$["technologyPlatform@113"]);
66
+ return unwrap(this$["technologyPlatform@116"]);
65
67
  }
66
68
  set TechnologyPlatform(n) {
67
69
  const this$ = this;
68
- this$["technologyPlatform@113"] = n;
70
+ this$["technologyPlatform@116"] = n;
69
71
  }
70
72
  get DataMap() {
71
73
  const this$ = this;
@@ -77,19 +79,19 @@ export class ArcAssay extends ArcTables {
77
79
  }
78
80
  get Performers() {
79
81
  const this$ = this;
80
- return this$["performers@115-1"];
82
+ return this$["performers@118-1"];
81
83
  }
82
84
  set Performers(n) {
83
85
  const this$ = this;
84
- this$["performers@115-1"] = n;
86
+ this$["performers@118-1"] = n;
85
87
  }
86
88
  get Comments() {
87
89
  const this$ = this;
88
- return this$["comments@116-1"];
90
+ return this$["comments@119-1"];
89
91
  }
90
92
  set Comments(n) {
91
93
  const this$ = this;
92
- this$["comments@116-1"] = n;
94
+ this$["comments@119-1"] = n;
93
95
  }
94
96
  get StaticHash() {
95
97
  const this$ = this;
@@ -614,32 +616,33 @@ export function ArcAssay_$ctor_Z4900C8CC(identifier, measurementType, technology
614
616
  export class ArcStudy extends ArcTables {
615
617
  constructor(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, datamap, registeredAssayIdentifiers, comments) {
616
618
  super(defaultArg(tables, []));
619
+ let identifier_1;
617
620
  const publications_1 = defaultArg(publications, []);
618
621
  const contacts_1 = defaultArg(contacts, []);
619
622
  const studyDesignDescriptors_1 = defaultArg(studyDesignDescriptors, []);
620
623
  const registeredAssayIdentifiers_1 = defaultArg(registeredAssayIdentifiers, []);
621
624
  const comments_1 = defaultArg(comments, []);
622
- this["identifier@533"] = identifier;
625
+ this["identifier@536"] = ((identifier_1 = identifier.trim(), (checkValidCharacters(identifier_1), identifier_1)));
623
626
  this.investigation = void 0;
624
- this["title@535"] = title;
625
- this["description@536"] = description;
626
- this["submissionDate@537"] = submissionDate;
627
- this["publicReleaseDate@538"] = publicReleaseDate;
628
- this["publications@539-1"] = publications_1;
629
- this["contacts@540-1"] = contacts_1;
630
- this["studyDesignDescriptors@541-1"] = studyDesignDescriptors_1;
631
- this["datamap@542"] = datamap;
632
- this["registeredAssayIdentifiers@543-1"] = registeredAssayIdentifiers_1;
633
- this["comments@544-1"] = comments_1;
627
+ this["title@541"] = title;
628
+ this["description@542"] = description;
629
+ this["submissionDate@543"] = submissionDate;
630
+ this["publicReleaseDate@544"] = publicReleaseDate;
631
+ this["publications@545-1"] = publications_1;
632
+ this["contacts@546-1"] = contacts_1;
633
+ this["studyDesignDescriptors@547-1"] = studyDesignDescriptors_1;
634
+ this["datamap@548"] = datamap;
635
+ this["registeredAssayIdentifiers@549-1"] = registeredAssayIdentifiers_1;
636
+ this["comments@550-1"] = comments_1;
634
637
  this.staticHash = 0;
635
638
  }
636
639
  get Identifier() {
637
640
  const this$ = this;
638
- return this$["identifier@533"];
641
+ return this$["identifier@536"];
639
642
  }
640
643
  set Identifier(i) {
641
644
  const this$ = this;
642
- this$["identifier@533"] = i;
645
+ this$["identifier@536"] = i;
643
646
  }
644
647
  get Investigation() {
645
648
  const this$ = this;
@@ -651,83 +654,83 @@ export class ArcStudy extends ArcTables {
651
654
  }
652
655
  get Title() {
653
656
  const this$ = this;
654
- return unwrap(this$["title@535"]);
657
+ return unwrap(this$["title@541"]);
655
658
  }
656
659
  set Title(n) {
657
660
  const this$ = this;
658
- this$["title@535"] = n;
661
+ this$["title@541"] = n;
659
662
  }
660
663
  get Description() {
661
664
  const this$ = this;
662
- return unwrap(this$["description@536"]);
665
+ return unwrap(this$["description@542"]);
663
666
  }
664
667
  set Description(n) {
665
668
  const this$ = this;
666
- this$["description@536"] = n;
669
+ this$["description@542"] = n;
667
670
  }
668
671
  get SubmissionDate() {
669
672
  const this$ = this;
670
- return unwrap(this$["submissionDate@537"]);
673
+ return unwrap(this$["submissionDate@543"]);
671
674
  }
672
675
  set SubmissionDate(n) {
673
676
  const this$ = this;
674
- this$["submissionDate@537"] = n;
677
+ this$["submissionDate@543"] = n;
675
678
  }
676
679
  get PublicReleaseDate() {
677
680
  const this$ = this;
678
- return unwrap(this$["publicReleaseDate@538"]);
681
+ return unwrap(this$["publicReleaseDate@544"]);
679
682
  }
680
683
  set PublicReleaseDate(n) {
681
684
  const this$ = this;
682
- this$["publicReleaseDate@538"] = n;
685
+ this$["publicReleaseDate@544"] = n;
683
686
  }
684
687
  get Publications() {
685
688
  const this$ = this;
686
- return this$["publications@539-1"];
689
+ return this$["publications@545-1"];
687
690
  }
688
691
  set Publications(n) {
689
692
  const this$ = this;
690
- this$["publications@539-1"] = n;
693
+ this$["publications@545-1"] = n;
691
694
  }
692
695
  get Contacts() {
693
696
  const this$ = this;
694
- return this$["contacts@540-1"];
697
+ return this$["contacts@546-1"];
695
698
  }
696
699
  set Contacts(n) {
697
700
  const this$ = this;
698
- this$["contacts@540-1"] = n;
701
+ this$["contacts@546-1"] = n;
699
702
  }
700
703
  get StudyDesignDescriptors() {
701
704
  const this$ = this;
702
- return this$["studyDesignDescriptors@541-1"];
705
+ return this$["studyDesignDescriptors@547-1"];
703
706
  }
704
707
  set StudyDesignDescriptors(n) {
705
708
  const this$ = this;
706
- this$["studyDesignDescriptors@541-1"] = n;
709
+ this$["studyDesignDescriptors@547-1"] = n;
707
710
  }
708
711
  get DataMap() {
709
712
  const this$ = this;
710
- return unwrap(this$["datamap@542"]);
713
+ return unwrap(this$["datamap@548"]);
711
714
  }
712
715
  set DataMap(n) {
713
716
  const this$ = this;
714
- this$["datamap@542"] = n;
717
+ this$["datamap@548"] = n;
715
718
  }
716
719
  get RegisteredAssayIdentifiers() {
717
720
  const this$ = this;
718
- return this$["registeredAssayIdentifiers@543-1"];
721
+ return this$["registeredAssayIdentifiers@549-1"];
719
722
  }
720
723
  set RegisteredAssayIdentifiers(n) {
721
724
  const this$ = this;
722
- this$["registeredAssayIdentifiers@543-1"] = n;
725
+ this$["registeredAssayIdentifiers@549-1"] = n;
723
726
  }
724
727
  get Comments() {
725
728
  const this$ = this;
726
- return this$["comments@544-1"];
729
+ return this$["comments@550-1"];
727
730
  }
728
731
  set Comments(n) {
729
732
  const this$ = this;
730
- this$["comments@544-1"] = n;
733
+ this$["comments@550-1"] = n;
731
734
  }
732
735
  get StaticHash() {
733
736
  const this$ = this;
@@ -1324,125 +1327,125 @@ export class ArcInvestigation {
1324
1327
  const registeredStudyIdentifiers_1 = defaultArg(registeredStudyIdentifiers, []);
1325
1328
  const comments_1 = defaultArg(comments, []);
1326
1329
  const remarks_1 = defaultArg(remarks, []);
1327
- this["identifier@1119"] = identifier;
1328
- this["title@1120"] = title;
1329
- this["description@1121"] = description;
1330
- this["submissionDate@1122"] = submissionDate;
1331
- this["publicReleaseDate@1123"] = publicReleaseDate;
1332
- this["ontologySourceReferences@1124-1"] = ontologySourceReferences_1;
1333
- this["publications@1125-1"] = publications_1;
1334
- this["contacts@1126-1"] = contacts_1;
1335
- this["assays@1127-1"] = assays_1;
1336
- this["studies@1128-1"] = studies_1;
1337
- this["registeredStudyIdentifiers@1129-1"] = registeredStudyIdentifiers_1;
1338
- this["comments@1130-1"] = comments_1;
1339
- this["remarks@1131-1"] = remarks_1;
1330
+ this["identifier@1125"] = identifier;
1331
+ this["title@1126"] = title;
1332
+ this["description@1127"] = description;
1333
+ this["submissionDate@1128"] = submissionDate;
1334
+ this["publicReleaseDate@1129"] = publicReleaseDate;
1335
+ this["ontologySourceReferences@1130-1"] = ontologySourceReferences_1;
1336
+ this["publications@1131-1"] = publications_1;
1337
+ this["contacts@1132-1"] = contacts_1;
1338
+ this["assays@1133-1"] = assays_1;
1339
+ this["studies@1134-1"] = studies_1;
1340
+ this["registeredStudyIdentifiers@1135-1"] = registeredStudyIdentifiers_1;
1341
+ this["comments@1136-1"] = comments_1;
1342
+ this["remarks@1137-1"] = remarks_1;
1340
1343
  this.staticHash = 0;
1341
- this["init@1100"] = 1;
1344
+ this["init@1106"] = 1;
1342
1345
  }
1343
1346
  get Identifier() {
1344
1347
  const this$ = this;
1345
- return this$["identifier@1119"];
1348
+ return this$["identifier@1125"];
1346
1349
  }
1347
1350
  set Identifier(i) {
1348
1351
  const this$ = this;
1349
- this$["identifier@1119"] = i;
1352
+ this$["identifier@1125"] = i;
1350
1353
  }
1351
1354
  get Title() {
1352
1355
  const this$ = this;
1353
- return unwrap(this$["title@1120"]);
1356
+ return unwrap(this$["title@1126"]);
1354
1357
  }
1355
1358
  set Title(n) {
1356
1359
  const this$ = this;
1357
- this$["title@1120"] = n;
1360
+ this$["title@1126"] = n;
1358
1361
  }
1359
1362
  get Description() {
1360
1363
  const this$ = this;
1361
- return unwrap(this$["description@1121"]);
1364
+ return unwrap(this$["description@1127"]);
1362
1365
  }
1363
1366
  set Description(n) {
1364
1367
  const this$ = this;
1365
- this$["description@1121"] = n;
1368
+ this$["description@1127"] = n;
1366
1369
  }
1367
1370
  get SubmissionDate() {
1368
1371
  const this$ = this;
1369
- return unwrap(this$["submissionDate@1122"]);
1372
+ return unwrap(this$["submissionDate@1128"]);
1370
1373
  }
1371
1374
  set SubmissionDate(n) {
1372
1375
  const this$ = this;
1373
- this$["submissionDate@1122"] = n;
1376
+ this$["submissionDate@1128"] = n;
1374
1377
  }
1375
1378
  get PublicReleaseDate() {
1376
1379
  const this$ = this;
1377
- return unwrap(this$["publicReleaseDate@1123"]);
1380
+ return unwrap(this$["publicReleaseDate@1129"]);
1378
1381
  }
1379
1382
  set PublicReleaseDate(n) {
1380
1383
  const this$ = this;
1381
- this$["publicReleaseDate@1123"] = n;
1384
+ this$["publicReleaseDate@1129"] = n;
1382
1385
  }
1383
1386
  get OntologySourceReferences() {
1384
1387
  const this$ = this;
1385
- return this$["ontologySourceReferences@1124-1"];
1388
+ return this$["ontologySourceReferences@1130-1"];
1386
1389
  }
1387
1390
  set OntologySourceReferences(n) {
1388
1391
  const this$ = this;
1389
- this$["ontologySourceReferences@1124-1"] = n;
1392
+ this$["ontologySourceReferences@1130-1"] = n;
1390
1393
  }
1391
1394
  get Publications() {
1392
1395
  const this$ = this;
1393
- return this$["publications@1125-1"];
1396
+ return this$["publications@1131-1"];
1394
1397
  }
1395
1398
  set Publications(n) {
1396
1399
  const this$ = this;
1397
- this$["publications@1125-1"] = n;
1400
+ this$["publications@1131-1"] = n;
1398
1401
  }
1399
1402
  get Contacts() {
1400
1403
  const this$ = this;
1401
- return this$["contacts@1126-1"];
1404
+ return this$["contacts@1132-1"];
1402
1405
  }
1403
1406
  set Contacts(n) {
1404
1407
  const this$ = this;
1405
- this$["contacts@1126-1"] = n;
1408
+ this$["contacts@1132-1"] = n;
1406
1409
  }
1407
1410
  get Assays() {
1408
1411
  const this$ = this;
1409
- return this$["assays@1127-1"];
1412
+ return this$["assays@1133-1"];
1410
1413
  }
1411
1414
  set Assays(n) {
1412
1415
  const this$ = this;
1413
- this$["assays@1127-1"] = n;
1416
+ this$["assays@1133-1"] = n;
1414
1417
  }
1415
1418
  get Studies() {
1416
1419
  const this$ = this;
1417
- return this$["studies@1128-1"];
1420
+ return this$["studies@1134-1"];
1418
1421
  }
1419
1422
  set Studies(n) {
1420
1423
  const this$ = this;
1421
- this$["studies@1128-1"] = n;
1424
+ this$["studies@1134-1"] = n;
1422
1425
  }
1423
1426
  get RegisteredStudyIdentifiers() {
1424
1427
  const this$ = this;
1425
- return this$["registeredStudyIdentifiers@1129-1"];
1428
+ return this$["registeredStudyIdentifiers@1135-1"];
1426
1429
  }
1427
1430
  set RegisteredStudyIdentifiers(n) {
1428
1431
  const this$ = this;
1429
- this$["registeredStudyIdentifiers@1129-1"] = n;
1432
+ this$["registeredStudyIdentifiers@1135-1"] = n;
1430
1433
  }
1431
1434
  get Comments() {
1432
1435
  const this$ = this;
1433
- return this$["comments@1130-1"];
1436
+ return this$["comments@1136-1"];
1434
1437
  }
1435
1438
  set Comments(n) {
1436
1439
  const this$ = this;
1437
- this$["comments@1130-1"] = n;
1440
+ this$["comments@1136-1"] = n;
1438
1441
  }
1439
1442
  get Remarks() {
1440
1443
  const this$ = this;
1441
- return this$["remarks@1131-1"];
1444
+ return this$["remarks@1137-1"];
1442
1445
  }
1443
1446
  set Remarks(n) {
1444
1447
  const this$ = this;
1445
- this$["remarks@1131-1"] = n;
1448
+ this$["remarks@1137-1"] = n;
1446
1449
  }
1447
1450
  get StaticHash() {
1448
1451
  const this$ = this;
@@ -3,14 +3,14 @@ import { Comment$ } from "./Comment.js";
3
3
  import { zip as zip_1, fold, empty as empty_1, singleton as singleton_1, append, delay, map as map_1, filter, toList, indexed, tryPick, choose } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
4
4
  import { unwrap, value as value_10, map, defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
5
5
  import { Option_fromValueWithDefault, ResizeArray_filter } from "./Helper/Collections.js";
6
- import { Value as Value_2 } from "./Process/Value.js";
7
- import { Component_create_4208F9FC } from "./Process/Component.js";
6
+ import { Value as Value_2 } from "./Value.js";
7
+ import { Component_create_Z2F0B38C7 } from "./Process/Component.js";
8
8
  import { ProtocolParameter } from "./Process/ProtocolParameter.js";
9
9
  import { ProcessParameterValue } from "./Process/ProcessParameterValue.js";
10
- import { FactorValue_create_29259B2C } from "./Process/FactorValue.js";
10
+ import { FactorValue_create_30BDC49 } from "./Process/FactorValue.js";
11
11
  import { Factor } from "./Process/Factor.js";
12
12
  import { toString } from "../fable_modules/fable-library-js.4.16.0/Types.js";
13
- import { MaterialAttributeValue_create_BE8DE56 } from "./Process/MaterialAttributeValue.js";
13
+ import { MaterialAttributeValue_create_ZE1D108D } from "./Process/MaterialAttributeValue.js";
14
14
  import { MaterialAttribute_create_A220A8A } from "./Process/MaterialAttribute.js";
15
15
  import { ProcessInput_getCharacteristicValues_5B3D5BA9, ProcessInput__isMaterial, ProcessInput__isData, ProcessInput_setCharacteristicValues, ProcessInput__get_Name, ProcessInput__isSource, ProcessInput__isSample, ProcessInput, ProcessInput_createSource_Z5E00540E, ProcessInput_createRawData_Z721C83C5, ProcessInput_createMaterial_4452CB4C, ProcessInput_createSample_Z598187B7 } from "./Process/ProcessInput.js";
16
16
  import { ProcessOutput_getFactorValues_Z42C11600, ProcessOutput__isMaterial, ProcessOutput__isData, ProcessOutput_setFactorValues, ProcessOutput__get_Name, ProcessOutput__isSample, ProcessOutput, ProcessOutput_createRawData_Z721C83C5, ProcessOutput_createMaterial_4452CB4C, ProcessOutput_createSample_Z598187B7 } from "./Process/ProcessOutput.js";
@@ -143,7 +143,7 @@ export function JsonTypes_valueOfCell(value) {
143
143
  */
144
144
  export function JsonTypes_composeComponent(header, value) {
145
145
  const patternInput = JsonTypes_valueOfCell(value);
146
- return Component_create_4208F9FC(unwrap(patternInput[0]), unwrap(patternInput[1]), header.ToTerm());
146
+ return Component_create_Z2F0B38C7(unwrap(patternInput[0]), unwrap(patternInput[1]), header.ToTerm());
147
147
  }
148
148
 
149
149
  /**
@@ -160,7 +160,7 @@ export function JsonTypes_composeParameterValue(header, value) {
160
160
  */
161
161
  export function JsonTypes_composeFactorValue(header, value) {
162
162
  const patternInput = JsonTypes_valueOfCell(value);
163
- return FactorValue_create_29259B2C(void 0, Factor.create(toString(header), header.ToTerm()), unwrap(patternInput[0]), unwrap(patternInput[1]));
163
+ return FactorValue_create_30BDC49(void 0, Factor.create(toString(header), header.ToTerm()), unwrap(patternInput[0]), unwrap(patternInput[1]));
164
164
  }
165
165
 
166
166
  /**
@@ -168,7 +168,7 @@ export function JsonTypes_composeFactorValue(header, value) {
168
168
  */
169
169
  export function JsonTypes_composeCharacteristicValue(header, value) {
170
170
  const patternInput = JsonTypes_valueOfCell(value);
171
- return MaterialAttributeValue_create_BE8DE56(void 0, MaterialAttribute_create_A220A8A(void 0, header.ToTerm()), unwrap(patternInput[0]), unwrap(patternInput[1]));
171
+ return MaterialAttributeValue_create_ZE1D108D(void 0, MaterialAttribute_create_A220A8A(void 0, header.ToTerm()), unwrap(patternInput[0]), unwrap(patternInput[1]));
172
172
  }
173
173
 
174
174
  export function JsonTypes_composeFreetextMaterialName(headerFT, name) {
@@ -854,7 +854,7 @@ export function ARCtrl_CompositeHeader__CompositeHeader_TryCharacteristic(this$)
854
854
 
855
855
  export function ARCtrl_CompositeHeader__CompositeHeader_TryComponent(this$) {
856
856
  if (this$.tag === 0) {
857
- return Component_create_4208F9FC(void 0, void 0, this$.fields[0]);
857
+ return Component_create_Z2F0B38C7(void 0, void 0, this$.fields[0]);
858
858
  }
859
859
  else {
860
860
  return void 0;
@@ -864,7 +864,7 @@ export function ARCtrl_CompositeHeader__CompositeHeader_TryComponent(this$) {
864
864
  /**
865
865
  * This function is used to improve interoperability with ISA-JSON types. It is not recommended for default ARCtrl usage.
866
866
  */
867
- export function ARCtrl_CompositeCell__CompositeCell_fromValue_Static_6B24B5AD(value, unit) {
867
+ export function ARCtrl_CompositeCell__CompositeCell_fromValue_Static_Z6986DF18(value, unit) {
868
868
  return JsonTypes_cellOfValue(value, unit);
869
869
  }
870
870
 
@@ -964,9 +964,9 @@ export function CompositeRow_toProtocol(tableName, row) {
964
964
  case 5:
965
965
  return Protocol_addParameter(ProtocolParameter.create(void 0, oa_1), p);
966
966
  case 6:
967
- return Protocol_addComponent(Component_create_4208F9FC(Value_2.fromString(v_4), unit, oa_2), p);
967
+ return Protocol_addComponent(Component_create_Z2F0B38C7(Value_2.fromString(v_4), unit, oa_2), p);
968
968
  case 7:
969
- return Protocol_addComponent(Component_create_4208F9FC(new Value_2(0, [t]), void 0, oa_3), p);
969
+ return Protocol_addComponent(Component_create_Z2F0B38C7(new Value_2(0, [t]), void 0, oa_3), p);
970
970
  default:
971
971
  return p;
972
972
  }
@@ -994,7 +994,7 @@ export function ARCtrl_ArcTable__ArcTable_fromProtocol_Static_3BF20962(p) {
994
994
  try {
995
995
  while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
996
996
  const c = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
997
- const v_1 = map((arg) => singleton_2(ARCtrl_CompositeCell__CompositeCell_fromValue_Static_6B24B5AD(arg, unwrap(c.ComponentUnit))), c.ComponentValue);
997
+ const v_1 = map((arg) => singleton_2(ARCtrl_CompositeCell__CompositeCell_fromValue_Static_Z6986DF18(arg, unwrap(c.ComponentUnit))), c.ComponentValue);
998
998
  t.AddColumn(new CompositeHeader(3, [value_10(c.ComponentType)]), v_1, ARCtrl_Process_Component__Component_TryGetColumnIndex(c));
999
999
  }
1000
1000
  }
@@ -1040,7 +1040,7 @@ export function ARCtrl_ArcTable__ArcTable_GetProtocols(this$) {
1040
1040
  case 3:
1041
1041
  return Protocol_addParameter(ProtocolParameter.create(void 0, h.fields[0]), p);
1042
1042
  case 0:
1043
- return Protocol_addComponent(Component_create_4208F9FC(void 0, void 0, h.fields[0]), p);
1043
+ return Protocol_addComponent(Component_create_Z2F0B38C7(void 0, void 0, h.fields[0]), p);
1044
1044
  default:
1045
1045
  return p;
1046
1046
  }
@@ -1,33 +1,63 @@
1
1
  import { hash, boxHashSeq, boxHashOption, boxHashArray } from "./Helper/HashCodes.js";
2
+ import { unwrap, map } from "../fable_modules/fable-library-js.4.16.0/Option.js";
3
+ import { Value as Value_1 } from "./Value.js";
2
4
  import { Data_$reflection, Data } from "./Data.js";
3
- import { unwrap } from "../fable_modules/fable-library-js.4.16.0/Option.js";
4
5
  import { class_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
6
+ import { OntologyAnnotation } from "./OntologyAnnotation.js";
5
7
 
6
8
  export class DataContext extends Data {
7
- constructor(id, name, dataType, format, selectorFormat, explication, unit, objectType, description, generatedBy, comments) {
9
+ constructor(id, name, dataType, format, selectorFormat, explication, unit, objectType, label, description, generatedBy, comments) {
8
10
  super(unwrap(id), unwrap(name), unwrap(dataType), unwrap(format), unwrap(selectorFormat), unwrap(comments));
9
11
  this._explication = explication;
10
12
  this._unit = unit;
11
13
  this._objectType = objectType;
14
+ this._label = label;
12
15
  this._description = description;
13
16
  this._generatedBy = generatedBy;
14
17
  }
15
18
  GetHashCode() {
16
19
  const this$ = this;
17
- return boxHashArray([boxHashOption(this$.ID), boxHashOption(this$.Name), boxHashOption(this$.DataType), boxHashOption(this$.Format), boxHashOption(this$.SelectorFormat), boxHashSeq(this$.Comments), boxHashOption(DataContext__get_Explication(this$)), boxHashOption(DataContext__get_Unit(this$)), boxHashOption(DataContext__get_ObjectType(this$)), boxHashOption(DataContext__get_Description(this$)), boxHashOption(DataContext__get_GeneratedBy(this$))]) | 0;
20
+ return boxHashArray([boxHashOption(this$.ID), boxHashOption(this$.Name), boxHashOption(this$.DataType), boxHashOption(this$.Format), boxHashOption(this$.SelectorFormat), boxHashSeq(this$.Comments), boxHashOption(DataContext__get_Explication(this$)), boxHashOption(DataContext__get_Unit(this$)), boxHashOption(DataContext__get_ObjectType(this$)), boxHashOption(DataContext__get_Label(this$)), boxHashOption(DataContext__get_Description(this$)), boxHashOption(DataContext__get_GeneratedBy(this$))]) | 0;
18
21
  }
19
22
  Equals(obj) {
20
23
  const this$ = this;
21
24
  return hash(this$) === hash(obj);
22
25
  }
26
+ AlternateName() {
27
+ const this$ = this;
28
+ return DataContext__get_Label(this$);
29
+ }
30
+ MeasurementMethod() {
31
+ const this$ = this;
32
+ return DataContext__get_GeneratedBy(this$);
33
+ }
34
+ GetCategory() {
35
+ const this$ = this;
36
+ return DataContext__get_Explication(this$);
37
+ }
38
+ GetValue() {
39
+ const this$ = this;
40
+ return map((Item) => (new Value_1(0, [Item])), DataContext__get_ObjectType(this$));
41
+ }
42
+ GetUnit() {
43
+ const this$ = this;
44
+ return DataContext__get_Unit(this$);
45
+ }
46
+ GetAdditionalType() {
47
+ return "DataContext";
48
+ }
49
+ Description() {
50
+ const this$ = this;
51
+ return DataContext__get_Description(this$);
52
+ }
23
53
  }
24
54
 
25
55
  export function DataContext_$reflection() {
26
56
  return class_type("ARCtrl.DataContext", void 0, DataContext, Data_$reflection());
27
57
  }
28
58
 
29
- export function DataContext_$ctor_Z2FD70A12(id, name, dataType, format, selectorFormat, explication, unit, objectType, description, generatedBy, comments) {
30
- return new DataContext(id, name, dataType, format, selectorFormat, explication, unit, objectType, description, generatedBy, comments);
59
+ export function DataContext_$ctor_Z780A8A2A(id, name, dataType, format, selectorFormat, explication, unit, objectType, label, description, generatedBy, comments) {
60
+ return new DataContext(id, name, dataType, format, selectorFormat, explication, unit, objectType, label, description, generatedBy, comments);
31
61
  }
32
62
 
33
63
  export function DataContext__get_Explication(this$) {
@@ -54,6 +84,14 @@ export function DataContext__set_ObjectType_279AAFF2(this$, objectType) {
54
84
  this$._objectType = objectType;
55
85
  }
56
86
 
87
+ export function DataContext__get_Label(this$) {
88
+ return this$._label;
89
+ }
90
+
91
+ export function DataContext__set_Label_6DFDD678(this$, label) {
92
+ this$._label = label;
93
+ }
94
+
57
95
  export function DataContext__get_Description(this$) {
58
96
  return this$._description;
59
97
  }
@@ -74,8 +112,17 @@ export function DataContext__AsData(this$) {
74
112
  return new Data(unwrap(this$.ID), unwrap(this$.Name), unwrap(this$.DataType), unwrap(this$.Format), unwrap(this$.SelectorFormat), this$.Comments);
75
113
  }
76
114
 
115
+ export function DataContext_fromData_Z7B4D7BF5(data, explication, unit, objectType, label, description, generatedBy) {
116
+ return DataContext_$ctor_Z780A8A2A(unwrap(data.ID), unwrap(data.Name), unwrap(data.DataType), unwrap(data.Format), unwrap(data.SelectorFormat), unwrap(explication), unwrap(unit), unwrap(objectType), unwrap(label), unwrap(description), unwrap(generatedBy), data.Comments);
117
+ }
118
+
119
+ export function DataContext_createAsPV(alternateName, measurementMethod, description, category, value, unit) {
120
+ let oa, v;
121
+ return DataContext_$ctor_Z780A8A2A(void 0, void 0, void 0, void 0, void 0, category, unit, (value == null) ? void 0 : ((value.tag === 0) ? ((oa = value.fields[0], oa)) : ((v = value, new OntologyAnnotation(v.Text)))), alternateName, description, measurementMethod);
122
+ }
123
+
77
124
  export function DataContext__Copy(this$) {
78
- const copy = DataContext_$ctor_Z2FD70A12();
125
+ const copy = DataContext_$ctor_Z780A8A2A();
79
126
  copy.ID = this$.ID;
80
127
  copy.Name = this$.Name;
81
128
  copy.DataType = this$.DataType;