summaryrefslogtreecommitdiff
path: root/test/data/enm/enm-dump.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2016-05-12 15:23:01 +0200
committerChristoph Helma <helma@in-silico.ch>2016-05-12 15:23:01 +0200
commitb8bb12c8a163c238d7d4387c1914e2100bb660df (patch)
tree791d1524e2294d8a3a38658607a644d7576784ae /test/data/enm/enm-dump.rb
parent937bfbaf058aea5973927cb3bf6b51028b312ed9 (diff)
enm study import fixed
Diffstat (limited to 'test/data/enm/enm-dump.rb')
-rw-r--r--test/data/enm/enm-dump.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/test/data/enm/enm-dump.rb b/test/data/enm/enm-dump.rb
deleted file mode 100644
index 88667fc..0000000
--- a/test/data/enm/enm-dump.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-require 'json'
-
-#get list of bundle URIs
-`wget 'https://data.enanomapper.net/bundle?media=application%2Fjson' -O bundles.json`
-json = JSON.parse File.read('./bundles.json')
-json["dataset"].each do |dataset|
- uri = dataset["URI"]
- id = uri.split("/").last
- #`wget --header='accept:application/json' '#{uri}' -O 'bundle#{id}'`
- `wget --header='accept:application/ld+json' '#{uri}/substance' -O 'study#{id}.json'`
- #`wget --header='accept:application/json' '#{dataset["summary"]}' -O 'summary#{id}.json'`
- #`wget --header='accept:application/json' '#{dataset["compound"]}' -O 'compound#{id}.json'`
- #`wget --header='accept:application/json' '#{dataset["substance"]}' -O 'substance#{id}.json'`
- #`wget --header='accept:application/json' '#{dataset["property"]}' -O 'property#{id}.json'`
- #`wget --header='accept:application/json' '#{dataset["dataset"]}' -O 'dataset#{id}.json'`
- #`wget --header='accept:application/json' '#{dataset["matrix"]}' -O 'matrix#{id}.json'`
-end