bel_parser 1.0.0.alpha.55 → 1.0.0.alpha.56
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gemspec +1 -1
- data/VERSION +1 -1
- data/lib/bel_parser/expression/model/namespace.rb +22 -0
- data/lib/bel_parser/resource/resource_url_reader.rb +10 -2
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63f744f7f42ef9e4ca74e1b5603582bf856ac6b2
|
4
|
+
data.tar.gz: a0348eda0d0560bcd6162c0dfcd64cf3c3090c79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32a09cd1d7c5c4d780c1384ce7892a754fd430c58a571554cc4a2815b4200604d09ead6ba10f6edb9cac865242a5c48bb3f8ee1df04849d6da1fca038e1acb65
|
7
|
+
data.tar.gz: 7e93a4eea5d7780dc5f4afc96b1230fa962ddaac0a51f6f2452414fc44f32372c153612c6ad05fdac1ca06cabb8f5edc9e85c62e1f3b6adfa667c6536085665d
|
data/.gemspec
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.alpha.
|
1
|
+
1.0.0.alpha.56
|
@@ -45,6 +45,28 @@ module BELParser
|
|
45
45
|
!@url.nil?
|
46
46
|
end
|
47
47
|
|
48
|
+
def type
|
49
|
+
case
|
50
|
+
when uri?
|
51
|
+
:uri
|
52
|
+
when url?
|
53
|
+
:url
|
54
|
+
else
|
55
|
+
nil
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def domain
|
60
|
+
case
|
61
|
+
when uri?
|
62
|
+
@uri
|
63
|
+
when url?
|
64
|
+
@url
|
65
|
+
else
|
66
|
+
nil
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
48
70
|
def include?(value)
|
49
71
|
resolved_value =
|
50
72
|
if uri? && @uri_reader
|
@@ -145,11 +145,19 @@ module BELParser
|
|
145
145
|
end
|
146
146
|
|
147
147
|
def self.open_datasets_file
|
148
|
-
|
148
|
+
if RUBY_ENGINE =~ /^jruby/i
|
149
|
+
@dataset_file ||= ::DBM.new
|
150
|
+
else
|
151
|
+
@dataset_file ||= ::DBM.open(_temporary_datasets_file)
|
152
|
+
end
|
149
153
|
end
|
150
154
|
|
151
155
|
def self.open_resource_file(url)
|
152
|
-
|
156
|
+
if RUBY_ENGINE =~ /^jruby/i
|
157
|
+
@resource_files[url] ||= ::DBM.new
|
158
|
+
else
|
159
|
+
@resource_files[url] ||= ::DBM.open(_temporary_resource_file(url))
|
160
|
+
end
|
153
161
|
end
|
154
162
|
|
155
163
|
def self._temporary_datasets_file
|
metadata
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bel_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.alpha.
|
4
|
+
version: 1.0.0.alpha.56
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anthony Bargnesi
|
8
8
|
- Nick Bargnesi
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-06-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name: sparql-client
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
17
|
- - "~>"
|
19
18
|
- !ruby/object:Gem::Version
|
20
19
|
version: 2.0.0
|
21
|
-
|
20
|
+
name: sparql-client
|
22
21
|
prerelease: false
|
22
|
+
type: :runtime
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
@@ -381,7 +381,7 @@ homepage: https://github.com/OpenBEL/bel_parser
|
|
381
381
|
licenses:
|
382
382
|
- Apache-2.0
|
383
383
|
metadata: {}
|
384
|
-
post_install_message:
|
384
|
+
post_install_message:
|
385
385
|
rdoc_options: []
|
386
386
|
require_paths:
|
387
387
|
- lib
|
@@ -396,10 +396,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
396
396
|
- !ruby/object:Gem::Version
|
397
397
|
version: 1.3.1
|
398
398
|
requirements: []
|
399
|
-
rubyforge_project:
|
400
|
-
rubygems_version: 2.
|
401
|
-
signing_key:
|
399
|
+
rubyforge_project:
|
400
|
+
rubygems_version: 2.6.4
|
401
|
+
signing_key:
|
402
402
|
specification_version: 4
|
403
403
|
summary: Parser for Biolgical Expression Language.
|
404
404
|
test_files: []
|
405
|
-
has_rdoc:
|