openseek-api 0.11.1 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +3 -3
- data/grep +0 -0
- data/jars/lib/jackson-annotations-2.9.2.jar +0 -0
- data/jars/lib/jackson-core-2.9.2.jar +0 -0
- data/jars/lib/jackson-databind-2.9.2.jar +0 -0
- data/jars/lib/json-simple-1.1.1.jar +0 -0
- data/jars/lib/openBIS-API-V3-batteries-included-16.05.7-r1522065804.jar +0 -0
- data/jars/openseek-api-0.17.jar +0 -0
- data/lib/fairdom/openbis_api/versions.rb +2 -2
- data/openseek-api-gem.gemspec +2 -2
- data/test/application_query_test.rb +327 -15
- data/test/data_store_query_test.rb +1 -0
- metadata +15 -50
- data/jars/lib/aopalliance.jar +0 -0
- data/jars/lib/aspectjweaver.jar +0 -0
- data/jars/lib/cglib-nodep.jar +0 -0
- data/jars/lib/cisd-args4j.jar +0 -0
- data/jars/lib/commons-codec.jar +0 -0
- data/jars/lib/commons-io.jar +0 -0
- data/jars/lib/commons-lang.jar +0 -0
- data/jars/lib/commons-logging.jar +0 -0
- data/jars/lib/dom4j-1.6.1.jar +0 -0
- data/jars/lib/dss_upload_gui.jar +0 -0
- data/jars/lib/geronimo-stax-api_1.0_spec-1.0.jar +0 -0
- data/jars/lib/guava-11.0.2.jar +0 -0
- data/jars/lib/httpclient.jar +0 -0
- data/jars/lib/httpcore.jar +0 -0
- data/jars/lib/ij.jar +0 -0
- data/jars/lib/image-viewer.jar +0 -0
- data/jars/lib/jackson-annotations-2.8.5.jar +0 -0
- data/jars/lib/jackson-core-2.8.5.jar +0 -0
- data/jars/lib/jackson-databind-2.8.5.jar +0 -0
- data/jars/lib/javassist-3.16.1-GA.jar +0 -0
- data/jars/lib/jline.jar +0 -0
- data/jars/lib/json-simple-1.1.jar +0 -0
- data/jars/lib/jsr305-1.3.9.jar +0 -0
- data/jars/lib/jython.jar +0 -0
- data/jars/lib/log4j.jar +0 -0
- data/jars/lib/openbis_api-16.05.2-r37019.jar +0 -0
- data/jars/lib/poi-ooxml-schemas.jar +0 -0
- data/jars/lib/poi-ooxml.jar +0 -0
- data/jars/lib/poi.jar +0 -0
- data/jars/lib/reflections-0.9.9-RC1.jar +0 -0
- data/jars/lib/sis-base.jar +0 -0
- data/jars/lib/spring-aop.jar +0 -0
- data/jars/lib/spring-beans.jar +0 -0
- data/jars/lib/spring-context.jar +0 -0
- data/jars/lib/spring-core.jar +0 -0
- data/jars/lib/spring-expression.jar +0 -0
- data/jars/lib/spring-web.jar +0 -0
- data/jars/lib/spring-webmvc.jar +0 -0
- data/jars/lib/stax-api.jar +0 -0
- data/jars/lib/stream-supporting-httpinvoker.jar +0 -0
- data/jars/lib/xml-apis-1.0.b2.jar +0 -0
- data/jars/lib/xmlbeans-2.3.0.jar +0 -0
- data/jars/openseek-api-0.11.jar +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b7f35b7cf469adc2213897aa6c7773442f7f1fd
|
|
4
|
+
data.tar.gz: 66131aa714fe2b3b75df7996fe1d3d587b1438b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d29d059d8c169583e4f6bcf4a12391d0c0ccc1319a9df54a130e7a066d8a1d7e8425db9722c42d9a1c4d9200a7cb8b3d8e83a48c4e8d3b1962f6def12529b5f
|
|
7
|
+
data.tar.gz: 2467f43d78a874b3e7277e77444cf485b0444c5a4654fa428241d716a2a59a4e37c647ba6cb004ef932ecca18ecb5febde004c8d9ab915d94d32f61c20a4855a
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ruby-2.2.
|
|
1
|
+
ruby-2.2.7
|
data/Gemfile.lock
CHANGED
data/grep
ADDED
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/openseek-api-gem.gemspec
CHANGED
|
@@ -5,7 +5,7 @@ require 'fairdom/openbis_api/versions'
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = 'openseek-api'
|
|
7
7
|
spec.version = Fairdom::OpenbisApi::VERSION
|
|
8
|
-
spec.authors = ['Stuart Owen', 'Quyen Nguyen']
|
|
8
|
+
spec.authors = ['Stuart Owen', 'Quyen Nguyen', 'Tomasz Zielinski']
|
|
9
9
|
spec.email = ['thucquyendn@gmail.com']
|
|
10
10
|
spec.homepage = 'https://github.com/fairdom/openseek-api-gem'
|
|
11
11
|
spec.summary = 'ruby gem to talk to openbis-api java libaries, for use within SEEK4Science'
|
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
spec.require_paths = ['lib']
|
|
18
18
|
|
|
19
19
|
# runtime dependencies
|
|
20
|
-
spec.add_dependency('terrapin', ['
|
|
20
|
+
spec.add_dependency('terrapin', ['>= 0'])
|
|
21
21
|
|
|
22
22
|
# development dependencies
|
|
23
23
|
spec.add_development_dependency('coveralls', ['>= 0'])
|
|
@@ -10,11 +10,21 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
|
|
|
10
10
|
|
|
11
11
|
def setup
|
|
12
12
|
@as_endpoint = 'https://openbis-api.fair-dom.org/openbis/openbis'
|
|
13
|
+
@as_endpoint = 'https://127.0.0.1:8443/openbis/openbis'
|
|
13
14
|
username = 'apiuser'
|
|
14
15
|
password = 'apiuser'
|
|
16
|
+
username = 'seek'
|
|
17
|
+
password = 'seek'
|
|
15
18
|
@token = Authentication.new(username, password, @as_endpoint).login['token']
|
|
16
19
|
|
|
17
|
-
@options = { entityType: 'Experiment', queryType: 'PROPERTY', property: '
|
|
20
|
+
@options = { entityType: 'Experiment', queryType: 'PROPERTY', property: 'NAME', propertyValue: 'Low light diurnal' }
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def local_setup
|
|
24
|
+
@as_endpoint = 'https://127.0.0.1:8443/openbis/openbis'
|
|
25
|
+
username = 'seek'
|
|
26
|
+
password = 'seek'
|
|
27
|
+
@token = Authentication.new(username, password, @as_endpoint).login['token']
|
|
18
28
|
end
|
|
19
29
|
|
|
20
30
|
def test_query_property
|
|
@@ -30,24 +40,25 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
|
|
|
30
40
|
result = instance.query(@options)
|
|
31
41
|
spaces = result['spaces']
|
|
32
42
|
refute spaces.empty?
|
|
33
|
-
assert_equal
|
|
34
|
-
|
|
35
|
-
assert_equal 'API-SPACE', space['code']
|
|
36
|
-
assert_equal 'use for testing openbis api integration', space['description'].strip
|
|
43
|
+
assert_equal 7, spaces.count
|
|
44
|
+
space = spaces[0]
|
|
45
|
+
# assert_equal 'API-SPACE', space['code']
|
|
46
|
+
# assert_equal 'use for testing openbis api integration', space['description'].strip
|
|
37
47
|
experiments = space['experiments']
|
|
38
|
-
assert_equal
|
|
39
|
-
assert_equal ['20151216143716562-2'], experiments
|
|
48
|
+
assert_equal 0, experiments.size
|
|
49
|
+
# assert_equal ['20151216143716562-2'], experiments
|
|
40
50
|
|
|
41
51
|
projects = space['projects']
|
|
42
|
-
assert_equal
|
|
52
|
+
assert_equal 0, projects.size
|
|
53
|
+
# assert_equal ['20151216135152196-1'], projects
|
|
43
54
|
|
|
44
55
|
datasets = space['datasets']
|
|
45
|
-
assert_equal
|
|
46
|
-
assert_includes datasets, '20160210130359377-22'
|
|
56
|
+
assert_equal 0, datasets.size
|
|
57
|
+
#assert_includes datasets, '20160210130359377-22'
|
|
47
58
|
|
|
48
|
-
space = spaces[1]
|
|
49
|
-
assert_equal 'DEFAULT', space['code']
|
|
50
|
-
assert_nil space['description']
|
|
59
|
+
# space = spaces[1]
|
|
60
|
+
#assert_equal 'DEFAULT', space['code']
|
|
61
|
+
# assert_nil space['description']
|
|
51
62
|
end
|
|
52
63
|
|
|
53
64
|
def test_query_property_no_result
|
|
@@ -84,7 +95,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
|
|
|
84
95
|
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
85
96
|
@options[:queryType] = 'ATTRIBUTE'
|
|
86
97
|
@options[:attribute] = 'permId'
|
|
87
|
-
@options[:attributeValue] = '
|
|
98
|
+
@options[:attributeValue] = '20180418141729157-47'
|
|
88
99
|
result = instance.query(@options)
|
|
89
100
|
experiments = result['experiments']
|
|
90
101
|
refute experiments.empty?
|
|
@@ -94,7 +105,7 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
|
|
|
94
105
|
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
95
106
|
@options[:queryType] = 'ATTRIBUTE'
|
|
96
107
|
@options[:attribute] = 'permId'
|
|
97
|
-
@options[:attributeValue] = '
|
|
108
|
+
@options[:attributeValue] = '20180424181519696-54,20180418141729157-47'
|
|
98
109
|
result = instance.query(@options)
|
|
99
110
|
experiments = result['experiments']
|
|
100
111
|
refute experiments.empty?
|
|
@@ -108,4 +119,305 @@ class ApplicationServerQueryTest < Test::Unit::TestCase
|
|
|
108
119
|
result = instance.query(@options)
|
|
109
120
|
refute result['experiments'].empty?
|
|
110
121
|
end
|
|
122
|
+
|
|
123
|
+
def test_query_for_dataset_gives_rich_metadata
|
|
124
|
+
@options = { entityType: 'DataSet', queryType: 'ATTRIBUTE', attribute: 'PermID', attributeValue: '20180424182903704-59' }
|
|
125
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
126
|
+
result = instance.query(@options)
|
|
127
|
+
|
|
128
|
+
#puts result
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
datasets = result['datasets']
|
|
132
|
+
assert_equal 1, datasets.size
|
|
133
|
+
|
|
134
|
+
dataset = datasets[0]
|
|
135
|
+
assert_equal '20180424182903704-59', dataset['permId']
|
|
136
|
+
# assert_equal 'apiuser', dataset['registerator']
|
|
137
|
+
|
|
138
|
+
params = dataset['properties']
|
|
139
|
+
assert_not_nil params
|
|
140
|
+
assert_equal 'TOMEK test set', params['NAME']
|
|
141
|
+
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
def test_query_for_dataset_can_retrive_sampleonly_dataset
|
|
145
|
+
puts 'no such test data'
|
|
146
|
+
return
|
|
147
|
+
@options = { entityType: 'DataSet', queryType: 'ATTRIBUTE', attribute: 'PermID', attributeValue: '20180418150033700-51' }
|
|
148
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
149
|
+
result = instance.query(@options)
|
|
150
|
+
|
|
151
|
+
puts result
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
datasets = result['datasets']
|
|
155
|
+
assert_equal 1, datasets.size
|
|
156
|
+
|
|
157
|
+
dataset = datasets[0]
|
|
158
|
+
assert_equal '20180418150033700-51', dataset['permId']
|
|
159
|
+
assert_equal 'seek', dataset['registerator']
|
|
160
|
+
|
|
161
|
+
assert_nil dataset['experiment']
|
|
162
|
+
assert_equal '20171002172111346-37', dataset['sample']
|
|
163
|
+
params = dataset['properties']
|
|
164
|
+
assert_not_nil params
|
|
165
|
+
assert_equal 'DS One', params['NAME']
|
|
166
|
+
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
def test_all_datasets_query
|
|
171
|
+
|
|
172
|
+
@options = { entityType: 'DataSet', queryType: 'ALL' }
|
|
173
|
+
|
|
174
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
175
|
+
result = instance.query(@options)
|
|
176
|
+
|
|
177
|
+
# puts result
|
|
178
|
+
|
|
179
|
+
datasets = result['datasets']
|
|
180
|
+
assert_equal 6, datasets.size
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
def test_all_samples_query
|
|
184
|
+
|
|
185
|
+
@options = { entityType: 'Sample', queryType: 'ALL' }
|
|
186
|
+
|
|
187
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
188
|
+
result = instance.query(@options)
|
|
189
|
+
|
|
190
|
+
# puts result
|
|
191
|
+
|
|
192
|
+
samples = result['samples']
|
|
193
|
+
assert_equal 16, samples.size
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
def test_all_spaces_query
|
|
197
|
+
|
|
198
|
+
@options = { entityType: 'Space', queryType: 'ALL' }
|
|
199
|
+
|
|
200
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
201
|
+
result = instance.query(@options)
|
|
202
|
+
|
|
203
|
+
# puts result
|
|
204
|
+
|
|
205
|
+
spaces = result['spaces']
|
|
206
|
+
assert_equal 7, spaces.size
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
def test_all_experiments_query
|
|
210
|
+
local_setup
|
|
211
|
+
@options = { entityType: 'Experiment', queryType: 'ALL' }
|
|
212
|
+
|
|
213
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
214
|
+
result = instance.query(@options)
|
|
215
|
+
|
|
216
|
+
puts result.to_json
|
|
217
|
+
|
|
218
|
+
experiments = result['experiments']
|
|
219
|
+
assert_equal 24, experiments.size
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
def test_all_experimentstypes_query
|
|
223
|
+
local_setup
|
|
224
|
+
@options = { entityType: 'ExperimentType', queryType: 'ALL' }
|
|
225
|
+
|
|
226
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
227
|
+
result = instance.query(@options)
|
|
228
|
+
|
|
229
|
+
puts result.to_json
|
|
230
|
+
|
|
231
|
+
types = result['experimenttypes']
|
|
232
|
+
assert_equal 6, types.size
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
def test_all_sampletypes_query
|
|
236
|
+
|
|
237
|
+
@options = { entityType: 'SampleType', queryType: 'ALL' }
|
|
238
|
+
|
|
239
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
240
|
+
result = instance.query(@options)
|
|
241
|
+
|
|
242
|
+
# puts result
|
|
243
|
+
|
|
244
|
+
types = result['sampletypes']
|
|
245
|
+
assert_equal 25, types.size
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
def test_all_datasetstypes_query
|
|
249
|
+
|
|
250
|
+
@options = { entityType: 'DataSetType', queryType: 'ALL' }
|
|
251
|
+
|
|
252
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
253
|
+
result = instance.query(@options)
|
|
254
|
+
|
|
255
|
+
# puts result
|
|
256
|
+
|
|
257
|
+
types = result['datasettypes']
|
|
258
|
+
assert_equal 6, types.size
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
def test_samples_with_type_query
|
|
265
|
+
|
|
266
|
+
@options = { entityType: 'Sample', queryType: 'TYPE', typeCode: 'EXPERIMENTAL_STEP' }
|
|
267
|
+
|
|
268
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
269
|
+
result = instance.query(@options)
|
|
270
|
+
|
|
271
|
+
# puts result
|
|
272
|
+
|
|
273
|
+
samples = result['samples']
|
|
274
|
+
assert_equal 8, samples.size
|
|
275
|
+
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
def test_datasets_with_type_query
|
|
279
|
+
|
|
280
|
+
@options = { entityType: 'DataSet', queryType: 'TYPE', typeCode: 'RAW_DATA' }
|
|
281
|
+
|
|
282
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
283
|
+
result = instance.query(@options)
|
|
284
|
+
|
|
285
|
+
# puts result
|
|
286
|
+
|
|
287
|
+
sets = result['datasets']
|
|
288
|
+
assert_equal 4, sets.size
|
|
289
|
+
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
def test_local_setup
|
|
295
|
+
@token = nil
|
|
296
|
+
|
|
297
|
+
local_setup
|
|
298
|
+
assert_not_nil @token
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def test_experimentstypes_with_code_query
|
|
306
|
+
|
|
307
|
+
local_setup
|
|
308
|
+
@options = { entityType: 'ExperimentType', queryType: "ATTRIBUTE", :attribute=>"CODE", :attributeValue=>"DEFAULT_EXPERIMENT" }
|
|
309
|
+
|
|
310
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
311
|
+
result = instance.query(@options)
|
|
312
|
+
|
|
313
|
+
puts result.to_json
|
|
314
|
+
|
|
315
|
+
types = result['experimenttypes']
|
|
316
|
+
assert_equal 1, types.size
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
def test_experiments_by_permi_id_query
|
|
321
|
+
local_setup
|
|
322
|
+
|
|
323
|
+
@options = { entityType: 'Experiment', queryType: 'ATTRIBUTE',
|
|
324
|
+
attribute: 'PermID', attributeValue: '20180424181519696-54'}
|
|
325
|
+
|
|
326
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
327
|
+
result = instance.query(@options)
|
|
328
|
+
|
|
329
|
+
puts result.to_json
|
|
330
|
+
|
|
331
|
+
exps = result['experiments']
|
|
332
|
+
assert_equal 1, exps.size
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
def test_experiments_with_type_query
|
|
339
|
+
local_setup
|
|
340
|
+
|
|
341
|
+
@options = { entityType: 'Experiment', queryType: 'TYPE', typeCode: 'DEFAULT_EXPERIMENT' }
|
|
342
|
+
|
|
343
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
344
|
+
result = instance.query(@options)
|
|
345
|
+
|
|
346
|
+
puts result.to_json
|
|
347
|
+
|
|
348
|
+
exps = result['experiments']
|
|
349
|
+
assert_equal 3, exps.size
|
|
350
|
+
|
|
351
|
+
@options = { entityType: 'Experiment', queryType: 'TYPE', typeCodes: 'DEFAULT_EXPERIMENT,MATERIALS' }
|
|
352
|
+
|
|
353
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
354
|
+
result = instance.query(@options)
|
|
355
|
+
|
|
356
|
+
# puts result
|
|
357
|
+
|
|
358
|
+
exps = result['experiments']
|
|
359
|
+
assert_equal 15, exps.size
|
|
360
|
+
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
def test_type_by_semantic
|
|
364
|
+
local_setup
|
|
365
|
+
|
|
366
|
+
@options = { entityType: 'SampleType', queryType: 'SEMANTIC', predicateAccessionId: 'is_a', descriptorAccessionId: 'assay' }
|
|
367
|
+
|
|
368
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
369
|
+
result = instance.query(@options)
|
|
370
|
+
|
|
371
|
+
# puts result
|
|
372
|
+
|
|
373
|
+
sampleTypes = result['sampletypes']
|
|
374
|
+
assert_equal 2, sampleTypes.size
|
|
375
|
+
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
def test_type_by_codes
|
|
379
|
+
local_setup
|
|
380
|
+
|
|
381
|
+
@options = { entityType: 'SampleType', queryType: 'ATTRIBUTE', attribute: 'CODE', attributeValue: 'EXPERIMENTAL_STEP' }
|
|
382
|
+
|
|
383
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
384
|
+
result = instance.query(@options)
|
|
385
|
+
|
|
386
|
+
# puts result
|
|
387
|
+
sampleTypes = result['sampletypes']
|
|
388
|
+
assert_equal 1, sampleTypes.size
|
|
389
|
+
|
|
390
|
+
@options = { entityType: 'SampleType', queryType: 'ATTRIBUTE', attribute: 'CODE', attributeValue: 'UNKNOWN' }
|
|
391
|
+
|
|
392
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
393
|
+
result = instance.query(@options)
|
|
394
|
+
|
|
395
|
+
# puts result
|
|
396
|
+
sampleTypes = result['sampletypes']
|
|
397
|
+
assert_equal 1, sampleTypes.size
|
|
398
|
+
|
|
399
|
+
@options = { entityType: 'SampleType', queryType: 'ATTRIBUTE', attribute: 'CODE', attributeValue: 'EXPERIMENTAL_STEP,UNKNOWN' }
|
|
400
|
+
|
|
401
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
402
|
+
result = instance.query(@options)
|
|
403
|
+
|
|
404
|
+
# puts result
|
|
405
|
+
sampleTypes = result['sampletypes']
|
|
406
|
+
assert_equal 2, sampleTypes.size
|
|
407
|
+
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
def test_checking_sample_with_parent_and_children
|
|
411
|
+
local_setup
|
|
412
|
+
instance = ApplicationServerQuery.new(@as_endpoint, @token)
|
|
413
|
+
|
|
414
|
+
@options[:entityType] = 'Sample'
|
|
415
|
+
@options[:queryType] = 'ATTRIBUTE'
|
|
416
|
+
@options[:attribute] = 'PermID'
|
|
417
|
+
@options[:attributeValue] = '20180418145851124-48'
|
|
418
|
+
result = instance.query(@options)
|
|
419
|
+
|
|
420
|
+
assert_equal 1,result['samples'].size
|
|
421
|
+
puts result['samples'][0]
|
|
422
|
+
end
|
|
111
423
|
end
|
metadata
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openseek-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.17.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stuart Owen
|
|
8
8
|
- Quyen Nguyen
|
|
9
|
+
- Tomasz Zielinski
|
|
9
10
|
autorequire:
|
|
10
11
|
bindir: bin
|
|
11
12
|
cert_chain: []
|
|
12
|
-
date: 2018-
|
|
13
|
+
date: 2018-06-13 00:00:00.000000000 Z
|
|
13
14
|
dependencies:
|
|
14
15
|
- !ruby/object:Gem::Dependency
|
|
15
16
|
name: terrapin
|
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
|
17
18
|
requirements:
|
|
18
|
-
- - "
|
|
19
|
+
- - ">="
|
|
19
20
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: '0
|
|
21
|
+
version: '0'
|
|
21
22
|
type: :runtime
|
|
22
23
|
prerelease: false
|
|
23
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
25
|
requirements:
|
|
25
|
-
- - "
|
|
26
|
+
- - ">="
|
|
26
27
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: '0
|
|
28
|
+
version: '0'
|
|
28
29
|
- !ruby/object:Gem::Dependency
|
|
29
30
|
name: coveralls
|
|
30
31
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -113,49 +114,13 @@ files:
|
|
|
113
114
|
- LICENSE
|
|
114
115
|
- README.md
|
|
115
116
|
- Rakefile
|
|
116
|
-
-
|
|
117
|
-
- jars/lib/
|
|
118
|
-
- jars/lib/
|
|
119
|
-
- jars/lib/
|
|
120
|
-
- jars/lib/
|
|
121
|
-
- jars/lib/
|
|
122
|
-
- jars/
|
|
123
|
-
- jars/lib/commons-logging.jar
|
|
124
|
-
- jars/lib/dom4j-1.6.1.jar
|
|
125
|
-
- jars/lib/dss_upload_gui.jar
|
|
126
|
-
- jars/lib/geronimo-stax-api_1.0_spec-1.0.jar
|
|
127
|
-
- jars/lib/guava-11.0.2.jar
|
|
128
|
-
- jars/lib/httpclient.jar
|
|
129
|
-
- jars/lib/httpcore.jar
|
|
130
|
-
- jars/lib/ij.jar
|
|
131
|
-
- jars/lib/image-viewer.jar
|
|
132
|
-
- jars/lib/jackson-annotations-2.8.5.jar
|
|
133
|
-
- jars/lib/jackson-core-2.8.5.jar
|
|
134
|
-
- jars/lib/jackson-databind-2.8.5.jar
|
|
135
|
-
- jars/lib/javassist-3.16.1-GA.jar
|
|
136
|
-
- jars/lib/jline.jar
|
|
137
|
-
- jars/lib/json-simple-1.1.jar
|
|
138
|
-
- jars/lib/jsr305-1.3.9.jar
|
|
139
|
-
- jars/lib/jython.jar
|
|
140
|
-
- jars/lib/log4j.jar
|
|
141
|
-
- jars/lib/openbis_api-16.05.2-r37019.jar
|
|
142
|
-
- jars/lib/poi-ooxml-schemas.jar
|
|
143
|
-
- jars/lib/poi-ooxml.jar
|
|
144
|
-
- jars/lib/poi.jar
|
|
145
|
-
- jars/lib/reflections-0.9.9-RC1.jar
|
|
146
|
-
- jars/lib/sis-base.jar
|
|
147
|
-
- jars/lib/spring-aop.jar
|
|
148
|
-
- jars/lib/spring-beans.jar
|
|
149
|
-
- jars/lib/spring-context.jar
|
|
150
|
-
- jars/lib/spring-core.jar
|
|
151
|
-
- jars/lib/spring-expression.jar
|
|
152
|
-
- jars/lib/spring-web.jar
|
|
153
|
-
- jars/lib/spring-webmvc.jar
|
|
154
|
-
- jars/lib/stax-api.jar
|
|
155
|
-
- jars/lib/stream-supporting-httpinvoker.jar
|
|
156
|
-
- jars/lib/xml-apis-1.0.b2.jar
|
|
157
|
-
- jars/lib/xmlbeans-2.3.0.jar
|
|
158
|
-
- jars/openseek-api-0.11.jar
|
|
117
|
+
- grep
|
|
118
|
+
- jars/lib/jackson-annotations-2.9.2.jar
|
|
119
|
+
- jars/lib/jackson-core-2.9.2.jar
|
|
120
|
+
- jars/lib/jackson-databind-2.9.2.jar
|
|
121
|
+
- jars/lib/json-simple-1.1.1.jar
|
|
122
|
+
- jars/lib/openBIS-API-V3-batteries-included-16.05.7-r1522065804.jar
|
|
123
|
+
- jars/openseek-api-0.17.jar
|
|
159
124
|
- lib/fairdom/openbis_api/application_server_query.rb
|
|
160
125
|
- lib/fairdom/openbis_api/authentication.rb
|
|
161
126
|
- lib/fairdom/openbis_api/data_store_download.rb
|
|
@@ -189,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
189
154
|
version: '0'
|
|
190
155
|
requirements: []
|
|
191
156
|
rubyforge_project:
|
|
192
|
-
rubygems_version: 2.6.
|
|
157
|
+
rubygems_version: 2.6.11
|
|
193
158
|
signing_key:
|
|
194
159
|
specification_version: 4
|
|
195
160
|
summary: ruby gem to talk to openbis-api java libaries, for use within SEEK4Science
|
data/jars/lib/aopalliance.jar
DELETED
|
Binary file
|
data/jars/lib/aspectjweaver.jar
DELETED
|
Binary file
|
data/jars/lib/cglib-nodep.jar
DELETED
|
Binary file
|
data/jars/lib/cisd-args4j.jar
DELETED
|
Binary file
|
data/jars/lib/commons-codec.jar
DELETED
|
Binary file
|
data/jars/lib/commons-io.jar
DELETED
|
Binary file
|
data/jars/lib/commons-lang.jar
DELETED
|
Binary file
|
|
Binary file
|
data/jars/lib/dom4j-1.6.1.jar
DELETED
|
Binary file
|
data/jars/lib/dss_upload_gui.jar
DELETED
|
Binary file
|
|
Binary file
|
data/jars/lib/guava-11.0.2.jar
DELETED
|
Binary file
|
data/jars/lib/httpclient.jar
DELETED
|
Binary file
|
data/jars/lib/httpcore.jar
DELETED
|
Binary file
|
data/jars/lib/ij.jar
DELETED
|
Binary file
|
data/jars/lib/image-viewer.jar
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/jars/lib/jline.jar
DELETED
|
Binary file
|
|
Binary file
|
data/jars/lib/jsr305-1.3.9.jar
DELETED
|
Binary file
|
data/jars/lib/jython.jar
DELETED
|
Binary file
|
data/jars/lib/log4j.jar
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/jars/lib/poi-ooxml.jar
DELETED
|
Binary file
|
data/jars/lib/poi.jar
DELETED
|
Binary file
|
|
Binary file
|
data/jars/lib/sis-base.jar
DELETED
|
Binary file
|
data/jars/lib/spring-aop.jar
DELETED
|
Binary file
|
data/jars/lib/spring-beans.jar
DELETED
|
Binary file
|
data/jars/lib/spring-context.jar
DELETED
|
Binary file
|
data/jars/lib/spring-core.jar
DELETED
|
Binary file
|
|
Binary file
|
data/jars/lib/spring-web.jar
DELETED
|
Binary file
|
data/jars/lib/spring-webmvc.jar
DELETED
|
Binary file
|
data/jars/lib/stax-api.jar
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/jars/lib/xmlbeans-2.3.0.jar
DELETED
|
Binary file
|
data/jars/openseek-api-0.11.jar
DELETED
|
Binary file
|