sparql 3.1.6 → 3.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/sparql/algebra/aggregate.rb +1 -1
  4. data/lib/sparql/algebra/evaluatable.rb +4 -4
  5. data/lib/sparql/algebra/operator.rb +2 -2
  6. data/lib/sparql/algebra/operator/abs.rb +1 -1
  7. data/lib/sparql/algebra/operator/avg.rb +1 -1
  8. data/lib/sparql/algebra/operator/bnode.rb +1 -1
  9. data/lib/sparql/algebra/operator/ceil.rb +1 -1
  10. data/lib/sparql/algebra/operator/compare.rb +39 -40
  11. data/lib/sparql/algebra/operator/contains.rb +1 -1
  12. data/lib/sparql/algebra/operator/count.rb +1 -1
  13. data/lib/sparql/algebra/operator/datatype.rb +1 -1
  14. data/lib/sparql/algebra/operator/day.rb +1 -1
  15. data/lib/sparql/algebra/operator/divide.rb +1 -1
  16. data/lib/sparql/algebra/operator/encode_for_uri.rb +1 -1
  17. data/lib/sparql/algebra/operator/equal.rb +1 -1
  18. data/lib/sparql/algebra/operator/floor.rb +1 -1
  19. data/lib/sparql/algebra/operator/greater_than.rb +3 -2
  20. data/lib/sparql/algebra/operator/greater_than_or_equal.rb +2 -2
  21. data/lib/sparql/algebra/operator/group_concat.rb +1 -1
  22. data/lib/sparql/algebra/operator/hours.rb +1 -1
  23. data/lib/sparql/algebra/operator/iri.rb +1 -1
  24. data/lib/sparql/algebra/operator/is_blank.rb +1 -1
  25. data/lib/sparql/algebra/operator/is_iri.rb +1 -1
  26. data/lib/sparql/algebra/operator/is_literal.rb +1 -1
  27. data/lib/sparql/algebra/operator/is_numeric.rb +1 -1
  28. data/lib/sparql/algebra/operator/is_triple.rb +1 -1
  29. data/lib/sparql/algebra/operator/lang.rb +1 -1
  30. data/lib/sparql/algebra/operator/lang_matches.rb +1 -1
  31. data/lib/sparql/algebra/operator/lcase.rb +1 -1
  32. data/lib/sparql/algebra/operator/less_than.rb +3 -2
  33. data/lib/sparql/algebra/operator/less_than_or_equal.rb +2 -2
  34. data/lib/sparql/algebra/operator/max.rb +1 -1
  35. data/lib/sparql/algebra/operator/md5.rb +1 -1
  36. data/lib/sparql/algebra/operator/min.rb +1 -1
  37. data/lib/sparql/algebra/operator/minutes.rb +1 -1
  38. data/lib/sparql/algebra/operator/month.rb +1 -1
  39. data/lib/sparql/algebra/operator/multiply.rb +1 -1
  40. data/lib/sparql/algebra/operator/negate.rb +1 -1
  41. data/lib/sparql/algebra/operator/not.rb +1 -1
  42. data/lib/sparql/algebra/operator/not_equal.rb +3 -1
  43. data/lib/sparql/algebra/operator/now.rb +1 -1
  44. data/lib/sparql/algebra/operator/object.rb +1 -1
  45. data/lib/sparql/algebra/operator/order.rb +7 -1
  46. data/lib/sparql/algebra/operator/plus.rb +1 -1
  47. data/lib/sparql/algebra/operator/predicate.rb +1 -1
  48. data/lib/sparql/algebra/operator/rand.rb +1 -1
  49. data/lib/sparql/algebra/operator/regex.rb +1 -1
  50. data/lib/sparql/algebra/operator/replace.rb +1 -1
  51. data/lib/sparql/algebra/operator/round.rb +1 -1
  52. data/lib/sparql/algebra/operator/same_term.rb +1 -1
  53. data/lib/sparql/algebra/operator/sample.rb +1 -1
  54. data/lib/sparql/algebra/operator/seconds.rb +1 -1
  55. data/lib/sparql/algebra/operator/sha1.rb +1 -1
  56. data/lib/sparql/algebra/operator/sha256.rb +1 -1
  57. data/lib/sparql/algebra/operator/sha384.rb +1 -1
  58. data/lib/sparql/algebra/operator/sha512.rb +1 -1
  59. data/lib/sparql/algebra/operator/str.rb +1 -1
  60. data/lib/sparql/algebra/operator/strafter.rb +1 -1
  61. data/lib/sparql/algebra/operator/strbefore.rb +1 -1
  62. data/lib/sparql/algebra/operator/strdt.rb +1 -1
  63. data/lib/sparql/algebra/operator/strends.rb +1 -1
  64. data/lib/sparql/algebra/operator/strlang.rb +1 -1
  65. data/lib/sparql/algebra/operator/strlen.rb +1 -1
  66. data/lib/sparql/algebra/operator/strstarts.rb +1 -1
  67. data/lib/sparql/algebra/operator/struuid.rb +1 -1
  68. data/lib/sparql/algebra/operator/subject.rb +1 -1
  69. data/lib/sparql/algebra/operator/substr.rb +1 -1
  70. data/lib/sparql/algebra/operator/subtract.rb +1 -1
  71. data/lib/sparql/algebra/operator/sum.rb +1 -1
  72. data/lib/sparql/algebra/operator/timezone.rb +1 -1
  73. data/lib/sparql/algebra/operator/triple.rb +1 -1
  74. data/lib/sparql/algebra/operator/tz.rb +1 -1
  75. data/lib/sparql/algebra/operator/ucase.rb +1 -1
  76. data/lib/sparql/algebra/operator/uuid.rb +1 -1
  77. data/lib/sparql/algebra/operator/year.rb +1 -1
  78. data/lib/sparql/grammar/meta.rb +334 -138
  79. data/lib/sparql/grammar/parser11.rb +16 -1
  80. metadata +5 -5
@@ -1306,7 +1306,7 @@ module SPARQL::Grammar
1306
1306
  # | iriOrFunction | RDFLiteral
1307
1307
  # | NumericLiteral | BooleanLiteral
1308
1308
  # | Var
1309
- # | EmbTP
1309
+ # | ExprEmbTP
1310
1310
  production(:PrimaryExpression) do |input, data, callback|
1311
1311
  if data[:Expression]
1312
1312
  add_prod_datum(:Expression, data[:Expression])
@@ -1328,6 +1328,21 @@ module SPARQL::Grammar
1328
1328
  add_prod_datum(:UnaryExpression, data[:UnaryExpression])
1329
1329
  end
1330
1330
 
1331
+ # [119a] ExprEmbTP ::= '<<' ExprVarOrTerm Verb ExprVarOrTerm '>>'
1332
+ production(:ExprEmbTP) do |input, data, callback|
1333
+ subject, object = data[:ExprVarOrTerm]
1334
+ predicate = data[:Verb]
1335
+ add_pattern(:ExprEmbTP,
1336
+ subject: subject,
1337
+ predicate: predicate,
1338
+ object: object)
1339
+ end
1340
+
1341
+ # [119b] ExprVarOrTerm ::= iri | RDFLiteral | NumericLiteral | BooleanLiteral | Var | ExprEmbTP
1342
+ production(:ExprVarOrTerm) do |input, data, callback|
1343
+ data.values.each {|v| add_prod_datum(:ExprVarOrTerm, v)}
1344
+ end
1345
+
1331
1346
  # [121] BuiltInCall ::= Aggregate
1332
1347
  # | 'STR' '(' Expression ')'
1333
1348
  # | 'LANG' '(' Expression ')'
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: 3.1.6
4
+ version: 3.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-03-21 00:00:00.000000000 Z
12
+ date: 2021-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdf
@@ -20,7 +20,7 @@ dependencies:
20
20
  version: '3.1'
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 3.1.12
23
+ version: 3.1.14
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,7 +30,7 @@ dependencies:
30
30
  version: '3.1'
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 3.1.12
33
+ version: 3.1.14
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rdf-aggregate-repo
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -418,7 +418,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
418
418
  - !ruby/object:Gem::Version
419
419
  version: '0'
420
420
  requirements: []
421
- rubygems_version: 3.2.3
421
+ rubygems_version: 3.2.15
422
422
  signing_key:
423
423
  specification_version: 4
424
424
  summary: SPARQL Query and Update library for Ruby.