simple_bioc 0.0.5 → 0.0.6

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.
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/SimpleBioC.html CHANGED
@@ -2,145 +2,93 @@
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 SimpleBioC - 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.rb
53
- <li>lib/simple_bioc/annotation.rb
54
- <li>lib/simple_bioc/bioc_reader.rb
55
- <li>lib/simple_bioc/collection.rb
56
- <li>lib/simple_bioc/document.rb
57
- <li>lib/simple_bioc/location.rb
58
- <li>lib/simple_bioc/node.rb
59
- <li>lib/simple_bioc/node_base.rb
60
- <li>lib/simple_bioc/passage.rb
61
- <li>lib/simple_bioc/relation.rb
62
- <li>lib/simple_bioc/sentence.rb
63
- <li>lib/simple_bioc/version.rb
64
- </ul>
65
- </nav>
66
-
67
-
68
- </div>
69
-
70
55
  <div id="class-metadata">
71
56
 
72
57
 
73
58
 
74
59
 
75
60
  <!-- Method Quickref -->
76
- <nav id="method-list-section" class="section">
77
- <h3 class="section-header">Methods</h3>
61
+ <div id="method-list-section" class="nav-section">
62
+ <h3>Methods</h3>
78
63
 
79
- <ul class="link-list">
64
+ <ul class="link-list" role="directory">
80
65
 
81
66
  <li ><a href="#method-i-from_xml">#from_xml</a>
82
67
 
68
+ <li ><a href="#method-i-from_xml_file">#from_xml_file</a>
69
+
70
+ <li ><a href="#method-i-from_xml_string">#from_xml_string</a>
71
+
72
+ <li ><a href="#method-i-merge">#merge</a>
73
+
83
74
  <li ><a href="#method-i-to_xml">#to_xml</a>
84
75
 
85
76
  </ul>
86
- </nav>
87
-
88
- </div>
89
-
90
- <div id="project-metadata">
91
- <nav id="fileindex-section" class="section project-section">
92
- <h3 class="section-header">Pages</h3>
93
-
94
- <ul>
95
-
96
- <li class="file"><a href="./README_md.html">README</a>
97
-
98
- </ul>
99
- </nav>
100
-
101
- <nav id="classindex-section" class="section project-section">
102
- <h3 class="section-header">Class and Module Index</h3>
103
-
104
- <ul class="link-list">
105
-
106
- <li><a href="./BioCReader.html">BioCReader</a>
107
-
108
- <li><a href="./BioCWriter.html">BioCWriter</a>
109
-
110
- <li><a href="./SimpleBioC.html">SimpleBioC</a>
111
-
112
- <li><a href="./SimpleBioC/Annotation.html">SimpleBioC::Annotation</a>
113
-
114
- <li><a href="./SimpleBioC/Collection.html">SimpleBioC::Collection</a>
115
-
116
- <li><a href="./SimpleBioC/Document.html">SimpleBioC::Document</a>
117
-
118
- <li><a href="./SimpleBioC/Location.html">SimpleBioC::Location</a>
119
-
120
- <li><a href="./SimpleBioC/Node.html">SimpleBioC::Node</a>
121
-
122
- <li><a href="./SimpleBioC/NodeBase.html">SimpleBioC::NodeBase</a>
123
-
124
- <li><a href="./SimpleBioC/Passage.html">SimpleBioC::Passage</a>
125
-
126
- <li><a href="./SimpleBioC/Relation.html">SimpleBioC::Relation</a>
127
-
128
- <li><a href="./SimpleBioC/Sentence.html">SimpleBioC::Sentence</a>
129
-
130
- </ul>
131
- </nav>
77
+ </div>
132
78
 
133
79
  </div>
134
80
  </nav>
135
81
 
136
- <div id="documentation">
137
- <h1 class="module">module SimpleBioC</h1>
82
+ <main role="main" aria-labelledby="module-SimpleBioC">
83
+ <h1 id="module-SimpleBioC" class="module">
84
+ module SimpleBioC
85
+ </h1>
138
86
 
139
- <div id="description" class="description">
87
+ <section class="description">
140
88
 
141
89
  <p><a href="SimpleBioC.html">SimpleBioC</a> main library</p>
142
90
 
143
- </div><!-- description -->
91
+ </section>
144
92
 
145
93
 
146
94
 
@@ -151,14 +99,15 @@
151
99
 
152
100
 
153
101
 
154
- <!-- Constants -->
155
- <section id="constants-list" class="section">
156
- <h3 class="section-header">Constants</h3>
102
+ <section class="constants-list">
103
+ <header>
104
+ <h3>Constants</h3>
105
+ </header>
157
106
  <dl>
158
107
 
159
108
  <dt id="VERSION">VERSION
160
109
 
161
- <dd class="description">
110
+ <dd>
162
111
 
163
112
 
164
113
  </dl>
@@ -167,10 +116,11 @@
167
116
 
168
117
 
169
118
 
170
- <!-- Methods -->
171
119
 
172
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
173
- <h3 class="section-header">Public Instance Methods</h3>
120
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
121
+ <header>
122
+ <h3>Public Instance Methods</h3>
123
+ </header>
174
124
 
175
125
 
176
126
  <div id="method-i-from_xml" class="method-detail ">
@@ -189,23 +139,24 @@
189
139
  <p>parse a BioC XML file in the given path and convert it into a collection
190
140
  instance</p>
191
141
 
192
- <h4 id="method-i-from_xml-label-Arguments">Arguments<span><a href="#method-i-from_xml-label-Arguments">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
142
+ <h4 id="method-i-from_xml-label-Arguments">Arguments<span><a href="#method-i-from_xml-label-Arguments">&para;</a> <a href="#top">&uarr;</a></span></h4>
193
143
  <ul><li>
194
144
  <p><code>file_path</code> - file path for parse</p>
195
145
  </li><li>
196
146
  <p><code>options</code> - (optional) additional options</p>
197
147
  </li></ul>
198
148
 
199
- <h4 id="method-i-from_xml-label-Options">Options<span><a href="#method-i-from_xml-label-Options">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
149
+ <h4 id="method-i-from_xml-label-Options">Options<span><a href="#method-i-from_xml-label-Options">&para;</a> <a href="#top">&uarr;</a></span></h4>
200
150
  <ul><li>
201
151
  <p><code>documents</code> - specify IDs of documents to parse. The result will
202
152
  include only the specified documents</p>
203
153
  </li></ul>
204
154
 
205
- <h4 id="method-i-from_xml-label-Examples">Examples<span><a href="#method-i-from_xml-label-Examples">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
155
+ <h4 id="method-i-from_xml-label-Examples">Examples<span><a href="#method-i-from_xml-label-Examples">&para;</a> <a href="#top">&uarr;</a></span></h4>
206
156
 
207
- <pre>collection = SimpleBioC.from_xml(&quot;./xml/everything.xml&quot;)
208
- collection = SimpleBioC.from_xml(&quot;./xml/lemma.xml&quot;, {documents:[21785578, 21488974]})</pre>
157
+ <pre class="ruby"><span class="ruby-identifier">collection</span> = <span class="ruby-constant">SimpleBioC</span>.<span class="ruby-identifier">from_xml</span>(<span class="ruby-string">&quot;./xml/everything.xml&quot;</span>)
158
+ <span class="ruby-identifier">collection</span> = <span class="ruby-constant">SimpleBioC</span>.<span class="ruby-identifier">from_xml</span>(<span class="ruby-string">&quot;./xml/lemma.xml&quot;</span>, {<span class="ruby-identifier">documents</span>:[<span class="ruby-value">21785578</span>, <span class="ruby-value">21488974</span>]})
159
+ </pre>
209
160
 
210
161
 
211
162
 
@@ -216,14 +167,155 @@ collection = SimpleBioC.from_xml(&quot;./xml/lemma.xml&quot;, {documents:[217855
216
167
  <span class="ruby-identifier">options</span>[<span class="ruby-value">:documents</span>] = <span class="ruby-identifier">options</span>[<span class="ruby-value">:documents</span>].<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">to_s</span>} <span class="ruby-keyword">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:documents</span>].<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Array</span>)
217
168
  <span class="ruby-constant">BioCReader</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">file_path</span>, <span class="ruby-identifier">options</span>)
218
169
  <span class="ruby-keyword">end</span></pre>
219
- </div><!-- from_xml-source -->
170
+ </div>
171
+
172
+ </div>
173
+
174
+
175
+
176
+
177
+ </div>
178
+
179
+
180
+ <div id="method-i-from_xml_file" class="method-detail ">
181
+
182
+ <div class="method-heading">
183
+ <span class="method-name">from_xml_file</span><span
184
+ class="method-args">(file, options = {})</span>
185
+
186
+ <span class="method-click-advice">click to toggle source</span>
187
+
188
+ </div>
189
+
190
+
191
+ <div class="method-description">
192
+
193
+ <p>parse a BioC XML file and convert it into a collection instance</p>
194
+
195
+ <h4 id="method-i-from_xml_file-label-Arguments">Arguments<span><a href="#method-i-from_xml_file-label-Arguments">&para;</a> <a href="#top">&uarr;</a></span></h4>
196
+ <ul><li>
197
+ <p><code>file_path</code> - file object for parse</p>
198
+ </li><li>
199
+ <p><code>options</code> - (optional) additional options</p>
200
+ </li></ul>
201
+
202
+ <h4 id="method-i-from_xml_file-label-Options">Options<span><a href="#method-i-from_xml_file-label-Options">&para;</a> <a href="#top">&uarr;</a></span></h4>
203
+ <ul><li>
204
+ <p><code>documents</code> - specify IDs of documents to parse. The result will
205
+ include only the specified documents</p>
206
+ </li></ul>
207
+
208
+ <h4 id="method-i-from_xml_file-label-Examples">Examples<span><a href="#method-i-from_xml_file-label-Examples">&para;</a> <a href="#top">&uarr;</a></span></h4>
209
+
210
+ <pre class="ruby"><span class="ruby-identifier">file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">path</span>)
211
+ <span class="ruby-identifier">collection</span> = <span class="ruby-constant">SimpleBioC</span>.<span class="ruby-identifier">from_xml</span>(<span class="ruby-identifier">file</span>)
212
+ <span class="ruby-identifier">collection</span> = <span class="ruby-constant">SimpleBioC</span>.<span class="ruby-identifier">from_xml</span>(<span class="ruby-identifier">file</span>, {<span class="ruby-identifier">documents</span>:[<span class="ruby-value">21785578</span>, <span class="ruby-value">21488974</span>]})
213
+ </pre>
214
+
215
+
216
+
217
+
218
+ <div class="method-source-code" id="from_xml_file-source">
219
+ <pre><span class="ruby-comment"># File lib/simple_bioc.rb, line 40</span>
220
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">from_xml_file</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">options</span> = {})
221
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:documents</span>] = <span class="ruby-identifier">options</span>[<span class="ruby-value">:documents</span>].<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">to_s</span>} <span class="ruby-keyword">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:documents</span>].<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Array</span>)
222
+ <span class="ruby-constant">BioCReader</span>.<span class="ruby-identifier">read_from_file_or_string</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">options</span>)
223
+ <span class="ruby-keyword">end</span></pre>
224
+ </div>
225
+
226
+ </div>
227
+
228
+
229
+
230
+
231
+ </div>
232
+
233
+
234
+ <div id="method-i-from_xml_string" class="method-detail ">
235
+
236
+ <div class="method-heading">
237
+ <span class="method-name">from_xml_string</span><span
238
+ class="method-args">(string, options = {})</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
+ <p>parse a BioC XML string and convert it into a collection instance</p>
248
+
249
+ <h4 id="method-i-from_xml_string-label-Arguments">Arguments<span><a href="#method-i-from_xml_string-label-Arguments">&para;</a> <a href="#top">&uarr;</a></span></h4>
250
+ <ul><li>
251
+ <p><code>string</code> - xml string (text) for parse</p>
252
+ </li><li>
253
+ <p><code>options</code> - (optional) additional options</p>
254
+ </li></ul>
255
+
256
+ <h4 id="method-i-from_xml_string-label-Options">Options<span><a href="#method-i-from_xml_string-label-Options">&para;</a> <a href="#top">&uarr;</a></span></h4>
257
+ <ul><li>
258
+ <p><code>documents</code> - specify IDs of documents to parse. The result will
259
+ include only the specified documents</p>
260
+ </li></ul>
261
+
262
+ <h4 id="method-i-from_xml_string-label-Examples">Examples<span><a href="#method-i-from_xml_string-label-Examples">&para;</a> <a href="#top">&uarr;</a></span></h4>
263
+
264
+ <pre class="ruby"><span class="ruby-identifier">content</span> = <span class="ruby-string">&quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;UTF-8\&quot;?&gt; ...&quot;</span>
265
+ <span class="ruby-identifier">collection</span> = <span class="ruby-constant">SimpleBioC</span>.<span class="ruby-identifier">from_xml</span>(<span class="ruby-identifier">content</span>)
266
+ <span class="ruby-identifier">collection</span> = <span class="ruby-constant">SimpleBioC</span>.<span class="ruby-identifier">from_xml</span>(<span class="ruby-identifier">content</span>, {<span class="ruby-identifier">documents</span>:[<span class="ruby-value">21785578</span>, <span class="ruby-value">21488974</span>]})
267
+ </pre>
268
+
269
+
270
+
271
+
272
+ <div class="method-source-code" id="from_xml_string-source">
273
+ <pre><span class="ruby-comment"># File lib/simple_bioc.rb, line 62</span>
274
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">from_xml_string</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">options</span> = {})
275
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:documents</span>] = <span class="ruby-identifier">options</span>[<span class="ruby-value">:documents</span>].<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">to_s</span>} <span class="ruby-keyword">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value">:documents</span>].<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Array</span>)
276
+ <span class="ruby-constant">BioCReader</span>.<span class="ruby-identifier">read_from_file_or_string</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">options</span>)
277
+ <span class="ruby-keyword">end</span></pre>
278
+ </div>
279
+
280
+ </div>
281
+
282
+
283
+
284
+
285
+ </div>
286
+
287
+
288
+ <div id="method-i-merge" class="method-detail ">
289
+
290
+ <div class="method-heading">
291
+ <span class="method-name">merge</span><span
292
+ class="method-args">(dest_bioc, src_bioc)</span>
293
+
294
+ <span class="method-click-advice">click to toggle source</span>
295
+
296
+ </div>
297
+
298
+
299
+ <div class="method-description">
300
+
301
+
302
+
303
+
304
+
305
+
306
+ <div class="method-source-code" id="merge-source">
307
+ <pre><span class="ruby-comment"># File lib/simple_bioc.rb, line 45</span>
308
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">merge</span>(<span class="ruby-identifier">dest_bioc</span>, <span class="ruby-identifier">src_bioc</span>)
309
+ <span class="ruby-keyword">return</span> <span class="ruby-constant">BioCMerger</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">dest_bioc</span>, <span class="ruby-identifier">src_bioc</span>)
310
+ <span class="ruby-keyword">end</span></pre>
311
+ </div>
220
312
 
221
313
  </div>
222
314
 
223
315
 
224
316
 
225
317
 
226
- </div><!-- from_xml-method -->
318
+ </div>
227
319
 
228
320
 
229
321
  <div id="method-i-to_xml" class="method-detail ">
@@ -242,7 +334,7 @@ collection = SimpleBioC.from_xml(&quot;./xml/lemma.xml&quot;, {documents:[217855
242
334
  <p>convert a collection instance to a BioC XML text. Output will return as
243
335
  string</p>
244
336
 
245
- <h4 id="method-i-to_xml-label-Arguments">Arguments<span><a href="#method-i-to_xml-label-Arguments">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
337
+ <h4 id="method-i-to_xml-label-Arguments">Arguments<span><a href="#method-i-to_xml-label-Arguments">&para;</a> <a href="#top">&uarr;</a></span></h4>
246
338
  <ul><li>
247
339
  <p><code>collection</code> - <a
248
340
  href="SimpleBioC/Collection.html">Collection</a> instance to process</p>
@@ -250,45 +342,45 @@ href="SimpleBioC/Collection.html">Collection</a> instance to process</p>
250
342
  <p><code>options</code> - (optional) additional options</p>
251
343
  </li></ul>
252
344
 
253
- <h4 id="method-i-to_xml-label-Options">Options<span><a href="#method-i-to_xml-label-Options">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
345
+ <h4 id="method-i-to_xml-label-Options">Options<span><a href="#method-i-to_xml-label-Options">&para;</a> <a href="#top">&uarr;</a></span></h4>
254
346
  <ul><li>
255
347
  <p><code>save_with</code> - SaveOption for Nokorigi. If you set this 0, output
256
348
  has no format (no indentation, no whitespace)</p>
257
349
  </li></ul>
258
350
 
259
- <h4 id="method-i-to_xml-label-Examples">Examples<span><a href="#method-i-to_xml-label-Examples">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
351
+ <h4 id="method-i-to_xml-label-Examples">Examples<span><a href="#method-i-to_xml-label-Examples">&para;</a> <a href="#top">&uarr;</a></span></h4>
260
352
 
261
- <pre>output = SimpleBioC.to_xml(collection)
262
- output = SimpleBioC.to_xml(collection, {save_with: 0})</pre>
353
+ <pre class="ruby"><span class="ruby-identifier">output</span> = <span class="ruby-constant">SimpleBioC</span>.<span class="ruby-identifier">to_xml</span>(<span class="ruby-identifier">collection</span>)
354
+ <span class="ruby-identifier">output</span> = <span class="ruby-constant">SimpleBioC</span>.<span class="ruby-identifier">to_xml</span>(<span class="ruby-identifier">collection</span>, {<span class="ruby-identifier">save_with</span><span class="ruby-operator">:</span> <span class="ruby-value">0</span>})
355
+ </pre>
263
356
 
264
357
 
265
358
 
266
359
 
267
360
  <div class="method-source-code" id="to_xml-source">
268
- <pre><span class="ruby-comment"># File lib/simple_bioc.rb, line 39</span>
361
+ <pre><span class="ruby-comment"># File lib/simple_bioc.rb, line 84</span>
269
362
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_xml</span>(<span class="ruby-identifier">collection</span>, <span class="ruby-identifier">options</span> = {})
270
363
  <span class="ruby-constant">BioCWriter</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">collection</span>, <span class="ruby-identifier">options</span>)
271
364
  <span class="ruby-keyword">end</span></pre>
272
- </div><!-- to_xml-source -->
365
+ </div>
273
366
 
274
367
  </div>
275
368
 
276
369
 
277
370
 
278
371
 
279
- </div><!-- to_xml-method -->
372
+ </div>
280
373
 
281
374
 
282
- </section><!-- public-instance-method-details -->
375
+ </section>
283
376
 
284
- </section><!-- 5Buntitled-5D -->
285
-
286
- </div><!-- documentation -->
377
+ </section>
378
+ </main>
287
379
 
288
380
 
289
- <footer id="validator-badges">
290
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
291
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
292
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
381
+ <footer id="validator-badges" role="contentinfo">
382
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
383
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
384
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
293
385
  </footer>
294
386
 
data/html/created.rid CHANGED
@@ -1,15 +1,16 @@
1
- Sat, 21 Dec 2013 09:10:44 -0800
2
- README.md Sat, 21 Dec 2013 09:10:35 -0800
3
- lib/simple_bioc.rb Sat, 21 Dec 2013 08:58:11 -0800
4
- lib/simple_bioc/annotation.rb Fri, 06 Dec 2013 20:52:11 -0800
5
- lib/simple_bioc/bioc_reader.rb Sat, 21 Dec 2013 08:39:36 -0800
6
- lib/simple_bioc/bioc_writer.rb Sat, 21 Dec 2013 08:09:06 -0800
7
- lib/simple_bioc/collection.rb Fri, 06 Dec 2013 20:52:11 -0800
8
- lib/simple_bioc/document.rb Fri, 06 Dec 2013 21:18:25 -0800
9
- lib/simple_bioc/location.rb Fri, 06 Dec 2013 20:52:11 -0800
10
- lib/simple_bioc/node.rb Fri, 06 Dec 2013 20:52:11 -0800
11
- lib/simple_bioc/node_base.rb Fri, 06 Dec 2013 22:06:00 -0800
12
- lib/simple_bioc/passage.rb Fri, 06 Dec 2013 20:52:11 -0800
13
- lib/simple_bioc/relation.rb Fri, 06 Dec 2013 20:52:11 -0800
14
- lib/simple_bioc/sentence.rb Fri, 06 Dec 2013 20:52:11 -0800
15
- lib/simple_bioc/version.rb Fri, 06 Dec 2013 22:06:07 -0800
1
+ Mon, 07 Dec 2015 16:11:08 +0900
2
+ README.md Thu, 11 Jun 2015 16:42:00 +0900
3
+ lib/simple_bioc.rb Sun, 06 Dec 2015 21:48:37 +0900
4
+ lib/simple_bioc/annotation.rb Thu, 11 Jun 2015 16:42:00 +0900
5
+ lib/simple_bioc/bioc_merger.rb Mon, 07 Dec 2015 15:53:30 +0900
6
+ lib/simple_bioc/bioc_reader.rb Sun, 06 Dec 2015 21:47:53 +0900
7
+ lib/simple_bioc/bioc_writer.rb Tue, 23 Jun 2015 05:02:37 +0900
8
+ lib/simple_bioc/collection.rb Sun, 06 Dec 2015 22:01:55 +0900
9
+ lib/simple_bioc/document.rb Mon, 07 Dec 2015 07:32:29 +0900
10
+ lib/simple_bioc/location.rb Thu, 11 Jun 2015 16:42:00 +0900
11
+ lib/simple_bioc/node.rb Thu, 11 Jun 2015 16:42:00 +0900
12
+ lib/simple_bioc/node_base.rb Thu, 11 Jun 2015 16:42:00 +0900
13
+ lib/simple_bioc/passage.rb Thu, 11 Jun 2015 16:42:00 +0900
14
+ lib/simple_bioc/relation.rb Mon, 07 Dec 2015 13:54:45 +0900
15
+ lib/simple_bioc/sentence.rb Thu, 11 Jun 2015 16:42:00 +0900
16
+ lib/simple_bioc/version.rb Tue, 23 Jun 2015 03:50:17 +0900