bel 0.4.0.beta.13 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/README.md +9 -2
- data/ext/mri/libbel.h +15 -0
- data/lib/bel/translator/plugins/rdf/reader.rb +5 -5
- data/lib/bel/translator/plugins/rdf/writer.rb +4 -1
- data/lib/bel/version.rb +1 -1
- metadata +15 -14
- data/lib/bel/completion/value_match_rule.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3c3b7bafdeffced99541f8cbefc206ad65b70f9
|
4
|
+
data.tar.gz: 2dc63bb3d6b163500ae5e06f2acbc5db546ca54b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75ce820f1e0ea4085f6c022f7540e9f98eb04e2b4a8ca74c4c8b5a2494119e968e12b32e6516e4c5c3120980549221ee98467064ced29354d23a5a73951bf287
|
7
|
+
data.tar.gz: f45f37895b128b2df0c43748268d34e477c40e1b0fcdc9eb7814b312fd6c2dd12ab19fa3b8bd19d7d60ad56ffe5773e7f966d489a07c99f29bd3c2a85f9a1453
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,26 @@ All notable changes to bel.rb will be documented in this file. The curated log b
|
|
3
3
|
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## [0.4.0][0.4.0] - 2015-12-14
|
7
|
+
### Fixed
|
8
|
+
- Improved conversion of evidence to JSON Evidence format.
|
9
|
+
- Fixed inclusion of BEL dsl (domain-specific language) extensions into all objects. The dsl methods can now be added to the BEL::Language module with BEL::Language.include_bel_dsl.
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
- [Development] Removed bundler in favor or rubygems for dependency management ([Issue #82][82]).
|
13
|
+
- Implement new plugin mechanism ([Issue #86][86]).
|
14
|
+
- Implement translator plugins using new plugin mechanism. These were previously called Format Extensions ([Issue #86][86]).
|
15
|
+
|
16
|
+
### Added
|
17
|
+
- Added JSON read/write abstraction to support JSON streaming capabilities if the adapter supports it (see BEL::JSON).
|
18
|
+
- Implement a translate API which allows reading evidence and translating to other formats (see BEL#evidence, BEL#translate).
|
19
|
+
- BEL translator "write" can now yield to block or return an enumerator over translated evidence. This allows the user to control how the output is written to IO.
|
20
|
+
- Added a new "plugins" subcommand to the bel executable that lists the plugins available to bel.rb. Run with "bel plugins --list".
|
21
|
+
- Added RDF Repository plugin type. This allows RDF datasources to be integrated into bel.rb. The RDF Repository abstraction is provided by [RDF.rb][RDF.rb]. The initial use is with the Namespace and Annotation APIs. Plugins are provided for Apache Jena (TDB) and MongoDB RDF datasources.
|
22
|
+
- Added Namespace and Annotation APIs to provide access to biological identifiers within an RDF Repository.
|
23
|
+
- Added Resource Search API plugin type. This provides an API to full-text search over Namespaces and Annotations include symbols, identifiers, titles, and synonyms. A plugin named "bel.rb-search-sqlite" was created built on SQLite's full-text search.
|
24
|
+
- Added option to RDF translator plugin to write out evidence as a VoID dataset ([Issue #66][66]).
|
25
|
+
|
6
26
|
## [0.3.3][0.3.3] - 2015-08-07
|
7
27
|
### Fixed
|
8
28
|
- ResourceIndex integration test causes intermittent timeouts ([Issue #61][61]).
|
@@ -25,6 +45,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
25
45
|
### Added
|
26
46
|
- Development gem dependencies (i.e. byebug, pry, pry-byebug) for debugging.
|
27
47
|
|
48
|
+
[0.4.0]: https://github.com/OpenBEL/bel.rb/compare/0.3.3...0.4.0
|
28
49
|
[0.3.2]: https://github.com/OpenBEL/bel.rb/compare/0.3.1...0.3.2
|
29
50
|
[0.3.3]: https://github.com/OpenBEL/bel.rb/compare/0.3.2...0.3.3
|
30
51
|
[13]: https://github.com/OpenBEL/bel.rb/issues/13
|
@@ -35,5 +56,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
35
56
|
[59]: https://github.com/OpenBEL/bel.rb/issues/59
|
36
57
|
[61]: https://github.com/OpenBEL/bel.rb/issues/61
|
37
58
|
[64]: https://github.com/OpenBEL/bel.rb/issues/64
|
59
|
+
[66]: https://github.com/OpenBEL/bel.rb/issues/66
|
38
60
|
[68]: https://github.com/OpenBEL/bel.rb/issues/68
|
61
|
+
[82]: https://github.com/OpenBEL/bel.rb/issues/82
|
62
|
+
[86]: https://github.com/OpenBEL/bel.rb/pull/86
|
39
63
|
[20150611]: http://resource.belframework.org/belframework/20150611/
|
64
|
+
[RDF.rb]: https://github.com/ruby-rdf/rdf
|
data/README.md
CHANGED
@@ -75,7 +75,7 @@ the root of the bel.rb tree:
|
|
75
75
|
## branches
|
76
76
|
|
77
77
|
- master branch
|
78
|
-
- Contains stable code. Releases are created from this branch using a tag (e.g. 0.
|
78
|
+
- Contains stable code. Releases are created from this branch using a tag (e.g. 0.4.0).
|
79
79
|
- [![Travis CI Build](https://travis-ci.org/OpenBEL/bel.rb.svg?branch=master)](https://travis-ci.org/OpenBEL/bel.rb)
|
80
80
|
|
81
81
|
- next branch
|
@@ -107,9 +107,10 @@ the root of the bel.rb tree:
|
|
107
107
|
summarize
|
108
108
|
translate
|
109
109
|
upgrade
|
110
|
+
plugins
|
110
111
|
|
111
112
|
|
112
|
-
bel 0.
|
113
|
+
bel 0.4.0
|
113
114
|
Copyright (C) 2015 OpenBEL
|
114
115
|
Apache License, Version 2.0, January 2004
|
115
116
|
http://www.apache.org/licenses/
|
@@ -297,6 +298,12 @@ the root of the bel.rb tree:
|
|
297
298
|
```ruby
|
298
299
|
|
299
300
|
require 'bel'
|
301
|
+
|
302
|
+
# opt-in to DSL methods
|
303
|
+
BEL::Language.include_bel_dsl
|
304
|
+
|
305
|
+
# include DSL methods in scoped module
|
306
|
+
include BEL::Language
|
300
307
|
|
301
308
|
# create BEL statements
|
302
309
|
p(HGNC['SKIL']).directlyDecreases tscript(p(HGNC['SMAD3']))
|
data/ext/mri/libbel.h
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#ifndef _LIBBEL_H
|
2
|
+
#define _LIBBEL_H
|
3
|
+
|
4
|
+
/*
|
5
|
+
* Value size: The maximum number of characters to hold in an
|
6
|
+
* accumulated value.
|
7
|
+
*/
|
8
|
+
#define BEL_VALUE_CHAR_LEN 512
|
9
|
+
|
10
|
+
/*
|
11
|
+
* Stack size of the ARG, TERM, and STATEMENT stack.
|
12
|
+
*/
|
13
|
+
#define STACK_SIZE 32
|
14
|
+
|
15
|
+
#endif /* not defined _LIBBEL_H */
|
@@ -103,8 +103,8 @@ module BEL::Translator::Plugins
|
|
103
103
|
|
104
104
|
def each
|
105
105
|
if block_given?
|
106
|
-
graph =
|
107
|
-
|
106
|
+
graph = RDF::Graph.new
|
107
|
+
RDF::Reader.for(@format).new(@data) do |reader|
|
108
108
|
reader.each_statement do |statement|
|
109
109
|
graph << statement
|
110
110
|
end
|
@@ -129,13 +129,13 @@ module BEL::Translator::Plugins
|
|
129
129
|
|
130
130
|
def each
|
131
131
|
if block_given?
|
132
|
-
graph =
|
132
|
+
graph = RDF::Graph.new
|
133
133
|
evidence_resource = nil
|
134
|
-
|
134
|
+
RDF::Reader.for(@format).new(@data) do |reader|
|
135
135
|
reader.each_statement do |statement|
|
136
136
|
case
|
137
137
|
when statement.object == BELV.Evidence &&
|
138
|
-
statement.predicate ==
|
138
|
+
statement.predicate == RDF.type
|
139
139
|
evidence_resource = statement.subject
|
140
140
|
when evidence_resource &&
|
141
141
|
statement.predicate != BELV.hasEvidence &&
|
@@ -39,7 +39,10 @@ module BEL::Translator::Plugins
|
|
39
39
|
statements.each do |statement|
|
40
40
|
@writer.write_statement(statement)
|
41
41
|
end
|
42
|
-
|
42
|
+
|
43
|
+
if @void_dataset_uri
|
44
|
+
@writer.write_statement(RDF::Statement.new(@void_dataset_uri, RDF::DC.hasPart, evidence_uri))
|
45
|
+
end
|
43
46
|
end
|
44
47
|
|
45
48
|
def done
|
data/lib/bel/version.rb
CHANGED
metadata
CHANGED
@@ -1,34 +1,34 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.0
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anthony Bargnesi
|
8
8
|
- Natalie Catlett
|
9
9
|
- Nick Bargnesi
|
10
10
|
- William Hayes
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-12-
|
14
|
+
date: 2015-12-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
|
+
name: ffi
|
17
18
|
requirement: !ruby/object:Gem::Requirement
|
18
19
|
requirements:
|
19
20
|
- - '='
|
20
21
|
- !ruby/object:Gem::Version
|
21
22
|
version: 1.9.8
|
22
|
-
name: ffi
|
23
|
-
prerelease: false
|
24
23
|
type: :runtime
|
24
|
+
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 1.9.8
|
30
|
-
description: " The BEL gem allows the reading, writing, and processing of BEL (Biological
|
31
|
-
|
30
|
+
description: " The BEL gem allows the reading, writing, and processing of BEL (Biological
|
31
|
+
Expression Language) with a natural DSL. "
|
32
32
|
email:
|
33
33
|
- abargnesi@selventa.com
|
34
34
|
- ncatlett@selventa.com
|
@@ -73,9 +73,9 @@ files:
|
|
73
73
|
- ext/mri/extconf.rb
|
74
74
|
- ext/mri/libbel.c
|
75
75
|
- ext/mri/libbel.def
|
76
|
+
- ext/mri/libbel.h
|
76
77
|
- lib/bel.rb
|
77
78
|
- lib/bel/completion.rb
|
78
|
-
- lib/bel/completion/value_match_rule.rb
|
79
79
|
- lib/bel/completion_rule.rb
|
80
80
|
- lib/bel/evidence_model.rb
|
81
81
|
- lib/bel/evidence_model/bel_parameter.rb
|
@@ -167,7 +167,7 @@ homepage: https://github.com/OpenBEL/bel.rb
|
|
167
167
|
licenses:
|
168
168
|
- Apache-2.0
|
169
169
|
metadata: {}
|
170
|
-
post_install_message:
|
170
|
+
post_install_message:
|
171
171
|
rdoc_options:
|
172
172
|
- "--title"
|
173
173
|
- BEL Ruby Documentation
|
@@ -197,13 +197,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
197
197
|
version: 2.0.0
|
198
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
199
|
requirements:
|
200
|
-
- - "
|
200
|
+
- - ">="
|
201
201
|
- !ruby/object:Gem::Version
|
202
|
-
version:
|
202
|
+
version: '0'
|
203
203
|
requirements: []
|
204
|
-
rubyforge_project:
|
205
|
-
rubygems_version: 2.4.
|
206
|
-
signing_key:
|
204
|
+
rubyforge_project:
|
205
|
+
rubygems_version: 2.4.5.1
|
206
|
+
signing_key:
|
207
207
|
specification_version: 4
|
208
208
|
summary: Process BEL with ruby.
|
209
209
|
test_files: []
|
210
|
+
has_rdoc:
|