biointerchange 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. data/README.md +17 -0
  2. data/VERSION +1 -1
  3. data/generators/GOxrefify.rb +41 -0
  4. data/generators/rdfxml.rb +6 -4
  5. data/lib/biointerchange/core.rb +94 -20
  6. data/lib/biointerchange/genomics/gff3_feature_set.rb +11 -3
  7. data/lib/biointerchange/genomics/gff3_pragmas.rb +3 -3
  8. data/lib/biointerchange/genomics/gff3_rdf_ntriples.rb +217 -12
  9. data/lib/biointerchange/genomics/gff3_reader.rb +78 -20
  10. data/lib/biointerchange/genomics/gvf_reader.rb +9 -3
  11. data/lib/biointerchange/gff3o.rb +69 -55
  12. data/lib/biointerchange/goxref.rb +867 -0
  13. data/lib/biointerchange/gvf1o.rb +546 -82
  14. data/lib/biointerchange/textmining/text_mining_reader.rb +9 -0
  15. data/spec/gff3_rdfwriter_spec.rb +1 -1
  16. data/spec/gvf_rdfwriter_spec.rb +1 -1
  17. data/spec/text_mining_pdfx_xml_reader_spec.rb +3 -0
  18. data/spec/text_mining_pubannos_json_reader_spec.rb +4 -1
  19. data/supplemental/java/biointerchange/pom.xml +1 -1
  20. data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/GFF3O.java +93 -125
  21. data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/GVF1O.java +304 -205
  22. data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/SIO.java +4044 -4290
  23. data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/SOFA.java +3 -3
  24. data/supplemental/python/biointerchange/gff3o.py +1 -89
  25. data/supplemental/python/biointerchange/gvf1o.py +129 -147
  26. data/supplemental/python/biointerchange/sio.py +817 -46
  27. data/supplemental/python/biointerchange/sofa.py +543 -543
  28. data/supplemental/python/setup.py +1 -1
  29. data/web/ontologies.html +1 -3
  30. metadata +7 -2
@@ -24,7 +24,16 @@ class TMReader < BioInterchange::Reader
24
24
  def deserialize(inputstream)
25
25
  raise BioInterchange::Exceptions::ImplementationReaderError, 'InputStream not of type IO, cannot read.' unless inputstream.kind_of?(IO)
26
26
  end
27
+
28
+ # Returns true if the reading of the input was postponed due to a full batch.
29
+ # The current implementation does not support batch processing though, which
30
+ # means that this method always returns false.
31
+ def postponed?
32
+ false
33
+ end
27
34
 
35
+ protected
36
+
28
37
  # Automatically tries to determine a suitable process from the given name ID, which is assumed
29
38
  # to be either an email address or web-site.
30
39
  #
@@ -73,7 +73,7 @@ describe BioInterchange::Genomics::RDFWriter do
73
73
  object.sub!(/\s+\.$/, '')
74
74
  feature_no += 1 if predicate == "<#{RDF.type}>" and object == "<#{BioInterchange::GFF3O.Feature}>"
75
75
  }
76
- lines.count.should be == 43
76
+ lines.count.should be == 36
77
77
  feature_no.should be == 3
78
78
  end
79
79
  end
@@ -73,7 +73,7 @@ describe BioInterchange::Genomics::RDFWriter do
73
73
  object.sub!(/\s+\.$/, '')
74
74
  feature_no += 1 if predicate == "<#{RDF.type}>" and object == "<#{BioInterchange::GVF1O.Feature}>"
75
75
  }
76
- lines.count.should be == 43
76
+ lines.count.should be == 36
77
77
  feature_no.should be == 3
78
78
  end
79
79
  end
@@ -22,6 +22,9 @@ describe BioInterchange::TextMining::PdfxXmlReader do
22
22
  before :all do
23
23
  @reader = BioInterchange::TextMining::PdfxXmlReader.new("Test", "http://test.com", "00-00-0000", BioInterchange::TextMining::Process::UNSPECIFIED, "0.0")
24
24
  end
25
+ it 'reader is not postponed upon instantiation' do
26
+ @reader.postponed?.should eql false
27
+ end
25
28
  it 'read pdfx from string' do
26
29
  model = @reader.deserialize("<pdfx><job>text</job></pdfx>")
27
30
 
@@ -23,6 +23,9 @@ describe BioInterchange::TextMining::PubannosJsonReader do
23
23
  before :all do
24
24
  @reader = BioInterchange::TextMining::PubannosJsonReader.new("Test", "http://test.com", "00-00-0000", BioInterchange::TextMining::Process::UNSPECIFIED, "0.0")
25
25
  end
26
+ it 'reader is not postponed upon instantiation' do
27
+ @reader.postponed?.should eql false
28
+ end
26
29
  it 'read json from string' do
27
30
  model = @reader.deserialize('{"docurl":"http://example.org/test","text":""}')
28
31
 
@@ -48,7 +51,7 @@ describe BioInterchange::TextMining::PubannosJsonReader do
48
51
  @model = reader.deserialize('{ "name": "Peter Smith", "name_id": "<peter.smith@example.json>", "date": "2012-08-12", "version": "3", "docurl":"http://example.org/example_json", "text":"Some document text. With two annotations of type protein.\n", "catanns":[{"annset_id":1,"begin":0,"category":"Protein","doc_id":9,"end":10,"id":139},{"annset_id":1,"begin":20,"category":"Protein","doc_id":9,"end":42,"id":138}]}')
49
52
 
50
53
  end
51
-
54
+
52
55
  it 'model is of type document' do
53
56
  @model.should be_an_instance_of BioInterchange::TextMining::Document
54
57
  end
@@ -4,7 +4,7 @@
4
4
 
5
5
  <groupId>org.biointerchange</groupId>
6
6
  <artifactId>vocabularies</artifactId>
7
- <version>0.1.2</version>
7
+ <version>0.1.3</version>
8
8
  <packaging>jar</packaging>
9
9
 
10
10
  <name>BioInterchange Vocabularies</name>
@@ -22,7 +22,7 @@ public class GFF3O {
22
22
  * (http://www.biointerchange.org/gff3o#GFF3_0045)
23
23
  */
24
24
  public static Set<Resource> strand() {
25
- return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("GFF3_0010"), _namespace_GFF3O("GFF3_0045") }));
25
+ return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0010"), _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0045") }));
26
26
  }
27
27
 
28
28
  /**
@@ -30,7 +30,7 @@ public class GFF3O {
30
30
  * (http://www.biointerchange.org/gff3o#GFF3_0012)
31
31
  */
32
32
  public static Resource attributes() {
33
- return _namespace_GFF3O("GFF3_0012");
33
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0012");
34
34
  }
35
35
 
36
36
  /**
@@ -38,7 +38,7 @@ public class GFF3O {
38
38
  * (http://www.biointerchange.org/gff3o#GFF3_0014)
39
39
  */
40
40
  public static Resource parent() {
41
- return _namespace_GFF3O("GFF3_0014");
41
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0014");
42
42
  }
43
43
 
44
44
  /**
@@ -46,7 +46,7 @@ public class GFF3O {
46
46
  * (http://www.biointerchange.org/gff3o#GFF3_0015)
47
47
  */
48
48
  public static Resource contains() {
49
- return _namespace_GFF3O("GFF3_0015");
49
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0015");
50
50
  }
51
51
 
52
52
  /**
@@ -58,7 +58,7 @@ public class GFF3O {
58
58
  * (http://www.biointerchange.org/gff3o#GFF3_0050)
59
59
  */
60
60
  public static Set<Resource> region() {
61
- return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("GFF3_0021"), _namespace_GFF3O("GFF3_0050") }));
61
+ return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0021"), _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0050") }));
62
62
  }
63
63
 
64
64
  /**
@@ -66,7 +66,7 @@ public class GFF3O {
66
66
  * (http://www.biointerchange.org/gff3o#GFF3_0023)
67
67
  */
68
68
  public static Resource species() {
69
- return _namespace_GFF3O("GFF3_0023");
69
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0023");
70
70
  }
71
71
 
72
72
  /**
@@ -78,7 +78,7 @@ public class GFF3O {
78
78
  * (http://www.biointerchange.org/gff3o#GFF3_0027)
79
79
  */
80
80
  public static Set<Resource> set_properties() {
81
- return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("GFF3_0025"), _namespace_GFF3O("GFF3_0027") }));
81
+ return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0025"), _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0027") }));
82
82
  }
83
83
 
84
84
  /**
@@ -90,7 +90,7 @@ public class GFF3O {
90
90
  * (http://www.biointerchange.org/gff3o#GFF3_0028)
91
91
  */
92
92
  public static Set<Resource> feature_properties() {
93
- return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("GFF3_0026"), _namespace_GFF3O("GFF3_0028") }));
93
+ return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0026"), _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0028") }));
94
94
  }
95
95
 
96
96
  /**
@@ -98,7 +98,7 @@ public class GFF3O {
98
98
  * (http://www.biointerchange.org/gff3o#GFF3_0034)
99
99
  */
100
100
  public static Resource dbxref() {
101
- return _namespace_GFF3O("GFF3_0034");
101
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0034");
102
102
  }
103
103
 
104
104
  /**
@@ -106,7 +106,7 @@ public class GFF3O {
106
106
  * (http://www.biointerchange.org/gff3o#GFF3_0035)
107
107
  */
108
108
  public static Resource ontology_term() {
109
- return _namespace_GFF3O("GFF3_0035");
109
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0035");
110
110
  }
111
111
 
112
112
  /**
@@ -114,7 +114,7 @@ public class GFF3O {
114
114
  * (http://www.biointerchange.org/gff3o#GFF3_0039)
115
115
  */
116
116
  public static Resource target() {
117
- return _namespace_GFF3O("GFF3_0039");
117
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0039");
118
118
  }
119
119
 
120
120
  /**
@@ -126,7 +126,7 @@ public class GFF3O {
126
126
  * (http://www.biointerchange.org/gff3o#GFF3_0040)
127
127
  */
128
128
  public static Set<Resource> target_properties() {
129
- return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("GFF3_0044"), _namespace_GFF3O("GFF3_0040") }));
129
+ return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0044"), _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0040") }));
130
130
  }
131
131
 
132
132
  /**
@@ -134,7 +134,7 @@ public class GFF3O {
134
134
  * (http://www.biointerchange.org/gff3o#GFF3_0047)
135
135
  */
136
136
  public static Resource derives_from() {
137
- return _namespace_GFF3O("GFF3_0047");
137
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0047");
138
138
  }
139
139
 
140
140
  /**
@@ -142,7 +142,7 @@ public class GFF3O {
142
142
  * (http://www.biointerchange.org/gff3o#GFF3_0004)
143
143
  */
144
144
  public static Resource seqid() {
145
- return _namespace_GFF3O("GFF3_0004");
145
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0004");
146
146
  }
147
147
 
148
148
  /**
@@ -150,7 +150,7 @@ public class GFF3O {
150
150
  * (http://www.biointerchange.org/gff3o#GFF3_0005)
151
151
  */
152
152
  public static Resource source() {
153
- return _namespace_GFF3O("GFF3_0005");
153
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0005");
154
154
  }
155
155
 
156
156
  /**
@@ -158,7 +158,7 @@ public class GFF3O {
158
158
  * (http://www.biointerchange.org/gff3o#GFF3_0006)
159
159
  */
160
160
  public static Resource type() {
161
- return _namespace_GFF3O("GFF3_0006");
161
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0006");
162
162
  }
163
163
 
164
164
  /**
@@ -170,7 +170,7 @@ public class GFF3O {
170
170
  * (http://www.biointerchange.org/gff3o#GFF3_0042)
171
171
  */
172
172
  public static Set<Resource> start() {
173
- return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("GFF3_0007"), _namespace_GFF3O("GFF3_0042") }));
173
+ return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0007"), _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0042") }));
174
174
  }
175
175
 
176
176
  /**
@@ -182,7 +182,7 @@ public class GFF3O {
182
182
  * (http://www.biointerchange.org/gff3o#GFF3_0043)
183
183
  */
184
184
  public static Set<Resource> end() {
185
- return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("GFF3_0008"), _namespace_GFF3O("GFF3_0043") }));
185
+ return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0008"), _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0043") }));
186
186
  }
187
187
 
188
188
  /**
@@ -190,7 +190,7 @@ public class GFF3O {
190
190
  * (http://www.biointerchange.org/gff3o#GFF3_0009)
191
191
  */
192
192
  public static Resource score() {
193
- return _namespace_GFF3O("GFF3_0009");
193
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0009");
194
194
  }
195
195
 
196
196
  /**
@@ -198,7 +198,7 @@ public class GFF3O {
198
198
  * (http://www.biointerchange.org/gff3o#GFF3_0011)
199
199
  */
200
200
  public static Resource phase() {
201
- return _namespace_GFF3O("GFF3_0011");
201
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0011");
202
202
  }
203
203
 
204
204
  /**
@@ -206,7 +206,7 @@ public class GFF3O {
206
206
  * (http://www.biointerchange.org/gff3o#GFF3_0013)
207
207
  */
208
208
  public static Resource tag() {
209
- return _namespace_GFF3O("GFF3_0013");
209
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0013");
210
210
  }
211
211
 
212
212
  /**
@@ -214,7 +214,7 @@ public class GFF3O {
214
214
  * (http://www.biointerchange.org/gff3o#GFF3_0022)
215
215
  */
216
216
  public static Resource version() {
217
- return _namespace_GFF3O("GFF3_0022");
217
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0022");
218
218
  }
219
219
 
220
220
  /**
@@ -222,7 +222,7 @@ public class GFF3O {
222
222
  * (http://www.biointerchange.org/gff3o#GFF3_0024)
223
223
  */
224
224
  public static Resource build() {
225
- return _namespace_GFF3O("GFF3_0024");
225
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0024");
226
226
  }
227
227
 
228
228
  /**
@@ -230,7 +230,7 @@ public class GFF3O {
230
230
  * (http://www.biointerchange.org/gff3o#GFF3_0029)
231
231
  */
232
232
  public static Resource attribute_properties() {
233
- return _namespace_GFF3O("GFF3_0029");
233
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0029");
234
234
  }
235
235
 
236
236
  /**
@@ -238,7 +238,7 @@ public class GFF3O {
238
238
  * (http://www.biointerchange.org/gff3o#GFF3_0031)
239
239
  */
240
240
  public static Resource dbxref_properties() {
241
- return _namespace_GFF3O("GFF3_0031");
241
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0031");
242
242
  }
243
243
 
244
244
  /**
@@ -250,7 +250,7 @@ public class GFF3O {
250
250
  * (http://www.biointerchange.org/gff3o#GFF3_0036)
251
251
  */
252
252
  public static Set<Resource> name() {
253
- return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("GFF3_0032"), _namespace_GFF3O("GFF3_0036") }));
253
+ return new HashSet<Resource>(Arrays.asList(new Resource[] { _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0032"), _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0036") }));
254
254
  }
255
255
 
256
256
  /**
@@ -258,7 +258,7 @@ public class GFF3O {
258
258
  * (http://www.biointerchange.org/gff3o#GFF3_0033)
259
259
  */
260
260
  public static Resource xref() {
261
- return _namespace_GFF3O("GFF3_0033");
261
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0033");
262
262
  }
263
263
 
264
264
  /**
@@ -266,7 +266,7 @@ public class GFF3O {
266
266
  * (http://www.biointerchange.org/gff3o#GFF3_0037)
267
267
  */
268
268
  public static Resource alias() {
269
- return _namespace_GFF3O("GFF3_0037");
269
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0037");
270
270
  }
271
271
 
272
272
  /**
@@ -274,7 +274,7 @@ public class GFF3O {
274
274
  * (http://www.biointerchange.org/gff3o#GFF3_0041)
275
275
  */
276
276
  public static Resource target_id() {
277
- return _namespace_GFF3O("GFF3_0041");
277
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0041");
278
278
  }
279
279
 
280
280
  /**
@@ -282,7 +282,7 @@ public class GFF3O {
282
282
  * (http://www.biointerchange.org/gff3o#GFF3_0046)
283
283
  */
284
284
  public static Resource gap() {
285
- return _namespace_GFF3O("GFF3_0046");
285
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0046");
286
286
  }
287
287
 
288
288
  /**
@@ -290,7 +290,7 @@ public class GFF3O {
290
290
  * (http://www.biointerchange.org/gff3o#GFF3_0048)
291
291
  */
292
292
  public static Resource note() {
293
- return _namespace_GFF3O("GFF3_0048");
293
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0048");
294
294
  }
295
295
 
296
296
  /**
@@ -298,7 +298,7 @@ public class GFF3O {
298
298
  * (http://www.biointerchange.org/gff3o#GFF3_0049)
299
299
  */
300
300
  public static Resource is_circular() {
301
- return _namespace_GFF3O("GFF3_0049");
301
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0049");
302
302
  }
303
303
 
304
304
  /**
@@ -306,7 +306,7 @@ public class GFF3O {
306
306
  * (http://www.biointerchange.org/gff3o#GFF3_0001)
307
307
  */
308
308
  public static Resource Set() {
309
- return _namespace_GFF3O("GFF3_0001");
309
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0001");
310
310
  }
311
311
 
312
312
  /**
@@ -314,7 +314,7 @@ public class GFF3O {
314
314
  * (http://www.biointerchange.org/gff3o#GFF3_0002)
315
315
  */
316
316
  public static Resource Feature() {
317
- return _namespace_GFF3O("GFF3_0002");
317
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0002");
318
318
  }
319
319
 
320
320
  /**
@@ -322,7 +322,7 @@ public class GFF3O {
322
322
  * (http://www.biointerchange.org/gff3o#GFF3_0003)
323
323
  */
324
324
  public static Resource Attribute() {
325
- return _namespace_GFF3O("GFF3_0003");
325
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0003");
326
326
  }
327
327
 
328
328
  /**
@@ -330,7 +330,7 @@ public class GFF3O {
330
330
  * (http://www.biointerchange.org/gff3o#GFF3_0016)
331
331
  */
332
332
  public static Resource Strand() {
333
- return _namespace_GFF3O("GFF3_0016");
333
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0016");
334
334
  }
335
335
 
336
336
  /**
@@ -338,7 +338,7 @@ public class GFF3O {
338
338
  * (http://www.biointerchange.org/gff3o#GFF3_0030)
339
339
  */
340
340
  public static Resource DBXRef() {
341
- return _namespace_GFF3O("GFF3_0030");
341
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0030");
342
342
  }
343
343
 
344
344
  /**
@@ -346,7 +346,7 @@ public class GFF3O {
346
346
  * (http://www.biointerchange.org/gff3o#GFF3_0038)
347
347
  */
348
348
  public static Resource Target() {
349
- return _namespace_GFF3O("GFF3_0038");
349
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0038");
350
350
  }
351
351
 
352
352
  /**
@@ -354,7 +354,7 @@ public class GFF3O {
354
354
  * (http://www.biointerchange.org/gff3o#GFF3_0017)
355
355
  */
356
356
  public static Resource Positive() {
357
- return _namespace_GFF3O("GFF3_0017");
357
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0017");
358
358
  }
359
359
 
360
360
  /**
@@ -362,7 +362,7 @@ public class GFF3O {
362
362
  * (http://www.biointerchange.org/gff3o#GFF3_0018)
363
363
  */
364
364
  public static Resource Negative() {
365
- return _namespace_GFF3O("GFF3_0018");
365
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0018");
366
366
  }
367
367
 
368
368
  /**
@@ -370,7 +370,7 @@ public class GFF3O {
370
370
  * (http://www.biointerchange.org/gff3o#GFF3_0019)
371
371
  */
372
372
  public static Resource UnknownStrand() {
373
- return _namespace_GFF3O("GFF3_0019");
373
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0019");
374
374
  }
375
375
 
376
376
  /**
@@ -378,7 +378,7 @@ public class GFF3O {
378
378
  * (http://www.biointerchange.org/gff3o#GFF3_0020)
379
379
  */
380
380
  public static Resource NotStranded() {
381
- return _namespace_GFF3O("GFF3_0020");
381
+ return _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0020");
382
382
  }
383
383
 
384
384
  /**
@@ -387,49 +387,49 @@ public class GFF3O {
387
387
  * @param uri URI that is tested for being an object property
388
388
  */
389
389
  public static boolean isObjectProperty(Resource uri) {
390
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0010"))) {
390
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0010")) {
391
391
  return true;
392
392
  }
393
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0012"))) {
393
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0012")) {
394
394
  return true;
395
395
  }
396
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0014"))) {
396
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0014")) {
397
397
  return true;
398
398
  }
399
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0015"))) {
399
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0015")) {
400
400
  return true;
401
401
  }
402
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0021"))) {
402
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0021")) {
403
403
  return true;
404
404
  }
405
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0023"))) {
405
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0023")) {
406
406
  return true;
407
407
  }
408
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0025"))) {
408
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0025")) {
409
409
  return true;
410
410
  }
411
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0026"))) {
411
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0026")) {
412
412
  return true;
413
413
  }
414
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0034"))) {
414
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0034")) {
415
415
  return true;
416
416
  }
417
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0035"))) {
417
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0035")) {
418
418
  return true;
419
419
  }
420
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0039"))) {
420
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0039")) {
421
421
  return true;
422
422
  }
423
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0044"))) {
423
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0044")) {
424
424
  return true;
425
425
  }
426
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0045"))) {
426
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0045")) {
427
427
  return true;
428
428
  }
429
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0047"))) {
429
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0047")) {
430
430
  return true;
431
431
  }
432
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0050"))) {
432
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0050")) {
433
433
  return true;
434
434
  }
435
435
  return false;
@@ -441,79 +441,79 @@ public class GFF3O {
441
441
  * @param uri URI that is tested for being a datatype property
442
442
  */
443
443
  public static boolean isDatatypeProperty(Resource uri) {
444
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0004"))) {
444
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0004")) {
445
445
  return true;
446
446
  }
447
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0005"))) {
447
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0005")) {
448
448
  return true;
449
449
  }
450
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0006"))) {
450
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0006")) {
451
451
  return true;
452
452
  }
453
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0007"))) {
453
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0007")) {
454
454
  return true;
455
455
  }
456
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0008"))) {
456
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0008")) {
457
457
  return true;
458
458
  }
459
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0009"))) {
459
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0009")) {
460
460
  return true;
461
461
  }
462
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0011"))) {
462
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0011")) {
463
463
  return true;
464
464
  }
465
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0013"))) {
465
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0013")) {
466
466
  return true;
467
467
  }
468
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0022"))) {
468
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0022")) {
469
469
  return true;
470
470
  }
471
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0024"))) {
471
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0024")) {
472
472
  return true;
473
473
  }
474
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0027"))) {
474
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0027")) {
475
475
  return true;
476
476
  }
477
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0028"))) {
477
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0028")) {
478
478
  return true;
479
479
  }
480
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0029"))) {
480
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0029")) {
481
481
  return true;
482
482
  }
483
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0031"))) {
483
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0031")) {
484
484
  return true;
485
485
  }
486
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0032"))) {
486
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0032")) {
487
487
  return true;
488
488
  }
489
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0033"))) {
489
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0033")) {
490
490
  return true;
491
491
  }
492
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0036"))) {
492
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0036")) {
493
493
  return true;
494
494
  }
495
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0037"))) {
495
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0037")) {
496
496
  return true;
497
497
  }
498
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0040"))) {
498
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0040")) {
499
499
  return true;
500
500
  }
501
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0041"))) {
501
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0041")) {
502
502
  return true;
503
503
  }
504
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0042"))) {
504
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0042")) {
505
505
  return true;
506
506
  }
507
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0043"))) {
507
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0043")) {
508
508
  return true;
509
509
  }
510
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0046"))) {
510
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0046")) {
511
511
  return true;
512
512
  }
513
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0048"))) {
513
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0048")) {
514
514
  return true;
515
515
  }
516
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0049"))) {
516
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0049")) {
517
517
  return true;
518
518
  }
519
519
  return false;
@@ -525,22 +525,22 @@ public class GFF3O {
525
525
  * @param uri URI that is tested for being a class
526
526
  */
527
527
  public static boolean isClass(Resource uri) {
528
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0001"))) {
528
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0001")) {
529
529
  return true;
530
530
  }
531
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0002"))) {
531
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0002")) {
532
532
  return true;
533
533
  }
534
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0003"))) {
534
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0003")) {
535
535
  return true;
536
536
  }
537
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0016"))) {
537
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0016")) {
538
538
  return true;
539
539
  }
540
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0030"))) {
540
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0030")) {
541
541
  return true;
542
542
  }
543
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0038"))) {
543
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0038")) {
544
544
  return true;
545
545
  }
546
546
  return false;
@@ -552,16 +552,16 @@ public class GFF3O {
552
552
  * @param uri URI that is tested for being a named individual
553
553
  */
554
554
  public static boolean isNamedIndividual(Resource uri) {
555
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0017"))) {
555
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0017")) {
556
556
  return true;
557
557
  }
558
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0018"))) {
558
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0018")) {
559
559
  return true;
560
560
  }
561
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0019"))) {
561
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0019")) {
562
562
  return true;
563
563
  }
564
- if (uri.equals(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0020"))) {
564
+ if (uri == _namespace_GFF3O("http://www.biointerchange.org/gff3o#GFF3_0020")) {
565
565
  return true;
566
566
  }
567
567
  return false;
@@ -585,7 +585,7 @@ public class GFF3O {
585
585
  */
586
586
  public static boolean hasParent(Resource uri, Resource parent) {
587
587
  if (__parent_properties.containsKey(uri)) {
588
- if (__parent_properties.get(uri).equals(parent)) {
588
+ if (__parent_properties.get(uri) == parent) {
589
589
  return true;
590
590
  }
591
591
  return hasParent((Resource)__parent_properties.get(uri), parent);
@@ -607,38 +607,6 @@ public class GFF3O {
607
607
  private static Map<Resource, Resource> _init___parent_properties() {
608
608
  Map<Resource, Resource> map = new HashMap<Resource, Resource>();
609
609
 
610
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0046"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0028"));
611
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0024"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0027"));
612
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0013"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0029"));
613
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0035"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0026"));
614
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0036"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0028"));
615
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0047"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0026"));
616
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0014"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0026"));
617
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0048"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0028"));
618
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0037"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0028"));
619
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0004"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0028"));
620
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0015"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0025"));
621
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0049"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0028"));
622
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0005"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0028"));
623
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0006"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0028"));
624
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0050"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0044"));
625
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0039"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0026"));
626
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0007"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0028"));
627
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0041"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0040"));
628
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0008"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0028"));
629
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0042"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0040"));
630
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0009"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0028"));
631
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0043"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0040"));
632
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0032"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0031"));
633
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0021"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0025"));
634
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0010"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0026"));
635
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0033"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0031"));
636
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0022"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0027"));
637
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0011"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0028"));
638
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0045"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0044"));
639
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0034"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0026"));
640
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0023"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0025"));
641
- map.put(ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0012"), ResourceFactory.createResource("http://www.biointerchange.org/gff3o#GFF3_0026"));
642
610
 
643
611
  return map;
644
612
  }