bel_parser 1.0.0.alpha.52-java → 1.0.0.alpha.53-java

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: 0b78b639cb7c7eec3a5faacdfe2ff843b78a1fe7
4
- data.tar.gz: 4a618714c2b20209ff175460bbf5bf1187b0b7e2
3
+ metadata.gz: 20b61bb214b0a7323c103ebc274994cd636c5416
4
+ data.tar.gz: ea9bb59270a4658e68e703c861f392e3b2cf6a45
5
5
  SHA512:
6
- metadata.gz: a1bb96198f5a6a85124fbdc582553736b3e86bcdead32f596694a62a69c5042803a2efbe2988aa7589ba8864420dc07ede98c64b2a0fba7d76333fa0ebb18ff1
7
- data.tar.gz: 81522df31b1d3c28b99e9001d0d1e8bab96b33abfc1482f80f4929a1c3074848850baec687bbb86bbc49d42982ba418bf3829e05cc277cd0d222cb977f79f7e7
6
+ metadata.gz: 6ec021ec5185740497b528112306887f84e9cf10411495bc30f8299c476df81c995b20fb89dda073045dee994657fd546748f01637d0147256559b69b32c5a75
7
+ data.tar.gz: 7022cafaaf0474cff631d1a003661a956117d988df9abfbdb3dd64e1780306105b643a9350dd48f27b91a8f68163602dd3976281521dacb03bbaac786fbc5496
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.alpha.52
1
+ 1.0.0.alpha.53
@@ -1,4 +1,5 @@
1
1
  require 'bel_parser/resource'
2
+ require 'bel_parser/parsers/ast/node'
2
3
 
3
4
  module BELParser
4
5
  module Expression
@@ -1,4 +1,5 @@
1
1
  require 'bel_parser/quoting'
2
+ require 'bel_parser/parsers/ast/node'
2
3
 
3
4
  module BELParser
4
5
  module Expression
@@ -87,7 +88,16 @@ module BELParser
87
88
  return nil if ast.nil? ||
88
89
  !ast.is_a?(BELParser::Parsers::AST::Parameter)
89
90
  namespace = ast_to_namespace(ast.prefix, namespace_hash)
90
- namespace[ast.value.children[0].string_literal]
91
+ value = ast.value.children[0].string_literal
92
+ if namespace
93
+ namespace[value]
94
+ else
95
+ BELParser::Expression::Model::Parameter.new(
96
+ nil, # nil namespace
97
+ value,
98
+ nil # nil encoding
99
+ )
100
+ end
91
101
  end
92
102
  end
93
103
  end
@@ -1,4 +1,5 @@
1
1
  require 'bel_parser/language/relationship'
2
+ require 'bel_parser/parsers/ast/node'
2
3
 
3
4
  module BELParser
4
5
  module Expression
@@ -1,3 +1,4 @@
1
+ require 'bel_parser/parsers/ast/node'
1
2
  require_relative '../validator'
2
3
 
3
4
  module BELParser
@@ -5,6 +5,10 @@ module BELParser
5
5
  module Specification
6
6
  EMPTY_ARRAY = [].freeze
7
7
 
8
+ def uri
9
+ @uri
10
+ end
11
+
8
12
  def version
9
13
  @version
10
14
  end
@@ -11,6 +11,7 @@ module BELParser
11
11
 
12
12
  def initialize
13
13
  @version = '1.0'.freeze
14
+ @uri = 'http://www.openbel.org/1.0'
14
15
  load_language_constants(Version1_0)
15
16
  freeze
16
17
  end
@@ -11,6 +11,7 @@ module BELParser
11
11
 
12
12
  def initialize
13
13
  @version = '2.0'.freeze
14
+ @uri = 'http://www.openbel.org/2.0'
14
15
  load_language_constants(Version2_0)
15
16
  freeze
16
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bel_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.52
4
+ version: 1.0.0.alpha.53
5
5
  platform: java
6
6
  authors:
7
7
  - Anthony Bargnesi