bel 0.3.0.beta6 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c556700cb4315849b7140dea6518a529bb769c9e
4
- data.tar.gz: 9e94af0007622d3b8bd37b91a087a079861a964b
3
+ metadata.gz: b6aa55b1d8ae24a6e4da21f68c582f5d96df292d
4
+ data.tar.gz: a9f0df9f45c0410cd489cb482316901762b0f618
5
5
  SHA512:
6
- metadata.gz: d24e7434cff7d4b94121ebc54689c523fabc13cf2702946ee86b2d0d5a9200e6ee62bfa5155a7c54f5adaccda27e002bea549a5c9435995f32329e30b6c3cb1f
7
- data.tar.gz: 69821bdd75c8a7a04cec83aeca544720653e8dce215252c5a0a3f69f3c4c7683f931ab951320e2d4a98d8cf3a6c585fe3216a2ca9801dc478bbdd9a2b459b7a9
6
+ metadata.gz: 542d06e2ca7fce091815e8f4a1718d37208c1775e5198cddb7391787ffaee57eff0597b9ddb4948b100370d00ea418dc87b2a7215eb113f9d4e8c4d46d209274
7
+ data.tar.gz: ab7d8594aefd8878e3cec58b64361a5f9fbd55c0364b6f4f3ef5f86a6e648bc0e5cb28ab5049a514e2ac19152499f0b2fc2add4df47dbb20b8e0b18c5583c3ad
data/INSTALL.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Install
2
2
  =======
3
3
 
4
- This library requires [Ruby](https://www.ruby-lang.org) (**>= 1.9.2**). See [how to install ruby](https://github.com/OpenBEL/bel.rb/blob/master/INSTALL_RUBY.md).
4
+ This library requires [Ruby](https://www.ruby-lang.org) (**>= 2.0.0**). See [how to install ruby](https://github.com/OpenBEL/bel.rb/blob/master/INSTALL_RUBY.md).
5
5
 
6
6
  Install from [RubyGems.org](http://rubygems.org/gems/bel)
7
7
 
data/INSTALL_RUBY.md CHANGED
@@ -4,7 +4,7 @@
4
4
  ## Install Ruby (Windows)
5
5
 
6
6
  1. Download [RubyInstaller](http://rubyinstaller.org/downloads).
7
- * Versions 1.9.3 and 2.x.x are supported.
7
+ * Versions 2.x.x are supported.
8
8
  2. Install RubyInstaller version.
9
9
  * Enable the _Add Ruby executables to your PATH_ option presented during installation.
10
10
  3. Open a command prompt (Windows Key + R then type `cmd`).
data/README.md CHANGED
@@ -13,7 +13,7 @@ Dependencies
13
13
 
14
14
  - Required
15
15
 
16
- - Ruby 1.9.2 or greater ([how to install ruby](INSTALL_RUBY.md))
16
+ - Ruby 2.0.0 or greater ([how to install ruby](INSTALL_RUBY.md))
17
17
 
18
18
  - Optional
19
19
 
@@ -35,62 +35,115 @@ branches
35
35
  executable commands
36
36
  -------------------
37
37
 
38
- **bel_upgrade**: Upgrade namespaces in BEL content to another version (i.e. *1.0* to *20131211*)
38
+ **bel**: A single executable command with subcommands.
39
39
 
40
40
  ```bash
41
41
 
42
- # using BEL file and change log JSON file
43
- bel_upgrade --bel small_corpus.bel --changelog change_log.json
44
-
45
- # using BEL file and change log from a URL
46
- bel_upgrade --bel small_corpus.bel --changelog http://resource.belframework.org/belframework/20131211/change_log.json
47
-
48
- # using BEL from STDIN and change log from a URL
49
- cat small_corpus.bel | bel_upgrade --changelog http://resource.belframework.org/belframework/20131211/change_log.json
42
+ NAME
43
+ bel - Command line utilities for BEL.
44
+
45
+ SYNOPSIS
46
+ bel [global options] command [command options] [arguments...]
47
+
48
+ VERSION
49
+ 0.3.0
50
+
51
+ GLOBAL OPTIONS
52
+ --help - Show this message
53
+ --[no-]verbose - Enables verbose output.
54
+ --version - Display the program version
55
+
56
+ COMMANDS
57
+ bel2rdf.rb - Converts BEL to RDF.
58
+ compare - Compares knowledge in two BEL script.
59
+ help - Shows a list of commands or help for one command
60
+ parse - Shows parse of BEL script.
61
+ rdfschema - Outputs the RDFS (e.g. RDF Schema) for BEL.
62
+ summarize - Show summary statistics. for knowledge in provided BEL script.
63
+ translate - Translates BEL evidence between file formats.
64
+ upgrade - Upgrades BEL knowledge and annotation.
50
65
  ```
51
66
 
52
- **bel_rdfschema**: Dumps the RDF Schema triples for BEL.
53
-
54
- ```bash
55
-
56
- # dumps schema in ntriples format (default)
57
- bel_rdfschema
58
-
59
- # dumps schema in turtle format
60
- # note: requires the 'rdf-turtle' gem
61
- bel_rdfschema --format turtle
62
- ```
63
67
 
64
- **bel2rdf**: Converts BEL to RDF.
68
+ **bel2rdf.rb**: Converts BEL to RDF.
65
69
 
66
70
  ```bash
67
71
 
68
72
  # dumps RDF to standard out in ntriples format (default)
69
73
  # (from file)
70
- bel2rdf --bel small_corpus.bel
74
+ bel2rdf.rb --bel small_corpus.bel
71
75
 
72
76
  # (from standard in)
73
- cat small_corpus.bel | bel2rdf
77
+ cat small_corpus.bel | bel2rdf.rb
74
78
 
75
79
  # dumps RDF to standard out in turtle format
76
80
  # (from file)
77
- bel2rdf --bel small_corpus.bel --format turtle
81
+ bel2rdf.rb --bel small_corpus.bel --format turtle
78
82
 
79
83
  # (from standard in)
80
- cat small_corpus.bel | bel2rdf --format turtle
84
+ cat small_corpus.bel | bel2rdf.rb --format turtle
85
+ ```
86
+
87
+
88
+ **bel_compare.rb**: Compares knowledge in two BEL script files.
89
+
90
+ ```bash
91
+
92
+ bel_compare.rb small_corpus.bel large_corpus.bel
81
93
  ```
82
94
 
83
- **bel_parse**: Show parsed objects from BEL content for debugging purposes
95
+
96
+ **bel_parse.rb**: Show parsed objects from BEL content for debugging purposes
84
97
 
85
98
  ```bash
86
99
 
87
100
  # ...from file
88
- bel_parse --bel small_corpus.bel
101
+ bel_parse.rb --bel small_corpus.bel
89
102
 
90
103
  # ...from standard in
91
- cat small_corpus.bel | bel_parse
104
+ cat small_corpus.bel | bel_parse.rb
105
+ ```
106
+
107
+
108
+ **bel_rdfschema.rb**: Dumps the RDF Schema triples for BEL.
109
+
110
+ ```bash
111
+
112
+ # dumps schema in ntriples format (default)
113
+ bel_rdfschema.rb
114
+
115
+ # dumps schema in turtle format
116
+ # note: requires the 'rdf-turtle' gem
117
+ bel_rdfschema.rb --format turtle
118
+ ```
119
+
120
+
121
+ **bel_summarize.rb**: Show summary statistics for knowledge in BEL script.
122
+
123
+ ```bash
124
+ # using BEL file
125
+ bel_summarize.rb --bel small_corpus.bel
126
+
127
+ # using BEL from STDIN
128
+ cat small_corpus.bel | bel_summarize.rb
92
129
  ```
93
130
 
131
+
132
+ **bel_upgrade.rb**: Upgrade namespaces in BEL content to another version (i.e. *1.0* to *20131211*)
133
+
134
+ ```bash
135
+
136
+ # using BEL file and change log JSON file
137
+ bel_upgrade.rb --bel small_corpus.bel --changelog change_log.json
138
+
139
+ # using BEL file and change log from a URL
140
+ bel_upgrade.rb --bel small_corpus.bel --changelog http://resource.belframework.org/belframework/20131211/change_log.json
141
+
142
+ # using BEL from STDIN and change log from a URL
143
+ cat small_corpus.bel | bel_upgrade.rb --changelog http://resource.belframework.org/belframework/20131211/change_log.json
144
+ ```
145
+
146
+
94
147
  api examples
95
148
  ------------
96
149
 
data/bel.gemspec CHANGED
@@ -1,4 +1,4 @@
1
- require_relative 'lib/bel/version'
1
+ require './lib/bel/version'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'bel'
data/bin/bel_summarize.rb CHANGED
@@ -58,6 +58,7 @@ CSV do |csv_out|
58
58
  fx = fx.respond_to?(:long_form) ?
59
59
  fx.long_form.to_s :
60
60
  fx.to_s
61
+ fx = FUNCTIONS[fx.to_sym][:long_form]
61
62
  report["fx_#{fx}"] += 1
62
63
  end
63
64
  if obj.is_a? BEL::Model::Statement
data/lib/bel/libbel.rb CHANGED
@@ -11,8 +11,6 @@ module LibBEL
11
11
  def extension_path(ruby_version = RUBY_VERSION)
12
12
  version =
13
13
  case ruby_version
14
- when /^1\.9/
15
- '1.9'
16
14
  when /^2\.0/
17
15
  '2.0'
18
16
  when /^2\.1/
data/lib/bel/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module BEL
2
- VERSION = '0.3.0.beta6'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.beta6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Bargnesi
@@ -287,9 +287,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
287
287
  version: 2.0.0
288
288
  required_rubygems_version: !ruby/object:Gem::Requirement
289
289
  requirements:
290
- - - ">"
290
+ - - ">="
291
291
  - !ruby/object:Gem::Version
292
- version: 1.3.1
292
+ version: '0'
293
293
  requirements: []
294
294
  rubyforge_project:
295
295
  rubygems_version: 2.4.5