sparql 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODcwMWVhOTNhZWVlZGI1ZTM4M2NiYWQyNWRlMGJkYTgxYmY1NDEyMQ==
4
+ YTZhNzhjYThiN2Y4MjFhYzc1YjJjZmY3NzM2Yjk1ZTZlNGUxMWE1Mw==
5
5
  data.tar.gz: !binary |-
6
- OWIzZTI0ZGFlZDk5MDE3YTlkYTAyOWVmZDNkYWUzNDdiYzZlYjJjZA==
6
+ M2Q3ZjMzOTcyODY3YTYxZDY3ZmVkNTU2MWZiZTUzNWVlM2E1NjAwYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Njg4OTNlNTJjNWNiZmJiNWI2NjhmMDM1ZTQ2Y2IxN2FiODQ3NmFhNjM0ZmQ3
10
- YWNlNzA1YTgwZGE3MzY5MGE5OTFkZWJhODc4NzUyZTZmMzRiZTQwNjdkM2Zh
11
- YmU5ZTJmNTBiMzU5OWFkOWFiYWY5Y2FmN2ZiYjRlNmFhYWFkOWU=
9
+ OWQzMDJmNTRlOTUwMjI4YTM5MDljNmE2M2IwMzA5MDNlNWJjN2FhNjhjY2Y1
10
+ NWRiM2NjNzVkNTljNjdkYjI5ZmNlYmM4NzIwY2M2MjRkYzYyYmE3N2U3ZTkz
11
+ OWEyNWM5OTQzYmU5YTBkOGNhZTdkOTE3MmRiZDkyYzdkYzgyZTQ=
12
12
  data.tar.gz: !binary |-
13
- ZGJiMDYxOTg5NmYxMjkwY2MxN2IyYjdlNmIwYjFlNGNjNTg4NmFmODBlOGZi
14
- OTM4ZGQyZTRiZjBiMzFmNzUxNjIyNGEzNThkM2QzNTcxMThjZmM1YjUzZTk2
15
- NTkwNzMyMjJkMjVlODJiOTE3M2EyMWMwOTA3NmJmYzgzMzhhYzk=
13
+ MjZkYzUwNDQ0OTNmZDE1MzM3YTMzNDUwMmRiM2U0OGJlMGNiMWNiNmJmYzQ3
14
+ NjE3ODhiMzExNDhjOWI0NDFhYjE3N2JjNDhiNjYzMzBjMTVkM2Y0YjA1NDRi
15
+ YmE3YzlhZjg3NDk3NTY2ZmFhNWZmYjcwMTAzZWQ2NTZkOTY2ZDQ=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5
@@ -1,7 +1,7 @@
1
1
  # This file is automatically generated by /Users/gregg/Projects/ebnf/bin/ebnf
2
2
  # BRANCH derived from etc/sparql11.bnf
3
3
  module SPARQL::Grammar::Meta
4
- START = :Query
4
+ START = :QueryUnit
5
5
 
6
6
  BRANCH = {
7
7
  :AdditiveExpression => {
@@ -4035,6 +4035,14 @@ module SPARQL::Grammar::Meta
4035
4035
  "PREFIX" => [:Prologue, :_Query_1, :BindingsClause],
4036
4036
  "SELECT" => [:Prologue, :_Query_1, :BindingsClause],
4037
4037
  },
4038
+ :QueryUnit => {
4039
+ "ASK" => [:Query],
4040
+ "BASE" => [:Query],
4041
+ "CONSTRUCT" => [:Query],
4042
+ "DESCRIBE" => [:Query],
4043
+ "PREFIX" => [:Query],
4044
+ "SELECT" => [:Query],
4045
+ },
4038
4046
  :_Query_1 => {
4039
4047
  "ASK" => [:AskQuery],
4040
4048
  "CONSTRUCT" => [:ConstructQuery],
@@ -12406,6 +12414,7 @@ module SPARQL::Grammar::Meta
12406
12414
  "BASE",
12407
12415
  "PREFIX"],
12408
12416
  :QueryUnit => [
12417
+ :_eps,
12409
12418
  "CONSTRUCT",
12410
12419
  "DESCRIBE",
12411
12420
  "ASK",
@@ -33176,6 +33185,8 @@ module SPARQL::Grammar::Meta
33176
33185
  "GRAPH"],
33177
33186
  :Query => [
33178
33187
  :_eof],
33188
+ :QueryUnit => [
33189
+ :_eof],
33179
33190
  :_Query_1 => [
33180
33191
  "BINDINGS",
33181
33192
  :_eof],
@@ -979,7 +979,23 @@ module SPARQL::Grammar
979
979
  ll1_parse(@input, prod.to_sym, @options.merge(:branch => BRANCH,
980
980
  :first => FIRST,
981
981
  :follow => FOLLOW)
982
- ) {}
982
+ ) do |context, *data|
983
+ case context
984
+ when :trace
985
+ level, lineno, depth, *args = data
986
+ message = "#{args.join(': ')}"
987
+ d_str = depth > 100 ? ' ' * 100 + '+' : ' ' * depth
988
+ str = "[#{lineno}](#{level})#{d_str}#{message}"
989
+ case @options[:debug]
990
+ when Array
991
+ @options[:debug] << str
992
+ when TrueClass
993
+ $stderr.puts str
994
+ when Integer
995
+ $stderr.puts(str) if level <= @options[:debug]
996
+ end
997
+ end
998
+ end
983
999
 
984
1000
  # The last thing on the @prod_data stack is the result
985
1001
  @result = case
@@ -1267,36 +1283,5 @@ module SPARQL::Grammar
1267
1283
  add_prod_datum(:Expression, data[:Expression])
1268
1284
  end
1269
1285
  end
1270
-
1271
- ##
1272
- # Progress output when debugging
1273
- # @overload debug(node, message)
1274
- # @param [String] node relative location in input
1275
- # @param [String] message ("")
1276
- #
1277
- # @overload debug(message)
1278
- # @param [String] message ("")
1279
- #
1280
- # @yieldreturn [String] added to message
1281
- def debug(*args)
1282
- return unless @options[:debug]
1283
- options = args.last.is_a?(Hash) ? args.pop : {}
1284
- debug_level = options.fetch(:level, 1)
1285
- return unless debug_level <= DEBUG_LEVEL
1286
- depth = options[:depth] || self.depth
1287
- message = args.pop
1288
- message = message.call if message.is_a?(Proc)
1289
- args << message if message
1290
- args << yield if block_given?
1291
- message = "#{args.join(': ')}"
1292
- str = "[#{@lineno}]#{' ' * depth}#{message}"
1293
- case @options[:debug]
1294
- when Array
1295
- options[:debug] << str
1296
- else
1297
- $stderr.puts str
1298
- end
1299
- end
1300
-
1301
1286
  end # class Parser
1302
1287
  end # module SPARQL::Grammar
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-03-20 00:00:00.000000000 Z
13
+ date: 2013-04-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdf
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.0.1
21
+ version: 1.0.4
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ! '>='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.0.1
28
+ version: 1.0.4
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: ebnf
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - ! '>='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.2.1
35
+ version: 0.3.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - ! '>='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.2.1
42
+ version: 0.3.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: builder
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -152,6 +152,20 @@ dependencies:
152
152
  - - ! '>='
153
153
  - !ruby/object:Gem::Version
154
154
  version: 0.6.2
155
+ - !ruby/object:Gem::Dependency
156
+ name: rdf-turtle
157
+ requirement: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ! '>='
160
+ - !ruby/object:Gem::Version
161
+ version: 1.0.4
162
+ type: :development
163
+ prerelease: false
164
+ version_requirements: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ! '>='
167
+ - !ruby/object:Gem::Version
168
+ version: 1.0.4
155
169
  - !ruby/object:Gem::Dependency
156
170
  name: linkeddata
157
171
  requirement: !ruby/object:Gem::Requirement