@nfdi4plants/arctrl 2.1.0-alpha.4 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/CWL/CWLTypes.js +135 -0
  2. package/CWL/Decode.js +585 -0
  3. package/CWL/Inputs.js +62 -0
  4. package/CWL/Outputs.js +59 -0
  5. package/CWL/Requirements.js +72 -0
  6. package/CWL/ToolDescription.js +81 -0
  7. package/CWL/WorkflowDescription.js +81 -0
  8. package/CWL/WorkflowSteps.js +98 -0
  9. package/Core/ArcTypes.js +76 -87
  10. package/Core/Helper/Identifier.js +2 -2
  11. package/Core/OntologyAnnotation.js +8 -5
  12. package/Core/Table/ArcTable.js +15 -7
  13. package/Core/Table/CompositeHeader.js +4 -0
  14. package/Core/Template.js +8 -0
  15. package/Json/{ROCrateObject.js → LDObject.js} +66 -17
  16. package/JsonIO/LDObject.js +31 -0
  17. package/ROCrate/ArcROCrateMetadata.js +35 -0
  18. package/ROCrate/ISAProfile/Assay.js +30 -2
  19. package/ROCrate/ISAProfile/Data.js +32 -5
  20. package/ROCrate/ISAProfile/Dataset.js +3 -3
  21. package/ROCrate/ISAProfile/Investigation.js +30 -2
  22. package/ROCrate/ISAProfile/LabProcess.js +113 -5
  23. package/ROCrate/ISAProfile/LabProtocol.js +4 -4
  24. package/ROCrate/ISAProfile/Person.js +32 -5
  25. package/ROCrate/ISAProfile/PropertyValue.js +59 -5
  26. package/ROCrate/ISAProfile/Sample.js +32 -5
  27. package/ROCrate/ISAProfile/ScholarlyArticle.js +59 -5
  28. package/ROCrate/ISAProfile/Study.js +30 -2
  29. package/ROCrate/LDObject.js +105 -0
  30. package/Spreadsheet/AnnotationTable/ArcTable.js +8 -5
  31. package/Spreadsheet/Template.js +29 -11
  32. package/Yaml/ValidationPackage.js +6 -6
  33. package/Yaml/ValidationPackagesConfig.js +6 -6
  34. package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/DynObj.fs +4 -4
  35. package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/DynObj.fs.js +0 -44
  36. package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/HashCodes.fs +4 -1
  37. package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/HashCodes.fs.js +8 -3
  38. package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/obj/Debug/netstandard2.0/DynamicObj.AssemblyInfo.fs +1 -1
  39. package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/obj/Release/netstandard2.0/DynamicObj.AssemblyInfo.fs +3 -3
  40. package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Decode.fs +398 -373
  41. package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Decode.fs.js +35 -2
  42. package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/obj/Debug/netstandard2.0/YAMLicious.AssemblyInfo.fs +1 -1
  43. package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/obj/Release/netstandard2.0/YAMLicious.AssemblyInfo.fs +1 -1
  44. package/fable_modules/project_cracked.json +1 -1
  45. package/package.json +1 -1
  46. package/JsonIO/ROCrateObject.js +0 -146
  47. package/ROCrate/ROCrateObject.js +0 -61
  48. /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/DynamicObj.fableproj +0 -0
  49. /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/DynamicObj.fs +0 -0
  50. /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/DynamicObj.fs.js +0 -0
  51. /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/FableJS.fs +0 -0
  52. /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/FableJS.fs.js +0 -0
  53. /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/FablePy.fs +0 -0
  54. /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/PropertyHelper.fs +0 -0
  55. /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/PropertyHelper.fs.js +0 -0
  56. /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/ReflectionUtils.fs +0 -0
  57. /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/ReflectionUtils.fs.js +0 -0
  58. /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
  59. /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
  60. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Encode.fs +0 -0
  61. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Encode.fs.js +0 -0
  62. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Interop/JsInterop.fs +0 -0
  63. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Interop/JsInterop.fs.js +0 -0
  64. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Interop/PyInterop.fs +0 -0
  65. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Library.fs +0 -0
  66. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Library.fs.js +0 -0
  67. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Persil.fs +0 -0
  68. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Persil.fs.js +0 -0
  69. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Preprocessing.fs +0 -0
  70. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Preprocessing.fs.js +0 -0
  71. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Reader.fs +0 -0
  72. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Reader.fs.js +0 -0
  73. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Regex.fs +0 -0
  74. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Regex.fs.js +0 -0
  75. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/RegexActivePatterns.fs +0 -0
  76. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/RegexActivePatterns.fs.js +0 -0
  77. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Writer.fs +0 -0
  78. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Writer.fs.js +0 -0
  79. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/YAMLicious.fableproj +0 -0
  80. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/YAMLiciousTypes.fs +0 -0
  81. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/YAMLiciousTypes.fs.js +0 -0
  82. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
  83. /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
@@ -0,0 +1,35 @@
1
+ import { defaultOf } from "../fable_modules/fable-library-js.4.22.0/Util.js";
2
+ import { FSharpRef } from "../fable_modules/fable-library-js.4.22.0/Types.js";
3
+ import { setOptionalProperty } from "../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
4
+ import { DynamicObj } from "../fable_modules/DynamicObj.4.0.3/DynamicObj.fs.js";
5
+ import { LDObject_$reflection, LDObject, LDContext_$ctor } from "./LDObject.js";
6
+ import { class_type } from "../fable_modules/fable-library-js.4.22.0/Reflection.js";
7
+
8
+ export class ArcROCrateMetadata extends LDObject {
9
+ constructor(about) {
10
+ super("ro-crate-metadata", "CreativeWork");
11
+ const this$ = new FSharpRef(defaultOf());
12
+ this$.contents = this;
13
+ this["init@5"] = 1;
14
+ setOptionalProperty("about", about, this$.contents);
15
+ const conformsTo = new DynamicObj();
16
+ conformsTo.SetProperty("@id", "https://w3id.org/ro/crate/1.1");
17
+ this$.contents.SetProperty("conformsTo", conformsTo);
18
+ const context = LDContext_$ctor();
19
+ context.SetProperty("sdo", "http://schema.org/");
20
+ context.SetProperty("arc", "http://purl.org/nfdi4plants/ontology/");
21
+ context.SetProperty("CreativeWork", "sdo:CreativeWork");
22
+ context.SetProperty("about", "sdo:about");
23
+ context.SetProperty("conformsTo", "sdo:conformsTo");
24
+ this$.contents.SetProperty("@context", context);
25
+ }
26
+ }
27
+
28
+ export function ArcROCrateMetadata_$reflection() {
29
+ return class_type("ARCtrl.ROCrate.ArcROCrateMetadata", undefined, ArcROCrateMetadata, LDObject_$reflection());
30
+ }
31
+
32
+ export function ArcROCrateMetadata_$ctor_Z475E1643(about) {
33
+ return new ArcROCrateMetadata(about);
34
+ }
35
+
@@ -1,6 +1,7 @@
1
+ import { setOptionalProperty, setProperty, tryGetPropertyValue } from "../../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
2
+ import { value as value_1 } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
1
3
  import { defaultOf } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
2
4
  import { FSharpRef } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
3
- import { setOptionalProperty, setProperty } from "../../fable_modules/DynamicObj.4.0.0/DynObj.fs.js";
4
5
  import { Dataset_$reflection, Dataset } from "./Dataset.js";
5
6
  import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
6
7
 
@@ -20,13 +21,40 @@ export class Assay extends Dataset {
20
21
  setOptionalProperty("hasPart", hasPart, this$.contents);
21
22
  setOptionalProperty("url", url, this$.contents);
22
23
  }
24
+ GetIdentifier() {
25
+ const this$ = this;
26
+ const obj = this$;
27
+ if (tryGetPropertyValue("identifier", obj) != null) {
28
+ let matchValue;
29
+ const matchValue_1 = obj.TryGetPropertyValue("identifier");
30
+ if (matchValue_1 != null) {
31
+ const o = value_1(matchValue_1);
32
+ matchValue = ((typeof o === "string") ? o : undefined);
33
+ }
34
+ else {
35
+ matchValue = undefined;
36
+ }
37
+ if (matchValue == null) {
38
+ throw new Error(`Property '${"identifier"}' is set on this '${"Assay"}' object but cannot be cast to '${"String"}'`);
39
+ }
40
+ else {
41
+ return matchValue;
42
+ }
43
+ }
44
+ else {
45
+ throw new Error(`No property '${"identifier"}' set on this '${"Assay"}' object although it is mandatory. Was it created correctly?`);
46
+ }
47
+ }
48
+ static get getIdentifier() {
49
+ return (ass) => ass.GetIdentifier();
50
+ }
23
51
  }
24
52
 
25
53
  export function Assay_$reflection() {
26
54
  return class_type("ARCtrl.ROCrate.Assay", undefined, Assay, Dataset_$reflection());
27
55
  }
28
56
 
29
- export function Assay_$ctor_28BFDC80(id, identifier, about, comment, creator, hasPart, measurementMethod, measurementTechnique, url, variableMeasured) {
57
+ export function Assay_$ctor_Z318F9460(id, identifier, about, comment, creator, hasPart, measurementMethod, measurementTechnique, url, variableMeasured) {
30
58
  return new Assay(id, identifier, about, comment, creator, hasPart, measurementMethod, measurementTechnique, url, variableMeasured);
31
59
  }
32
60
 
@@ -1,11 +1,11 @@
1
+ import { setOptionalProperty, setProperty, tryGetPropertyValue } from "../../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
2
+ import { unwrap, value as value_1 } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
1
3
  import { defaultOf } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
2
4
  import { FSharpRef } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
3
- import { setOptionalProperty, setProperty } from "../../fable_modules/DynamicObj.4.0.0/DynObj.fs.js";
4
- import { ROCrateObject_$reflection, ROCrateObject } from "../ROCrateObject.js";
5
- import { unwrap } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
5
+ import { LDObject_$reflection, LDObject } from "../LDObject.js";
6
6
  import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
7
7
 
8
- export class Data extends ROCrateObject {
8
+ export class Data extends LDObject {
9
9
  constructor(id, name, additionalType, comment, encodingFormat, disambiguatingDescription) {
10
10
  super(id, "schema.org/MediaObject", unwrap(additionalType));
11
11
  const this$ = new FSharpRef(defaultOf());
@@ -16,10 +16,37 @@ export class Data extends ROCrateObject {
16
16
  setOptionalProperty("encodingFormat", encodingFormat, this$.contents);
17
17
  setOptionalProperty("disambiguatingDescription", disambiguatingDescription, this$.contents);
18
18
  }
19
+ GetName() {
20
+ const this$ = this;
21
+ const obj = this$;
22
+ if (tryGetPropertyValue("name", obj) != null) {
23
+ let matchValue;
24
+ const matchValue_1 = obj.TryGetPropertyValue("name");
25
+ if (matchValue_1 != null) {
26
+ const o = value_1(matchValue_1);
27
+ matchValue = ((typeof o === "string") ? o : undefined);
28
+ }
29
+ else {
30
+ matchValue = undefined;
31
+ }
32
+ if (matchValue == null) {
33
+ throw new Error(`Property '${"name"}' is set on this '${"Data"}' object but cannot be cast to '${"String"}'`);
34
+ }
35
+ else {
36
+ return matchValue;
37
+ }
38
+ }
39
+ else {
40
+ throw new Error(`No property '${"name"}' set on this '${"Data"}' object although it is mandatory. Was it created correctly?`);
41
+ }
42
+ }
43
+ static get getName() {
44
+ return (d) => d.GetName();
45
+ }
19
46
  }
20
47
 
21
48
  export function Data_$reflection() {
22
- return class_type("ARCtrl.ROCrate.Data", undefined, Data, ROCrateObject_$reflection());
49
+ return class_type("ARCtrl.ROCrate.Data", undefined, Data, LDObject_$reflection());
23
50
  }
24
51
 
25
52
  export function Data_$ctor_Z68810720(id, name, additionalType, comment, encodingFormat, disambiguatingDescription) {
@@ -1,15 +1,15 @@
1
- import { ROCrateObject_$reflection, ROCrateObject } from "../ROCrateObject.js";
1
+ import { LDObject_$reflection, LDObject } from "../LDObject.js";
2
2
  import { unwrap } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
3
3
  import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
4
4
 
5
- export class Dataset extends ROCrateObject {
5
+ export class Dataset extends LDObject {
6
6
  constructor(id, additionalType) {
7
7
  super(id, "schema.org/Dataset", unwrap(additionalType));
8
8
  }
9
9
  }
10
10
 
11
11
  export function Dataset_$reflection() {
12
- return class_type("ARCtrl.ROCrate.Dataset", undefined, Dataset, ROCrateObject_$reflection());
12
+ return class_type("ARCtrl.ROCrate.Dataset", undefined, Dataset, LDObject_$reflection());
13
13
  }
14
14
 
15
15
  export function Dataset_$ctor_27AED5E3(id, additionalType) {
@@ -1,6 +1,7 @@
1
+ import { setOptionalProperty, setProperty, tryGetPropertyValue } from "../../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
2
+ import { value as value_1 } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
1
3
  import { defaultOf } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
2
4
  import { FSharpRef } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
3
- import { setOptionalProperty, setProperty } from "../../fable_modules/DynamicObj.4.0.0/DynObj.fs.js";
4
5
  import { Dataset_$reflection, Dataset } from "./Dataset.js";
5
6
  import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
6
7
 
@@ -23,13 +24,40 @@ export class Investigation extends Dataset {
23
24
  setOptionalProperty("url", url, this$.contents);
24
25
  setOptionalProperty("description", description, this$.contents);
25
26
  }
27
+ GetIdentifier() {
28
+ const this$ = this;
29
+ const obj = this$;
30
+ if (tryGetPropertyValue("identifier", obj) != null) {
31
+ let matchValue;
32
+ const matchValue_1 = obj.TryGetPropertyValue("identifier");
33
+ if (matchValue_1 != null) {
34
+ const o = value_1(matchValue_1);
35
+ matchValue = ((typeof o === "string") ? o : undefined);
36
+ }
37
+ else {
38
+ matchValue = undefined;
39
+ }
40
+ if (matchValue == null) {
41
+ throw new Error(`Property '${"identifier"}' is set on this '${"Investigation"}' object but cannot be cast to '${"String"}'`);
42
+ }
43
+ else {
44
+ return matchValue;
45
+ }
46
+ }
47
+ else {
48
+ throw new Error(`No property '${"identifier"}' set on this '${"Investigation"}' object although it is mandatory. Was it created correctly?`);
49
+ }
50
+ }
51
+ static get getIdentifier() {
52
+ return (inv) => inv.GetIdentifier();
53
+ }
26
54
  }
27
55
 
28
56
  export function Investigation_$reflection() {
29
57
  return class_type("ARCtrl.ROCrate.Investigation", undefined, Investigation, Dataset_$reflection());
30
58
  }
31
59
 
32
- export function Investigation_$ctor_Z3E174868(id, identifier, citation, comment, creator, dateCreated, dateModified, datePublished, hasPart, headline, mentions, url, description) {
60
+ export function Investigation_$ctor_Z47833D48(id, identifier, citation, comment, creator, dateCreated, dateModified, datePublished, hasPart, headline, mentions, url, description) {
33
61
  return new Investigation(id, identifier, citation, comment, creator, dateCreated, dateModified, datePublished, hasPart, headline, mentions, url, description);
34
62
  }
35
63
 
@@ -1,11 +1,11 @@
1
+ import { setOptionalProperty, setProperty, tryGetPropertyValue } from "../../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
2
+ import { unwrap, value as value_1 } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
1
3
  import { defaultOf } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
2
4
  import { FSharpRef } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
3
- import { setOptionalProperty, setProperty } from "../../fable_modules/DynamicObj.4.0.0/DynObj.fs.js";
4
- import { ROCrateObject_$reflection, ROCrateObject } from "../ROCrateObject.js";
5
- import { unwrap } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
5
+ import { LDObject_$reflection, LDObject } from "../LDObject.js";
6
6
  import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
7
7
 
8
- export class LabProcess extends ROCrateObject {
8
+ export class LabProcess extends LDObject {
9
9
  constructor(id, name, agent, object, result, additionalType, executesLabProtocol, parameterValue, endTime, disambiguatingDescription) {
10
10
  super(id, "bioschemas.org/LabProcess", unwrap(additionalType));
11
11
  const this$ = new FSharpRef(defaultOf());
@@ -20,10 +20,118 @@ export class LabProcess extends ROCrateObject {
20
20
  setOptionalProperty("endTime", endTime, this$.contents);
21
21
  setOptionalProperty("disambiguatingDescription", disambiguatingDescription, this$.contents);
22
22
  }
23
+ GetName() {
24
+ const this$ = this;
25
+ const obj = this$;
26
+ if (tryGetPropertyValue("name", obj) != null) {
27
+ let matchValue;
28
+ const matchValue_1 = obj.TryGetPropertyValue("name");
29
+ if (matchValue_1 != null) {
30
+ const o = value_1(matchValue_1);
31
+ matchValue = ((typeof o === "string") ? o : undefined);
32
+ }
33
+ else {
34
+ matchValue = undefined;
35
+ }
36
+ if (matchValue == null) {
37
+ throw new Error(`Property '${"name"}' is set on this '${"LabProcess"}' object but cannot be cast to '${"String"}'`);
38
+ }
39
+ else {
40
+ return matchValue;
41
+ }
42
+ }
43
+ else {
44
+ throw new Error(`No property '${"name"}' set on this '${"LabProcess"}' object although it is mandatory. Was it created correctly?`);
45
+ }
46
+ }
47
+ static get getName() {
48
+ return (lp) => lp.GetName();
49
+ }
50
+ GetAgent() {
51
+ const this$ = this;
52
+ const obj = this$;
53
+ if (tryGetPropertyValue("agent", obj) != null) {
54
+ let matchValue;
55
+ const matchValue_1 = obj.TryGetPropertyValue("agent");
56
+ if (matchValue_1 != null) {
57
+ const o = value_1(matchValue_1);
58
+ matchValue = ((typeof o === "string") ? o : undefined);
59
+ }
60
+ else {
61
+ matchValue = undefined;
62
+ }
63
+ if (matchValue == null) {
64
+ throw new Error(`Property '${"agent"}' is set on this '${"LabProcess"}' object but cannot be cast to '${"String"}'`);
65
+ }
66
+ else {
67
+ return matchValue;
68
+ }
69
+ }
70
+ else {
71
+ throw new Error(`No property '${"agent"}' set on this '${"LabProcess"}' object although it is mandatory. Was it created correctly?`);
72
+ }
73
+ }
74
+ static get getAgent() {
75
+ return (lp) => lp.GetAgent();
76
+ }
77
+ GetObject() {
78
+ const this$ = this;
79
+ const obj = this$;
80
+ if (tryGetPropertyValue("object", obj) != null) {
81
+ let matchValue;
82
+ const matchValue_1 = obj.TryGetPropertyValue("object");
83
+ if (matchValue_1 != null) {
84
+ const o = value_1(matchValue_1);
85
+ matchValue = ((typeof o === "string") ? o : undefined);
86
+ }
87
+ else {
88
+ matchValue = undefined;
89
+ }
90
+ if (matchValue == null) {
91
+ throw new Error(`Property '${"object"}' is set on this '${"LabProcess"}' object but cannot be cast to '${"String"}'`);
92
+ }
93
+ else {
94
+ return matchValue;
95
+ }
96
+ }
97
+ else {
98
+ throw new Error(`No property '${"object"}' set on this '${"LabProcess"}' object although it is mandatory. Was it created correctly?`);
99
+ }
100
+ }
101
+ static get getObject() {
102
+ return (lp) => lp.GetObject();
103
+ }
104
+ GetResult() {
105
+ const this$ = this;
106
+ const obj = this$;
107
+ if (tryGetPropertyValue("result", obj) != null) {
108
+ let matchValue;
109
+ const matchValue_1 = obj.TryGetPropertyValue("result");
110
+ if (matchValue_1 != null) {
111
+ const o = value_1(matchValue_1);
112
+ matchValue = ((typeof o === "string") ? o : undefined);
113
+ }
114
+ else {
115
+ matchValue = undefined;
116
+ }
117
+ if (matchValue == null) {
118
+ throw new Error(`Property '${"result"}' is set on this '${"LabProcess"}' object but cannot be cast to '${"String"}'`);
119
+ }
120
+ else {
121
+ return matchValue;
122
+ }
123
+ }
124
+ else {
125
+ throw new Error(`No property '${"result"}' set on this '${"LabProcess"}' object although it is mandatory. Was it created correctly?`);
126
+ }
127
+ }
128
+ static get getResult() {
129
+ return (lp) => lp.GetResult();
130
+ }
23
131
  }
24
132
 
25
133
  export function LabProcess_$reflection() {
26
- return class_type("ARCtrl.ROCrate.LabProcess", undefined, LabProcess, ROCrateObject_$reflection());
134
+ return class_type("ARCtrl.ROCrate.LabProcess", undefined, LabProcess, LDObject_$reflection());
27
135
  }
28
136
 
29
137
  export function LabProcess_$ctor_Z33971C5D(id, name, agent, object, result, additionalType, executesLabProtocol, parameterValue, endTime, disambiguatingDescription) {
@@ -1,11 +1,11 @@
1
1
  import { defaultOf } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
2
2
  import { FSharpRef } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
3
- import { setOptionalProperty } from "../../fable_modules/DynamicObj.4.0.0/DynObj.fs.js";
4
- import { ROCrateObject_$reflection, ROCrateObject } from "../ROCrateObject.js";
3
+ import { setOptionalProperty } from "../../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
4
+ import { LDObject_$reflection, LDObject } from "../LDObject.js";
5
5
  import { unwrap } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
6
6
  import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
7
7
 
8
- export class LabProtocol extends ROCrateObject {
8
+ export class LabProtocol extends LDObject {
9
9
  constructor(id, additionalType, name, intendedUse, description, url, comment, version, labEquipment, reagent, computationalTool) {
10
10
  super(id, "bioschemas.org/LabProtocol", unwrap(additionalType));
11
11
  const this$ = new FSharpRef(defaultOf());
@@ -24,7 +24,7 @@ export class LabProtocol extends ROCrateObject {
24
24
  }
25
25
 
26
26
  export function LabProtocol_$reflection() {
27
- return class_type("ARCtrl.ROCrate.LabProtocol", undefined, LabProtocol, ROCrateObject_$reflection());
27
+ return class_type("ARCtrl.ROCrate.LabProtocol", undefined, LabProtocol, LDObject_$reflection());
28
28
  }
29
29
 
30
30
  export function LabProtocol_$ctor_3514295B(id, additionalType, name, intendedUse, description, url, comment, version, labEquipment, reagent, computationalTool) {
@@ -1,11 +1,11 @@
1
+ import { setOptionalProperty, setProperty, tryGetPropertyValue } from "../../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
2
+ import { unwrap, value as value_1 } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
1
3
  import { defaultOf } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
2
4
  import { FSharpRef } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
3
- import { setOptionalProperty, setProperty } from "../../fable_modules/DynamicObj.4.0.0/DynObj.fs.js";
4
- import { ROCrateObject_$reflection, ROCrateObject } from "../ROCrateObject.js";
5
- import { unwrap } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
5
+ import { LDObject_$reflection, LDObject } from "../LDObject.js";
6
6
  import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
7
7
 
8
- export class Person extends ROCrateObject {
8
+ export class Person extends LDObject {
9
9
  constructor(id, givenName, additionalType, familyName, email, identifier, affiliation, jobTitle, additionalName, address, telephone, faxNumber, disambiguatingDescription) {
10
10
  super(id, "schema.org/Person", unwrap(additionalType));
11
11
  const this$ = new FSharpRef(defaultOf());
@@ -23,10 +23,37 @@ export class Person extends ROCrateObject {
23
23
  setOptionalProperty("faxNumber", faxNumber, this$.contents);
24
24
  setOptionalProperty("disambiguatingDescription", disambiguatingDescription, this$.contents);
25
25
  }
26
+ GetGivenName() {
27
+ const this$ = this;
28
+ const obj = this$;
29
+ if (tryGetPropertyValue("givenName", obj) != null) {
30
+ let matchValue;
31
+ const matchValue_1 = obj.TryGetPropertyValue("givenName");
32
+ if (matchValue_1 != null) {
33
+ const o = value_1(matchValue_1);
34
+ matchValue = ((typeof o === "string") ? o : undefined);
35
+ }
36
+ else {
37
+ matchValue = undefined;
38
+ }
39
+ if (matchValue == null) {
40
+ throw new Error(`Property '${"givenName"}' is set on this '${"Person"}' object but cannot be cast to '${"String"}'`);
41
+ }
42
+ else {
43
+ return matchValue;
44
+ }
45
+ }
46
+ else {
47
+ throw new Error(`No property '${"givenName"}' set on this '${"Person"}' object although it is mandatory. Was it created correctly?`);
48
+ }
49
+ }
50
+ static get getGivenName() {
51
+ return (p) => p.GetGivenName();
52
+ }
26
53
  }
27
54
 
28
55
  export function Person_$reflection() {
29
- return class_type("ARCtrl.ROCrate.Person", undefined, Person, ROCrateObject_$reflection());
56
+ return class_type("ARCtrl.ROCrate.Person", undefined, Person, LDObject_$reflection());
30
57
  }
31
58
 
32
59
  export function Person_$ctor_Z45412208(id, givenName, additionalType, familyName, email, identifier, affiliation, jobTitle, additionalName, address, telephone, faxNumber, disambiguatingDescription) {
@@ -1,11 +1,11 @@
1
+ import { setOptionalProperty, setProperty, tryGetPropertyValue } from "../../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
2
+ import { unwrap, value as value_1 } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
1
3
  import { defaultOf } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
2
4
  import { FSharpRef } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
3
- import { setOptionalProperty, setProperty } from "../../fable_modules/DynamicObj.4.0.0/DynObj.fs.js";
4
- import { ROCrateObject_$reflection, ROCrateObject } from "../ROCrateObject.js";
5
- import { unwrap } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
5
+ import { LDObject_$reflection, LDObject } from "../LDObject.js";
6
6
  import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
7
7
 
8
- export class PropertyValue extends ROCrateObject {
8
+ export class PropertyValue extends LDObject {
9
9
  constructor(id, name, value, propertyID, unitCode, unitText, valueReference, additionalType) {
10
10
  super(id, "schema.org/PropertyValue", unwrap(additionalType));
11
11
  const this$ = new FSharpRef(defaultOf());
@@ -18,10 +18,64 @@ export class PropertyValue extends ROCrateObject {
18
18
  setOptionalProperty("unitText", unitText, this$.contents);
19
19
  setOptionalProperty("valueReference", valueReference, this$.contents);
20
20
  }
21
+ GetName() {
22
+ const this$ = this;
23
+ const obj = this$;
24
+ if (tryGetPropertyValue("name", obj) != null) {
25
+ let matchValue;
26
+ const matchValue_1 = obj.TryGetPropertyValue("name");
27
+ if (matchValue_1 != null) {
28
+ const o = value_1(matchValue_1);
29
+ matchValue = ((typeof o === "string") ? o : undefined);
30
+ }
31
+ else {
32
+ matchValue = undefined;
33
+ }
34
+ if (matchValue == null) {
35
+ throw new Error(`Property '${"name"}' is set on this '${"PropertyValue"}' object but cannot be cast to '${"String"}'`);
36
+ }
37
+ else {
38
+ return matchValue;
39
+ }
40
+ }
41
+ else {
42
+ throw new Error(`No property '${"name"}' set on this '${"PropertyValue"}' object although it is mandatory. Was it created correctly?`);
43
+ }
44
+ }
45
+ static get getName() {
46
+ return (lp) => lp.GetName();
47
+ }
48
+ GetValue() {
49
+ const this$ = this;
50
+ const obj = this$;
51
+ if (tryGetPropertyValue("name", obj) != null) {
52
+ let matchValue;
53
+ const matchValue_1 = obj.TryGetPropertyValue("name");
54
+ if (matchValue_1 != null) {
55
+ const o = value_1(matchValue_1);
56
+ matchValue = ((typeof o === "string") ? o : undefined);
57
+ }
58
+ else {
59
+ matchValue = undefined;
60
+ }
61
+ if (matchValue == null) {
62
+ throw new Error(`Property '${"name"}' is set on this '${"PropertyValue"}' object but cannot be cast to '${"String"}'`);
63
+ }
64
+ else {
65
+ return matchValue;
66
+ }
67
+ }
68
+ else {
69
+ throw new Error(`No property '${"name"}' set on this '${"PropertyValue"}' object although it is mandatory. Was it created correctly?`);
70
+ }
71
+ }
72
+ static get getValue() {
73
+ return (lp) => lp.GetValue();
74
+ }
21
75
  }
22
76
 
23
77
  export function PropertyValue_$reflection() {
24
- return class_type("ARCtrl.ROCrate.PropertyValue", undefined, PropertyValue, ROCrateObject_$reflection());
78
+ return class_type("ARCtrl.ROCrate.PropertyValue", undefined, PropertyValue, LDObject_$reflection());
25
79
  }
26
80
 
27
81
  export function PropertyValue_$ctor_7804003(id, name, value, propertyID, unitCode, unitText, valueReference, additionalType) {
@@ -1,11 +1,11 @@
1
+ import { setOptionalProperty, setProperty, tryGetPropertyValue } from "../../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
2
+ import { unwrap, value as value_1 } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
1
3
  import { defaultOf } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
2
4
  import { FSharpRef } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
3
- import { setOptionalProperty, setProperty } from "../../fable_modules/DynamicObj.4.0.0/DynObj.fs.js";
4
- import { ROCrateObject_$reflection, ROCrateObject } from "../ROCrateObject.js";
5
- import { unwrap } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
5
+ import { LDObject_$reflection, LDObject } from "../LDObject.js";
6
6
  import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
7
7
 
8
- export class Sample extends ROCrateObject {
8
+ export class Sample extends LDObject {
9
9
  constructor(id, name, additionalType, additionalProperty, derivesFrom) {
10
10
  super(id, "bioschemas.org/Sample", unwrap(additionalType));
11
11
  const this$ = new FSharpRef(defaultOf());
@@ -15,10 +15,37 @@ export class Sample extends ROCrateObject {
15
15
  setOptionalProperty("additionalProperty", additionalProperty, this$.contents);
16
16
  setOptionalProperty("derivesFrom", derivesFrom, this$.contents);
17
17
  }
18
+ GetName() {
19
+ const this$ = this;
20
+ const obj = this$;
21
+ if (tryGetPropertyValue("name", obj) != null) {
22
+ let matchValue;
23
+ const matchValue_1 = obj.TryGetPropertyValue("name");
24
+ if (matchValue_1 != null) {
25
+ const o = value_1(matchValue_1);
26
+ matchValue = ((typeof o === "string") ? o : undefined);
27
+ }
28
+ else {
29
+ matchValue = undefined;
30
+ }
31
+ if (matchValue == null) {
32
+ throw new Error(`Property '${"name"}' is set on this '${"Sample"}' object but cannot be cast to '${"String"}'`);
33
+ }
34
+ else {
35
+ return matchValue;
36
+ }
37
+ }
38
+ else {
39
+ throw new Error(`No property '${"name"}' set on this '${"Sample"}' object although it is mandatory. Was it created correctly?`);
40
+ }
41
+ }
42
+ static get getName() {
43
+ return (s) => s.GetName();
44
+ }
18
45
  }
19
46
 
20
47
  export function Sample_$reflection() {
21
- return class_type("ARCtrl.ROCrate.Sample", undefined, Sample, ROCrateObject_$reflection());
48
+ return class_type("ARCtrl.ROCrate.Sample", undefined, Sample, LDObject_$reflection());
22
49
  }
23
50
 
24
51
  export function Sample_$ctor_7AC741F8(id, name, additionalType, additionalProperty, derivesFrom) {
@@ -1,11 +1,11 @@
1
+ import { setOptionalProperty, setProperty, tryGetPropertyValue } from "../../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
2
+ import { unwrap, value as value_1 } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
1
3
  import { defaultOf } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
2
4
  import { FSharpRef } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
3
- import { setOptionalProperty, setProperty } from "../../fable_modules/DynamicObj.4.0.0/DynObj.fs.js";
4
- import { ROCrateObject_$reflection, ROCrateObject } from "../ROCrateObject.js";
5
- import { unwrap } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
5
+ import { LDObject_$reflection, LDObject } from "../LDObject.js";
6
6
  import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
7
7
 
8
- export class ScholarlyArticle extends ROCrateObject {
8
+ export class ScholarlyArticle extends LDObject {
9
9
  constructor(id, headline, identifier, additionalType, author, url, creativeWorkStatus, disambiguatingDescription) {
10
10
  super(id, "schema.org/ScholarlyArticle", unwrap(additionalType));
11
11
  const this$ = new FSharpRef(defaultOf());
@@ -18,10 +18,64 @@ export class ScholarlyArticle extends ROCrateObject {
18
18
  setOptionalProperty("creativeWorkStatus", creativeWorkStatus, this$.contents);
19
19
  setOptionalProperty("disambiguatingDescription", disambiguatingDescription, this$.contents);
20
20
  }
21
+ GetHeadline() {
22
+ const this$ = this;
23
+ const obj = this$;
24
+ if (tryGetPropertyValue("headline", obj) != null) {
25
+ let matchValue;
26
+ const matchValue_1 = obj.TryGetPropertyValue("headline");
27
+ if (matchValue_1 != null) {
28
+ const o = value_1(matchValue_1);
29
+ matchValue = ((typeof o === "string") ? o : undefined);
30
+ }
31
+ else {
32
+ matchValue = undefined;
33
+ }
34
+ if (matchValue == null) {
35
+ throw new Error(`Property '${"headline"}' is set on this '${"ScholarlyArticle"}' object but cannot be cast to '${"String"}'`);
36
+ }
37
+ else {
38
+ return matchValue;
39
+ }
40
+ }
41
+ else {
42
+ throw new Error(`No property '${"headline"}' set on this '${"ScholarlyArticle"}' object although it is mandatory. Was it created correctly?`);
43
+ }
44
+ }
45
+ static get getHeadline() {
46
+ return (s) => s.GetHeadline();
47
+ }
48
+ GetIdentifier() {
49
+ const this$ = this;
50
+ const obj = this$;
51
+ if (tryGetPropertyValue("identifier", obj) != null) {
52
+ let matchValue;
53
+ const matchValue_1 = obj.TryGetPropertyValue("identifier");
54
+ if (matchValue_1 != null) {
55
+ const o = value_1(matchValue_1);
56
+ matchValue = ((typeof o === "string") ? o : undefined);
57
+ }
58
+ else {
59
+ matchValue = undefined;
60
+ }
61
+ if (matchValue == null) {
62
+ throw new Error(`Property '${"identifier"}' is set on this '${"ScholarlyArticle"}' object but cannot be cast to '${"String"}'`);
63
+ }
64
+ else {
65
+ return matchValue;
66
+ }
67
+ }
68
+ else {
69
+ throw new Error(`No property '${"identifier"}' set on this '${"ScholarlyArticle"}' object although it is mandatory. Was it created correctly?`);
70
+ }
71
+ }
72
+ static get getIdentifier() {
73
+ return (s) => s.GetIdentifier();
74
+ }
21
75
  }
22
76
 
23
77
  export function ScholarlyArticle_$reflection() {
24
- return class_type("ARCtrl.ROCrate.ScholarlyArticle", undefined, ScholarlyArticle, ROCrateObject_$reflection());
78
+ return class_type("ARCtrl.ROCrate.ScholarlyArticle", undefined, ScholarlyArticle, LDObject_$reflection());
25
79
  }
26
80
 
27
81
  export function ScholarlyArticle_$ctor_11693003(id, headline, identifier, additionalType, author, url, creativeWorkStatus, disambiguatingDescription) {