|
| 1 | +id: _definitions |
| 2 | + |
| 3 | +uuid: |
| 4 | + $ref: "_terms.yaml#/uuid" |
| 5 | + type: string |
| 6 | + pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" |
| 7 | + systemAlias: node_id |
| 8 | + |
| 9 | +parent_uuids: |
| 10 | + type: array |
| 11 | + minItems: 1 |
| 12 | + items: |
| 13 | + $ref: "#/uuid" |
| 14 | + uniqueItems: true |
| 15 | + |
| 16 | +foreign_key_project: |
| 17 | + type: object |
| 18 | + # Allow true here because we can have other unique keys defined on |
| 19 | + # a target type |
| 20 | + additionalProperties: True |
| 21 | + # Can either use 'id' which are GDC IDs (uuid) or 'submitter_id' |
| 22 | + # which are user defined IDs ("submitter IDs in the backend") |
| 23 | + properties: |
| 24 | + id: |
| 25 | + $ref: "#/uuid" |
| 26 | + submitter_id: |
| 27 | + type: string |
| 28 | + |
| 29 | +to_one_project: |
| 30 | + anyOf: |
| 31 | + - type: array |
| 32 | + items: |
| 33 | + $ref: "#/foreign_key_project" |
| 34 | + minItems: 1 |
| 35 | + maxItems: 1 |
| 36 | + - $ref: "#/foreign_key_project" |
| 37 | + |
| 38 | +to_many_project: |
| 39 | + anyOf: |
| 40 | + - type: array |
| 41 | + items: |
| 42 | + $ref: "#/foreign_key_project" |
| 43 | + minItems: 1 |
| 44 | + - $ref: "#/foreign_key_project" |
| 45 | + |
| 46 | +foreign_key: |
| 47 | + type: object |
| 48 | + # Allow true here because we can have other unique keys defined on |
| 49 | + # a target type |
| 50 | + additionalProperties: True |
| 51 | + # Can either use 'id' which are GDC IDs (uuid) or 'submitter_id' |
| 52 | + # which are user defined IDs ("submitter IDs in the backend") |
| 53 | + properties: |
| 54 | + id: |
| 55 | + $ref: "#/uuid" |
| 56 | + submitter_id: |
| 57 | + type: string |
| 58 | + |
| 59 | +to_one: |
| 60 | + anyOf: |
| 61 | + - type: array |
| 62 | + items: |
| 63 | + $ref: "#/foreign_key" |
| 64 | + minItems: 1 |
| 65 | + maxItems: 1 |
| 66 | + - $ref: "#/foreign_key" |
| 67 | + |
| 68 | +to_many: |
| 69 | + anyOf: |
| 70 | + - type: array |
| 71 | + items: |
| 72 | + $ref: "#/foreign_key" |
| 73 | + minItems: 1 |
| 74 | + - $ref: "#/foreign_key" |
| 75 | + |
| 76 | +datetime: |
| 77 | + $ref: "_terms.yaml#/datetime" |
| 78 | + oneOf: |
| 79 | + - type: string |
| 80 | + format: date-time |
| 81 | + - type: 'null' |
| 82 | + |
| 83 | +file_name: |
| 84 | + $ref: "_terms.yaml#/file_name/common" |
| 85 | + type: string |
| 86 | + |
| 87 | +file_size: |
| 88 | + $ref: "_terms.yaml#/file_size/common" |
| 89 | + type: integer |
| 90 | + |
| 91 | +file_format: |
| 92 | + $ref: "_terms.yaml#/file_format" |
| 93 | + type: string |
| 94 | + |
| 95 | +md5sum: |
| 96 | + $ref: "_terms.yaml#/md5sum/common" |
| 97 | + type: string |
| 98 | + pattern: "^[a-f0-9]{32}$" |
| 99 | + |
| 100 | +release_state: |
| 101 | + description: >- |
| 102 | + Release state of an entity. |
| 103 | + default: unreleased |
| 104 | + enum: |
| 105 | + - unreleased |
| 106 | + - released |
| 107 | + - redacted |
| 108 | + |
| 109 | +data_bundle_state: |
| 110 | + description: >- |
| 111 | + State of a data bundle. |
| 112 | + default: submitted |
| 113 | + enum: |
| 114 | + - submitted |
| 115 | + - validated |
| 116 | + - error |
| 117 | + - released |
| 118 | + - suppressed |
| 119 | + - redacted |
| 120 | + |
| 121 | +data_file_error_type: |
| 122 | + $ref: "_terms.yaml#/data_file_error_type" |
| 123 | + enum: |
| 124 | + - file_size |
| 125 | + - file_format |
| 126 | + - md5sum |
| 127 | + |
| 128 | +state: |
| 129 | + $ref: "_terms.yaml#/state" |
| 130 | + default: validated |
| 131 | + downloadable: |
| 132 | + - uploaded |
| 133 | + - md5summed |
| 134 | + - validating |
| 135 | + - validated |
| 136 | + - error |
| 137 | + - invalid |
| 138 | + - released |
| 139 | + public: |
| 140 | + - live |
| 141 | + oneOf: |
| 142 | + - enum: #This list covers legacy data |
| 143 | + - uploading |
| 144 | + - uploaded |
| 145 | + - md5summing |
| 146 | + - md5summed |
| 147 | + - validating |
| 148 | + - error |
| 149 | + - invalid |
| 150 | + - suppressed |
| 151 | + - redacted |
| 152 | + - live |
| 153 | + - enum: #This list covers all future data 1/15/16 |
| 154 | + - validated |
| 155 | + - submitted |
| 156 | + - released |
| 157 | + |
| 158 | +file_state: |
| 159 | + $ref: "_terms.yaml#/file_state" |
| 160 | + default: registered |
| 161 | + enum: |
| 162 | + - registered |
| 163 | + - uploading |
| 164 | + - uploaded |
| 165 | + - validating |
| 166 | + - validated |
| 167 | + - submitted |
| 168 | + - processing |
| 169 | + - processed |
| 170 | + - released |
| 171 | + - error |
| 172 | + - deleted |
| 173 | + |
| 174 | +qc_metrics_state: |
| 175 | + $ref: "_terms.yaml#/qc_metric_state" |
| 176 | + enum: |
| 177 | + - FAIL |
| 178 | + - PASS |
| 179 | + - WARN |
| 180 | + - Unknown |
| 181 | + - Not Reported |
| 182 | + |
| 183 | +project_id: |
| 184 | + $ref: "_terms.yaml#/project_id" |
| 185 | + type: string |
| 186 | + |
| 187 | +data_file_properties: |
| 188 | + $ref: "#/ubiquitous_properties" |
| 189 | + |
| 190 | + file_name: |
| 191 | + $ref: "#/file_name" |
| 192 | + |
| 193 | + file_size: |
| 194 | + $ref: "#/file_size" |
| 195 | + |
| 196 | + md5sum: |
| 197 | + $ref: "#/md5sum" |
| 198 | + |
| 199 | + file_state: |
| 200 | + $ref: "#/file_state" |
| 201 | + |
| 202 | + error_type: |
| 203 | + $ref: "#/data_file_error_type" |
| 204 | + |
| 205 | + state_comment: |
| 206 | + description: >- |
| 207 | + Optional comment about why the file is in the current state, mainly for invalid state. |
| 208 | + type: string |
| 209 | + |
| 210 | +workflow_properties: |
| 211 | + $ref: "#/ubiquitous_properties" |
| 212 | + |
| 213 | + workflow_link: |
| 214 | + $ref: "_terms.yaml#/workflow_link/common" |
| 215 | + type: string |
| 216 | + |
| 217 | + workflow_version: |
| 218 | + $ref: "_terms.yaml#/workflow_version/common" |
| 219 | + type: string |
| 220 | + |
| 221 | + workflow_start_datetime: |
| 222 | + $ref: "#/datetime" |
| 223 | + |
| 224 | + workflow_end_datetime: |
| 225 | + $ref: "#/datetime" |
| 226 | + |
| 227 | +ubiquitous_properties: |
| 228 | + type: |
| 229 | + type: string |
| 230 | + |
| 231 | + id: |
| 232 | + $ref: "#/uuid" |
| 233 | + |
| 234 | + submitter_id: |
| 235 | + description: >- |
| 236 | + A project-specific identifier for a node. This property is the calling card/nickname/alias |
| 237 | + for a unit of submission. It can be used in place of the uuid for identifying |
| 238 | + or recalling a node. |
| 239 | + type: string |
| 240 | + |
| 241 | + batch_id: |
| 242 | + description: >- |
| 243 | + GDC submission batch indicator. It is unique within the context of a project. |
| 244 | + type: integer |
| 245 | + |
| 246 | + state: |
| 247 | + $ref: "#/state" |
| 248 | + |
| 249 | + project_id: |
| 250 | + $ref: "#/project_id" |
| 251 | + |
| 252 | + created_datetime: |
| 253 | + $ref: "#/datetime" |
| 254 | + |
| 255 | + updated_datetime: |
| 256 | + $ref: "#/datetime" |
0 commit comments