simple_bioc 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +73 -3
  3. data/Rakefile +5 -0
  4. data/html/BioCReader.html +657 -0
  5. data/html/BioCWriter.html +556 -0
  6. data/html/README_md.html +231 -0
  7. data/html/SimpleBioC.html +255 -0
  8. data/html/SimpleBioC/Annotation.html +279 -0
  9. data/html/SimpleBioC/Collection.html +316 -0
  10. data/html/SimpleBioC/Document.html +426 -0
  11. data/html/SimpleBioC/Location.html +288 -0
  12. data/html/SimpleBioC/Node.html +334 -0
  13. data/html/SimpleBioC/NodeBase.html +281 -0
  14. data/html/SimpleBioC/Passage.html +418 -0
  15. data/html/SimpleBioC/Relation.html +301 -0
  16. data/html/SimpleBioC/Sentence.html +399 -0
  17. data/html/created.rid +15 -0
  18. data/html/images/add.png +0 -0
  19. data/html/images/arrow_up.png +0 -0
  20. data/html/images/brick.png +0 -0
  21. data/html/images/brick_link.png +0 -0
  22. data/html/images/bug.png +0 -0
  23. data/html/images/bullet_black.png +0 -0
  24. data/html/images/bullet_toggle_minus.png +0 -0
  25. data/html/images/bullet_toggle_plus.png +0 -0
  26. data/html/images/date.png +0 -0
  27. data/html/images/delete.png +0 -0
  28. data/html/images/find.png +0 -0
  29. data/html/images/loadingAnimation.gif +0 -0
  30. data/html/images/macFFBgHack.png +0 -0
  31. data/html/images/package.png +0 -0
  32. data/html/images/page_green.png +0 -0
  33. data/html/images/page_white_text.png +0 -0
  34. data/html/images/page_white_width.png +0 -0
  35. data/html/images/plugin.png +0 -0
  36. data/html/images/ruby.png +0 -0
  37. data/html/images/tag_blue.png +0 -0
  38. data/html/images/tag_green.png +0 -0
  39. data/html/images/transparent.png +0 -0
  40. data/html/images/wrench.png +0 -0
  41. data/html/images/wrench_orange.png +0 -0
  42. data/html/images/zoom.png +0 -0
  43. data/html/index.html +212 -0
  44. data/html/js/darkfish.js +155 -0
  45. data/html/js/jquery.js +18 -0
  46. data/html/js/navigation.js +142 -0
  47. data/html/js/search.js +94 -0
  48. data/html/js/search_index.js +1 -0
  49. data/html/js/searcher.js +228 -0
  50. data/html/rdoc.css +595 -0
  51. data/html/table_of_contents.html +199 -0
  52. data/lib/simple_bioc.rb +4 -0
  53. data/lib/simple_bioc/annotation.rb +10 -6
  54. data/lib/simple_bioc/bioc_reader.rb +2 -2
  55. data/lib/simple_bioc/collection.rb +13 -11
  56. data/lib/simple_bioc/document.rb +31 -22
  57. data/lib/simple_bioc/location.rb +13 -7
  58. data/lib/simple_bioc/node.rb +14 -8
  59. data/lib/simple_bioc/node_base.rb +13 -10
  60. data/lib/simple_bioc/passage.rb +26 -23
  61. data/lib/simple_bioc/relation.rb +13 -8
  62. data/lib/simple_bioc/sentence.rb +21 -15
  63. data/lib/simple_bioc/version.rb +2 -2
  64. data/samples/print_annotation.rb +18 -0
  65. data/samples/sample1.rb +31 -0
  66. data/simple_bioc.gemspec +1 -1
  67. metadata +52 -2
@@ -0,0 +1,279 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class SimpleBioC::Annotation - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+
47
+
48
+ <div id="file-metadata">
49
+ <nav id="file-list-section" class="section">
50
+ <h3 class="section-header">Defined In</h3>
51
+ <ul>
52
+ <li>lib/simple_bioc/annotation.rb
53
+ </ul>
54
+ </nav>
55
+
56
+
57
+ </div>
58
+
59
+ <div id="class-metadata">
60
+
61
+ <nav id="parent-class-section" class="section">
62
+ <h3 class="section-header">Parent</h3>
63
+
64
+ <p class="link">NodeBase
65
+
66
+ </nav>
67
+
68
+
69
+
70
+ <!-- Method Quickref -->
71
+ <nav id="method-list-section" class="section">
72
+ <h3 class="section-header">Methods</h3>
73
+
74
+ <ul class="link-list">
75
+
76
+ <li class="calls-super" ><a href="#method-c-new">::new</a>
77
+
78
+ <li ><a href="#method-i-to_s">#to_s</a>
79
+
80
+ </ul>
81
+ </nav>
82
+
83
+ </div>
84
+
85
+ <div id="project-metadata">
86
+ <nav id="fileindex-section" class="section project-section">
87
+ <h3 class="section-header">Pages</h3>
88
+
89
+ <ul>
90
+
91
+ <li class="file"><a href="../README_md.html">README</a>
92
+
93
+ </ul>
94
+ </nav>
95
+
96
+ <nav id="classindex-section" class="section project-section">
97
+ <h3 class="section-header">Class and Module Index</h3>
98
+
99
+ <ul class="link-list">
100
+
101
+ <li><a href="../BioCReader.html">BioCReader</a>
102
+
103
+ <li><a href="../BioCWriter.html">BioCWriter</a>
104
+
105
+ <li><a href="../SimpleBioC.html">SimpleBioC</a>
106
+
107
+ <li><a href="../SimpleBioC/Annotation.html">SimpleBioC::Annotation</a>
108
+
109
+ <li><a href="../SimpleBioC/Collection.html">SimpleBioC::Collection</a>
110
+
111
+ <li><a href="../SimpleBioC/Document.html">SimpleBioC::Document</a>
112
+
113
+ <li><a href="../SimpleBioC/Location.html">SimpleBioC::Location</a>
114
+
115
+ <li><a href="../SimpleBioC/Node.html">SimpleBioC::Node</a>
116
+
117
+ <li><a href="../SimpleBioC/NodeBase.html">SimpleBioC::NodeBase</a>
118
+
119
+ <li><a href="../SimpleBioC/Passage.html">SimpleBioC::Passage</a>
120
+
121
+ <li><a href="../SimpleBioC/Relation.html">SimpleBioC::Relation</a>
122
+
123
+ <li><a href="../SimpleBioC/Sentence.html">SimpleBioC::Sentence</a>
124
+
125
+ </ul>
126
+ </nav>
127
+
128
+ </div>
129
+ </nav>
130
+
131
+ <div id="documentation">
132
+ <h1 class="class">class SimpleBioC::Annotation</h1>
133
+
134
+ <div id="description" class="description">
135
+
136
+ </div><!-- description -->
137
+
138
+
139
+
140
+
141
+ <section id="5Buntitled-5D" class="documentation-section">
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ <!-- Attributes -->
150
+ <section id="attribute-method-details" class="method-section section">
151
+ <h3 class="section-header">Attributes</h3>
152
+
153
+
154
+ <div id="attribute-i-locations" class="method-detail">
155
+ <div class="method-heading attribute-method-heading">
156
+ <span class="method-name">locations</span><span
157
+ class="attribute-access-type">[RW]</span>
158
+ </div>
159
+
160
+ <div class="method-description">
161
+
162
+
163
+
164
+ </div>
165
+ </div>
166
+
167
+ <div id="attribute-i-text" class="method-detail">
168
+ <div class="method-heading attribute-method-heading">
169
+ <span class="method-name">text</span><span
170
+ class="attribute-access-type">[RW]</span>
171
+ </div>
172
+
173
+ <div class="method-description">
174
+
175
+
176
+
177
+ </div>
178
+ </div>
179
+
180
+ </section><!-- attribute-method-details -->
181
+
182
+
183
+ <!-- Methods -->
184
+
185
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
186
+ <h3 class="section-header">Public Class Methods</h3>
187
+
188
+
189
+ <div id="method-c-new" class="method-detail ">
190
+
191
+ <div class="method-heading">
192
+ <span class="method-name">new</span><span
193
+ class="method-args">(parent)</span>
194
+
195
+ <span class="method-click-advice">click to toggle source</span>
196
+
197
+ </div>
198
+
199
+
200
+ <div class="method-description">
201
+
202
+
203
+
204
+
205
+ <div class="method-calls-super">
206
+ Calls superclass method
207
+
208
+ </div>
209
+
210
+
211
+
212
+ <div class="method-source-code" id="new-source">
213
+ <pre><span class="ruby-comment"># File lib/simple_bioc/annotation.rb, line 6</span>
214
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">parent</span>)
215
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">parent</span>)
216
+ <span class="ruby-ivar">@locations</span> = []
217
+ <span class="ruby-keyword">end</span></pre>
218
+ </div><!-- new-source -->
219
+
220
+ </div>
221
+
222
+
223
+
224
+
225
+ </div><!-- new-method -->
226
+
227
+
228
+ </section><!-- public-class-method-details -->
229
+
230
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
231
+ <h3 class="section-header">Public Instance Methods</h3>
232
+
233
+
234
+ <div id="method-i-to_s" class="method-detail ">
235
+
236
+ <div class="method-heading">
237
+ <span class="method-name">to_s</span><span
238
+ class="method-args">()</span>
239
+
240
+ <span class="method-click-advice">click to toggle source</span>
241
+
242
+ </div>
243
+
244
+
245
+ <div class="method-description">
246
+
247
+
248
+
249
+
250
+
251
+
252
+ <div class="method-source-code" id="to_s-source">
253
+ <pre><span class="ruby-comment"># File lib/simple_bioc/annotation.rb, line 11</span>
254
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
255
+ <span class="ruby-node">&quot;Annotation:#{id} #{text}&quot;</span>
256
+ <span class="ruby-keyword">end</span></pre>
257
+ </div><!-- to_s-source -->
258
+
259
+ </div>
260
+
261
+
262
+
263
+
264
+ </div><!-- to_s-method -->
265
+
266
+
267
+ </section><!-- public-instance-method-details -->
268
+
269
+ </section><!-- 5Buntitled-5D -->
270
+
271
+ </div><!-- documentation -->
272
+
273
+
274
+ <footer id="validator-badges">
275
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
276
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
277
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
278
+ </footer>
279
+
@@ -0,0 +1,316 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class SimpleBioC::Collection - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+
47
+
48
+ <div id="file-metadata">
49
+ <nav id="file-list-section" class="section">
50
+ <h3 class="section-header">Defined In</h3>
51
+ <ul>
52
+ <li>lib/simple_bioc/collection.rb
53
+ </ul>
54
+ </nav>
55
+
56
+
57
+ </div>
58
+
59
+ <div id="class-metadata">
60
+
61
+ <nav id="parent-class-section" class="section">
62
+ <h3 class="section-header">Parent</h3>
63
+
64
+ <p class="link">Object
65
+
66
+ </nav>
67
+
68
+
69
+
70
+ <!-- Method Quickref -->
71
+ <nav id="method-list-section" class="section">
72
+ <h3 class="section-header">Methods</h3>
73
+
74
+ <ul class="link-list">
75
+
76
+ <li ><a href="#method-c-new">::new</a>
77
+
78
+ <li ><a href="#method-i-to_c">#to_c</a>
79
+
80
+ </ul>
81
+ </nav>
82
+
83
+ </div>
84
+
85
+ <div id="project-metadata">
86
+ <nav id="fileindex-section" class="section project-section">
87
+ <h3 class="section-header">Pages</h3>
88
+
89
+ <ul>
90
+
91
+ <li class="file"><a href="../README_md.html">README</a>
92
+
93
+ </ul>
94
+ </nav>
95
+
96
+ <nav id="classindex-section" class="section project-section">
97
+ <h3 class="section-header">Class and Module Index</h3>
98
+
99
+ <ul class="link-list">
100
+
101
+ <li><a href="../BioCReader.html">BioCReader</a>
102
+
103
+ <li><a href="../BioCWriter.html">BioCWriter</a>
104
+
105
+ <li><a href="../SimpleBioC.html">SimpleBioC</a>
106
+
107
+ <li><a href="../SimpleBioC/Annotation.html">SimpleBioC::Annotation</a>
108
+
109
+ <li><a href="../SimpleBioC/Collection.html">SimpleBioC::Collection</a>
110
+
111
+ <li><a href="../SimpleBioC/Document.html">SimpleBioC::Document</a>
112
+
113
+ <li><a href="../SimpleBioC/Location.html">SimpleBioC::Location</a>
114
+
115
+ <li><a href="../SimpleBioC/Node.html">SimpleBioC::Node</a>
116
+
117
+ <li><a href="../SimpleBioC/NodeBase.html">SimpleBioC::NodeBase</a>
118
+
119
+ <li><a href="../SimpleBioC/Passage.html">SimpleBioC::Passage</a>
120
+
121
+ <li><a href="../SimpleBioC/Relation.html">SimpleBioC::Relation</a>
122
+
123
+ <li><a href="../SimpleBioC/Sentence.html">SimpleBioC::Sentence</a>
124
+
125
+ </ul>
126
+ </nav>
127
+
128
+ </div>
129
+ </nav>
130
+
131
+ <div id="documentation">
132
+ <h1 class="class">class SimpleBioC::Collection</h1>
133
+
134
+ <div id="description" class="description">
135
+
136
+ </div><!-- description -->
137
+
138
+
139
+
140
+
141
+ <section id="5Buntitled-5D" class="documentation-section">
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ <!-- Attributes -->
150
+ <section id="attribute-method-details" class="method-section section">
151
+ <h3 class="section-header">Attributes</h3>
152
+
153
+
154
+ <div id="attribute-i-date" class="method-detail">
155
+ <div class="method-heading attribute-method-heading">
156
+ <span class="method-name">date</span><span
157
+ class="attribute-access-type">[RW]</span>
158
+ </div>
159
+
160
+ <div class="method-description">
161
+
162
+
163
+
164
+ </div>
165
+ </div>
166
+
167
+ <div id="attribute-i-documents" class="method-detail">
168
+ <div class="method-heading attribute-method-heading">
169
+ <span class="method-name">documents</span><span
170
+ class="attribute-access-type">[RW]</span>
171
+ </div>
172
+
173
+ <div class="method-description">
174
+
175
+
176
+
177
+ </div>
178
+ </div>
179
+
180
+ <div id="attribute-i-infons" class="method-detail">
181
+ <div class="method-heading attribute-method-heading">
182
+ <span class="method-name">infons</span><span
183
+ class="attribute-access-type">[RW]</span>
184
+ </div>
185
+
186
+ <div class="method-description">
187
+
188
+
189
+
190
+ </div>
191
+ </div>
192
+
193
+ <div id="attribute-i-key" class="method-detail">
194
+ <div class="method-heading attribute-method-heading">
195
+ <span class="method-name">key</span><span
196
+ class="attribute-access-type">[RW]</span>
197
+ </div>
198
+
199
+ <div class="method-description">
200
+
201
+
202
+
203
+ </div>
204
+ </div>
205
+
206
+ <div id="attribute-i-source" class="method-detail">
207
+ <div class="method-heading attribute-method-heading">
208
+ <span class="method-name">source</span><span
209
+ class="attribute-access-type">[RW]</span>
210
+ </div>
211
+
212
+ <div class="method-description">
213
+
214
+
215
+
216
+ </div>
217
+ </div>
218
+
219
+ </section><!-- attribute-method-details -->
220
+
221
+
222
+ <!-- Methods -->
223
+
224
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
225
+ <h3 class="section-header">Public Class Methods</h3>
226
+
227
+
228
+ <div id="method-c-new" class="method-detail ">
229
+
230
+ <div class="method-heading">
231
+ <span class="method-name">new</span><span
232
+ class="method-args">()</span>
233
+
234
+ <span class="method-click-advice">click to toggle source</span>
235
+
236
+ </div>
237
+
238
+
239
+ <div class="method-description">
240
+
241
+
242
+
243
+
244
+
245
+
246
+ <div class="method-source-code" id="new-source">
247
+ <pre><span class="ruby-comment"># File lib/simple_bioc/collection.rb, line 5</span>
248
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>
249
+ <span class="ruby-ivar">@documents</span> = []
250
+ <span class="ruby-ivar">@infons</span> = {}
251
+ <span class="ruby-ivar">@source</span> = <span class="ruby-string">&quot;&quot;</span>
252
+ <span class="ruby-ivar">@date</span> = <span class="ruby-string">&quot;&quot;</span>
253
+ <span class="ruby-ivar">@key</span> = <span class="ruby-string">&quot;&quot;</span>
254
+ <span class="ruby-keyword">end</span></pre>
255
+ </div><!-- new-source -->
256
+
257
+ </div>
258
+
259
+
260
+
261
+
262
+ </div><!-- new-method -->
263
+
264
+
265
+ </section><!-- public-class-method-details -->
266
+
267
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
268
+ <h3 class="section-header">Public Instance Methods</h3>
269
+
270
+
271
+ <div id="method-i-to_c" class="method-detail ">
272
+
273
+ <div class="method-heading">
274
+ <span class="method-name">to_c</span><span
275
+ class="method-args">()</span>
276
+
277
+ <span class="method-click-advice">click to toggle source</span>
278
+
279
+ </div>
280
+
281
+
282
+ <div class="method-description">
283
+
284
+
285
+
286
+
287
+
288
+
289
+ <div class="method-source-code" id="to_c-source">
290
+ <pre><span class="ruby-comment"># File lib/simple_bioc/collection.rb, line 13</span>
291
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_c</span>
292
+ <span class="ruby-node">&quot;Collection(source: #{source}, date: #{date}, key: #{key})&quot;</span>
293
+ <span class="ruby-keyword">end</span></pre>
294
+ </div><!-- to_c-source -->
295
+
296
+ </div>
297
+
298
+
299
+
300
+
301
+ </div><!-- to_c-method -->
302
+
303
+
304
+ </section><!-- public-instance-method-details -->
305
+
306
+ </section><!-- 5Buntitled-5D -->
307
+
308
+ </div><!-- documentation -->
309
+
310
+
311
+ <footer id="validator-badges">
312
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
313
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
314
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
315
+ </footer>
316
+