oba-client 1.0.3 → 1.0.4
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/History.md +4 -0
- data/README.md +1 -0
- data/lib/oba_client.rb +15 -8
- metadata +7 -5
data/History.md
CHANGED
data/README.md
CHANGED
data/lib/oba_client.rb
CHANGED
@@ -5,7 +5,7 @@ require "net/http"
|
|
5
5
|
require "uri"
|
6
6
|
|
7
7
|
class OBAClient
|
8
|
-
VERSION = "1.0.
|
8
|
+
VERSION = "1.0.4"
|
9
9
|
|
10
10
|
# A high HTTP read timeout, as the service sometimes takes awhile to respond.
|
11
11
|
DEFAULT_TIMEOUT = 30
|
@@ -19,16 +19,23 @@ class OBAClient
|
|
19
19
|
# Parameters the annotator accepts. Any one not in this list (excluding
|
20
20
|
# textToAnnotate) is not valid.
|
21
21
|
ANNOTATOR_PARAMETERS = [
|
22
|
-
:
|
23
|
-
:
|
22
|
+
:email,
|
23
|
+
:filterNumber,
|
24
|
+
:format,
|
25
|
+
:isStopWordsCaseSensitive,
|
26
|
+
:isVirtualOntologyID,
|
27
|
+
:levelMax,
|
28
|
+
:longestOnly,
|
24
29
|
:ontologiesToExpand,
|
25
30
|
:ontologiesToKeepInResult,
|
31
|
+
:mappingTypes,
|
32
|
+
:minTermSize,
|
33
|
+
:scored,
|
26
34
|
:semanticTypes,
|
35
|
+
:stopWords,
|
36
|
+
:wholeWordOnly,
|
27
37
|
:withDefaultStopWords,
|
28
|
-
:
|
29
|
-
:levelMax,
|
30
|
-
:mappingTypes,
|
31
|
-
:email
|
38
|
+
:withSynonyms,
|
32
39
|
]
|
33
40
|
|
34
41
|
# Instantiate the class with a set of reused options. Options used by the
|
@@ -56,7 +63,7 @@ class OBAClient
|
|
56
63
|
end
|
57
64
|
|
58
65
|
if !@options.include?(:email)
|
59
|
-
puts "TIP: as a courtesy, consider including your email in the request."
|
66
|
+
puts "TIP: as a courtesy, consider including your email in the request."
|
60
67
|
end
|
61
68
|
end
|
62
69
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oba-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 4
|
10
|
+
version: 1.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Rob Tirrell
|
@@ -66,7 +66,9 @@ dependencies:
|
|
66
66
|
version: 2.6.1
|
67
67
|
type: :development
|
68
68
|
version_requirements: *id003
|
69
|
-
description:
|
69
|
+
description: |-
|
70
|
+
A client for accessing the NCBO's Open Biomedical Annotator service.
|
71
|
+
See [the Annotator documentation](http://www.bioontology.org/wiki/index.php/Annotator_User_Guide "Documentation") for much more information
|
70
72
|
email:
|
71
73
|
- rpt@stanford.edu
|
72
74
|
executables: []
|
@@ -123,6 +125,6 @@ rubyforge_project: oba-client
|
|
123
125
|
rubygems_version: 1.3.7
|
124
126
|
signing_key:
|
125
127
|
specification_version: 3
|
126
|
-
summary: A client for accessing the NCBO's Open Biomedical Annotator service
|
128
|
+
summary: A client for accessing the NCBO's Open Biomedical Annotator service
|
127
129
|
test_files:
|
128
130
|
- test/test_oba_client.rb
|