oba-client 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.md +4 -0
  2. data/README.md +1 -0
  3. data/lib/oba_client.rb +15 -8
  4. metadata +7 -5
data/History.md CHANGED
@@ -13,3 +13,7 @@
13
13
  === 1.0.3 / 2010-07-07
14
14
 
15
15
  * Add more tests.
16
+
17
+ === 1.0.4 / 2010-07-08
18
+
19
+ * Add all possible parameter values for the Annotator.
data/README.md CHANGED
@@ -5,6 +5,7 @@
5
5
  ## DESCRIPTION:
6
6
 
7
7
  A client for accessing the NCBO's Open Biomedical Annotator service.
8
+ See [the Annotator documentation](http://www.bioontology.org/wiki/index.php/Annotator_User_Guide "Documentation") for much more information
8
9
 
9
10
  ## FEATURES:
10
11
 
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.3"
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
- :wholeWordOnly,
23
- :scored,
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
- :format,
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." if !$DEBUG
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: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
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: A client for accessing the NCBO's Open Biomedical Annotator service.
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