biointerchange 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -4
  3. data/Gemfile +2 -3
  4. data/README.md +36 -22
  5. data/VERSION +1 -1
  6. data/examples/Felis_catus.gvf.gz +0 -0
  7. data/examples/Felis_catus_incl_consequences.vcf.gz +0 -0
  8. data/generators/rdfxml.rb +1 -1
  9. data/generators/tsv2rubyclass.rb +31 -0
  10. data/lib/biointerchange/core.rb +17 -5
  11. data/lib/biointerchange/genomics/gff3_rdf_ntriples.rb +591 -137
  12. data/lib/biointerchange/genomics/gff3_reader.rb +16 -3
  13. data/lib/biointerchange/genomics/gvf_reader.rb +1 -1
  14. data/lib/biointerchange/genomics/vcf_feature.rb +46 -0
  15. data/lib/biointerchange/genomics/vcf_feature_set.rb +14 -0
  16. data/lib/biointerchange/genomics/vcf_reader.rb +238 -0
  17. data/lib/biointerchange/gfvo.rb +689 -553
  18. data/lib/biointerchange/life_science_registry.rb +3595 -0
  19. data/lib/biointerchange/textmining/text_mining_rdf_ntriples.rb +33 -35
  20. data/lib/biointerchange/writer.rb +11 -16
  21. data/make.sh +4 -0
  22. data/spec/exceptions_spec.rb +1 -7
  23. data/spec/gff3_rdfwriter_spec.rb +2 -16
  24. data/spec/gvf_rdfwriter_spec.rb +2 -19
  25. data/spec/phylogenetics_spec.rb +1 -13
  26. data/spec/text_mining_pdfx_xml_reader_spec.rb +1 -13
  27. data/spec/text_mining_pubannos_json_reader_spec.rb +1 -14
  28. data/spec/text_mining_rdfwriter_spec.rb +8 -19
  29. data/test.sh +4 -0
  30. data/web/about.html +10 -14
  31. data/web/api.html +11 -13
  32. data/web/bootstrap/css/bootstrap-theme.css +347 -0
  33. data/web/bootstrap/css/bootstrap-theme.css.map +1 -0
  34. data/web/bootstrap/css/bootstrap-theme.min.css +7 -0
  35. data/web/bootstrap/css/bootstrap.css +4764 -4603
  36. data/web/bootstrap/css/bootstrap.css.map +1 -0
  37. data/web/bootstrap/css/bootstrap.min.css +6 -8
  38. data/web/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  39. data/web/bootstrap/fonts/glyphicons-halflings-regular.svg +229 -0
  40. data/web/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  41. data/web/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  42. data/web/bootstrap/js/bootstrap.js +1372 -1448
  43. data/web/bootstrap/js/bootstrap.min.js +5 -5
  44. data/web/cli.html +14 -28
  45. data/web/index.html +15 -33
  46. data/web/ontologies.html +1089 -945
  47. data/web/webservices.html +12 -14
  48. metadata +24 -27
  49. data/lib/biointerchange/gff3o.rb +0 -525
  50. data/lib/biointerchange/gvf1o.rb +0 -1354
  51. data/web/bootstrap/css/bootstrap-responsive.css +0 -1040
  52. data/web/bootstrap/css/bootstrap-responsive.min.css +0 -9
  53. data/web/bootstrap/img/glyphicons-halflings-white.png +0 -0
  54. data/web/bootstrap/img/glyphicons-halflings.png +0 -0
data/web/webservices.html CHANGED
@@ -9,13 +9,13 @@
9
9
 
10
10
  <!-- Le styles -->
11
11
  <link href="bootstrap/css/bootstrap.css" rel="stylesheet">
12
+ <link href="bootstrap/css/bootstrapi-theme.min.css" rel="stylesheet">
12
13
  <style type="text/css">
13
14
  body {
14
15
  padding-top: 60px;
15
16
  padding-bottom: 40px;
16
17
  }
17
18
  </style>
18
- <link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
19
19
  <script src="bootstrap/js/jquery-1.8.1.min.js"></script>
20
20
 
21
21
  <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
@@ -29,26 +29,24 @@
29
29
 
30
30
  <body>
31
31
  <a href="https://github.com/BioInterchange/BioInterchange"><img style="z-index: 5000; position: fixed; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
32
+
32
33
  <div class="navbar navbar-inverse navbar-fixed-top">
33
- <div class="navbar-inner">
34
- <div class="container">
35
- <a class="brand" href="index.html">BioInterchange</a>
36
- <ul class="nav">
37
- <li><a href="cli.html">Shell Tool</a></li>
38
- <li class="active"><a href="webservices.html">Web-Services</a></li>
39
- <li><a href="api.html">API</a></li>
40
- <li><a href="ontologies.html">Ontologies</a></li>
41
- <li><a href="about.html">About</a></li>
42
- </ul>
43
- </div>
34
+ <div class="container-fluid">
35
+ <a class="navbar-brand" href="index.html">BioInterchange</a>
36
+ <ul class="nav navbar-nav">
37
+ <li><a href="cli.html">Shell Tool</a></li>
38
+ <li class="active"><a href="webservices.html">Web-Services</a></li>
39
+ <li><a href="api.html">API</a></li>
40
+ <li><a href="ontologies.html">Ontologies</a></li>
41
+ <li><a href="about.html">About</a></li>
42
+ </ul>
44
43
  </div>
45
44
  </div>
46
-
47
45
  <div class="container">
48
46
 
49
47
  <!-- Example row of columns -->
50
48
  <div class="row">
51
- <div class="span12">
49
+ <div class="col-md-12">
52
50
  <h1>Web-Services</h1>
53
51
  <p>Two query points to access BioInterchange are provided on the internet:
54
52
  <ol>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biointerchange
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joachim Baran
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-08-19 00:00:00.000000000 Z
15
+ date: 2014-10-27 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rdf
@@ -20,14 +20,14 @@ dependencies:
20
20
  requirements:
21
21
  - - '>='
22
22
  - !ruby/object:Gem::Version
23
- version: 0.3.4.1
23
+ version: 1.1.4.3
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - '>='
29
29
  - !ruby/object:Gem::Version
30
- version: 0.3.4.1
30
+ version: 1.1.4.3
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: json
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -62,14 +62,14 @@ dependencies:
62
62
  requirements:
63
63
  - - '>='
64
64
  - !ruby/object:Gem::Version
65
- version: 2.3.2
65
+ version: 2.3.6
66
66
  type: :runtime
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - '>='
71
71
  - !ruby/object:Gem::Version
72
- version: 2.3.2
72
+ version: 2.3.6
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: bio
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -126,20 +126,6 @@ dependencies:
126
126
  - - ~>
127
127
  - !ruby/object:Gem::Version
128
128
  version: 1.8.4
129
- - !ruby/object:Gem::Dependency
130
- name: bio
131
- requirement: !ruby/object:Gem::Requirement
132
- requirements:
133
- - - '>='
134
- - !ruby/object:Gem::Version
135
- version: 1.4.2
136
- type: :development
137
- prerelease: false
138
- version_requirements: !ruby/object:Gem::Requirement
139
- requirements:
140
- - - '>='
141
- - !ruby/object:Gem::Version
142
- version: 1.4.2
143
129
  - !ruby/object:Gem::Dependency
144
130
  name: rdoc
145
131
  requirement: !ruby/object:Gem::Requirement
@@ -174,6 +160,8 @@ files:
174
160
  - VERSION
175
161
  - bin/biointerchange
176
162
  - examples/BovineGenomeChrX.gff3.gz
163
+ - examples/Felis_catus.gvf.gz
164
+ - examples/Felis_catus_incl_consequences.vcf.gz
177
165
  - examples/ReaderModelWriterSequenceDiagram.graffle
178
166
  - examples/ReaderModelWriterSequenceDiagram.png
179
167
  - examples/Saccharomyces_cerevisiae_incl_consequences.gvf.gz
@@ -194,6 +182,7 @@ files:
194
182
  - generators/make_supplement_releases.rb
195
183
  - generators/pythonify.rb
196
184
  - generators/rdfxml.rb
185
+ - generators/tsv2rubyclass.rb
197
186
  - lib/biointerchange.rb
198
187
  - lib/biointerchange/cdao.rb
199
188
  - lib/biointerchange/core.rb
@@ -210,10 +199,12 @@ files:
210
199
  - lib/biointerchange/genomics/gvf_pragmas.rb
211
200
  - lib/biointerchange/genomics/gvf_reader.rb
212
201
  - lib/biointerchange/genomics/locations.rb
213
- - lib/biointerchange/gff3o.rb
202
+ - lib/biointerchange/genomics/vcf_feature.rb
203
+ - lib/biointerchange/genomics/vcf_feature_set.rb
204
+ - lib/biointerchange/genomics/vcf_reader.rb
214
205
  - lib/biointerchange/gfvo.rb
215
206
  - lib/biointerchange/goxref.rb
216
- - lib/biointerchange/gvf1o.rb
207
+ - lib/biointerchange/life_science_registry.rb
217
208
  - lib/biointerchange/model.rb
218
209
  - lib/biointerchange/phylogenetics/cdao_rdf_ntriples.rb
219
210
  - lib/biointerchange/phylogenetics/newick_reader.rb
@@ -232,6 +223,7 @@ files:
232
223
  - lib/biointerchange/textmining/text_mining_rdf_ntriples.rb
233
224
  - lib/biointerchange/textmining/text_mining_reader.rb
234
225
  - lib/biointerchange/writer.rb
226
+ - make.sh
235
227
  - spec/exceptions_spec.rb
236
228
  - spec/gff3_rdfwriter_spec.rb
237
229
  - spec/gvf_rdfwriter_spec.rb
@@ -262,15 +254,20 @@ files:
262
254
  - supplemental/python/biointerchange/sofa.py
263
255
  - supplemental/python/example.py
264
256
  - supplemental/python/setup.py
257
+ - test.sh
265
258
  - web/about.html
266
259
  - web/api.html
267
260
  - web/biointerchange.js
268
- - web/bootstrap/css/bootstrap-responsive.css
269
- - web/bootstrap/css/bootstrap-responsive.min.css
261
+ - web/bootstrap/css/bootstrap-theme.css
262
+ - web/bootstrap/css/bootstrap-theme.css.map
263
+ - web/bootstrap/css/bootstrap-theme.min.css
270
264
  - web/bootstrap/css/bootstrap.css
265
+ - web/bootstrap/css/bootstrap.css.map
271
266
  - web/bootstrap/css/bootstrap.min.css
272
- - web/bootstrap/img/glyphicons-halflings-white.png
273
- - web/bootstrap/img/glyphicons-halflings.png
267
+ - web/bootstrap/fonts/glyphicons-halflings-regular.eot
268
+ - web/bootstrap/fonts/glyphicons-halflings-regular.svg
269
+ - web/bootstrap/fonts/glyphicons-halflings-regular.ttf
270
+ - web/bootstrap/fonts/glyphicons-halflings-regular.woff
274
271
  - web/bootstrap/js/bootstrap.js
275
272
  - web/bootstrap/js/bootstrap.min.js
276
273
  - web/bootstrap/js/jquery-1.8.1.min.js
@@ -307,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
307
304
  version: '0'
308
305
  requirements: []
309
306
  rubyforge_project:
310
- rubygems_version: 2.0.5
307
+ rubygems_version: 2.0.3
311
308
  signing_key:
312
309
  specification_version: 4
313
310
  summary: An open source framework for transforming heterogeneous data formats into
@@ -1,525 +0,0 @@
1
- require 'rdf'
2
- module BioInterchange
3
-
4
- class GFF3O
5
-
6
- # Establishes the landmark (e.g. a chromosome) on which a feature is located.
7
- # (http://www.biointerchange.org/gff3o#GFF3_0004)
8
- def self.seqid
9
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0004')
10
- end
11
-
12
- # Either:
13
- # Strand of the feature.
14
- # (http://www.biointerchange.org/gff3o#GFF3_0010)
15
- # Or:
16
- # Strand of a target -- if applicable.
17
- # (http://www.biointerchange.org/gff3o#GFF3_0045)
18
- def self.strand
19
- return [ RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0010'), RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0045') ]
20
- end
21
-
22
- # Tag name/value pair attributes of a feature that are not covered by object-/data-properties of the ontology. Tags that are represented as object-/data-properties are: ID, Name, Alias, Parent, Target, Gap, Derives_from, Dbxref, Ontology_term, Ontology_term, or Is_circular
23
- # (http://www.biointerchange.org/gff3o#GFF3_0012)
24
- def self.attributes
25
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0012')
26
- end
27
-
28
- # Link out to the parent feature.
29
- # (http://www.biointerchange.org/gff3o#GFF3_0014)
30
- def self.parent
31
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0014')
32
- end
33
-
34
- # Relationship that describes which features belong to a feature set.
35
- # (http://www.biointerchange.org/gff3o#GFF3_0015)
36
- def self.contains
37
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0015')
38
- end
39
-
40
- # Either:
41
- # FALDO "Region" instance replacement for a feature's start, stop, strand properties.
42
- # (http://www.biointerchange.org/gff3o#GFF3_0021)
43
- # Or:
44
- # FALDO "Region" instance replacement for a target's start, stop, strand properties.
45
- # (http://www.biointerchange.org/gff3o#GFF3_0050)
46
- def self.region
47
- return [ RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0021'), RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0050') ]
48
- end
49
-
50
- # NCBI Taxonomy Ontology "NCBITaxon_1" (or sub-classes) instance that denotes the species for a feature set.
51
- # (http://www.biointerchange.org/gff3o#GFF3_0023)
52
- def self.species
53
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0023')
54
- end
55
-
56
- # Either:
57
- # Properties that are directly associated with Set class instances.
58
- # (http://www.biointerchange.org/gff3o#GFF3_0025)
59
- # Or:
60
- # Properties that are directly associated with Set class instances.
61
- # (http://www.biointerchange.org/gff3o#GFF3_0027)
62
- def self.set_properties
63
- return [ RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0025'), RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0027') ]
64
- end
65
-
66
- # Either:
67
- # Properties that are directly associated with Feature class instances.
68
- # (http://www.biointerchange.org/gff3o#GFF3_0026)
69
- # Or:
70
- # Properties that are directly associated with Feature class instances.
71
- # (http://www.biointerchange.org/gff3o#GFF3_0028)
72
- def self.feature_properties
73
- return [ RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0026'), RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') ]
74
- end
75
-
76
- # Identifies the target that the features aligns to.
77
- # (http://www.biointerchange.org/gff3o#GFF3_0039)
78
- def self.target
79
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0039')
80
- end
81
-
82
- # Either:
83
- # Properties that are directly associated with Target class instances.
84
- # (http://www.biointerchange.org/gff3o#GFF3_0044)
85
- # Or:
86
- # Properties that are directly associated with Target class instances.
87
- # (http://www.biointerchange.org/gff3o#GFF3_0040)
88
- def self.target_properties
89
- return [ RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0044'), RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0040') ]
90
- end
91
-
92
- # Describes a temporal relationship between two features, where the object denotes the subjects origin.
93
- # (http://www.biointerchange.org/gff3o#GFF3_0047)
94
- def self.derives_from
95
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0047')
96
- end
97
-
98
- # Explicit link-out to one or more ontologies that have been used for describing features. This is a meta comment about the URIs that link out to SO/SOFA or other ontologies.
99
- # (http://www.biointerchange.org/gff3o#GFF3_0056)
100
- def self.feature_ontology
101
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0056')
102
- end
103
-
104
- # A free text qualifier that describes the algorithm or operating procedure that generated this feature. For example, the name of the software that generated this feature or a database name.
105
- # (http://www.biointerchange.org/gff3o#GFF3_0005)
106
- def self.source
107
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0005')
108
- end
109
-
110
- # Type of the feature, which is either an entry the "lite" version of the Sequence Ontology (SOFA) or a child entry of sequence_feature (SO:0000110) of the full Sequence Ontology (SO).
111
- # (http://www.biointerchange.org/gff3o#GFF3_0006)
112
- def self.type
113
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0006')
114
- end
115
-
116
- # Either:
117
- # Start coordinate of the feature on the seqid landmark.
118
- # (http://www.biointerchange.org/gff3o#GFF3_0007)
119
- # Or:
120
- # Start coordinate of the target.
121
- # (http://www.biointerchange.org/gff3o#GFF3_0042)
122
- # Or:
123
- # Genomic start coordinate of the landmark.
124
- # (http://www.biointerchange.org/gff3o#GFF3_0054)
125
- def self.start
126
- return [ RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0007'), RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0042'), RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0054') ]
127
- end
128
-
129
- # Either:
130
- # End coordinate of the feature on the seqid landmark.
131
- # (http://www.biointerchange.org/gff3o#GFF3_0008)
132
- # Or:
133
- # End coordinate of the target.
134
- # (http://www.biointerchange.org/gff3o#GFF3_0043)
135
- # Or:
136
- # Genomic end coordinate of the landmark.
137
- # (http://www.biointerchange.org/gff3o#GFF3_0055)
138
- def self.end
139
- return [ RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0008'), RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0043'), RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0055') ]
140
- end
141
-
142
- # Score of the feature. For example, an E-value for sequence similarity features or a P-value for ab initio gene prediction features.
143
- # (http://www.biointerchange.org/gff3o#GFF3_0009)
144
- def self.score
145
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0009')
146
- end
147
-
148
- # Phase for "CDS" features. It indicates where the feature begins with reference to the reading frame. For forward strand features, phase is counted from the start field, whilst for reverse strand features, phase is counted from the end field.
149
- # (http://www.biointerchange.org/gff3o#GFF3_0011)
150
- def self.phase
151
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0011')
152
- end
153
-
154
- # Tag name of a feature attribute.
155
- # (http://www.biointerchange.org/gff3o#GFF3_0013)
156
- def self.tag
157
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0013')
158
- end
159
-
160
- # Version of the GFF3 specification that defines the feature set contents.
161
- # (http://www.biointerchange.org/gff3o#GFF3_0022)
162
- def self.version
163
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0022')
164
- end
165
-
166
- # Name of a genome assembly build that denotes the provenance of features in a feature set. For example, 'NCBI 36' or 'FlyBase r4.1'.
167
- # (http://www.biointerchange.org/gff3o#GFF3_0024)
168
- def self.build
169
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0024')
170
- end
171
-
172
- # Properties that are directly associated with Attribute class instances.
173
- # (http://www.biointerchange.org/gff3o#GFF3_0029)
174
- def self.attribute_properties
175
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0029')
176
- end
177
-
178
- # A database cross-reference to associate a sequence alteration to its representation in another database.
179
- # (http://www.biointerchange.org/gff3o#GFF3_0034)
180
- def self.dbxref
181
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0034')
182
- end
183
-
184
- # A cross-reference to an ontology term that is associated with a feature.
185
- # (http://www.biointerchange.org/gff3o#GFF3_0035)
186
- def self.ontology_term
187
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0035')
188
- end
189
-
190
- # Name of a feature, which can be used for display purposes. The name is not a unique property among features.
191
- # (http://www.biointerchange.org/gff3o#GFF3_0036)
192
- def self.name
193
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0036')
194
- end
195
-
196
- # An alternative name for a feature. This can be another descriptive name of a feature, such as a locus name or accession number.
197
- # (http://www.biointerchange.org/gff3o#GFF3_0037)
198
- def self.alias
199
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0037')
200
- end
201
-
202
- # ID or accession of the target alignment.
203
- # (http://www.biointerchange.org/gff3o#GFF3_0041)
204
- def self.target_id
205
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0041')
206
- end
207
-
208
- # Gap describing the feature/target alignment if the sequences are not collinear. The formal description of this property has been lost due to a dead link in the GFF3 specification.
209
- # (http://www.biointerchange.org/gff3o#GFF3_0046)
210
- def self.gap
211
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0046')
212
- end
213
-
214
- # A free text note.
215
- # (http://www.biointerchange.org/gff3o#GFF3_0048)
216
- def self.note
217
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0048')
218
- end
219
-
220
- # Describes whether a feature is circular or not.
221
- # (http://www.biointerchange.org/gff3o#GFF3_0049)
222
- def self.is_circular
223
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0049')
224
- end
225
-
226
- # Properties that are directly associated with Landmark class instances.
227
- # (http://www.biointerchange.org/gff3o#GFF3_0052)
228
- def self.landmark_properties
229
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0052')
230
- end
231
-
232
- # ID that uniquely establishes the Landmark's identity within a Set.
233
- # (http://www.biointerchange.org/gff3o#GFF3_0053)
234
- def self.id
235
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0053')
236
- end
237
-
238
- # Either:
239
- # Sequence associated with this feature, if it has been specified using a FASTA string.
240
- # (http://www.biointerchange.org/gff3o#GFF3_0057)
241
- # Or:
242
- # Sequence associated with this feature, if it has been specified using a FASTA string.
243
- # (http://www.biointerchange.org/gff3o#GFF3_0058)
244
- def self.sequence
245
- return [ RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0057'), RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0058') ]
246
- end
247
-
248
- # Set of genomic sequence features, whose identifiers are unique within the set.
249
- # (http://www.biointerchange.org/gff3o#GFF3_0001)
250
- def self.Set
251
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0001')
252
- end
253
-
254
- # A genomic sequence feature.
255
- # (http://www.biointerchange.org/gff3o#GFF3_0002)
256
- def self.Feature
257
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0002')
258
- end
259
-
260
- # Describes additional feature attributes besides ID, Name, Alias, Parent, Target, Gap, Derives_from, Dbxref, Ontology_term, Ontology_term, or Is_circular.
261
- # (http://www.biointerchange.org/gff3o#GFF3_0003)
262
- def self.Attribute
263
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0003')
264
- end
265
-
266
- # Class describing a genomic strand. Instances of the class (individuals) are used to denote forward-/reverse-strands, etc.
267
- # (http://www.biointerchange.org/gff3o#GFF3_0016)
268
- def self.Strand
269
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0016')
270
- end
271
-
272
- # Indicates a feature's "target" of a nucleotide-to-nucleotide or protein-to-nucleotide alignment.
273
- # (http://www.biointerchange.org/gff3o#GFF3_0038)
274
- def self.Target
275
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0038')
276
- end
277
-
278
- # A landmark that establishes the coordinate system for features.
279
- # (http://www.biointerchange.org/gff3o#GFF3_0051)
280
- def self.Landmark
281
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0051')
282
- end
283
-
284
- # Location on the positive (forward) strand.
285
- # (http://www.biointerchange.org/gff3o#GFF3_0017)
286
- def self.Positive
287
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0017')
288
- end
289
-
290
- # Location on the negative (reverse) strand.
291
- # (http://www.biointerchange.org/gff3o#GFF3_0018)
292
- def self.Negative
293
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0018')
294
- end
295
-
296
- # Strand was not determined, which leaves it open whether the location is on the positive (forward) or negative (reverse) strand.
297
- # (http://www.biointerchange.org/gff3o#GFF3_0019)
298
- def self.UnknownStrand
299
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0019')
300
- end
301
-
302
- # Strand is not applicable.
303
- # (http://www.biointerchange.org/gff3o#GFF3_0020)
304
- def self.NotStranded
305
- return RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0020')
306
- end
307
-
308
- # Determines whether the given URI is an object property.
309
- #
310
- # +uri+:: URI that is tested for being an object property
311
- def self.is_object_property?(uri)
312
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0004') then
313
- return true
314
- end
315
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0010') then
316
- return true
317
- end
318
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0012') then
319
- return true
320
- end
321
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0014') then
322
- return true
323
- end
324
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0015') then
325
- return true
326
- end
327
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0021') then
328
- return true
329
- end
330
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0023') then
331
- return true
332
- end
333
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0025') then
334
- return true
335
- end
336
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0026') then
337
- return true
338
- end
339
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0039') then
340
- return true
341
- end
342
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0044') then
343
- return true
344
- end
345
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0045') then
346
- return true
347
- end
348
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0047') then
349
- return true
350
- end
351
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0050') then
352
- return true
353
- end
354
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0056') then
355
- return true
356
- end
357
- return false
358
- end
359
-
360
- # Determines whether the given URI is a datatype property.
361
- #
362
- # +uri+:: URI that is tested for being a datatype property
363
- def self.is_datatype_property?(uri)
364
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0005') then
365
- return true
366
- end
367
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0006') then
368
- return true
369
- end
370
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0007') then
371
- return true
372
- end
373
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0008') then
374
- return true
375
- end
376
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0009') then
377
- return true
378
- end
379
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0011') then
380
- return true
381
- end
382
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0013') then
383
- return true
384
- end
385
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0022') then
386
- return true
387
- end
388
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0024') then
389
- return true
390
- end
391
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0027') then
392
- return true
393
- end
394
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') then
395
- return true
396
- end
397
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0029') then
398
- return true
399
- end
400
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0034') then
401
- return true
402
- end
403
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0035') then
404
- return true
405
- end
406
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0036') then
407
- return true
408
- end
409
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0037') then
410
- return true
411
- end
412
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0040') then
413
- return true
414
- end
415
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0041') then
416
- return true
417
- end
418
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0042') then
419
- return true
420
- end
421
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0043') then
422
- return true
423
- end
424
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0046') then
425
- return true
426
- end
427
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0048') then
428
- return true
429
- end
430
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0049') then
431
- return true
432
- end
433
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0052') then
434
- return true
435
- end
436
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0053') then
437
- return true
438
- end
439
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0054') then
440
- return true
441
- end
442
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0055') then
443
- return true
444
- end
445
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0057') then
446
- return true
447
- end
448
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0058') then
449
- return true
450
- end
451
- return false
452
- end
453
-
454
- # Determines whether the given URI is a class.
455
- #
456
- # +uri+:: URI that is tested for being a class
457
- def self.is_class?(uri)
458
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0001') then
459
- return true
460
- end
461
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0002') then
462
- return true
463
- end
464
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0003') then
465
- return true
466
- end
467
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0016') then
468
- return true
469
- end
470
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0038') then
471
- return true
472
- end
473
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0051') then
474
- return true
475
- end
476
- return false
477
- end
478
-
479
- # Determines whether the given URI is a named individual.
480
- #
481
- # +uri+:: URI that is tested for being a named individual
482
- def self.is_named_individual?(uri)
483
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0017') then
484
- return true
485
- end
486
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0018') then
487
- return true
488
- end
489
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0019') then
490
- return true
491
- end
492
- if uri == RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0020') then
493
- return true
494
- end
495
- return false
496
- end
497
-
498
- # Returns only those URIs that fall under a designated parent URI.
499
- #
500
- # +uris+:: Set of URIs that are tested whether they have the given parent URI.
501
- # +parent+:: Parent URI.
502
- def self.with_parent(uris, parent)
503
- return uris.select { |uri| has_parent?(uri, parent) }
504
- end
505
-
506
- # Recursively tries to determine the parent for a given URI.
507
- #
508
- # +uri+:: URI that is tested for whether it has the given parent URI.
509
- # +parent+:: Parent URI.
510
- def self.has_parent?(uri, parent)
511
- if @@parent_properties.has_key?(uri) then
512
- if @@parent_properties[uri] == parent then
513
- return true
514
- end
515
- return has_parent?(@@parent_properties[uri], parent)
516
- end
517
- return false
518
- end
519
-
520
- private
521
- @@parent_properties = { RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0004') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0026') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0010') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0026') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0012') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0026') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0014') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0026') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0015') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0025') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0021') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0026') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0023') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0025') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0039') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0026') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0045') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0044') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0047') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0026') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0050') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0044') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0056') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0025') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0005') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0006') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0007') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0008') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0009') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0011') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0013') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0029') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0022') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0027') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0024') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0027') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0034') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0035') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0036') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0037') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0041') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0040') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0042') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0040') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0043') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0040') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0046') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0048') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0049') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0053') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0052') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0054') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0052') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0055') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0052') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0057') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0028') , RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0058') => RDF::URI.new('http://www.biointerchange.org/gff3o#GFF3_0052') }
522
-
523
- end
524
-
525
- end