-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentity-api-spec.yaml
More file actions
2631 lines (2590 loc) · 111 KB
/
entity-api-spec.yaml
File metadata and controls
2631 lines (2590 loc) · 111 KB
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
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
description: 'The SenNet Entity API is a standard RESTful web service with create, update and read operations for the standard SenNet provenance graph entities.'
version: 1.10.4
title: SenNet Entity API
contact:
name: SenNet Help Desk
email: help@sennetconsortium.org
license:
name: MIT License
url: 'https://github.com/sennetconsortium/entity-api/blob/main/license.txt'
servers:
- url: 'https://entity.api.sennetconsortium.org'
security:
- BearerAuth: []
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: Globus Bearer token to authorize requests
schemas:
Person:
type: object
properties:
first_name:
type: string
description: The full name of the person.
last_name:
type: string
description: The last name of the person.
middle_name_or_initial:
type: string
description: The middle name or initial of the person.
orcid_id:
type: string
description: The ORCID ID of the person.
affiliation:
type: string
description: The institution that the person is affiliated with.
SourceMetadata:
type: object
properties:
code:
type: string
description: "This is a Code from a source vocabulary in the SenNet Knowledge Graph, currently limited to UMLS source vocabulary terms."
sab:
type: string
description: "This is the source vocabulary in the SenNet Knowledge Graph. Currently limited to UMLS source vocabularies."
concept_id:
type: string
description: "This is the Concept ID from the SenNet Knowledge Graph. Currently limited to UMLS concepts."
data_type:
type: string
enum:
- Nominal
- Numeric
description: "This is the data type of thw record. Numeric types will generally have non-null data_value. Nominal types will generally have null data_value."
data_value:
type: string
description: "The data value of the record."
numeric_operator:
type: string
enum:
- EQ
- GT
- LT
description: "This is the numeric operator for the data value .This enables inputing thresholds and ranges for data values by using greater than or less than."
units:
type: string
description: "This are the units for the data value."
preferred_term:
type: string
description: "This is the preferred display term for the item. It may or may not correspond to a term in UMLS for this concept."
grouping_concept:
type: string
description: "This is the Concept ID from the SenNet Knowledge Graph, currently limited to UMLS concetps, that is to be used for grouping the record."
grouping_concept_preferred_term:
type: string
description: "This is the preferred display term for the facet in which this record should be counted for faceted search in the portal. It may or may not correspond to a term in UMLS for the grouping concept."
grouping_code:
type: string
description: "This is a Code from a source vocabulary in the SenNet Knowledge Graph, currently limited to UMLS vocabulary codes. This code corresponds to the grouping_concept."
grouping_sab:
type: string
description: "This is a grouping for the source vocabulary in the SenNet Knowledge Graph, currently limited to UMLS source vocabularies.. This sab corresponds to the grouping_code."
graph_version:
type: string
description: "This is the version of the SenNet Knowledge Graph that the Concept appears in, currently the version of UMLS that is used."
start_datetime:
type: integer
description: "This is the approximate time difference in seconds between the procurement and the start of this event (this is to construct time series records of clinical data for event-level data not source-level data). An empty or zero value designates missing data or that this field is not applicable for the concept."
end_datetime:
type: integer
description: "This is the approximate time difference in seconds between the procurement and the end of this event (this is to construct time series records of clinical data for event-level data not source-level data). An empty of zero value designates missing data or that this field is not applicable for the concept"
File:
type: object
properties:
filename:
type: string
description: The name of the file.
description:
type: string
description: A description of the file. The Dataset.thumbnail_file does not have this file description.
file_uuid:
type: string
description: The SenNet unique identifier for the file.
Source:
type: object
properties:
created_timestamp:
type: integer
readOnly: true
description: The timestamp of when the node was created. The format is an integer representing milliseconds since midnight Jan 1, 1970
created_by_user_displayname:
type: string
readOnly: true
description: The name of the person or process authenticated when creating the object
created_by_user_email:
type: string
readOnly: true
description: The email address of the person or process authenticated when creating the object.
created_by_user_sub:
type: string
readOnly: true
description: The subject id as provided by the authorization mechanism for the person or process authenticated when creating the object.
uuid:
type: string
readOnly: true
description: The SenNet unique identifier, intended for internal software use only. This is a 32 digit hexadecimal uuid e.g. 461bbfdc353a2673e381f632510b0f17
sennet_id:
type: string
readOnly: true
description: A SenNet Consortium wide unique identifier randomly generated in the format SNT###.ABCD.### for every entity.
last_modified_timestamp:
type: integer
readOnly: true
description: The timestamp of when the object was last modified. The format is an integer representing milliseconds since midnight, Jan 1, 1970
last_modified_user_sub:
type: string
readOnly: true
description: The subject id of the user who last modified the entity as provided by the authorization mechanism for the person or process authenticated when the object was modified.
last_modified_user_email:
type: string
readOnly: true
description: The email address of the person or process which authenticated when the object was last modified.
last_modified_user_displayname:
type: string
readOnly: true
description: The name of the person or process which authenticated when the object was last modified.
entity_type:
type: string
readOnly: true
description: 'One of the normalized entity types: Dataset, Collection, Sample, Source, Upload'
registered_doi:
type: string
description: The doi of a the registered entity. e.g. 10.35079/snt289.pcbm.487. This is set during the publication process and currently available for certain Collections and Datasets.
doi_url:
type: string
readOnly: true
description: The url from the doi registry for this entity. e.g. https://doi.org/10.35079/snt289.pcbm.487
creators:
type: array
items:
$ref: '#/components/schemas/Person'
description: A list of the people who created the entity with full name, email, ORCID iD, institution, etc.. This is analogus to the author list on a publication.
contacts:
type: array
items:
$ref: '#/components/schemas/Person'
description: A list of the people who are the main contacts to get information about the entity.
description:
type: string
description: Free text description of the source
data_access_level:
type: string
readOnly: true
enum:
- consortium
- public
description: 'One of the values: public, consortium'
image_files:
readOnly: true
type: array
items:
$ref: '#/components/schemas/File'
description: List of uploaded image files and descriptions of the files. Stored in db as a stringfied json array.
image_files_to_add:
writeOnly: true
type: array
items:
type: string
format: temp_file_id
description: 'List of temporary file ids with an optional description. Provide as a json array with an temp_file_id and description attribute for each element like {"files": [{"temp_file_id":"dzevgd6xjs4d5grmcp4n","description":"This is image file one"},{"temp_file_id":"yrahjadfhadf","description":"This is image file two"}]}'
image_files_to_remove:
writeOnly: true
type: array
items:
type: string
format: file_uuid
description: 'List of image files previously uploaded to delete. Provide as a json array of the file_uuids of the file like: ["232934234234234234234270c0ea6c51d604a850558ef2247d0b4", "230948203482234234234a57bfe9c056d08a0f8e6cd612baa3bfa"]'
lab_source_id:
type: string
description: A lab specific identifier for the source.
group_uuid:
type: string
description: The UUID of globus group which the user who created this entity is a member of. This is required on Create/POST if the user creating the Source is a member of more than one write group. This property cannot be set via PUT (only on Create/POST).
group_name:
readOnly: true
type: string
description: The displayname of globus group which the user who created this entity is a member of
label:
type: string
description: Lab provided, de-identified name for the source
source_type:
type: string
enum:
- Human
- Human Organoid
- Mouse
- Mouse Organoid
description: "A high level description of where this source originates from. Valid values found in: [source types](https://ontology.api.hubmapconsortium.org/valueset?parent_sab=SENNET&parent_code=C050020&child_sabs=SENNET)"
Sample:
type: object
properties:
created_timestamp:
type: integer
readOnly: true
description: The timestamp of when the node was created. The format is an integer representing milliseconds since midnight Jan 1, 1970
created_by_user_displayname:
type: string
readOnly: true
description: The name of the person or process authenticated when creating the object
created_by_user_email:
type: string
readOnly: true
description: The email address of the person or process authenticated when creating the object.
created_by_user_sub:
type: string
readOnly: true
description: The subject id as provided by the authorization mechanism for the person or process authenticated when creating the object.
uuid:
type: string
readOnly: true
description: The SenNet unique identifier, intended for internal software use only. This is a 32 digit hexadecimal UUID e.g. 461bbfdc353a2673e381f632510b0f17
sennet_id:
type: string
readOnly: true
description: A SenNet Consortium wide unique identifier randomly generated in the format SNT###.ABCD.### for every entity.
last_modified_timestamp:
type: integer
readOnly: true
description: The timestamp of when the object was last modified. The format is an integer representing milliseconds since midnight, Jan 1, 1970
last_modified_user_sub:
type: string
readOnly: true
description: The subject id of the user who last modified the entity as provided by the authorization mechanism for the person or process authenticated when the object was modified.
last_modified_user_email:
type: string
readOnly: true
description: The email address of the person or process which authenticated when the object was last modified.
last_modified_user_displayname:
type: string
readOnly: true
description: The name of the person or process which authenticated when the object was last modified.
entity_type:
type: string
readOnly: true
description: 'One of the normalized entity types: Dataset, Collection, Sample, Source'
registered_doi:
type: string
description: The doi of a the registered entity. e.g. 10.35079/snt289.pcbm.487. This is set during the publication process and currently available for certain Collections and Datasets.
doi_url:
type: string
readOnly: true
description: The url from the doi registry for this entity. e.g. https://doi.org/10.35079/snt289.pcbm.487
creators:
type: array
items:
$ref: '#/components/schemas/Person'
description: A list of the people who created the entity with full name, email, ORCID iD, institution, etc.. This is analogus to the author list on a publication.
contacts:
type: array
items:
$ref: '#/components/schemas/Person'
description: A list of the people who are the main contacts to get information about the entity.
description:
type: string
description: Free text description of the sample
data_access_level:
type: string
enum:
- consortium
- public
description: 'One of the values: public, consortium.'
group_uuid:
type: string
description: The UUID of globus group which the user who created this entity is a member of. This is required on Create/POST if the user creating the Source is a member of more than one write group. This property cannot be set via PUT (only on Create/POST).
group_name:
readOnly: true
type: string
description: The displayname of globus group which the user who created this entity is a member of
sample_category:
type: string
enum:
- Block
- Organ
- Section
- Suspension
description: "The category of the sample. Valid values found in: [sample categories](https://ontology.api.hubmapconsortium.org/valueset?parent_sab=SENNET&parent_code=C020076&child_sabs=SENNET)"
organ:
type: string
enum:
- UBERON:0001013 # Adipose Tissue
- UBERON:0000178 # Blood
- UBERON:0001474 # Bone
- UBERON:0002371 # Bone Marrow
- UBERON:0000955 # Brain
- UBERON:0000948 # Heart
- UBERON:0004538 # Kidney (Left)
- UBERON:0004539 # Kidney (Right)
- UBERON:0000059 # Large Intestine
- UBERON:0002107 # Liver
- UBERON:0002168 # Lung (Left)
- UBERON:0002167 # Lung (Right)
- UBERON:0000029 # Lymph Node
- UBERON:0001911 # Mammary Gland
- FMA:57991 # Mammary Gland (Left)
- FMA:57987 # Mammary Gland (Right)
- UBERON:0005090 # Muscle
- UBERON:0010000 # Other
- UBERON:0002119 # Ovary (Left)
- UBERON:0002118 # Ovary (Right)
- UBERON:0001264 # Pancreas
- UBERON:0001987 # Placenta
- UBERON:0002097 # Skin
- UBERON:0002240 # Spinal Cord
- UBERON:0002106 # Spleen
- UBERON:0002370 # Thymus
- FMA:54974 # Tonsil (Left)
- FMA:54973 # Tonsil (Right)
- UBERON:0003126 # Trachea
description: "Organ code specifier, only set if sample_type == organ. Valid values found in: [organ types](https://ontology.api.hubmapconsortium.org/organs?application_context=sennet)"
organ_other:
type: string
description: The organ type provided by the user if "other" organ type is selected
direct_ancestor_uuid:
type: string
writeOnly: true
description: The UUID of source entity from which this new entity is derived from. Used on creation or edit to create an action and relationship to the ancestor. The direct ancestor must be a Source or Sample. If the direct ancestor is a Source, the sample must be of type organ.
direct_ancestor:
readOnly: true
type: object
description: The entitiy directly above this sample in the provenance graph (direct parent).
lab_tissue_sample_id:
type: string
description: Lab specific id for the sample.
rui_location:
type: object
description: The sample location and orientation in the ancestor organ as specified in the RUI tool. Returned as a json object.
visit:
type: string
description: The visit id for the source/patient when the sample was obtained.
image_files:
readOnly: true
type: array
items:
$ref: '#/components/schemas/File'
description: List of uploaded image files and descriptions of the files. Stored in db as a stringfied json array.
image_files_to_add:
writeOnly: true
type: array
items:
type: string
format: temp_file_id
description: 'List of temporary file ids with an optional description. Provide as a json array with an temp_file_id and description attribute for each element like {"files": [{"temp_file_id":"dzevgd6xjs4d5grmcp4n","description":"This is image file one"},{"temp_file_id":"yrahjadfhadf","description":"This is image file two"}]}'
image_files_to_remove:
writeOnly: true
type: array
items:
type: string
format: file_uuid
description: 'List of image files previously uploaded to delete. Provide as a json array of the file_uuids of the file like: ["232934234234234234234270c0ea6c51d604a850558ef2247d0b4", "230948203482234234234a57bfe9c056d08a0f8e6cd612baa3bfa"]'
metadata_files:
readOnly: true
type: array
items:
$ref: '#/components/schemas/File'
description: List of uploaded image files and descriptions of the files. Stored in db as a stringfied json array.
metadata_files_to_add:
type: array
items:
type: string
format: temp_file_id
description: 'List of temporary file ids with an optional description. Provide as a json array with an temp_file_id and description attribute for each element like {"files": [{"temp_file_id":"dzevgd6xjs4d5grmcp4n","description":"This is image file one"},{"temp_file_id":"yrahjadfhadf","description":"This is image file two"}]}'
metadata_files_to_remove:
type: array
items:
type: string
format: file_uuid
description: 'List of image files previously uploaded to delete. Provide as a json array of the file_uuids of the file like: ["232934234234234234234270c0ea6c51d604a850558ef2247d0b4", "230948203482234234234a57bfe9c056d08a0f8e6cd612baa3bfa"]'
Dataset:
type: object
properties:
created_timestamp:
type: integer
readOnly: true
description: The timestamp of when the node was created. The format is an integer representing milliseconds since midnight Jan 1, 1970
created_by_user_displayname:
type: string
readOnly: true
description: The name of the person or process authenticated when creating the object
created_by_user_email:
type: string
readOnly: true
description: The email address of the person or process authenticated when creating the object.
created_by_user_sub:
type: string
readOnly: true
description: The subject id as provided by the authorization mechanism for the person or process authenticated when creating the object.
uuid:
type: string
readOnly: true
description: The SenNet unique identifier, intended for internal software use only. This is a 32 digit hexadecimal UUID e.g. 461bbfdc353a2673e381f632510b0f17
sennet_id:
type: string
readOnly: true
description: A SenNet Consortium wide unique identifier randomly generated in the format SNT###.ABCD.### for every entity.
last_modified_timestamp:
type: integer
readOnly: true
description: The timestamp of when the object was last modified. The format is an integer representing milliseconds since midnight, Jan 1, 1970
last_modified_user_sub:
type: string
readOnly: true
description: The subject id of the user who last modified the entity as provided by the authorization mechanism for the person or process authenticated when the object was modified.
last_modified_user_email:
type: string
readOnly: true
description: The email address of the person or process which authenticated when the object was last modified.
last_modified_user_displayname:
type: string
readOnly: true
description: The name of the person or process which authenticated when the object was last modified.
entity_type:
type: string
readOnly: true
description: 'One of the normalized entity types: Dataset, Collection, Sample, Source'
registered_doi:
type: string
description: The doi of a the registered entity. e.g. 10.35079/snt289.pcbm.487. This is set during the publication process and currently available for certain Collections and Datasets.
doi_url:
type: string
readOnly: true
description: The url from the doi registry for this entity. e.g. https://doi.org/10.35079/snt289.pcbm.487
creators:
type: array
items:
$ref: '#/components/schemas/Person'
description: A list of the people who created the entity with full name, email, ORCID iD, institution, etc.. This is analogus to the author list on a publication.
contacts:
type: array
items:
$ref: '#/components/schemas/Person'
description: A list of the people who are the main contacts to get information about the entity.
description:
type: string
description: Free text description of the dataset
data_access_level:
type: string
readOnly: true
enum:
- public
- consortium
description: 'One of the values: public, consortium.'
contains_human_genetic_sequences:
type: boolean
description: True if the data contains any human genetic sequence information. Can only be set at CREATE/POST time
status:
type: string
enum:
- New
- Processing
- QA
- Published
- Error
- Hold
- Invalid
description: 'One of: New|Processing|QA|Published|Error|Hold|Invalid'
title:
type: string
description: The dataset title.
dataset_type:
type: string
enum:
- Visium
- seqFISH
- RNAseq
- ATACseq
- 10X Multiome
- SNARE-seq2
- CODEX
- PhenoCycler
- CyCIF
- MERFISH
- Cell Dive
- Histology
- MALDI
- SIMS
- DESI
- MIBI
- 2D Imaging Mass Cytometry
- LC-MS
- nanoSPLITS
- Auto-fluorescence
- Light Sheet
- Confocal
- Thick section Multiphoton MxIF
- Second Harmonic Generation (SHG)
- Enhanced Stimulated Raman Spectroscopy (SRS)
- Molecular Cartography
- DARTfish
- WGS
- 3D Imaging Mass Cytometry
description: The data or assay type contained in this dataset.
collections:
readOnly: true
type: array
items:
$ref: '#/components/schemas/Collection'
description: A list of collections that this dataset belongs to.
upload:
readOnly: true
type: array
items:
$ref: '#/components/schemas/Upload'
description: "The Data Upload that this dataset is associated with."
contributors:
readOnly: true
type: array
items:
$ref: '#/components/schemas/Person'
description: A list of people who contributed to the creation of this dataset. Returned as an array of contributor where the structure of a contributor is
direct_ancestors:
readOnly: true
type: array
items:
anyOf:
- $ref: '#/components/schemas/Sample'
- $ref: '#/components/schemas/Dataset'
description: A list of direct parent ancensters (one level above) that the Dataset was derived from.
published_timestamp:
readOnly: true
type: integer
description: The timestamp of when the dataset was published. The format is an integer representing milliseconds since midnight, Jan 1, 1970.
published_user_displayname:
readOnly: true
type: string
description: The name of the authenticated user or process that published the data.
published_user_sub:
readOnly: true
type: string
description: The subject id for the user who published the data as provided by the authorization mechanism for the person or process authenticated when the dataset was publised.
published_user_email:
readOnly: true
type: string
description: The email address of the user who published the provided by the authorization mechanism for the person or process authenticated when published.
ingest_metadata:
type: object
description: The metadata returned from the ingest pipeline processing at data submission time. Provided as json.
local_directory_rel_path:
type: string
readOnly: true
description: The path on the local HIVE file system, relative to the base data directory, where the data is stored.
group_uuid:
type: string
description: The UUID of globus group which the user who created this entity is a member of. This is required on Create/POST if the user creating the Source is a member of more than one write group. This property cannot be set via PUT (only on Create/POST).
group_name:
type: string
readOnly: true
description: The displayname of globus group which the user who created this entity is a member of
previous_revision_uuid:
type: string
description: The UUID of previous revision dataset. Can only be set at Create/POST time.
next_revision_uuid:
type: string
readOnly: true
description: The UUID of next revision dataset
thumbnail_file:
readOnly: true
description: 'The dataset thumbnail file detail. Stored in db as a stringfied json, e.g., {"filename": "thumbnail.jpg", "file_uuid": "c35002f9c3d49f8b77e1e2cd4a01803d"}'
thumbnail_file_to_add:
writeOnly: true
type: string
format: temp_file_id
description: Just a temporary file id. Provide as a json object with an temp_file_id like {"temp_file_id":"dzevgd6xjs4d5grmcp4n"}
thumbnail_file_to_remove:
writeOnly: true
type: string
format: file_uuid
description: 'The thumbnail image file previously uploaded to delete. Provide as a string of the file_uuid like: "c35002f9c3d49f8b77e1e2cd4a01803d"'
creation_action:
type: string
description: 'The associated action that represents the creation of that dataset'
intended_dataset_type:
type: string
description: 'The dataset type of the intended datasets that will be uploaded as part of the Upload.'
intended_organ:
type: string
description: 'The organ code representing the organ type that the data contained in the upload will be registered/associated with.'
Upload:
type: object
properties:
created_timestamp:
type: integer
readOnly: true
description: The timestamp of when the node was created. The format is an integer representing milliseconds since midnight Jan 1, 1970
created_by_user_displayname:
type: string
readOnly: true
description: The name of the person or process authenticated when creating the object
created_by_user_email:
type: string
readOnly: true
description: The email address of the person or process authenticated when creating the object.
created_by_user_sub:
type: string
readOnly: true
description: The subject id as provided by the authorization mechanism for the person or process authenticated when creating the object.
uuid:
type: string
readOnly: true
description: The SenNet unique identifier, intended for internal software use only. This is a 32 digit hexadecimal UUID e.g. 461bbfdc353a2673e381f632510b0f17
sennet_id:
type: string
readOnly: true
description: A SenNet Consortium wide unique identifier randomly generated in the format SNT###.ABCD.### for every entity.
last_modified_timestamp:
type: integer
readOnly: true
description: The timestamp of when the object was last modified. The format is an integer representing milliseconds since midnight, Jan 1, 1970
last_modified_user_sub:
type: string
readOnly: true
description: The subject id of the user who last modified the entity as provided by the authorization mechanism for the person or process authenticated when the object was modified.
last_modified_user_email:
type: string
readOnly: true
description: The email address of the person or process which authenticated when the object was last modified.
last_modified_user_displayname:
type: string
readOnly: true
description: The name of the person or process which authenticated when the object was last modified.
entity_type:
type: string
readOnly: true
description: 'One of the normalized entity types: Dataset, Collection, Sample, Source, Upload'
description:
type: string
description: Free text description of the data being submitted.
title:
type: string
description: Title of the datasets, a sentance or less
status:
type: string
description: 'One of: New|Valid|Invalid|Error|Submitted'
validation_message:
type: string
description: A message from the validataion tools describing what is invalid with the upload.
group_uuid:
type: string
description: The UUID of globus group which the user who created this entity is a member of. This is required on Create/POST if the user creating the Source is a member of more than one write group. This property cannot be set via PUT (only on Create/POST).
group_name:
type: string
readOnly: true
description: The displayname of globus group which the user who created this entity is a member of
dataset_uuids_to_link:
type: array
items:
type: string
writeOnly: true
description: 'List of datasets to add to the Upload. Provide as a json array of the dataset UUIDs like: ["232934234234234234234270c0ea6c51d604a850558ef2247d0b4", "230948203482234234234a57bfe9c056d08a0f8e6cd612baa3bfa"]'
dataset_uuids_to_unlink:
type: array
items:
type: string
writeOnly: true
description: 'List of datasets to remove from a Upload. Provide as a json array of the dataset UUIDs like: ["232934234234234234234270c0ea6c51d604a850558ef2247d0b4", "230948203482234234234a57bfe9c056d08a0f8e6cd612baa3bfa"]'
datasets:
type: array
items:
$ref: '#/components/schemas/Dataset'
readOnly: true
description: The datasets that are contained in this Upload.
Collection:
type: object
properties:
created_timestamp:
type: integer
readOnly: true
description: The timestamp of when the node was created. The format is an integer representing milliseconds since midnight Jan 1, 1970
created_by_user_displayname:
type: string
readOnly: true
description: The name of the person or process authenticated when creating the object
created_by_user_email:
type: string
readOnly: true
description: The email address of the person or process authenticated when creating the object.
created_by_user_sub:
type: string
readOnly: true
description: The subject id as provided by the authorization mechanism for the person or process authenticated when creating the object.
uuid:
type: string
readOnly: true
description: The SenNet unique identifier, intended for internal software use only. This is a 32 digit hexadecimal UUID e.g. 461bbfdc353a2673e381f632510b0f17
sennet_id:
type: string
readOnly: true
description: A SenNet Consortium wide unique identifier randomly generated in the format SNT###.ABCD.### for every entity.
last_modified_timestamp:
type: integer
readOnly: true
description: The timestamp of when the object was last modified. The format is an integer representing milliseconds since midnight, Jan 1, 1970
last_modified_user_sub:
type: string
readOnly: true
description: The subject id of the user who last modified the entity as provided by the authorization mechanism for the person or process authenticated when the object was modified.
last_modified_user_email:
type: string
readOnly: true
description: The email address of the person or process which authenticated when the object was last modified.
last_modified_user_displayname:
type: string
readOnly: true
description: The name of the person or process which authenticated when the object was last modified.
entity_type:
type: string
readOnly: true
description: 'One of the normalized entity types: Dataset, Collection, Sample, Source'
registered_doi:
type: string
description: The doi of a the registered entity. e.g. 10.35079/snt289.pcbm.487. This is set during the publication process and currently available for certain Collections and Datasets.
doi_url:
type: string
readOnly: true
description: The url from the doi registry for this entity. e.g. https://doi.org/10.35079/snt289.pcbm.487
contributors:
type: array
items:
$ref: '#/components/schemas/Person'
description: A list of the people who created the entity with full name, email, ORCID iD, institution, etc.. This is analogus to the author list on a publication.
contacts:
type: array
items:
$ref: '#/components/schemas/Person'
description: A list of the people who are the main contacts to get information about the entity.
title:
type: string
description: The title of the Collection
datasets:
type: array
readOnly: true
items:
$ref: '#/components/schemas/Dataset'
description: The datasets that are contained in the Collection.
Instanceof:
type: object
description: "Returned by /entities/type/{type_a}/instanceof/{type_b}"
properties:
instanceof:
type: boolean
description: "True of False depending on whether the Entity id is an instance of the type"
paths:
/entities/{id}:
get:
tags:
- entities
summary: Retrieve a provenance entity by id. Entity types of Source, Sample, Dataset, and Upload.
parameters:
- name: id
in: path
description: The unique identifier of entity. This identifier can be either an SenNet ID (e.g. SNT123.ABCD.456) or UUID (32 digit hexadecimal number)
required: true
schema:
type: string
- name: exclude
in: query
description: The properties to not be included in the JSON response of the entity.
required: false
schema:
type: string
- name: property
in: query
description: Specifies a single property to be returned from the entity JSON.
required: false
schema:
type: string
enum:
- 'data_access_level'
- 'status'
responses:
'200':
description: The json of the **[Source](http://somewhere.org)**, **[Sample](http://somewhere.org)**, **[Dataset](http://somewhere.org)**, or **[Upload](http://somewhere.org)**
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Source'
- $ref: '#/components/schemas/Sample'
- $ref: '#/components/schemas/Dataset'
- $ref: '#/components/schemas/Upload'
'400':
description: Invalid or misformatted entity identifier was provided.
'401':
description: The user's bearer token has expired or the user did not supply a valid token.
'403':
description: The user is not authorized to retrieve the referenced entity.
'404':
description: The target entity could not be found.
'500':
description: An unexpected error occurred.
put:
tags:
- entities
summary: Update the properties of a given Source, Sample, Dataset or Upload
parameters:
- name: id
in: path
description: The SenNet ID (e.g. SNT123.ABCD.456) or UUID of target entity
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Source'
- $ref: '#/components/schemas/Sample'
- $ref: '#/components/schemas/Dataset'
- $ref: '#/components/schemas/Upload'
responses:
'200':
description: The entity was successfully updated and is returned
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Source'
- $ref: '#/components/schemas/Sample'
- $ref: '#/components/schemas/Dataset'
- $ref: '#/components/schemas/Upload'
'400':
description: Invalid or misformatted entity identifier
'401':
description: The user's token has expired or the user did not supply a valid token
'404':
description: The target entity could not be found
'500':
description: Internal error
/entity-types:
get:
tags:
- entities types
summary: Get a list of all the available entity types defined in the schema yaml
responses:
'200':
description: An array of entity types is returned
content:
application/json:
schema:
type: array
items:
type: string
'401':
description: The user's token has expired or the user did not supply a valid token
'403':
description: The user is not authorized to use this method
'500':
description: Internal error
/ancestors/{id}:
get:
tags:
- ancestors
summary: Get the ancestor list for an Entity. The ancestors are the nodes connected "upstream" from the current node. This list traverses all the levels in the graph.
parameters:
- name: id
in: path
description: The unique identifier of entity. This identifier can be either an SenNet ID (e.g. SNT123.ABCD.456) or UUID
required: true
schema:
type: string
responses:
'200':
description: An array of ancestors is returned
content:
application/json:
schema:
type: array
items:
anyOf:
- $ref: '#/components/schemas/Source'
- $ref: '#/components/schemas/Sample'
- $ref: '#/components/schemas/Dataset'
'400':
description: Invalid or misformatted entity identifier
'401':
description: The user's token has expired or the user did not supply a valid token
'403':
description: The user is not authorized to access the entity
'404':
description: The target entity could not be found
'500':
description: Internal error
post:
tags:
- ancestors
summary: Get the ancestor list for an Entity. The ancestors are the nodes connected "upstream" from the current node. This list traverses all the levels in the graph.
parameters:
- name: id
in: path
description: The unique identifier of entity. This identifier can be either an SenNet ID (e.g. SNT123.ABCD.456) or UUID
required: true
schema:
type: string
requestBody:
description: A json body with "filter_properties" (a list of properties to include or exclude) and "is_include"
(a boolean value for if the list provided is inclusion or exclusion).
content:
application/json:
schema:
type: object
properties:
filter_properties:
type: array
items:
type: string
description: A list of properties to include or exclude
is_include:
type: boolean
description: Used to determine if the list provided is inclusion or exclusion
responses:
'200':
description: An array of ancestors is returned
content:
application/json:
schema:
type: array
items:
anyOf:
- $ref: '#/components/schemas/Source'
- $ref: '#/components/schemas/Sample'
- $ref: '#/components/schemas/Dataset'
'400':
description: Invalid or misformatted entity identifier
'401':
description: The user's token has expired or the user did not supply a valid token
'403':
description: The user is not authorized to access the entity
'404':
description: The target entity could not be found
'500':
description: Internal error
/descendants/{id}:
get:
tags:
- descendants
summary: Get the descendant list for an Entity. The descendants are the nodes "downstream" from the current node. This list traverses all the levels in the graph. Returns all descendants as an array of Entities.
parameters:
- name: id
in: path
description: The unique identifier of entity. This identifier can be either an SenNet ID (e.g. SNT123.ABCD.456) or UUID
required: true
schema:
type: string
responses:
'200':
description: An array of descendants is returned
content:
application/json:
schema:
type: array
items:
anyOf:
- $ref: '#/components/schemas/Sample'
- $ref: '#/components/schemas/Dataset'
'400':
description: Invalid or misformatted entity identifier