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 +4 -4
- data/INSTALL.md +1 -1
- data/INSTALL_RUBY.md +1 -1
- data/README.md +82 -29
- data/bel.gemspec +1 -1
- data/bin/bel_summarize.rb +1 -0
- data/lib/bel/libbel.rb +0 -2
- data/lib/bel/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6aa55b1d8ae24a6e4da21f68c582f5d96df292d
|
4
|
+
data.tar.gz: a9f0df9f45c0410cd489cb482316901762b0f618
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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) (**>=
|
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
|
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
|
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
|
-
**
|
38
|
+
**bel**: A single executable command with subcommands.
|
39
39
|
|
40
40
|
```bash
|
41
41
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
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
|
-
|
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
data/bin/bel_summarize.rb
CHANGED
data/lib/bel/libbel.rb
CHANGED
data/lib/bel/version.rb
CHANGED
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
|
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:
|
292
|
+
version: '0'
|
293
293
|
requirements: []
|
294
294
|
rubyforge_project:
|
295
295
|
rubygems_version: 2.4.5
|