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
@@ -2,138 +2,92 @@
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>class SimpleBioC::Location - 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="class">
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="class">
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/location.rb
53
- </ul>
54
- </nav>
55
-
56
-
57
- </div>
58
-
59
55
  <div id="class-metadata">
60
56
 
61
- <nav id="parent-class-section" class="section">
62
- <h3 class="section-header">Parent</h3>
57
+ <div id="parent-class-section" class="nav-section">
58
+ <h3>Parent</h3>
59
+
63
60
 
64
61
  <p class="link">Object
65
62
 
66
- </nav>
63
+ </div>
67
64
 
68
65
 
69
66
 
70
67
  <!-- Method Quickref -->
71
- <nav id="method-list-section" class="section">
72
- <h3 class="section-header">Methods</h3>
68
+ <div id="method-list-section" class="nav-section">
69
+ <h3>Methods</h3>
73
70
 
74
- <ul class="link-list">
71
+ <ul class="link-list" role="directory">
75
72
 
76
73
  <li ><a href="#method-c-new">::new</a>
77
74
 
78
75
  <li ><a href="#method-i-to_s">#to_s</a>
79
76
 
80
77
  </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>
78
+ </div>
127
79
 
128
80
  </div>
129
81
  </nav>
130
82
 
131
- <div id="documentation">
132
- <h1 class="class">class SimpleBioC::Location</h1>
83
+ <main role="main" aria-labelledby="class-SimpleBioC::Location">
84
+ <h1 id="class-SimpleBioC::Location" class="class">
85
+ class SimpleBioC::Location
86
+ </h1>
133
87
 
134
- <div id="description" class="description">
88
+ <section class="description">
135
89
 
136
- </div><!-- description -->
90
+ </section>
137
91
 
138
92
 
139
93
 
@@ -146,9 +100,10 @@
146
100
 
147
101
 
148
102
 
149
- <!-- Attributes -->
150
- <section id="attribute-method-details" class="method-section section">
151
- <h3 class="section-header">Attributes</h3>
103
+ <section class="attribute-method-details" class="method-section">
104
+ <header>
105
+ <h3>Attributes</h3>
106
+ </header>
152
107
 
153
108
 
154
109
  <div id="attribute-i-annotation" class="method-detail">
@@ -190,13 +145,14 @@
190
145
  </div>
191
146
  </div>
192
147
 
193
- </section><!-- attribute-method-details -->
148
+ </section>
194
149
 
195
150
 
196
- <!-- Methods -->
197
151
 
198
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
199
- <h3 class="section-header">Public Class Methods</h3>
152
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
153
+ <header>
154
+ <h3>Public Class Methods</h3>
155
+ </header>
200
156
 
201
157
 
202
158
  <div id="method-c-new" class="method-detail ">
@@ -224,20 +180,22 @@
224
180
  <span class="ruby-ivar">@locations</span> = []
225
181
  <span class="ruby-ivar">@annotation</span> = <span class="ruby-identifier">parent</span>
226
182
  <span class="ruby-keyword">end</span></pre>
227
- </div><!-- new-source -->
183
+ </div>
228
184
 
229
185
  </div>
230
186
 
231
187
 
232
188
 
233
189
 
234
- </div><!-- new-method -->
190
+ </div>
235
191
 
236
192
 
237
- </section><!-- public-class-method-details -->
193
+ </section>
238
194
 
239
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
240
- <h3 class="section-header">Public Instance Methods</h3>
195
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
196
+ <header>
197
+ <h3>Public Instance Methods</h3>
198
+ </header>
241
199
 
242
200
 
243
201
  <div id="method-i-to_s" class="method-detail ">
@@ -263,26 +221,25 @@
263
221
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
264
222
  <span class="ruby-node">&quot;Location @#{offset}:#{length}&quot;</span>
265
223
  <span class="ruby-keyword">end</span></pre>
266
- </div><!-- to_s-source -->
224
+ </div>
267
225
 
268
226
  </div>
269
227
 
270
228
 
271
229
 
272
230
 
273
- </div><!-- to_s-method -->
231
+ </div>
274
232
 
275
233
 
276
- </section><!-- public-instance-method-details -->
234
+ </section>
277
235
 
278
- </section><!-- 5Buntitled-5D -->
279
-
280
- </div><!-- documentation -->
236
+ </section>
237
+ </main>
281
238
 
282
239
 
283
- <footer id="validator-badges">
284
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
285
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
286
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
240
+ <footer id="validator-badges" role="contentinfo">
241
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
242
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
243
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
287
244
  </footer>
288
245
 
@@ -2,76 +2,73 @@
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>class SimpleBioC::Node - 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
+
19
+
21
20
 
21
+ <body id="top" role="document" class="class">
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>
22
28
 
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>
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/node.rb
53
- </ul>
54
- </nav>
55
-
56
-
57
- </div>
58
-
59
55
  <div id="class-metadata">
60
56
 
61
- <nav id="parent-class-section" class="section">
62
- <h3 class="section-header">Parent</h3>
57
+ <div id="parent-class-section" class="nav-section">
58
+ <h3>Parent</h3>
59
+
63
60
 
64
61
  <p class="link">Object
65
62
 
66
- </nav>
63
+ </div>
67
64
 
68
65
 
69
66
 
70
67
  <!-- Method Quickref -->
71
- <nav id="method-list-section" class="section">
72
- <h3 class="section-header">Methods</h3>
68
+ <div id="method-list-section" class="nav-section">
69
+ <h3>Methods</h3>
73
70
 
74
- <ul class="link-list">
71
+ <ul class="link-list" role="directory">
75
72
 
76
73
  <li ><a href="#method-c-new">::new</a>
77
74
 
@@ -80,62 +77,19 @@
80
77
  <li ><a href="#method-i-to_c">#to_c</a>
81
78
 
82
79
  </ul>
83
- </nav>
80
+ </div>
84
81
 
85
82
  </div>
86
-
87
- <div id="project-metadata">
88
- <nav id="fileindex-section" class="section project-section">
89
- <h3 class="section-header">Pages</h3>
90
-
91
- <ul>
92
-
93
- <li class="file"><a href="../README_md.html">README</a>
94
-
95
- </ul>
96
83
  </nav>
97
84
 
98
- <nav id="classindex-section" class="section project-section">
99
- <h3 class="section-header">Class and Module Index</h3>
85
+ <main role="main" aria-labelledby="class-SimpleBioC::Node">
86
+ <h1 id="class-SimpleBioC::Node" class="class">
87
+ class SimpleBioC::Node
88
+ </h1>
100
89
 
101
- <ul class="link-list">
102
-
103
- <li><a href="../BioCReader.html">BioCReader</a>
104
-
105
- <li><a href="../BioCWriter.html">BioCWriter</a>
106
-
107
- <li><a href="../SimpleBioC.html">SimpleBioC</a>
108
-
109
- <li><a href="../SimpleBioC/Annotation.html">SimpleBioC::Annotation</a>
110
-
111
- <li><a href="../SimpleBioC/Collection.html">SimpleBioC::Collection</a>
112
-
113
- <li><a href="../SimpleBioC/Document.html">SimpleBioC::Document</a>
114
-
115
- <li><a href="../SimpleBioC/Location.html">SimpleBioC::Location</a>
116
-
117
- <li><a href="../SimpleBioC/Node.html">SimpleBioC::Node</a>
118
-
119
- <li><a href="../SimpleBioC/NodeBase.html">SimpleBioC::NodeBase</a>
120
-
121
- <li><a href="../SimpleBioC/Passage.html">SimpleBioC::Passage</a>
122
-
123
- <li><a href="../SimpleBioC/Relation.html">SimpleBioC::Relation</a>
124
-
125
- <li><a href="../SimpleBioC/Sentence.html">SimpleBioC::Sentence</a>
126
-
127
- </ul>
128
- </nav>
129
-
130
- </div>
131
- </nav>
132
-
133
- <div id="documentation">
134
- <h1 class="class">class SimpleBioC::Node</h1>
135
-
136
- <div id="description" class="description">
90
+ <section class="description">
137
91
 
138
- </div><!-- description -->
92
+ </section>
139
93
 
140
94
 
141
95
 
@@ -148,9 +102,10 @@
148
102
 
149
103
 
150
104
 
151
- <!-- Attributes -->
152
- <section id="attribute-method-details" class="method-section section">
153
- <h3 class="section-header">Attributes</h3>
105
+ <section class="attribute-method-details" class="method-section">
106
+ <header>
107
+ <h3>Attributes</h3>
108
+ </header>
154
109
 
155
110
 
156
111
  <div id="attribute-i-ref" class="method-detail">
@@ -205,13 +160,14 @@
205
160
  </div>
206
161
  </div>
207
162
 
208
- </section><!-- attribute-method-details -->
163
+ </section>
209
164
 
210
165
 
211
- <!-- Methods -->
212
166
 
213
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
214
- <h3 class="section-header">Public Class Methods</h3>
167
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
168
+ <header>
169
+ <h3>Public Class Methods</h3>
170
+ </header>
215
171
 
216
172
 
217
173
  <div id="method-c-new" class="method-detail ">
@@ -237,20 +193,22 @@
237
193
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">parent</span>)
238
194
  <span class="ruby-ivar">@relation</span> = <span class="ruby-identifier">parent</span>
239
195
  <span class="ruby-keyword">end</span></pre>
240
- </div><!-- new-source -->
196
+ </div>
241
197
 
242
198
  </div>
243
199
 
244
200
 
245
201
 
246
202
 
247
- </div><!-- new-method -->
203
+ </div>
248
204
 
249
205
 
250
- </section><!-- public-class-method-details -->
206
+ </section>
251
207
 
252
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
253
- <h3 class="section-header">Public Instance Methods</h3>
208
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
209
+ <header>
210
+ <h3>Public Instance Methods</h3>
211
+ </header>
254
212
 
255
213
 
256
214
  <div id="method-i-adjust_ref" class="method-detail ">
@@ -276,14 +234,14 @@
276
234
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">adjust_ref</span>
277
235
  <span class="ruby-ivar">@ref</span> = <span class="ruby-identifier">relation</span>.<span class="ruby-identifier">document</span>.<span class="ruby-identifier">find_node</span>(<span class="ruby-identifier">refid</span>)
278
236
  <span class="ruby-keyword">end</span></pre>
279
- </div><!-- adjust_ref-source -->
237
+ </div>
280
238
 
281
239
  </div>
282
240
 
283
241
 
284
242
 
285
243
 
286
- </div><!-- adjust_ref-method -->
244
+ </div>
287
245
 
288
246
 
289
247
  <div id="method-i-to_c" class="method-detail ">
@@ -309,26 +267,25 @@
309
267
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_c</span>
310
268
  <span class="ruby-node">&quot;Node @#{refid}: #{role})&quot;</span>
311
269
  <span class="ruby-keyword">end</span></pre>
312
- </div><!-- to_c-source -->
270
+ </div>
313
271
 
314
272
  </div>
315
273
 
316
274
 
317
275
 
318
276
 
319
- </div><!-- to_c-method -->
277
+ </div>
320
278
 
321
279
 
322
- </section><!-- public-instance-method-details -->
280
+ </section>
323
281
 
324
- </section><!-- 5Buntitled-5D -->
325
-
326
- </div><!-- documentation -->
282
+ </section>
283
+ </main>
327
284
 
328
285
 
329
- <footer id="validator-badges">
330
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
331
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
332
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
286
+ <footer id="validator-badges" role="contentinfo">
287
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
288
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
289
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
333
290
  </footer>
334
291