summaryrefslogtreecommitdiff
path: root/data/enm-dump.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2016-05-09 15:11:46 +0200
committerChristoph Helma <helma@in-silico.ch>2016-05-09 15:11:46 +0200
commit611bac891177f8d9185d45486dd574b6ef4d1912 (patch)
tree4ebb62998deee6aa02f4a8b94c69bac226c27c27 /data/enm-dump.rb
parent7794086d367fb256c3673d7578b23ec2fb83e6ed (diff)
nanoparticle models fixed
Diffstat (limited to 'data/enm-dump.rb')
-rw-r--r--data/enm-dump.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/data/enm-dump.rb b/data/enm-dump.rb
deleted file mode 100644
index 88667fc..0000000
--- a/data/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