simple_bioc 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +13 -0
  3. data/html/BioCMerger.html +748 -0
  4. data/html/BioCReader.html +138 -146
  5. data/html/BioCWriter.html +84 -131
  6. data/html/README_md.html +79 -100
  7. data/html/SimpleBioC/Annotation.html +70 -113
  8. data/html/SimpleBioC/Collection.html +70 -113
  9. data/html/SimpleBioC/Document.html +76 -119
  10. data/html/SimpleBioC/Location.html +70 -113
  11. data/html/SimpleBioC/Node.html +72 -115
  12. data/html/SimpleBioC/NodeBase.html +63 -108
  13. data/html/SimpleBioC/Passage.html +74 -117
  14. data/html/SimpleBioC/Relation.html +85 -115
  15. data/html/SimpleBioC/Sentence.html +74 -117
  16. data/html/SimpleBioC.html +221 -129
  17. data/html/created.rid +16 -15
  18. data/html/css/fonts.css +167 -0
  19. data/html/css/rdoc.css +590 -0
  20. data/html/fonts/Lato-Light.ttf +0 -0
  21. data/html/fonts/Lato-LightItalic.ttf +0 -0
  22. data/html/fonts/Lato-Regular.ttf +0 -0
  23. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  24. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  25. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  26. data/html/index.html +71 -53
  27. data/html/js/darkfish.js +32 -26
  28. data/html/js/jquery.js +4 -18
  29. data/html/js/navigation.js.gz +0 -0
  30. data/html/js/search.js +20 -5
  31. data/html/js/search_index.js +1 -1
  32. data/html/js/search_index.js.gz +0 -0
  33. data/html/js/searcher.js.gz +0 -0
  34. data/html/table_of_contents.html +379 -136
  35. data/lib/simple_bioc/bioc_merger.rb +209 -0
  36. data/lib/simple_bioc/relation.rb +1 -1
  37. data/lib/simple_bioc/version.rb +1 -1
  38. data/lib/simple_bioc.rb +8 -4
  39. data/spec/file_check_spec.rb +14 -1
  40. data/xml/PMC2133144.xml +3 -0
  41. data/xml/merge/9864355.xml +1 -0
  42. data/xml/merge/9864355_1.xml +1 -0
  43. data/xml/merge/9864355_2.xml +1974 -0
  44. data/xml/merge/9864355_3.xml +1 -0
  45. data/xml/merge/output.xml +6742 -0
  46. metadata +21 -2
data/html/BioCWriter.html CHANGED
@@ -2,70 +2,66 @@
2
2
 
3
3
  <html>
4
4
  <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
5
+ <meta charset="UTF-8">
6
6
 
7
7
  <title>module BioCWriter - RDoc Documentation</title>
8
8
 
9
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
-
11
9
  <script type="text/javascript">
12
10
  var rdoc_rel_prefix = "./";
13
11
  </script>
14
12
 
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>
13
+ <script src="./js/jquery.js"></script>
14
+ <script src="./js/darkfish.js"></script>
15
+
16
+ <link href="./css/fonts.css" rel="stylesheet">
17
+ <link href="./css/rdoc.css" rel="stylesheet">
18
+
21
19
 
22
20
 
23
- <body id="top" class="module">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="./index.html">Home</a>
21
+ <body id="top" role="document" class="module">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="./index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="./table_of_contents.html#pages">Pages</a>
28
31
  <a href="./table_of_contents.html#classes">Classes</a>
29
32
  <a href="./table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
+ </div>
34
+ </div>
33
35
 
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
35
37
  <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
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
38
42
  title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
43
+ </div>
41
44
 
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
44
50
 
51
+ </div>
45
52
 
46
53
 
47
54
 
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/bioc_writer.rb
53
- </ul>
54
- </nav>
55
-
56
-
57
- </div>
58
-
59
55
  <div id="class-metadata">
60
56
 
61
57
 
62
58
 
63
59
 
64
60
  <!-- Method Quickref -->
65
- <nav id="method-list-section" class="section">
66
- <h3 class="section-header">Methods</h3>
61
+ <div id="method-list-section" class="nav-section">
62
+ <h3>Methods</h3>
67
63
 
68
- <ul class="link-list">
64
+ <ul class="link-list" role="directory">
69
65
 
70
66
  <li ><a href="#method-i-write">#write</a>
71
67
 
@@ -88,62 +84,19 @@
88
84
  <li ><a href="#method-i-write_sentence">#write_sentence</a>
89
85
 
90
86
  </ul>
91
- </nav>
92
-
93
- </div>
94
-
95
- <div id="project-metadata">
96
- <nav id="fileindex-section" class="section project-section">
97
- <h3 class="section-header">Pages</h3>
98
-
99
- <ul>
100
-
101
- <li class="file"><a href="./README_md.html">README</a>
102
-
103
- </ul>
104
- </nav>
105
-
106
- <nav id="classindex-section" class="section project-section">
107
- <h3 class="section-header">Class and Module Index</h3>
108
-
109
- <ul class="link-list">
110
-
111
- <li><a href="./BioCReader.html">BioCReader</a>
112
-
113
- <li><a href="./BioCWriter.html">BioCWriter</a>
114
-
115
- <li><a href="./SimpleBioC.html">SimpleBioC</a>
116
-
117
- <li><a href="./SimpleBioC/Annotation.html">SimpleBioC::Annotation</a>
118
-
119
- <li><a href="./SimpleBioC/Collection.html">SimpleBioC::Collection</a>
120
-
121
- <li><a href="./SimpleBioC/Document.html">SimpleBioC::Document</a>
122
-
123
- <li><a href="./SimpleBioC/Location.html">SimpleBioC::Location</a>
124
-
125
- <li><a href="./SimpleBioC/Node.html">SimpleBioC::Node</a>
126
-
127
- <li><a href="./SimpleBioC/NodeBase.html">SimpleBioC::NodeBase</a>
128
-
129
- <li><a href="./SimpleBioC/Passage.html">SimpleBioC::Passage</a>
130
-
131
- <li><a href="./SimpleBioC/Relation.html">SimpleBioC::Relation</a>
132
-
133
- <li><a href="./SimpleBioC/Sentence.html">SimpleBioC::Sentence</a>
134
-
135
- </ul>
136
- </nav>
87
+ </div>
137
88
 
138
89
  </div>
139
90
  </nav>
140
91
 
141
- <div id="documentation">
142
- <h1 class="module">module BioCWriter</h1>
92
+ <main role="main" aria-labelledby="module-BioCWriter">
93
+ <h1 id="module-BioCWriter" class="module">
94
+ module BioCWriter
95
+ </h1>
143
96
 
144
- <div id="description" class="description">
97
+ <section class="description">
145
98
 
146
- </div><!-- description -->
99
+ </section>
147
100
 
148
101
 
149
102
 
@@ -157,10 +110,11 @@
157
110
 
158
111
 
159
112
 
160
- <!-- Methods -->
161
113
 
162
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
163
- <h3 class="section-header">Public Instance Methods</h3>
114
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
115
+ <header>
116
+ <h3>Public Instance Methods</h3>
117
+ </header>
164
118
 
165
119
 
166
120
  <div id="method-i-write" class="method-detail ">
@@ -182,7 +136,7 @@
182
136
 
183
137
 
184
138
  <div class="method-source-code" id="write-source">
185
- <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 6</span>
139
+ <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 8</span>
186
140
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">write</span>(<span class="ruby-identifier">collection</span>, <span class="ruby-identifier">options</span> = {})
187
141
  <span class="ruby-identifier">options</span>[<span class="ruby-value">:save_with</span>] = <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:save_with</span>].<span class="ruby-identifier">nil?</span>
188
142
  <span class="ruby-identifier">builder</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span><span class="ruby-operator">::</span><span class="ruby-constant">Builder</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:encoding</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&#39;UTF-8&#39;</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">xml</span><span class="ruby-operator">|</span>
@@ -191,14 +145,14 @@
191
145
  <span class="ruby-keyword">end</span>
192
146
  <span class="ruby-identifier">builder</span>.<span class="ruby-identifier">to_xml</span>(<span class="ruby-identifier">options</span>)
193
147
  <span class="ruby-keyword">end</span></pre>
194
- </div><!-- write-source -->
148
+ </div>
195
149
 
196
150
  </div>
197
151
 
198
152
 
199
153
 
200
154
 
201
- </div><!-- write-method -->
155
+ </div>
202
156
 
203
157
 
204
158
  <div id="method-i-write_annotation" class="method-detail ">
@@ -220,7 +174,7 @@
220
174
 
221
175
 
222
176
  <div class="method-source-code" id="write_annotation-source">
223
- <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 63</span>
177
+ <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 65</span>
224
178
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">write_annotation</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">annotation</span>)
225
179
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">annotation</span>.<span class="ruby-identifier">id</span>.<span class="ruby-identifier">nil?</span>
226
180
  <span class="ruby-identifier">attribute</span> = <span class="ruby-keyword">nil</span>
@@ -229,18 +183,18 @@
229
183
  <span class="ruby-keyword">end</span>
230
184
  <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">annotation</span>(<span class="ruby-identifier">attribute</span>) {
231
185
  <span class="ruby-identifier">write_infon</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">annotation</span>)
232
- <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">text_</span> <span class="ruby-identifier">annotation</span>.<span class="ruby-identifier">text</span>
233
186
  <span class="ruby-identifier">annotation</span>.<span class="ruby-identifier">locations</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-identifier">write_location</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">l</span>)}
187
+ <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">text_</span> <span class="ruby-identifier">annotation</span>.<span class="ruby-identifier">text</span>
234
188
  }
235
189
  <span class="ruby-keyword">end</span></pre>
236
- </div><!-- write_annotation-source -->
190
+ </div>
237
191
 
238
192
  </div>
239
193
 
240
194
 
241
195
 
242
196
 
243
- </div><!-- write_annotation-method -->
197
+ </div>
244
198
 
245
199
 
246
200
  <div id="method-i-write_collection" class="method-detail ">
@@ -262,7 +216,7 @@
262
216
 
263
217
 
264
218
  <div class="method-source-code" id="write_collection-source">
265
- <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 23</span>
219
+ <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 25</span>
266
220
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">write_collection</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">collection</span>)
267
221
  <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">collection</span> {
268
222
  <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">source</span> <span class="ruby-identifier">collection</span>.<span class="ruby-identifier">source</span>
@@ -272,14 +226,14 @@
272
226
  <span class="ruby-identifier">collection</span>.<span class="ruby-identifier">documents</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span class="ruby-operator">|</span> <span class="ruby-identifier">write_document</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">d</span>)}
273
227
  }
274
228
  <span class="ruby-keyword">end</span></pre>
275
- </div><!-- write_collection-source -->
229
+ </div>
276
230
 
277
231
  </div>
278
232
 
279
233
 
280
234
 
281
235
 
282
- </div><!-- write_collection-method -->
236
+ </div>
283
237
 
284
238
 
285
239
  <div id="method-i-write_document" class="method-detail ">
@@ -301,7 +255,7 @@
301
255
 
302
256
 
303
257
  <div class="method-source-code" id="write_document-source">
304
- <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 33</span>
258
+ <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 35</span>
305
259
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">write_document</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">document</span>)
306
260
  <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">document</span> {
307
261
  <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">id_</span> <span class="ruby-identifier">document</span>.<span class="ruby-identifier">id</span>
@@ -310,14 +264,14 @@
310
264
  <span class="ruby-identifier">document</span>.<span class="ruby-identifier">relations</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-identifier">write_relation</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">r</span>)}
311
265
  }
312
266
  <span class="ruby-keyword">end</span></pre>
313
- </div><!-- write_document-source -->
267
+ </div>
314
268
 
315
269
  </div>
316
270
 
317
271
 
318
272
 
319
273
 
320
- </div><!-- write_document-method -->
274
+ </div>
321
275
 
322
276
 
323
277
  <div id="method-i-write_infon" class="method-detail ">
@@ -339,7 +293,7 @@
339
293
 
340
294
 
341
295
  <div class="method-source-code" id="write_infon-source">
342
- <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 15</span>
296
+ <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 17</span>
343
297
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">write_infon</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">obj</span>)
344
298
  <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">infons</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
345
299
  <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">infon</span>(<span class="ruby-value">:key</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">k</span>) {
@@ -347,14 +301,14 @@
347
301
  }
348
302
  <span class="ruby-keyword">end</span>
349
303
  <span class="ruby-keyword">end</span></pre>
350
- </div><!-- write_infon-source -->
304
+ </div>
351
305
 
352
306
  </div>
353
307
 
354
308
 
355
309
 
356
310
 
357
- </div><!-- write_infon-method -->
311
+ </div>
358
312
 
359
313
 
360
314
  <div id="method-i-write_location" class="method-detail ">
@@ -376,18 +330,18 @@
376
330
 
377
331
 
378
332
  <div class="method-source-code" id="write_location-source">
379
- <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 88</span>
333
+ <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 90</span>
380
334
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">write_location</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">location</span>)
381
335
  <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">location</span>(<span class="ruby-value">:offset</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">location</span>.<span class="ruby-identifier">offset</span>, <span class="ruby-value">:length</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">location</span>.<span class="ruby-identifier">length</span>)
382
336
  <span class="ruby-keyword">end</span></pre>
383
- </div><!-- write_location-source -->
337
+ </div>
384
338
 
385
339
  </div>
386
340
 
387
341
 
388
342
 
389
343
 
390
- </div><!-- write_location-method -->
344
+ </div>
391
345
 
392
346
 
393
347
  <div id="method-i-write_node" class="method-detail ">
@@ -409,18 +363,18 @@
409
363
 
410
364
 
411
365
  <div class="method-source-code" id="write_node-source">
412
- <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 92</span>
366
+ <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 94</span>
413
367
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">write_node</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">node</span>)
414
368
  <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">node_</span>(<span class="ruby-value">:refid</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">refid</span>, <span class="ruby-value">:role</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">role</span>)
415
369
  <span class="ruby-keyword">end</span></pre>
416
- </div><!-- write_node-source -->
370
+ </div>
417
371
 
418
372
  </div>
419
373
 
420
374
 
421
375
 
422
376
 
423
- </div><!-- write_node-method -->
377
+ </div>
424
378
 
425
379
 
426
380
  <div id="method-i-write_passage" class="method-detail ">
@@ -442,25 +396,25 @@
442
396
 
443
397
 
444
398
  <div class="method-source-code" id="write_passage-source">
445
- <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 42</span>
399
+ <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 44</span>
446
400
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">write_passage</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">passage</span>)
447
401
  <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">passage</span> {
448
402
  <span class="ruby-identifier">write_infon</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">passage</span>)
449
403
  <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">offset</span> <span class="ruby-identifier">passage</span>.<span class="ruby-identifier">offset</span>
450
404
  <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">text_</span> <span class="ruby-identifier">passage</span>.<span class="ruby-identifier">text</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">passage</span>.<span class="ruby-identifier">text</span>.<span class="ruby-identifier">nil?</span>
451
- <span class="ruby-identifier">passage</span>.<span class="ruby-identifier">sentences</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">write_sentence</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">s</span>)}
452
405
  <span class="ruby-identifier">passage</span>.<span class="ruby-identifier">annotations</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">write_annotation</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">a</span>)}
406
+ <span class="ruby-identifier">passage</span>.<span class="ruby-identifier">sentences</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">write_sentence</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">s</span>)}
453
407
  <span class="ruby-identifier">passage</span>.<span class="ruby-identifier">relations</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-identifier">write_relation</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">r</span>)}
454
408
  }
455
409
  <span class="ruby-keyword">end</span></pre>
456
- </div><!-- write_passage-source -->
410
+ </div>
457
411
 
458
412
  </div>
459
413
 
460
414
 
461
415
 
462
416
 
463
- </div><!-- write_passage-method -->
417
+ </div>
464
418
 
465
419
 
466
420
  <div id="method-i-write_relation" class="method-detail ">
@@ -482,7 +436,7 @@
482
436
 
483
437
 
484
438
  <div class="method-source-code" id="write_relation-source">
485
- <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 76</span>
439
+ <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 78</span>
486
440
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">write_relation</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">relation</span>)
487
441
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">relation</span>.<span class="ruby-identifier">id</span>.<span class="ruby-identifier">nil?</span>
488
442
  <span class="ruby-identifier">attribute</span> = <span class="ruby-keyword">nil</span>
@@ -494,14 +448,14 @@
494
448
  <span class="ruby-identifier">relation</span>.<span class="ruby-identifier">nodes</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">n</span><span class="ruby-operator">|</span> <span class="ruby-identifier">write_node</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">n</span>)}
495
449
  }
496
450
  <span class="ruby-keyword">end</span></pre>
497
- </div><!-- write_relation-source -->
451
+ </div>
498
452
 
499
453
  </div>
500
454
 
501
455
 
502
456
 
503
457
 
504
- </div><!-- write_relation-method -->
458
+ </div>
505
459
 
506
460
 
507
461
  <div id="method-i-write_sentence" class="method-detail ">
@@ -523,7 +477,7 @@
523
477
 
524
478
 
525
479
  <div class="method-source-code" id="write_sentence-source">
526
- <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 53</span>
480
+ <pre><span class="ruby-comment"># File lib/simple_bioc/bioc_writer.rb, line 55</span>
527
481
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">write_sentence</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">sentence</span>)
528
482
  <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">sentence</span> {
529
483
  <span class="ruby-identifier">write_infon</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">sentence</span>)
@@ -533,26 +487,25 @@
533
487
  <span class="ruby-identifier">sentence</span>.<span class="ruby-identifier">relations</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-identifier">write_relation</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">r</span>)}
534
488
  }
535
489
  <span class="ruby-keyword">end</span></pre>
536
- </div><!-- write_sentence-source -->
490
+ </div>
537
491
 
538
492
  </div>
539
493
 
540
494
 
541
495
 
542
496
 
543
- </div><!-- write_sentence-method -->
497
+ </div>
544
498
 
545
499
 
546
- </section><!-- public-instance-method-details -->
500
+ </section>
547
501
 
548
- </section><!-- 5Buntitled-5D -->
549
-
550
- </div><!-- documentation -->
502
+ </section>
503
+ </main>
551
504
 
552
505
 
553
- <footer id="validator-badges">
554
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
555
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
556
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
506
+ <footer id="validator-badges" role="contentinfo">
507
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
508
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
509
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
557
510
  </footer>
558
511