-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
400 lines (351 loc) · 9.32 KB
/
schema.graphql
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
schema {
query: Query
mutation: Mutation
subscription: Subscription
}
type Channel {
name: String
emmissionWavelength: Float
excitationWavelength: Float
acquisitionMode: String
color: String
}
input ChannelInput {
name: String
emmissionWavelength: Float
excitationWavelength: Float
acquisitionMode: String
color: String
}
type Column {
name: String
fieldName: String
pandasType: String
numpyType: String
metadata: GenericScalar
}
scalar DataFrame
scalar DateTime
type DeleteExperimentResult {
id: String
}
type DeleteOmeroFileResult {
id: String
}
type DeleteROIResult {
id: String
}
type DeleteRepresentationResult {
id: String
}
type DeleteSampleResult {
id: String
}
type DeleteTableResult {
id: String
}
type Experiment {
id: ID!
meta: GenericScalar
name: String!
description: String
descriptionLong: String
linkedPaper: String
image: String
createdAt: DateTime!
creator: User
tags: [String]
samples(creator: ID, experiments: [ID], bioseries: String, name: String, ids: [ID], representations: [ID], order: [String], limit: Int, offset: Int): [Sample]
metrics: [Metric!]!
tables: [Table!]!
}
type ExperimentsEvent {
deleted: ID
update: Experiment
create: Experiment
}
scalar File
scalar GenericScalar
scalar ImageFile
input InputVector {
x: Float
y: Float
z: Float
}
type Metric {
id: ID!
rep: Representation
experiment: Experiment
sample: Sample
key: String!
value: GenericScalar
createdAt: DateTime!
creator: User
}
type Mutation {
createExperiment(creator: String, description: String, meta: GenericScalar, name: String!, tags: [String]): Experiment
deleteExperiment(id: ID!): DeleteExperimentResult
createSample(creator: String, experiments: [ID], meta: GenericScalar, name: String, tags: [String]): Sample
deleteSample(id: ID!): DeleteSampleResult
updateRepresentation(rep: ID!): Representation
createRepresentation(array: XArray, creator: String, meta: GenericScalar, name: String, omero: OmeroRepresentationInput, origins: [ID], sample: ID, tags: [String], variety: RepresentationVarietyInput): Representation
deleteRepresentation(id: ID!): DeleteRepresentationResult
fromXArray(creator: String, meta: GenericScalar, name: String, omero: OmeroRepresentationInput, origins: [ID], sample: ID, tags: [String], variety: RepresentationVarietyInput, xarray: XArray!): Representation
createMetric(creator: String, experiment: ID, key: String!, rep: ID, sample: ID, value: GenericScalar!): Metric
uploadThumbnail(file: ImageFile!, rep: ID!): Thumbnail
uploadOmeroFile(file: Upload!): OmeroFile
deleteOmeroFile(id: ID!): DeleteOmeroFileResult
negotiate(additionals: GenericScalar, internal: Boolean): GenericScalar
createROI(creator: ID, meta: GenericScalar, representation: ID!, tags: [String], type: RoiTypeInput!, vectors: [InputVector]!): ROI
deleteROI(id: ID!): DeleteROIResult
updateTable(id: ID!): Table
createTable(columns: [String], creator: String, experiment: ID, name: String, representation: ID, sample: ID, tags: [String]): Table
fromDf(creator: String, df: DataFrame!, experiment: ID, name: String, representation: ID, sample: ID, tags: [String]): Table
deleteTable(id: ID!): DeleteTableResult
}
type OmeroFile {
id: ID!
type: OmeroFileType!
file: File
name: String!
createdAt: DateTime!
creator: User
thumbnail: String
}
enum OmeroFileType {
TIFF
JPEG
MSR
CZI
UNKNOWN
}
type OmeroRepresentation {
planes: [Plane]
channels: [Channel]
physicalSize: PhysicalSize
scale: [Float]
}
input OmeroRepresentationInput {
planes: [PlaneInput]
channels: [ChannelInput]
physicalSize: PhysicalSizeInput
scale: [Float]
}
type PhysicalSize {
x: Int
y: Int
z: Int
t: Int
c: Int
}
input PhysicalSizeInput {
x: Int
y: Int
z: Int
t: Int
c: Int
}
type Plane {
zIndex: Int
yIndex: Int
xIndex: Int
cIndex: Int
tIndex: Int
exposureTime: Float
deltaT: Float
}
input PlaneInput {
zIndex: Int
yIndex: Int
xIndex: Int
cIndex: Int
tIndex: Int
exposureTime: Float
deltaT: Float
}
type Query {
hello: String
void: String
experiments(name: String, creator: Float, tags: [String], limit: Int, offset: Int): [Experiment]
experiment(id: ID!): Experiment
myexperiments(name: String, creator: Float, tags: [String], limit: Int, offset: Int): [Experiment]
metric(id: ID!): Metric
metrics(keys: [String], sample: ID, experiment: ID, representation: ID, order: [String], limit: Int, offset: Int): [Metric]
omerofile(id: ID!): OmeroFile
myomerofiles(name: String, limit: Int, offset: Int): [OmeroFile]
omerofiles(name: String, limit: Int, offset: Int): [OmeroFile]
myrepresentations(name: String, tags: [String], ids: [String], experiments: [ID], samples: [ID], ordering: String, hasMetric: String, order: [String], variety: RepresentationVarietyInput, forceThumbnail: Boolean, createdAfter: DateTime, createdBefore: DateTime, derivedTags: [String], limit: Int, offset: Int): [Representation]
representation(id: ID!): Representation
randomRepresentation: Representation
representations(name: String, tags: [String], ids: [String], experiments: [ID], samples: [ID], ordering: String, hasMetric: String, order: [String], variety: RepresentationVarietyInput, forceThumbnail: Boolean, createdAfter: DateTime, createdBefore: DateTime, derivedTags: [String], limit: Int, offset: Int): [Representation]
sample(id: ID!): Sample
samples(creator: ID, experiments: [ID], bioseries: String, name: String, ids: [ID], representations: [ID], order: [String], limit: Int, offset: Int): [Sample]
mysamples(creator: ID, experiments: [ID], bioseries: String, name: String, ids: [ID], representations: [ID], order: [String], limit: Int, offset: Int): [Sample]
tags(name: String, limit: Int, offset: Int): [Tag]
thumbnail(id: ID!): Thumbnail
rois(representation: ID, creator: Float, tags: [String], type: [RoiTypeInput], limit: Int, offset: Int): [ROI]
tables: [Table]
mytables: [Table]
table(id: ID!): Table
}
type ROI {
id: ID!
nodeid: String
creator: User!
vectors: [Vector]
type: ROIType!
color: String
signature: String
createdAt: DateTime!
representation: Representation
tags: [String]
}
enum ROIType {
ELLIPSE
POLYGON
LINE
RECTANGLE
PATH
UNKNOWN
}
type Representation {
id: ID!
store: Store
shape: [Int!]
dims: [String!]
hasArray: Boolean!
name: String
unique: UUID!
fileversion: String!
meta: GenericScalar
omero: OmeroRepresentation
origins: [Representation!]!
sample: Sample
type: String
variety: RepresentationVariety!
chain: String
nodeid: String
createdAt: DateTime!
creator: User
tags: [String]
derived(name: String, tags: [String], ids: [String], experiments: [ID], samples: [ID], ordering: String, hasMetric: String, order: [String], variety: RepresentationVarietyInput, forceThumbnail: Boolean, createdAfter: DateTime, createdBefore: DateTime, derivedTags: [String], limit: Int, offset: Int): [Representation]
metrics(keys: [String], sample: ID, experiment: ID, representation: ID, order: [String], limit: Int, offset: Int): [Metric]
thumbnails: [Thumbnail!]!
rois: [ROI!]!
tables(name: String, tags: [String], limit: Int, offset: Int): [Table]
latestThumbnail: Thumbnail
}
type RepresentationEvent {
deleted: ID
update: Representation
create: Representation
}
enum RepresentationVariety {
MASK
VOXEL
RGB
UNKNOWN
}
enum RepresentationVarietyInput {
MASK
VOXEL
RGB
UNKNOWN
}
type RoiEvent {
delete: ID
update: ROI
create: ROI
}
enum RoiTypeInput {
ELLIPSIS
POLYGON
LINE
RECTANGLE
PATH
UNKNOWN
}
type Sample {
id: ID!
meta: GenericScalar
name: String!
experiments: [Experiment!]!
nodeid: String
createdAt: DateTime!
creator: User
tags: [String]
representations(name: String, tags: [String], ids: [String], experiments: [ID], samples: [ID], ordering: String, hasMetric: String, order: [String], variety: RepresentationVarietyInput, forceThumbnail: Boolean, createdAfter: DateTime, createdBefore: DateTime, derivedTags: [String], limit: Int, offset: Int): [Representation]
metrics: [Metric!]!
tables: [Table!]!
}
type SamplesEvent {
deleted: ID
update: Sample
create: Sample
}
scalar Store
type Subscription {
myRepresentations: RepresentationEvent
myExperiments: ExperimentsEvent
mySamples: SamplesEvent
myTables: TablesEvent
rois(representation: ID!): RoiEvent
}
type Table {
id: ID!
representation: Representation
sample: Sample
experiment: Experiment
name: String!
columns: [Column]
store: String
createdAt: DateTime!
creator: User
tags: [String]
query(columns: [String], offset: Int, limit: Int): [[GenericScalar]]
}
type TablesEvent {
deleted: ID
update: Table
create: Table
}
type Tag {
id: ID!
name: String!
slug: String!
}
type Thumbnail {
id: ID!
representation: Representation!
image: String
}
scalar UUID
scalar Upload
type User {
id: ID!
password: String!
lastLogin: DateTime
isSuperuser: Boolean!
username: String!
firstName: String!
lastName: String!
isStaff: Boolean!
isActive: Boolean!
dateJoined: DateTime!
email: String!
roles: GenericScalar
experimentSet: [Experiment!]!
omerofileSet: [OmeroFile!]!
sampleSet: [Sample!]!
representationSet: [Representation!]!
metricSet: [Metric!]!
roiSet: [ROI!]!
tableSet: [Table!]!
color: String
}
type Vector {
x: Float
y: Float
z: Float
}
scalar XArray