Skip to content

Workflows: Structured Representation

In order to organize and store the information about workflows, we employ the Exabyte Data Convention, as explained elsewhere in this documentation.

In the expandable section below, the user can find the JSON representation of a workflow with a corresponding example. It contains a series of subworkflows, each of which contains a number of units in turn.

Expand to view

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
{
    "required": [
        "units", 
        "subworkflows"
    ], 
    "allOf": [
        {
            "schemaId": "system-bankable-entity", 
            "allOf": [
                {
                    "description": "entity schema", 
                    "allOf": [
                        {
                            "schemaId": "system-timestampable", 
                            "properties": {
                                "createdAt": {
                                    "type": "string", 
                                    "description": "entity creation time"
                                }, 
                                "updatedAt": {
                                    "type": "string", 
                                    "description": "entity last modification time"
                                }
                            }, 
                            "description": "entity timestampable schema", 
                            "title": "timestampable entity schema"
                        }, 
                        {
                            "schemaId": "system-soft-removable", 
                            "properties": {
                                "removedAt": {
                                    "type": "string", 
                                    "description": "Timestamp of the moment when entity was removed"
                                }, 
                                "removed": {
                                    "type": "boolean", 
                                    "description": "Identifies that entity was removed"
                                }
                            }, 
                            "description": "entity removable schema", 
                            "title": "soft removable entity schema"
                        }, 
                        {
                            "schemaId": "system-name", 
                            "properties": {
                                "name": {
                                    "type": "string", 
                                    "description": "entity name"
                                }, 
                                "slug": {
                                    "type": "string", 
                                    "description": "entity slug"
                                }
                            }, 
                            "description": "entity name schema", 
                            "title": "timestampable entity schema"
                        }, 
                        {
                            "schemaId": "system-tags", 
                            "properties": {
                                "tags": {
                                    "items": {
                                        "type": "string"
                                    }, 
                                    "type": "array", 
                                    "description": "entity tags"
                                }
                            }, 
                            "description": "entity tags schema", 
                            "title": "entity tags schema"
                        }
                    ], 
                    "schemaId": "system-entity", 
                    "required": [
                        "_id", 
                        "schemaVersion", 
                        "owner", 
                        "creator"
                    ], 
                    "title": "entity schema", 
                    "properties": {
                        "owner": {
                            "schemaId": "system-entity-reference", 
                            "required": [
                                "_id", 
                                "cls"
                            ], 
                            "properties": {
                                "_id": {
                                    "type": "string", 
                                    "description": "entity identity"
                                }, 
                                "slug": {
                                    "type": "string", 
                                    "description": "entity slug"
                                }, 
                                "cls": {
                                    "type": "string", 
                                    "description": "entity class"
                                }
                            }, 
                            "description": "Subset of the full information about the account who owns the entity.", 
                            "title": "entity reference schema"
                        }, 
                        "schemaVersion": {
                            "type": "string", 
                            "description": "entity's schema version. Used to distinct between different schemas."
                        }, 
                        "_id": {
                            "type": "string", 
                            "description": "entity identity"
                        }, 
                        "description": {
                            "type": "string", 
                            "description": "entity description"
                        }, 
                        "creator": {
                            "schemaId": "system-entity-reference", 
                            "required": [
                                "_id", 
                                "cls"
                            ], 
                            "properties": {
                                "_id": {
                                    "type": "string", 
                                    "description": "entity identity"
                                }, 
                                "slug": {
                                    "type": "string", 
                                    "description": "entity slug"
                                }, 
                                "cls": {
                                    "type": "string", 
                                    "description": "entity class"
                                }
                            }, 
                            "description": "Subset of the full information about the user who created the entity.", 
                            "title": "entity reference schema"
                        }
                    }
                }, 
                {
                    "schemaId": "system-bankable", 
                    "required": [
                        "exabyteId", 
                        "hash"
                    ], 
                    "properties": {
                        "exabyteId": {
                            "type": "string", 
                            "description": "Identity of the corresponding bank entity"
                        }, 
                        "hash": {
                            "type": "string", 
                            "description": "Hash string which is calculated based on the meaningful fields of the entity. Used to identify equal entities."
                        }
                    }, 
                    "description": "bankable schema", 
                    "title": "bankable schema"
                }
            ], 
            "description": "bankable entity schema", 
            "title": "bankable entity schema"
        }, 
        {
            "schemaId": "system-defaultable", 
            "properties": {
                "isDefault": {
                    "default": false, 
                    "type": "boolean", 
                    "description": "Identifies that entity is defaultable"
                }
            }, 
            "description": "defaultable entity schema", 
            "title": "defaultable entity schema"
        }
    ], 
    "schemaId": "workflow", 
    "title": "workflow schema", 
    "$schema": "http://json-schema.org/draft-04/schema#", 
    "type": "object", 
    "properties": {
        "units": {
            "items": {
                "schemaId": "workflow-unit", 
                "required": [
                    "type", 
                    "flowchartId"
                ], 
                "type": "object", 
                "properties": {
                    "status": {
                        "enum": [
                            "idle", 
                            "active", 
                            "warning", 
                            "error", 
                            "finished"
                        ], 
                        "type": "string", 
                        "description": "Status of the unit."
                    }, 
                    "head": {
                        "type": "boolean", 
                        "description": "Whether this unit is the first one to be executed."
                    }, 
                    "flowchartId": {
                        "type": "string", 
                        "description": "Identity of the unit in the workflow. Used to trace the execution flow of the workflow."
                    }, 
                    "name": {
                        "type": "string", 
                        "description": "name of the unit. e.g. pw_scf"
                    }, 
                    "next": {
                        "type": "string", 
                        "description": "Next unit's flowchartId. If empty, the current unit is the last."
                    }, 
                    "type": {
                        "type": "string", 
                        "description": "type of the unit"
                    }
                }, 
                "title": "workflow unit schema"
            }, 
            "type": "array", 
            "description": "Contains the Units of the Workflow"
        }, 
        "subworkflows": {
            "items": {
                "anyOf": [
                    {
                        "schemaId": "workflow-subworkflow", 
                        "required": [
                            "_id", 
                            "name", 
                            "units", 
                            "model", 
                            "application", 
                            "properties"
                        ], 
                        "type": "object", 
                        "properties": {
                            "compute": {
                                "schemaId": "job-compute", 
                                "required": [
                                    "queue", 
                                    "nodes", 
                                    "ppn", 
                                    "timeLimit"
                                ], 
                                "properties": {
                                    "errors": {
                                        "items": {
                                            "required": [
                                                "domain", 
                                                "reason", 
                                                "message"
                                            ], 
                                            "type": "object", 
                                            "properties": {
                                                "domain": {
                                                    "enum": [
                                                        "rupy", 
                                                        "alfred", 
                                                        "celim", 
                                                        "webapp"
                                                    ], 
                                                    "type": "string", 
                                                    "description": "Domain of the error appearance (internal)."
                                                }, 
                                                "message": {
                                                    "type": "string", 
                                                    "description": "Human-readable error message. e.g. 'File Not Found: /home/demo/data/project1/job-123/job-config.json'"
                                                }, 
                                                "reason": {
                                                    "type": "string", 
                                                    "description": "Should be a short, unique, machine-readable error code string. e.g. FileNotFound"
                                                }
                                            }
                                        }, 
                                        "type": "array", 
                                        "description": "Computation error. Optional. Appears only if something happens on jobs execution."
                                    }, 
                                    "maxCPU": {
                                        "type": "integer", 
                                        "description": "Maximum CPU count per node. This parameter is used to let backend job submission infrastructure know that this job is to be charged for the maximum CPU per node instead of the actual ppn. For premium/fast queues where resources are provisioned on-demand and exclusively per user."
                                    }, 
                                    "cluster": {
                                        "required": [
                                            "fqdn", 
                                            "jid"
                                        ], 
                                        "type": "object", 
                                        "description": "Cluster where the job is executed. Optional on create. Required on job submission.", 
                                        "properties": {
                                            "jid": {
                                                "type": "string", 
                                                "description": "Job's identity in RMS. e.g. 1234.master-1-staging.exabyte.io"
                                            }, 
                                            "fqdn": {
                                                "type": "string", 
                                                "description": "FQDN of the cluster. e.g. master-1-staging.exabyte.io"
                                            }
                                        }
                                    }, 
                                    "excludeFilesPattern": {
                                        "type": "string", 
                                        "description": "A Python compatible regex to exclude files from upload. e.g. ^.*.txt& excludes all files with .txt suffix"
                                    }, 
                                    "ppn": {
                                        "type": "integer", 
                                        "description": "number of CPUs used for the job inside the RMS."
                                    }, 
                                    "queue": {
                                        "enum": [
                                            "D", 
                                            "OR", 
                                            "SR", 
                                            "OF", 
                                            "SF"
                                        ], 
                                        "type": "string", 
                                        "description": "Name of the submission queue inside the Resource Management System (RMS). D: debug, OR: on-demand reuglar, SR: saving reuglar, OF: on-demand fast, SF: saving fast"
                                    }, 
                                    "timeLimit": {
                                        "type": "string", 
                                        "description": "Wallclock time limit for computing a job. Clock format: 'hh:mm:ss'"
                                    }, 
                                    "notify": {
                                        "type": "string", 
                                        "description": "Email notification for the job: n - never, a - job aborted, b - job begins, e - job ends. Last three could be combined."
                                    }, 
                                    "nodes": {
                                        "type": "integer", 
                                        "description": "number of nodes used for the job inside the RMS."
                                    }, 
                                    "email": {
                                        "type": "string", 
                                        "description": "Email address to notify about job execution."
                                    }, 
                                    "arguments": {
                                        "type": "object", 
                                        "description": "Optional arguments specific to using application - VASP, Quantum Espresso, etc. Specified elsewhere"
                                    }
                                }, 
                                "description": "compute parameters", 
                                "title": "compute arguments schema"
                            }, 
                            "name": {
                                "type": "string", 
                                "description": "Human-readable name of the subworkflow. e.g. Total-energy"
                            }, 
                            "isDraft": {
                                "default": false, 
                                "type": "boolean", 
                                "description": "Defines whether to store the results/properties extracted in this unit to properties collection"
                            }, 
                            "application": {
                                "description": "information about the simulation engine/application.", 
                                "title": "application schema (base)", 
                                "schemaId": "software-application", 
                                "required": [
                                    "name"
                                ], 
                                "type": "object", 
                                "properties": {
                                    "build": {
                                        "type": "string", 
                                        "description": "Application build. e.g. VTST"
                                    }, 
                                    "shortName": {
                                        "type": "string", 
                                        "description": "The short name of the application. e.g. qe"
                                    }, 
                                    "version": {
                                        "type": "string", 
                                        "description": "Application version. e.g. 5.3.5"
                                    }, 
                                    "name": {
                                        "type": "string", 
                                        "description": "The name of the application. e.g. espresso"
                                    }, 
                                    "summary": {
                                        "type": "string", 
                                        "description": "Application's short description."
                                    }
                                }
                            }, 
                            "units": {
                                "items": {
                                    "schemaId": "workflow-unit", 
                                    "required": [
                                        "type", 
                                        "flowchartId"
                                    ], 
                                    "type": "object", 
                                    "properties": {
                                        "status": {
                                            "enum": [
                                                "idle", 
                                                "active", 
                                                "warning", 
                                                "error", 
                                                "finished"
                                            ], 
                                            "type": "string", 
                                            "description": "Status of the unit."
                                        }, 
                                        "head": {
                                            "type": "boolean", 
                                            "description": "Whether this unit is the first one to be executed."
                                        }, 
                                        "flowchartId": {
                                            "type": "string", 
                                            "description": "Identity of the unit in the workflow. Used to trace the execution flow of the workflow."
                                        }, 
                                        "name": {
                                            "type": "string", 
                                            "description": "name of the unit. e.g. pw_scf"
                                        }, 
                                        "next": {
                                            "type": "string", 
                                            "description": "Next unit's flowchartId. If empty, the current unit is the last."
                                        }, 
                                        "type": {
                                            "type": "string", 
                                            "description": "type of the unit"
                                        }
                                    }, 
                                    "title": "workflow unit schema"
                                }, 
                                "type": "array", 
                                "description": "Contains the Units of the subworkflow"
                            }, 
                            "model": {
                                "oneOf": [
                                    {
                                        "schemaId": "models-directory-dft", 
                                        "allOf": [
                                            {
                                                "schemaId": "model", 
                                                "required": [
                                                    "type", 
                                                    "subtype", 
                                                    "method"
                                                ], 
                                                "properties": {
                                                    "subtype": {
                                                        "type": "string", 
                                                        "description": "general subtype of the model, eg. `lda`"
                                                    }, 
                                                    "type": {
                                                        "type": "string", 
                                                        "description": "general type of the model, eg. `dft`"
                                                    }, 
                                                    "method": {
                                                        "schemaId": "method", 
                                                        "required": [
                                                            "type", 
                                                            "subtype"
                                                        ], 
                                                        "properties": {
                                                            "subtype": {
                                                                "type": "string", 
                                                                "description": "general subtype of this method, eg. `ultra-soft`"
                                                            }, 
                                                            "type": {
                                                                "type": "string", 
                                                                "description": "general type of this method, eg. `pseudopotential`"
                                                            }, 
                                                            "precision": {
                                                                "type": "object", 
                                                                "description": "Object showing the actual possible precision based on theory and implementation"
                                                            }, 
                                                            "data": {
                                                                "type": "object", 
                                                                "description": "additional data specific to method, eg. array of pseudopotentials"
                                                            }
                                                        }, 
                                                        "title": "method schema (base)"
                                                    }
                                                }, 
                                                "title": "model schema (base)"
                                            }
                                        ], 
                                        "properties": {
                                            "subtype": {
                                                "enum": [
                                                    "gga", 
                                                    "lda", 
                                                    "mgga", 
                                                    "ldau"
                                                ]
                                            }, 
                                            "refiners": {
                                                "items": {
                                                    "type": "object", 
                                                    "properties": {
                                                        "slug": {
                                                            "enum": [
                                                                "hse", 
                                                                "g0w0"
                                                            ]
                                                        }
                                                    }
                                                }, 
                                                "type": "array"
                                            }, 
                                            "modifiers": {
                                                "items": {
                                                    "type": "object", 
                                                    "properties": {
                                                        "slug": {
                                                            "enum": [
                                                                "soc", 
                                                                "magn"
                                                            ]
                                                        }
                                                    }
                                                }, 
                                                "type": "array"
                                            }, 
                                            "type": {
                                                "enum": [
                                                    "dft"
                                                ]
                                            }, 
                                            "functional": {
                                                "oneOf": [
                                                    {
                                                        "type": "object", 
                                                        "properties": {
                                                            "slug": {
                                                                "enum": [
                                                                    "pz", 
                                                                    "pw", 
                                                                    "vwn"
                                                                ], 
                                                                "type": "string"
                                                            }
                                                        }
                                                    }, 
                                                    {
                                                        "type": "object", 
                                                        "properties": {
                                                            "slug": {
                                                                "enum": [
                                                                    "pbe", 
                                                                    "pw91", 
                                                                    "rpbe"
                                                                ], 
                                                                "type": "string"
                                                            }
                                                        }
                                                    }, 
                                                    {
                                                        "type": "object", 
                                                        "properties": {
                                                            "slug": {
                                                                "enum": [
                                                                    "ldau", 
                                                                    "bp", 
                                                                    "lyp", 
                                                                    "b3lyp", 
                                                                    "pbesol", 
                                                                    "hse", 
                                                                    "am05", 
                                                                    "rtpss", 
                                                                    "tpss", 
                                                                    "m06l", 
                                                                    "mbj", 
                                                                    "vdwd3", 
                                                                    "fci"
                                                                ], 
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                ]
                                            }
                                        }, 
                                        "description": "density function theory schema (deprecated - to be replaced with manifest)", 
                                        "title": "density function theory schema"
                                    }, 
                                    {
                                        "schemaId": "models-directory-ml", 
                                        "allOf": [
                                            {
                                                "schemaId": "model", 
                                                "required": [
                                                    "type", 
                                                    "subtype", 
                                                    "method"
                                                ], 
                                                "properties": {
                                                    "subtype": {
                                                        "type": "string", 
                                                        "description": "general subtype of the model, eg. `lda`"
                                                    }, 
                                                    "type": {
                                                        "type": "string", 
                                                        "description": "general type of the model, eg. `dft`"
                                                    }, 
                                                    "method": {
                                                        "schemaId": "method", 
                                                        "required": [
                                                            "type", 
                                                            "subtype"
                                                        ], 
                                                        "properties": {
                                                            "subtype": {
                                                                "type": "string", 
                                                                "description": "general subtype of this method, eg. `ultra-soft`"
                                                            }, 
                                                            "type": {
                                                                "type": "string", 
                                                                "description": "general type of this method, eg. `pseudopotential`"
                                                            }, 
                                                            "precision": {
                                                                "type": "object", 
                                                                "description": "Object showing the actual possible precision based on theory and implementation"
                                                            }, 
                                                            "data": {
                                                                "type": "object", 
                                                                "description": "additional data specific to method, eg. array of pseudopotentials"
                                                            }
                                                        }, 
                                                        "title": "method schema (base)"
                                                    }
                                                }, 
                                                "title": "model schema (base)"
                                            }
                                        ], 
                                        "properties": {
                                            "subtype": {
                                                "enum": [
                                                    "re"
                                                ]
                                            }, 
                                            "type": {
                                                "enum": [
                                                    "ml"
                                                ]
                                            }, 
                                            "method": {
                                                "oneOf": [
                                                    {
                                                        "required": [
                                                            "precision", 
                                                            "data"
                                                        ], 
                                                        "schemaId": "methods-directory-regression", 
                                                        "allOf": [
                                                            {
                                                                "schemaId": "method", 
                                                                "required": [
                                                                    "type", 
                                                                    "subtype"
                                                                ], 
                                                                "properties": {
                                                                    "subtype": {
                                                                        "type": "string", 
                                                                        "description": "general subtype of this method, eg. `ultra-soft`"
                                                                    }, 
                                                                    "type": {
                                                                        "type": "string", 
                                                                        "description": "general type of this method, eg. `pseudopotential`"
                                                                    }, 
                                                                    "precision": {
                                                                        "type": "object", 
                                                                        "description": "Object showing the actual possible precision based on theory and implementation"
                                                                    }, 
                                                                    "data": {
                                                                        "type": "object", 
                                                                        "description": "additional data specific to method, eg. array of pseudopotentials"
                                                                    }
                                                                }, 
                                                                "title": "method schema (base)"
                                                            }
                                                        ], 
                                                        "properties": {
                                                            "subtype": {
                                                                "enum": [
                                                                    "least_squares", 
                                                                    "ridge"
                                                                ]
                                                            }, 
                                                            "type": {
                                                                "enum": [
                                                                    "linear"
                                                                ]
                                                            }, 
                                                            "precision": {
                                                                "perProperty": {
                                                                    "items": {
                                                                        "type": "object", 
                                                                        "properties": {
                                                                            "name": {
                                                                                "type": "string", 
                                                                                "description": "property name in 'flattened' format"
                                                                            }
                                                                        }, 
                                                                        "allOf": [
                                                                            {
                                                                                "schemaId": "methods-directory-regression-precision", 
                                                                                "oneOf": [
                                                                                    {
                                                                                        "schemaId": "methods-directory-regression-linear-precision-per-property", 
                                                                                        "required": [
                                                                                            "trainingError"
                                                                                        ], 
                                                                                        "properties": {
                                                                                            "score": {
                                                                                                "type": "number", 
                                                                                                "description": "prediction score of the estimator. Eg: r2_score"
                                                                                            }, 
                                                                                            "trainingError": {
                                                                                                "type": "number", 
                                                                                                "description": "training error of the estimator"
                                                                                            }
                                                                                        }, 
                                                                                        "title": "precision schema for regression"
                                                                                    }
                                                                                ], 
                                                                                "title": "regression precision"
                                                                            }
                                                                        ]
                                                                    }
                                                                }
                                                            }, 
                                                            "data": {
                                                                "perProperty": {
                                                                    "items": {
                                                                        "type": "object", 
                                                                        "properties": {
                                                                            "name": {
                                                                                "type": "string", 
                                                                                "description": "property name in 'flattened' format"
                                                                            }
                                                                        }, 
                                                                        "allOf": [
                                                                            {
                                                                                "schemaId": "methods-directory-regression-data", 
                                                                                "oneOf": [
                                                                                    {
                                                                                        "schemaId": "methods-directory-regression-linear-data-per-property", 
                                                                                        "required": [
                                                                                            "intercept", 
                                                                                            "perFeature"
                                                                                        ], 
                                                                                        "properties": {
                                                                                            "perFeature": {
                                                                                                "items": {
                                                                                                    "required": [
                                                                                                        "name", 
                                                                                                        "coefficient"
                                                                                                    ], 
                                                                                                    "type": "object", 
                                                                                                    "properties": {
                                                                                                        "coefficient": {
                                                                                                            "type": "number", 
                                                                                                            "description": "coefficient in linear regression"
                                                                                                        }, 
                                                                                                        "importance": {
                                                                                                            "type": "number", 
                                                                                                            "description": "pvalue: https://en.wikipedia.org/wiki/P-value"
                                                                                                        }, 
                                                                                                        "name": {
                                                                                                            "type": "string", 
                                                                                                            "description": "feature name in 'flattened' format"
                                                                                                        }
                                                                                                    }
                                                                                                }, 
                                                                                                "type": "array", 
                                                                                                "description": "per-feature (property used for training the ML method/model) paramters"
                                                                                            }, 
                                                                                            "intercept": {
                                                                                                "type": "number", 
                                                                                                "description": "intercept (shift) from the linear or non-linear fit of data points"
                                                                                            }
                                                                                        }, 
                                                                                        "title": "linear regression parameters schema"
                                                                                    }
                                                                                ], 
                                                                                "title": "regression data"
                                                                            }
                                                                        ]
                                                                    }
                                                                }, 
                                                                "dataSet": {
                                                                    "schemaId": "methods-directory-regression-dataset", 
                                                                    "required": [
                                                                        "exabyteIds"
                                                                    ], 
                                                                    "type": "object", 
                                                                    "description": "dataset for ml", 
                                                                    "properties": {
                                                                        "exabyteIds": {
                                                                            "items": {
                                                                                "type": "string"
                                                                            }, 
                                                                            "type": "array", 
                                                                            "description": "array of exabyteIds for materials in dataset"
                                                                        }, 
                                                                        "extra": {
                                                                            "description": "holder for any extra information, eg. coming from user-uploaded CSV file"
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }, 
                                                        "title": "linear methods schema"
                                                    }
                                                ]
                                            }
                                        }, 
                                        "description": "machine learning model type/subtype schema", 
                                        "title": "machine learning model schema"
                                    }, 
                                    {
                                        "schemaId": "models-directory-unknown", 
                                        "allOf": [
                                            {
                                                "schemaId": "model", 
                                                "required": [
                                                    "type", 
                                                    "subtype", 
                                                    "method"
                                                ], 
                                                "properties": {
                                                    "subtype": {
                                                        "type": "string", 
                                                        "description": "general subtype of the model, eg. `lda`"
                                                    }, 
                                                    "type": {
                                                        "type": "string", 
                                                        "description": "general type of the model, eg. `dft`"
                                                    }, 
                                                    "method": {
                                                        "schemaId": "method", 
                                                        "required": [
                                                            "type", 
                                                            "subtype"
                                                        ], 
                                                        "properties": {
                                                            "subtype": {
                                                                "type": "string", 
                                                                "description": "general subtype of this method, eg. `ultra-soft`"
                                                            }, 
                                                            "type": {
                                                                "type": "string", 
                                                                "description": "general type of this method, eg. `pseudopotential`"
                                                            }, 
                                                            "precision": {
                                                                "type": "object", 
                                                                "description": "Object showing the actual possible precision based on theory and implementation"
                                                            }, 
                                                            "data": {
                                                                "type": "object", 
                                                                "description": "additional data specific to method, eg. array of pseudopotentials"
                                                            }
                                                        }, 
                                                        "title": "method schema (base)"
                                                    }
                                                }, 
                                                "title": "model schema (base)"
                                            }
                                        ], 
                                        "properties": {
                                            "subtype": {
                                                "enum": [
                                                    "unknown"
                                                ]
                                            }, 
                                            "type": {
                                                "enum": [
                                                    "unknown"
                                                ]
                                            }, 
                                            "method": {
                                                "schemaId": "methods-directory-unknown", 
                                                "allOf": [
                                                    {
                                                        "schemaId": "method", 
                                                        "required": [
                                                            "type", 
                                                            "subtype"
                                                        ], 
                                                        "properties": {
                                                            "subtype": {
                                                                "type": "string", 
                                                                "description": "general subtype of this method, eg. `ultra-soft`"
                                                            }, 
                                                            "type": {
                                                                "type": "string", 
                                                                "description": "general type of this method, eg. `pseudopotential`"
                                                            }, 
                                                            "precision": {
                                                                "type": "object", 
                                                                "description": "Object showing the actual possible precision based on theory and implementation"
                                                            }, 
                                                            "data": {
                                                                "type": "object", 
                                                                "description": "additional data specific to method, eg. array of pseudopotentials"
                                                            }
                                                        }, 
                                                        "title": "method schema (base)"
                                                    }
                                                ], 
                                                "properties": {
                                                    "subtype": {
                                                        "enum": [
                                                            "unknown"
                                                        ]
                                                    }, 
                                                    "type": {
                                                        "enum": [
                                                            "unknown"
                                                        ]
                                                    }
                                                }, 
                                                "title": "unknown methods schema"
                                            }
                                        }, 
                                        "description": "schema for cases when model is unknown", 
                                        "title": "unknown model schema"
                                    }
                                ], 
                                "description": "Model used inside the subworkflow"
                            }, 
                            "_id": {
                                "type": "string", 
                                "description": "subworkflow identity"
                            }, 
                            "properties": {
                                "items": {
                                    "type": "string", 
                                    "description": "property names, eg. `band_gaps`, `band_structure`"
                                }, 
                                "type": "array", 
                                "description": "Array of characteristic properties calculated by this subworkflow"
                            }
                        }, 
                        "title": "subworkflow schema"
                    }
                ]
            }, 
            "type": "array", 
            "description": "Array of subworkflows. Subworkflow can be an instance of workflow to allow for nesting"
        }, 
        "properties": {
            "items": {
                "type": "string", 
                "description": "property names, eg. `band_gaps`, `band_structure`"
            }, 
            "type": "array", 
            "description": "Array of characteristic properties calculated by this workflow (TODO: add enums)"
        }, 
        "workflows": {
            "items": {
                "type": "object"
            }, 
            "type": "array", 
            "description": "Array of workflows with the same schema as the current one."
        }
    }
}
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
    "exabyteId": "qKtTzu9utCo6ac4n7", 
    "hash": "f4fd707d2e47c15f8d786cf159040954", 
    "name": "workflow", 
    "creator": {
        "_id": "HtxACY2wX4b2hS8Rv", 
        "slug": "exadmin", 
        "cls": "User"
    }, 
    "tags": [
        "workflow"
    ], 
    "slug": "workflow", 
    "units": [
        {
            "type": "subworkflow", 
            "_id": "LCthJ6E2QabYCZqf4", 
            "flowchartId": "05c362dc27ff1bb98d16fd60"
        }
    ], 
    "createdAt": "2018-11-19 06:41:46.877Z", 
    "owner": {
        "_id": "HtxACY2wX4b2hS8Rv", 
        "slug": "exabyte", 
        "cls": "Account"
    }, 
    "schemaVersion": "0.2.0", 
    "_id": "FPjAaKfuYAL7tiHbm", 
    "subworkflows": [
        {
            "name": "Band Structure", 
            "application": {
                "shortName": "qe", 
                "version": "5.1.1", 
                "name": "espresso", 
                "summary": "Quantum Espresso"
            }, 
            "units": [
                {
                    "status": "idle", 
                    "type": "execution", 
                    "head": true, 
                    "flowchartId": "pw-scf", 
                    "name": "pw_scf"
                }
            ], 
            "model": {
                "modifiers": [
                    {
                        "slug": "soc"
                    }
                ], 
                "functional": {
                    "slug": "pbe"
                }, 
                "subtype": "gga", 
                "refiners": [
                    {
                        "slug": "hse"
                    }
                ], 
                "type": "dft", 
                "method": {
                    "subtype": "us", 
                    "data": {
                        "searchText": "", 
                        "pseudo": [
                            {
                                "files": [
                                    {
                                        "valenceElectrons": 4, 
                                        "name": "pseudopotential file", 
                                        "electronicConfiguration": "s2p2", 
                                        "generationDate": "05Jan2001", 
                                        "textHeading": "PAW_PBE Si 05Jan2001\n   4.00000000000000\nparameters from PSCTR are:\n   VRHFIN =Si: s2p2\n   LEXCH  = PE\n   EATOM  =   103.0669 eV,    7.5752 Ry\n \n   TITEL  = PAW_PBE Si 05Jan2001\n   LULTRA =        F    use ultrasoft PP ?\n   IUNSCR =        1    unscreen: 0-lin 1-nonlin 2-no\n   RPACOR =    1.500    partial core radius\n   POMASS =   28.085; ZVAL   =    4.000    mass and valenz\n   RCORE  =    1.900    outmost cutoff radius\n   RWIGS  =    2.480; RWIGS  =    1.312    wigner-seitz radius (au A)\n   ENMAX  =  245.345; ENMIN  =  184.009 eV\n   ICORE  =        2    local potential\n   LCOR   =        T    correct aug charges\n   LPAW   =        T    paw PP\n   EAUG   =  322.069\n   DEXC   =    0.000\n   RMAX   =    1.950    core radius for proj-oper\n   RAUG   =    1.300    factor for augmentation sphere\n   RDEP   =    1.993    radius for radial grids\n   RDEPT  =    1.837    core radius for aug-charge\n \n   Atomic configuration\n    6 entries     n  l   j            E        occ.\n     1  0  0.50     -1785.8828   2.0000\n     2  0  0.50      -139.4969   2.0000\n     2  1  1.50       -95.5546   6.0000\n     3  0  0.50       -10.8127   2.0000\n     3  1  0.50        -4.0811   2.0000\n     3  2  1.50        -4.0817   0.0000\n   Description\n     l       E           TYP  RCUT    TYP  RCUT\n     0    -10.8127223     23  1.900\n     0     -7.6451159     23  1.900\n     1     -4.0811372     23  1.900\n     1      2.4879257     23  1.900\n     2     -4.0817478      7  1.900\n   Error from kinetic energy argument (eV)\n", 
                                        "title": "Si paw pbe vasp 5.2", 
                                        "apps": [
                                            "vasp"
                                        ], 
                                        "element": "Si", 
                                        "source": "vasp", 
                                        "radii": {
                                            "units": "angstrom", 
                                            "cutoff": 1.9, 
                                            "wignerSeitz": 1.312, 
                                            "name": "radii", 
                                            "partialCore": 1.5
                                        }, 
                                        "mass": 28.085, 
                                        "energyCutoff": {
                                            "units": "eV", 
                                            "max": 245.345, 
                                            "name": "energy cutoff", 
                                            "min": 184.009
                                        }, 
                                        "path": "/export/share/pseudo/ag/gga/pbe/gbrv/1.4/us/ag_pbe_gbrv_1.4.upf", 
                                        "type": "paw", 
                                        "exchangeCorrelation": {
                                            "approximation": "gga", 
                                            "functional": "pbe"
                                        }
                                    }
                                ], 
                                "elements": [
                                    "Si", 
                                    "Ge", 
                                    "As"
                                ], 
                                "name": "my set", 
                                "format": "upf", 
                                "apps": [
                                    "espresso"
                                ], 
                                "source": "gbrv", 
                                "version": "1.5", 
                                "type": "us", 
                                "exchangeCorrelation": {
                                    "approximation": "gga", 
                                    "functional": "pbe"
                                }
                            }
                        ]
                    }, 
                    "type": "pseudopotential"
                }
            }, 
            "_id": "LCthJ6E2QabYCZqf4", 
            "properties": [
                "band_structure"
            ]
        }
    ], 
    "properties": [
        "band_structure"
    ], 
    "isDefault": true
}

There are a few notable points to emphasize from the example above.

Nested data

We use top-level workflow as a "container", and separate the details of each individual section of calculation inside a subworkflow.

Templating

We allow for using templates inside the input to individual units. In this way, we can decouple material-specific information from the workflow-specific one. More explanation can be found inside the units documentation page.

Properties

The "Properties" section serves as an aggregator of all the properties that are extracted at the workflow or subworkflow levels. The "results" key serves the same purpose, but for the case of units.