bio-nexml 0.0.1 → 0.1.0

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.
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 rvosa
1
+ Copyright (c) 2011 Rutger Vos and Anurag Priyam
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -25,6 +25,12 @@ semantics) that is both easy to work with, yet ready for the Semantic Web.
25
25
 
26
26
  To learn more, visit http://www.nexml.org
27
27
 
28
+ == Getting Started
29
+
30
+ https://www.nescent.org/wg_phyloinformatics/NeXML_and_RDF_API_for_BioRuby
31
+
32
+ It is not complete, but definitely enough to get started.
33
+
28
34
  == Contributing to bio-nexml
29
35
 
30
36
  * Check out the latest master to make sure the feature hasn't been implemented
@@ -0,0 +1,2 @@
1
+ require 'bio'
2
+ require 'bio/db/nexml'
metadata CHANGED
@@ -1,87 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-nexml
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- version: 0.0.1
9
+ - 0
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
- - rvosa
13
+ - Rutger Vos
14
+ - Anurag Priyam
14
15
  autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-03-01 00:00:00 +01:00
19
- default_executable:
19
+ date: 2011-08-15 00:00:00 Z
20
20
  dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: shoulda
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
33
- type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: bundler
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 23
44
- segments:
45
- - 1
46
- - 0
47
- - 0
48
- version: 1.0.0
49
- type: :development
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: jeweler
53
- prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 7
60
- segments:
61
- - 1
62
- - 5
63
- - 2
64
- version: 1.5.2
65
- type: :development
66
- version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
68
- name: rcov
69
- prerelease: false
70
- requirement: &id004 !ruby/object:Gem::Requirement
71
- none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
- version: "0"
79
- type: :development
80
- version_requirements: *id004
81
21
  - !ruby/object:Gem::Dependency
82
22
  name: bio
83
23
  prerelease: false
84
- requirement: &id005 !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
85
25
  none: false
86
26
  requirements:
87
27
  - - ">="
@@ -92,12 +32,12 @@ dependencies:
92
32
  - 4
93
33
  - 1
94
34
  version: 1.4.1
95
- type: :development
96
- version_requirements: *id005
35
+ type: :runtime
36
+ version_requirements: *id001
97
37
  - !ruby/object:Gem::Dependency
98
38
  name: libxml-ruby
99
39
  prerelease: false
100
- requirement: &id006 !ruby/object:Gem::Requirement
40
+ requirement: &id002 !ruby/object:Gem::Requirement
101
41
  none: false
102
42
  requirements:
103
43
  - - ">="
@@ -108,76 +48,32 @@ dependencies:
108
48
  - 1
109
49
  - 4
110
50
  version: 1.1.4
111
- type: :development
112
- version_requirements: *id006
113
- - !ruby/object:Gem::Dependency
114
- name: libxml-ruby
115
- prerelease: false
116
- requirement: &id007 !ruby/object:Gem::Requirement
117
- none: false
118
- requirements:
119
- - - "="
120
- - !ruby/object:Gem::Version
121
- hash: 27
122
- segments:
123
- - 1
124
- - 1
125
- - 4
126
- version: 1.1.4
127
51
  type: :runtime
128
- version_requirements: *id007
129
- - !ruby/object:Gem::Dependency
130
- name: libxml-ruby
131
- prerelease: false
132
- requirement: &id008 !ruby/object:Gem::Requirement
133
- none: false
134
- requirements:
135
- - - "="
136
- - !ruby/object:Gem::Version
137
- hash: 27
138
- segments:
139
- - 1
140
- - 1
141
- - 4
142
- version: 1.1.4
143
- type: :development
144
- version_requirements: *id008
52
+ version_requirements: *id002
145
53
  description: This plugin reads, writes and generates NeXML
146
- email: rutgeraldo@gmail.com
54
+ email:
55
+ - rutgeraldo@gmail.com
56
+ - anurag08priyam@gmail.com
147
57
  executables: []
148
58
 
149
59
  extensions: []
150
60
 
151
- extra_rdoc_files:
152
- - LICENSE.txt
153
- - README.rdoc
61
+ extra_rdoc_files: []
62
+
154
63
  files:
155
- - Gemfile
156
- - Gemfile.lock
157
- - LICENSE.txt
158
- - README.rdoc
159
- - Rakefile
160
- - TODO.txt
161
- - VERSION
162
- - bio-nexml.gemspec
163
- - extconf.rb
164
- - lib/bio-nexml.rb
165
- - lib/bio.rb
166
- - lib/bio/db/nexml.rb
167
- - lib/bio/db/nexml/mapper.rb
168
64
  - lib/bio/db/nexml/mapper/framework.rb
169
65
  - lib/bio/db/nexml/mapper/inflection.rb
170
66
  - lib/bio/db/nexml/mapper/repository.rb
67
+ - lib/bio/db/nexml/mapper.rb
171
68
  - lib/bio/db/nexml/matrix.rb
172
69
  - lib/bio/db/nexml/parser.rb
173
- - lib/bio/db/nexml/schema/README.txt
174
70
  - lib/bio/db/nexml/schema/abstract.xsd
175
- - lib/bio/db/nexml/schema/characters/README.txt
176
71
  - lib/bio/db/nexml/schema/characters/abstractcharacters.xsd
177
72
  - lib/bio/db/nexml/schema/characters/characters.xsd
178
73
  - lib/bio/db/nexml/schema/characters/continuous.xsd
179
74
  - lib/bio/db/nexml/schema/characters/dna.xsd
180
75
  - lib/bio/db/nexml/schema/characters/protein.xsd
76
+ - lib/bio/db/nexml/schema/characters/README.txt
181
77
  - lib/bio/db/nexml/schema/characters/restriction.xsd
182
78
  - lib/bio/db/nexml/schema/characters/rna.xsd
183
79
  - lib/bio/db/nexml/schema/characters/standard.xsd
@@ -185,31 +81,27 @@ files:
185
81
  - lib/bio/db/nexml/schema/external/xhtml-datatypes-1.xsd
186
82
  - lib/bio/db/nexml/schema/external/xlink.xsd
187
83
  - lib/bio/db/nexml/schema/external/xml.xsd
188
- - lib/bio/db/nexml/schema/meta/README.txt
189
84
  - lib/bio/db/nexml/schema/meta/annotations.xsd
190
85
  - lib/bio/db/nexml/schema/meta/meta.xsd
86
+ - lib/bio/db/nexml/schema/meta/README.txt
191
87
  - lib/bio/db/nexml/schema/nexml.xsd
88
+ - lib/bio/db/nexml/schema/README.txt
192
89
  - lib/bio/db/nexml/schema/taxa/README.txt
193
90
  - lib/bio/db/nexml/schema/taxa/taxa.xsd
194
- - lib/bio/db/nexml/schema/trees/README.txt
195
91
  - lib/bio/db/nexml/schema/trees/abstracttrees.xsd
196
92
  - lib/bio/db/nexml/schema/trees/network.xsd
93
+ - lib/bio/db/nexml/schema/trees/README.txt
197
94
  - lib/bio/db/nexml/schema/trees/tree.xsd
198
95
  - lib/bio/db/nexml/schema/trees/trees.xsd
199
96
  - lib/bio/db/nexml/taxa.rb
200
97
  - lib/bio/db/nexml/trees.rb
201
98
  - lib/bio/db/nexml/writer.rb
202
- - test/data/nexml/test.xml
99
+ - lib/bio/db/nexml.rb
100
+ - lib/bio-nexml.rb
101
+ - LICENSE.txt
102
+ - README.rdoc
203
103
  - test/test_bio-nexml.rb
204
- - test/unit/bio/db/nexml/tc_factory.rb
205
- - test/unit/bio/db/nexml/tc_mapper.rb
206
- - test/unit/bio/db/nexml/tc_matrix.rb
207
- - test/unit/bio/db/nexml/tc_parser.rb
208
- - test/unit/bio/db/nexml/tc_taxa.rb
209
- - test/unit/bio/db/nexml/tc_trees.rb
210
- - test/unit/bio/db/nexml/tc_writer.rb
211
- has_rdoc: true
212
- homepage: http://github.com/rvosa/bioruby-nexml
104
+ homepage: http://rvosa.github.com/bio-nexml/
213
105
  licenses:
214
106
  - MIT
215
107
  post_install_message:
@@ -238,16 +130,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
130
  requirements: []
239
131
 
240
132
  rubyforge_project:
241
- rubygems_version: 1.4.2
133
+ rubygems_version: 1.8.7
242
134
  signing_key:
243
135
  specification_version: 3
244
136
  summary: BioRuby plugin for reading and writing NeXML (http://nexml.org)
245
137
  test_files:
246
138
  - test/test_bio-nexml.rb
247
- - test/unit/bio/db/nexml/tc_factory.rb
248
- - test/unit/bio/db/nexml/tc_mapper.rb
249
- - test/unit/bio/db/nexml/tc_matrix.rb
250
- - test/unit/bio/db/nexml/tc_parser.rb
251
- - test/unit/bio/db/nexml/tc_taxa.rb
252
- - test/unit/bio/db/nexml/tc_trees.rb
253
- - test/unit/bio/db/nexml/tc_writer.rb
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
5
-
6
- # Add dependencies to develop your gem here.
7
- # Include everything needed to run rake, tests, features, etc.
8
- group :development do
9
- gem "shoulda", ">= 0"
10
- gem "bundler", "~> 1.0.0"
11
- gem "jeweler", "~> 1.5.2"
12
- gem "rcov", ">= 0"
13
- gem "bio", ">= 1.4.1"
14
- gem "libxml-ruby", ">= 1.1.4"
15
- end
@@ -1,24 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- bio (1.4.1)
5
- git (1.2.5)
6
- jeweler (1.5.2)
7
- bundler (~> 1.0.0)
8
- git (>= 1.2.5)
9
- rake
10
- libxml-ruby (1.1.4)
11
- rake (0.8.7)
12
- rcov (0.9.9)
13
- shoulda (2.11.3)
14
-
15
- PLATFORMS
16
- ruby
17
-
18
- DEPENDENCIES
19
- bio (>= 1.4.1)
20
- bundler (~> 1.0.0)
21
- jeweler (~> 1.5.2)
22
- libxml-ruby (>= 1.1.4)
23
- rcov
24
- shoulda
data/Rakefile DELETED
@@ -1,55 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'rake'
11
-
12
- require 'jeweler'
13
- Jeweler::Tasks.new do |gem|
14
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
- gem.name = "bio-nexml"
16
- gem.homepage = "http://github.com/rvosa/bioruby-nexml"
17
- gem.license = "MIT"
18
- gem.summary = %Q{BioRuby plugin for reading and writing NeXML (http://nexml.org)}
19
- gem.description = %Q{This plugin reads, writes and generates NeXML}
20
- gem.email = "rutgeraldo@gmail.com"
21
- gem.authors = ["rvosa"]
22
- gem.add_runtime_dependency 'libxml-ruby', '1.1.4'
23
- gem.add_development_dependency 'libxml-ruby', '1.1.4'
24
- # Include your dependencies below. Runtime dependencies are required when using your gem,
25
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
26
- # gem.add_runtime_dependency 'jabber4r', '> 0.1'
27
- # gem.add_development_dependency 'rspec', '> 1.2.3'
28
- end
29
- Jeweler::RubygemsDotOrgTasks.new
30
-
31
- require 'rake/testtask'
32
- Rake::TestTask.new(:test) do |test|
33
- test.libs << 'lib' << 'test'
34
- test.pattern = 'test/**/test_*.rb'
35
- test.verbose = true
36
- end
37
-
38
- require 'rcov/rcovtask'
39
- Rcov::RcovTask.new do |test|
40
- test.libs << 'test'
41
- test.pattern = 'test/**/test_*.rb'
42
- test.verbose = true
43
- end
44
-
45
- task :default => :test
46
-
47
- require 'rake/rdoctask'
48
- Rake::RDocTask.new do |rdoc|
49
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
50
-
51
- rdoc.rdoc_dir = 'rdoc'
52
- rdoc.title = "bio-nexml #{version}"
53
- rdoc.rdoc_files.include('README*')
54
- rdoc.rdoc_files.include('lib/**/*.rb')
55
- end
data/TODO.txt DELETED
@@ -1,6 +0,0 @@
1
- * it would be good if objects could only be instantiated in the right nesting
2
- order, e.g. you wouldn't do cell = Cell.new, but you'd do
3
- cell = Row.create_cell and the nesting is automatically handled for you.
4
- I think the way to do this is to require the containing object to be passed
5
- (recursively) to the constructors, while create_foo internally does this,
6
- passing self to the constructor.
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.0.1
@@ -1,126 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{bio-nexml}
8
- s.version = "0.0.1"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["rvosa"]
12
- s.date = %q{2011-03-01}
13
- s.description = %q{This plugin reads, writes and generates NeXML}
14
- s.email = %q{rutgeraldo@gmail.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE.txt",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- "Gemfile",
21
- "Gemfile.lock",
22
- "LICENSE.txt",
23
- "README.rdoc",
24
- "Rakefile",
25
- "TODO.txt",
26
- "VERSION",
27
- "bio-nexml.gemspec",
28
- "extconf.rb",
29
- "lib/bio-nexml.rb",
30
- "lib/bio.rb",
31
- "lib/bio/db/nexml.rb",
32
- "lib/bio/db/nexml/mapper.rb",
33
- "lib/bio/db/nexml/mapper/framework.rb",
34
- "lib/bio/db/nexml/mapper/inflection.rb",
35
- "lib/bio/db/nexml/mapper/repository.rb",
36
- "lib/bio/db/nexml/matrix.rb",
37
- "lib/bio/db/nexml/parser.rb",
38
- "lib/bio/db/nexml/schema/README.txt",
39
- "lib/bio/db/nexml/schema/abstract.xsd",
40
- "lib/bio/db/nexml/schema/characters/README.txt",
41
- "lib/bio/db/nexml/schema/characters/abstractcharacters.xsd",
42
- "lib/bio/db/nexml/schema/characters/characters.xsd",
43
- "lib/bio/db/nexml/schema/characters/continuous.xsd",
44
- "lib/bio/db/nexml/schema/characters/dna.xsd",
45
- "lib/bio/db/nexml/schema/characters/protein.xsd",
46
- "lib/bio/db/nexml/schema/characters/restriction.xsd",
47
- "lib/bio/db/nexml/schema/characters/rna.xsd",
48
- "lib/bio/db/nexml/schema/characters/standard.xsd",
49
- "lib/bio/db/nexml/schema/external/sawsdl.xsd",
50
- "lib/bio/db/nexml/schema/external/xhtml-datatypes-1.xsd",
51
- "lib/bio/db/nexml/schema/external/xlink.xsd",
52
- "lib/bio/db/nexml/schema/external/xml.xsd",
53
- "lib/bio/db/nexml/schema/meta/README.txt",
54
- "lib/bio/db/nexml/schema/meta/annotations.xsd",
55
- "lib/bio/db/nexml/schema/meta/meta.xsd",
56
- "lib/bio/db/nexml/schema/nexml.xsd",
57
- "lib/bio/db/nexml/schema/taxa/README.txt",
58
- "lib/bio/db/nexml/schema/taxa/taxa.xsd",
59
- "lib/bio/db/nexml/schema/trees/README.txt",
60
- "lib/bio/db/nexml/schema/trees/abstracttrees.xsd",
61
- "lib/bio/db/nexml/schema/trees/network.xsd",
62
- "lib/bio/db/nexml/schema/trees/tree.xsd",
63
- "lib/bio/db/nexml/schema/trees/trees.xsd",
64
- "lib/bio/db/nexml/taxa.rb",
65
- "lib/bio/db/nexml/trees.rb",
66
- "lib/bio/db/nexml/writer.rb",
67
- "test/data/nexml/test.xml",
68
- "test/test_bio-nexml.rb",
69
- "test/unit/bio/db/nexml/tc_factory.rb",
70
- "test/unit/bio/db/nexml/tc_mapper.rb",
71
- "test/unit/bio/db/nexml/tc_matrix.rb",
72
- "test/unit/bio/db/nexml/tc_parser.rb",
73
- "test/unit/bio/db/nexml/tc_taxa.rb",
74
- "test/unit/bio/db/nexml/tc_trees.rb",
75
- "test/unit/bio/db/nexml/tc_writer.rb"
76
- ]
77
- s.homepage = %q{http://github.com/rvosa/bioruby-nexml}
78
- s.licenses = ["MIT"]
79
- s.require_paths = ["lib"]
80
- s.rubygems_version = %q{1.4.2}
81
- s.summary = %q{BioRuby plugin for reading and writing NeXML (http://nexml.org)}
82
- s.test_files = [
83
- "test/test_bio-nexml.rb",
84
- "test/unit/bio/db/nexml/tc_factory.rb",
85
- "test/unit/bio/db/nexml/tc_mapper.rb",
86
- "test/unit/bio/db/nexml/tc_matrix.rb",
87
- "test/unit/bio/db/nexml/tc_parser.rb",
88
- "test/unit/bio/db/nexml/tc_taxa.rb",
89
- "test/unit/bio/db/nexml/tc_trees.rb",
90
- "test/unit/bio/db/nexml/tc_writer.rb"
91
- ]
92
-
93
- if s.respond_to? :specification_version then
94
- s.specification_version = 3
95
-
96
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
97
- s.add_development_dependency(%q<shoulda>, [">= 0"])
98
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
99
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
100
- s.add_development_dependency(%q<rcov>, [">= 0"])
101
- s.add_development_dependency(%q<bio>, [">= 1.4.1"])
102
- s.add_development_dependency(%q<libxml-ruby>, [">= 1.1.4"])
103
- s.add_runtime_dependency(%q<libxml-ruby>, ["= 1.1.4"])
104
- s.add_development_dependency(%q<libxml-ruby>, ["= 1.1.4"])
105
- else
106
- s.add_dependency(%q<shoulda>, [">= 0"])
107
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
108
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
109
- s.add_dependency(%q<rcov>, [">= 0"])
110
- s.add_dependency(%q<bio>, [">= 1.4.1"])
111
- s.add_dependency(%q<libxml-ruby>, [">= 1.1.4"])
112
- s.add_dependency(%q<libxml-ruby>, ["= 1.1.4"])
113
- s.add_dependency(%q<libxml-ruby>, ["= 1.1.4"])
114
- end
115
- else
116
- s.add_dependency(%q<shoulda>, [">= 0"])
117
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
118
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
119
- s.add_dependency(%q<rcov>, [">= 0"])
120
- s.add_dependency(%q<bio>, [">= 1.4.1"])
121
- s.add_dependency(%q<libxml-ruby>, [">= 1.1.4"])
122
- s.add_dependency(%q<libxml-ruby>, ["= 1.1.4"])
123
- s.add_dependency(%q<libxml-ruby>, ["= 1.1.4"])
124
- end
125
- end
126
-