ncbo_resource_index 1.1 → 1.2
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.
- data/lib/ncbo_resource_index.rb +2 -9
- metadata +2 -1
data/lib/ncbo_resource_index.rb
CHANGED
|
@@ -144,14 +144,6 @@ module NCBO
|
|
|
144
144
|
raise ArgumentError, ":conceptids must be included" if @options[:conceptids].nil? || @options[:conceptids].empty?
|
|
145
145
|
raise ArgumentError, ":resourceids must be an array" unless @options[:resourceids].kind_of? Array
|
|
146
146
|
|
|
147
|
-
puts ["#{@options[:resource_index_location]}",
|
|
148
|
-
"elements-ranked-by-concepts/#{@options[:resourceids].join(",")}",
|
|
149
|
-
"?offset=#{@options[:offset]}",
|
|
150
|
-
"&limit=#{@options[:limit]}",
|
|
151
|
-
"&conceptids=#{@options[:conceptids].join(",")}",
|
|
152
|
-
"&ontologiesToKeepInResult=#{@options[:ontologiesToKeepInResult].join(",")}",
|
|
153
|
-
"&isVirtualOntologyId=#{@options[:isVirtualOntologyId]}",
|
|
154
|
-
"&apikey=#{@options[:apikey]}"].join("")
|
|
155
147
|
result_xml = open(["#{@options[:resource_index_location]}",
|
|
156
148
|
"elements-ranked-by-concepts/#{@options[:resourceids].join(",")}",
|
|
157
149
|
"?offset=#{@options[:offset]}",
|
|
@@ -159,7 +151,8 @@ module NCBO
|
|
|
159
151
|
"&conceptids=#{@options[:conceptids].join(",")}",
|
|
160
152
|
"&ontologiesToKeepInResult=#{@options[:ontologiesToKeepInResult].join(",")}",
|
|
161
153
|
"&isVirtualOntologyId=#{@options[:isVirtualOntologyId]}",
|
|
162
|
-
"&apikey=#{@options[:apikey]}"
|
|
154
|
+
"&apikey=#{@options[:apikey]}",
|
|
155
|
+
"&mode=#{@options[:mode]}"].join("")).read
|
|
163
156
|
Parser::ResourceIndex.parse_ranked_element_results(result_xml)
|
|
164
157
|
end
|
|
165
158
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ncbo_resource_index
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.2'
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -70,3 +70,4 @@ specification_version: 3
|
|
|
70
70
|
summary: The NCBO Resource Index Gem is a Ruby client for NCBO's Resource Index Web
|
|
71
71
|
service
|
|
72
72
|
test_files: []
|
|
73
|
+
has_rdoc:
|