@traqula/test-utils 1.0.3 → 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.
Files changed (237) hide show
  1. package/dist/cjs/lib/Sparql11NotesTest.js +16 -168
  2. package/dist/cjs/lib/Sparql11NotesTest.js.map +1 -1
  3. package/dist/cjs/lib/generators/algebraGenerators.js +13 -15
  4. package/dist/cjs/lib/generators/algebraGenerators.js.map +1 -1
  5. package/dist/cjs/lib/generators/generators.js +13 -15
  6. package/dist/cjs/lib/generators/generators.js.map +1 -1
  7. package/dist/cjs/lib/generators/utils.js +3 -2
  8. package/dist/cjs/lib/generators/utils.js.map +1 -1
  9. package/dist/cjs/lib/matchers/toEqualParsedQuery.js +3 -3
  10. package/dist/cjs/lib/matchers/toEqualParsedQuery.js.map +1 -1
  11. package/dist/esm/lib/Sparql11NotesTest.d.ts +1 -1
  12. package/dist/esm/lib/Sparql11NotesTest.js +16 -168
  13. package/dist/esm/lib/Sparql11NotesTest.js.map +1 -1
  14. package/dist/esm/lib/generators/algebraGenerators.js +13 -15
  15. package/dist/esm/lib/generators/algebraGenerators.js.map +1 -1
  16. package/dist/esm/lib/generators/generators.js +13 -15
  17. package/dist/esm/lib/generators/generators.js.map +1 -1
  18. package/dist/esm/lib/generators/utils.js +3 -2
  19. package/dist/esm/lib/generators/utils.js.map +1 -1
  20. package/dist/esm/lib/matchers/toEqualParsedQuery.js +3 -3
  21. package/dist/esm/lib/matchers/toEqualParsedQuery.js.map +1 -1
  22. package/package.json +2 -2
  23. package/statics/algebra/algebra/sparql12/sparql-1-2-ar-langdir.json +44 -0
  24. package/statics/algebra/algebra/sparql12/sparql-1-2-en-langdir.json +44 -0
  25. package/statics/algebra/algebra-blank-to-var/sparql12/sparql-1-2-ar-langdir.json +44 -0
  26. package/statics/algebra/algebra-blank-to-var/sparql12/sparql-1-2-en-langdir.json +44 -0
  27. package/statics/algebra/sparql/sparql12/sparql-1-2-ar-langdir.sparql +1 -0
  28. package/statics/algebra/sparql/sparql12/sparql-1-2-en-langdir.sparql +1 -0
  29. package/statics/ast/ast-source-tracked/sparql-1-1/add-silent.json +69 -0
  30. package/statics/ast/ast-source-tracked/sparql-1-1/additive-neg-div.json +156 -0
  31. package/statics/ast/ast-source-tracked/sparql-1-1/additive-pos-mult.json +156 -0
  32. package/statics/ast/ast-source-tracked/sparql-1-1/all-var-idx.json +98 -98
  33. package/statics/ast/ast-source-tracked/sparql-1-1/ask-basic.json +86 -0
  34. package/statics/ast/ast-source-tracked/sparql-1-1/base-declaration.json +116 -0
  35. package/statics/ast/ast-source-tracked/sparql-1-1/blank-node-path.json +141 -0
  36. package/statics/ast/ast-source-tracked/sparql-1-1/blank-node-subject.json +96 -0
  37. package/statics/ast/ast-source-tracked/sparql-1-1/bnode-nil.json +89 -0
  38. package/statics/ast/ast-source-tracked/sparql-1-1/collection-object.json +169 -0
  39. package/statics/ast/ast-source-tracked/sparql-1-1/collection-path-subject.json +233 -0
  40. package/statics/ast/ast-source-tracked/sparql-1-1/collection-subject.json +169 -0
  41. package/statics/ast/ast-source-tracked/sparql-1-1/construct-empty-template.json +94 -0
  42. package/statics/ast/ast-source-tracked/sparql-1-1/count-select.json +130 -0
  43. package/statics/ast/ast-source-tracked/sparql-1-1/delete-only.json +149 -0
  44. package/statics/ast/ast-source-tracked/sparql-1-1/delete-where.json +81 -0
  45. package/statics/ast/ast-source-tracked/sparql-1-1/distinct-extension-function.json +171 -0
  46. package/statics/ast/ast-source-tracked/sparql-1-1/drop-named.json +40 -0
  47. package/statics/ast/ast-source-tracked/sparql-1-1/escape-backspace.json +96 -0
  48. package/statics/ast/ast-source-tracked/sparql-1-1/escape-cr.json +96 -0
  49. package/statics/ast/ast-source-tracked/sparql-1-1/escape-formfeed.json +96 -0
  50. package/statics/ast/ast-source-tracked/sparql-1-1/escape-tab.json +96 -0
  51. package/statics/ast/ast-source-tracked/sparql-1-1/filter-neg-div.json +197 -0
  52. package/statics/ast/ast-source-tracked/sparql-1-1/filter-neg-mult.json +175 -0
  53. package/statics/ast/ast-source-tracked/sparql-1-1/filter-pos-div.json +205 -0
  54. package/statics/ast/ast-source-tracked/sparql-1-1/filter-pos-mult.json +205 -0
  55. package/statics/ast/ast-source-tracked/sparql-1-1/func-nil-args.json +77 -0
  56. package/statics/ast/ast-source-tracked/sparql-1-1/graph-empty-insert.json +58 -0
  57. package/statics/ast/ast-source-tracked/sparql-1-1/group-by-bind-expr.json +137 -0
  58. package/statics/ast/ast-source-tracked/sparql-1-1/group-by-bind-var.json +189 -0
  59. package/statics/ast/ast-source-tracked/sparql-1-1/in.json +84 -4
  60. package/statics/ast/ast-source-tracked/sparql-1-1/inv-nps-path.json +150 -0
  61. package/statics/ast/ast-source-tracked/sparql-1-1/literal-newline.json +96 -0
  62. package/statics/ast/ast-source-tracked/sparql-1-1/load-silent.json +41 -0
  63. package/statics/ast/ast-source-tracked/sparql-1-1/minus-optional.json +216 -0
  64. package/statics/ast/ast-source-tracked/sparql-1-1/multiple-updates.json +144 -0
  65. package/statics/ast/ast-source-tracked/sparql-1-1/negated-inverse-path.json +118 -0
  66. package/statics/ast/ast-source-tracked/sparql-1-1/order-by-var.json +126 -0
  67. package/statics/ast/ast-source-tracked/sparql-1-1/prefix-only-iri.json +118 -0
  68. package/statics/ast/ast-source-tracked/sparql-1-1/quads-after-graph.json +148 -0
  69. package/statics/ast/ast-source-tracked/sparql-1-1/replace-four-args.json +130 -0
  70. package/statics/ast/ast-source-tracked/sparql-1-1/replace-three-args.json +120 -0
  71. package/statics/ast/ast-source-tracked/sparql-1-1/unary-minus.json +108 -0
  72. package/statics/ast/ast-source-tracked/sparql-1-1/unary-plus.json +108 -0
  73. package/statics/ast/ast-source-tracked/sparql-1-1/values-at-end.json +131 -0
  74. package/statics/ast/ast-source-tracked/sparql-1-1/values-in-where.json +106 -0
  75. package/statics/ast/ast-source-tracked/sparql-1-2/reified-triple-explicit-reifier.json +155 -0
  76. package/statics/ast/ast-source-tracked/sparql-1-2/reified-triple-no-reifier.json +153 -0
  77. package/statics/ast/ast-source-tracked/sparql-1-2/reified-triple-tilde-no-id.json +153 -0
  78. package/statics/ast/ast-source-tracked/sparql-1-2/unary-minus-12.json +108 -0
  79. package/statics/ast/ast-source-tracked/sparql-1-2/unary-plus-12.json +108 -0
  80. package/statics/ast/ast-source-tracked/sparql-1-2/version-decl.json +108 -0
  81. package/statics/ast/ast-source-tracked/sparql-1-2/version-with-prefix.json +128 -0
  82. package/statics/ast/sparql/sparql-1-1/add-silent.sparql +1 -0
  83. package/statics/ast/sparql/sparql-1-1/additive-neg-div.sparql +1 -0
  84. package/statics/ast/sparql/sparql-1-1/additive-pos-mult.sparql +1 -0
  85. package/statics/ast/sparql/sparql-1-1/ask-basic.sparql +1 -0
  86. package/statics/ast/sparql/sparql-1-1/base-declaration.sparql +1 -0
  87. package/statics/ast/sparql/sparql-1-1/blank-node-path.sparql +1 -0
  88. package/statics/ast/sparql/sparql-1-1/blank-node-subject.sparql +1 -0
  89. package/statics/ast/sparql/sparql-1-1/bnode-nil.sparql +1 -0
  90. package/statics/ast/sparql/sparql-1-1/collection-object.sparql +1 -0
  91. package/statics/ast/sparql/sparql-1-1/collection-path-subject.sparql +1 -0
  92. package/statics/ast/sparql/sparql-1-1/collection-subject.sparql +1 -0
  93. package/statics/ast/sparql/sparql-1-1/construct-empty-template.sparql +1 -0
  94. package/statics/ast/sparql/sparql-1-1/count-select.sparql +1 -0
  95. package/statics/ast/sparql/sparql-1-1/delete-only.sparql +1 -0
  96. package/statics/ast/sparql/sparql-1-1/delete-where.sparql +1 -0
  97. package/statics/ast/sparql/sparql-1-1/distinct-extension-function.sparql +1 -0
  98. package/statics/ast/sparql/sparql-1-1/drop-named.sparql +1 -0
  99. package/statics/ast/sparql/sparql-1-1/escape-backspace.sparql +1 -0
  100. package/statics/ast/sparql/sparql-1-1/escape-cr.sparql +1 -0
  101. package/statics/ast/sparql/sparql-1-1/escape-formfeed.sparql +1 -0
  102. package/statics/ast/sparql/sparql-1-1/escape-tab.sparql +1 -0
  103. package/statics/ast/sparql/sparql-1-1/filter-neg-div.sparql +1 -0
  104. package/statics/ast/sparql/sparql-1-1/filter-neg-mult.sparql +1 -0
  105. package/statics/ast/sparql/sparql-1-1/filter-pos-div.sparql +1 -0
  106. package/statics/ast/sparql/sparql-1-1/filter-pos-mult.sparql +1 -0
  107. package/statics/ast/sparql/sparql-1-1/func-nil-args.sparql +1 -0
  108. package/statics/ast/sparql/sparql-1-1/graph-empty-insert.sparql +1 -0
  109. package/statics/ast/sparql/sparql-1-1/group-by-bind-expr.sparql +1 -0
  110. package/statics/ast/sparql/sparql-1-1/group-by-bind-var.sparql +1 -0
  111. package/statics/ast/sparql/sparql-1-1/in.sparql +2 -0
  112. package/statics/ast/sparql/sparql-1-1/inv-nps-path.sparql +1 -0
  113. package/statics/ast/sparql/sparql-1-1/literal-newline.sparql +1 -0
  114. package/statics/ast/sparql/sparql-1-1/load-silent.sparql +1 -0
  115. package/statics/ast/sparql/sparql-1-1/minus-optional.sparql +1 -0
  116. package/statics/ast/sparql/sparql-1-1/multiple-updates.sparql +1 -0
  117. package/statics/ast/sparql/sparql-1-1/negated-inverse-path.sparql +1 -0
  118. package/statics/ast/sparql/sparql-1-1/order-by-var.sparql +1 -0
  119. package/statics/ast/sparql/sparql-1-1/prefix-only-iri.sparql +1 -0
  120. package/statics/ast/sparql/sparql-1-1/quads-after-graph.sparql +1 -0
  121. package/statics/ast/sparql/sparql-1-1/replace-four-args.sparql +1 -0
  122. package/statics/ast/sparql/sparql-1-1/replace-three-args.sparql +1 -0
  123. package/statics/ast/sparql/sparql-1-1/unary-minus.sparql +1 -0
  124. package/statics/ast/sparql/sparql-1-1/unary-plus.sparql +1 -0
  125. package/statics/ast/sparql/sparql-1-1/values-at-end.sparql +1 -0
  126. package/statics/ast/sparql/sparql-1-1/values-in-where.sparql +1 -0
  127. package/statics/ast/sparql/sparql-1-2/reified-triple-explicit-reifier.sparql +1 -0
  128. package/statics/ast/sparql/sparql-1-2/reified-triple-no-reifier.sparql +1 -0
  129. package/statics/ast/sparql/sparql-1-2/reified-triple-tilde-no-id.sparql +1 -0
  130. package/statics/ast/sparql/sparql-1-2/unary-minus-12.sparql +1 -0
  131. package/statics/ast/sparql/sparql-1-2/unary-plus-12.sparql +1 -0
  132. package/statics/ast/sparql/sparql-1-2/version-decl.sparql +1 -0
  133. package/statics/ast/sparql/sparql-1-2/version-with-prefix.sparql +1 -0
  134. package/statics/ast/sparql-generated/sparql-1-1/add-silent.sparql +1 -0
  135. package/statics/ast/sparql-generated/sparql-1-1/additive-neg-div.sparql +3 -0
  136. package/statics/ast/sparql-generated/sparql-1-1/additive-pos-mult.sparql +3 -0
  137. package/statics/ast/sparql-generated/sparql-1-1/ask-basic.sparql +3 -0
  138. package/statics/ast/sparql-generated/sparql-1-1/base-declaration.sparql +4 -0
  139. package/statics/ast/sparql-generated/sparql-1-1/blank-node-path.sparql +5 -0
  140. package/statics/ast/sparql-generated/sparql-1-1/blank-node-subject.sparql +3 -0
  141. package/statics/ast/sparql-generated/sparql-1-1/bnode-nil.sparql +3 -0
  142. package/statics/ast/sparql-generated/sparql-1-1/collection-object.sparql +3 -0
  143. package/statics/ast/sparql-generated/sparql-1-1/collection-path-subject.sparql +3 -0
  144. package/statics/ast/sparql-generated/sparql-1-1/collection-subject.sparql +3 -0
  145. package/statics/ast/sparql-generated/sparql-1-1/construct-empty-template.sparql +5 -0
  146. package/statics/ast/sparql-generated/sparql-1-1/count-select.sparql +3 -0
  147. package/statics/ast/sparql-generated/sparql-1-1/delete-only.sparql +6 -0
  148. package/statics/ast/sparql-generated/sparql-1-1/delete-where.sparql +3 -0
  149. package/statics/ast/sparql-generated/sparql-1-1/distinct-extension-function.sparql +4 -0
  150. package/statics/ast/sparql-generated/sparql-1-1/drop-named.sparql +1 -0
  151. package/statics/ast/sparql-generated/sparql-1-1/escape-backspace.sparql +3 -0
  152. package/statics/ast/sparql-generated/sparql-1-1/escape-cr.sparql +3 -0
  153. package/statics/ast/sparql-generated/sparql-1-1/escape-formfeed.sparql +3 -0
  154. package/statics/ast/sparql-generated/sparql-1-1/escape-tab.sparql +3 -0
  155. package/statics/ast/sparql-generated/sparql-1-1/filter-neg-div.sparql +4 -0
  156. package/statics/ast/sparql-generated/sparql-1-1/filter-neg-mult.sparql +4 -0
  157. package/statics/ast/sparql-generated/sparql-1-1/filter-pos-div.sparql +4 -0
  158. package/statics/ast/sparql-generated/sparql-1-1/filter-pos-mult.sparql +4 -0
  159. package/statics/ast/sparql-generated/sparql-1-1/func-nil-args.sparql +3 -0
  160. package/statics/ast/sparql-generated/sparql-1-1/graph-empty-insert.sparql +4 -0
  161. package/statics/ast/sparql-generated/sparql-1-1/group-by-bind-expr.sparql +4 -0
  162. package/statics/ast/sparql-generated/sparql-1-1/group-by-bind-var.sparql +5 -0
  163. package/statics/ast/sparql-generated/sparql-1-1/in.sparql +3 -1
  164. package/statics/ast/sparql-generated/sparql-1-1/inv-nps-path.sparql +3 -0
  165. package/statics/ast/sparql-generated/sparql-1-1/literal-newline.sparql +3 -0
  166. package/statics/ast/sparql-generated/sparql-1-1/load-silent.sparql +1 -0
  167. package/statics/ast/sparql-generated/sparql-1-1/minus-optional.sparql +9 -0
  168. package/statics/ast/sparql-generated/sparql-1-1/multiple-updates.sparql +7 -0
  169. package/statics/ast/sparql-generated/sparql-1-1/negated-inverse-path.sparql +3 -0
  170. package/statics/ast/sparql-generated/sparql-1-1/order-by-var.sparql +4 -0
  171. package/statics/ast/sparql-generated/sparql-1-1/prefix-only-iri.sparql +4 -0
  172. package/statics/ast/sparql-generated/sparql-1-1/quads-after-graph.sparql +6 -0
  173. package/statics/ast/sparql-generated/sparql-1-1/replace-four-args.sparql +3 -0
  174. package/statics/ast/sparql-generated/sparql-1-1/replace-three-args.sparql +3 -0
  175. package/statics/ast/sparql-generated/sparql-1-1/unary-minus.sparql +3 -0
  176. package/statics/ast/sparql-generated/sparql-1-1/unary-plus.sparql +3 -0
  177. package/statics/ast/sparql-generated/sparql-1-1/values-at-end.sparql +6 -0
  178. package/statics/ast/sparql-generated/sparql-1-1/values-in-where.sparql +6 -0
  179. package/statics/ast/sparql-generated/sparql-1-2/reified-triple-explicit-reifier.sparql +4 -0
  180. package/statics/ast/sparql-generated/sparql-1-2/reified-triple-no-reifier.sparql +4 -0
  181. package/statics/ast/sparql-generated/sparql-1-2/reified-triple-tilde-no-id.sparql +4 -0
  182. package/statics/ast/sparql-generated/sparql-1-2/unary-minus-12.sparql +3 -0
  183. package/statics/ast/sparql-generated/sparql-1-2/unary-plus-12.sparql +3 -0
  184. package/statics/ast/sparql-generated/sparql-1-2/version-decl.sparql +4 -0
  185. package/statics/ast/sparql-generated/sparql-1-2/version-with-prefix.sparql +5 -0
  186. package/statics/ast/sparql-generated-compact/sparql-1-1/add-silent.sparql +1 -0
  187. package/statics/ast/sparql-generated-compact/sparql-1-1/additive-neg-div.sparql +1 -0
  188. package/statics/ast/sparql-generated-compact/sparql-1-1/additive-pos-mult.sparql +1 -0
  189. package/statics/ast/sparql-generated-compact/sparql-1-1/ask-basic.sparql +1 -0
  190. package/statics/ast/sparql-generated-compact/sparql-1-1/base-declaration.sparql +1 -0
  191. package/statics/ast/sparql-generated-compact/sparql-1-1/blank-node-path.sparql +1 -0
  192. package/statics/ast/sparql-generated-compact/sparql-1-1/blank-node-subject.sparql +1 -0
  193. package/statics/ast/sparql-generated-compact/sparql-1-1/bnode-nil.sparql +1 -0
  194. package/statics/ast/sparql-generated-compact/sparql-1-1/collection-object.sparql +1 -0
  195. package/statics/ast/sparql-generated-compact/sparql-1-1/collection-path-subject.sparql +1 -0
  196. package/statics/ast/sparql-generated-compact/sparql-1-1/collection-subject.sparql +1 -0
  197. package/statics/ast/sparql-generated-compact/sparql-1-1/construct-empty-template.sparql +1 -0
  198. package/statics/ast/sparql-generated-compact/sparql-1-1/count-select.sparql +1 -0
  199. package/statics/ast/sparql-generated-compact/sparql-1-1/delete-only.sparql +1 -0
  200. package/statics/ast/sparql-generated-compact/sparql-1-1/delete-where.sparql +1 -0
  201. package/statics/ast/sparql-generated-compact/sparql-1-1/distinct-extension-function.sparql +1 -0
  202. package/statics/ast/sparql-generated-compact/sparql-1-1/drop-named.sparql +1 -0
  203. package/statics/ast/sparql-generated-compact/sparql-1-1/escape-backspace.sparql +1 -0
  204. package/statics/ast/sparql-generated-compact/sparql-1-1/escape-cr.sparql +1 -0
  205. package/statics/ast/sparql-generated-compact/sparql-1-1/escape-formfeed.sparql +1 -0
  206. package/statics/ast/sparql-generated-compact/sparql-1-1/escape-tab.sparql +1 -0
  207. package/statics/ast/sparql-generated-compact/sparql-1-1/filter-neg-div.sparql +1 -0
  208. package/statics/ast/sparql-generated-compact/sparql-1-1/filter-neg-mult.sparql +1 -0
  209. package/statics/ast/sparql-generated-compact/sparql-1-1/filter-pos-div.sparql +1 -0
  210. package/statics/ast/sparql-generated-compact/sparql-1-1/filter-pos-mult.sparql +1 -0
  211. package/statics/ast/sparql-generated-compact/sparql-1-1/func-nil-args.sparql +1 -0
  212. package/statics/ast/sparql-generated-compact/sparql-1-1/graph-empty-insert.sparql +1 -0
  213. package/statics/ast/sparql-generated-compact/sparql-1-1/group-by-bind-expr.sparql +1 -0
  214. package/statics/ast/sparql-generated-compact/sparql-1-1/group-by-bind-var.sparql +1 -0
  215. package/statics/ast/sparql-generated-compact/sparql-1-1/in.sparql +1 -1
  216. package/statics/ast/sparql-generated-compact/sparql-1-1/inv-nps-path.sparql +1 -0
  217. package/statics/ast/sparql-generated-compact/sparql-1-1/literal-newline.sparql +1 -0
  218. package/statics/ast/sparql-generated-compact/sparql-1-1/load-silent.sparql +1 -0
  219. package/statics/ast/sparql-generated-compact/sparql-1-1/minus-optional.sparql +1 -0
  220. package/statics/ast/sparql-generated-compact/sparql-1-1/multiple-updates.sparql +1 -0
  221. package/statics/ast/sparql-generated-compact/sparql-1-1/negated-inverse-path.sparql +1 -0
  222. package/statics/ast/sparql-generated-compact/sparql-1-1/order-by-var.sparql +1 -0
  223. package/statics/ast/sparql-generated-compact/sparql-1-1/prefix-only-iri.sparql +1 -0
  224. package/statics/ast/sparql-generated-compact/sparql-1-1/quads-after-graph.sparql +1 -0
  225. package/statics/ast/sparql-generated-compact/sparql-1-1/replace-four-args.sparql +1 -0
  226. package/statics/ast/sparql-generated-compact/sparql-1-1/replace-three-args.sparql +1 -0
  227. package/statics/ast/sparql-generated-compact/sparql-1-1/unary-minus.sparql +1 -0
  228. package/statics/ast/sparql-generated-compact/sparql-1-1/unary-plus.sparql +1 -0
  229. package/statics/ast/sparql-generated-compact/sparql-1-1/values-at-end.sparql +1 -0
  230. package/statics/ast/sparql-generated-compact/sparql-1-1/values-in-where.sparql +1 -0
  231. package/statics/ast/sparql-generated-compact/sparql-1-2/reified-triple-explicit-reifier.sparql +1 -0
  232. package/statics/ast/sparql-generated-compact/sparql-1-2/reified-triple-no-reifier.sparql +1 -0
  233. package/statics/ast/sparql-generated-compact/sparql-1-2/reified-triple-tilde-no-id.sparql +1 -0
  234. package/statics/ast/sparql-generated-compact/sparql-1-2/unary-minus-12.sparql +1 -0
  235. package/statics/ast/sparql-generated-compact/sparql-1-2/unary-plus-12.sparql +1 -0
  236. package/statics/ast/sparql-generated-compact/sparql-1-2/version-decl.sparql +1 -0
  237. package/statics/ast/sparql-generated-compact/sparql-1-2/version-with-prefix.sparql +1 -0
@@ -0,0 +1,175 @@
1
+ {
2
+ "context": [],
3
+ "subType": "select",
4
+ "where": {
5
+ "type": "pattern",
6
+ "subType": "group",
7
+ "patterns": [
8
+ {
9
+ "type": "pattern",
10
+ "subType": "bgp",
11
+ "triples": [
12
+ {
13
+ "type": "triple",
14
+ "subject": {
15
+ "type": "term",
16
+ "subType": "variable",
17
+ "value": "s",
18
+ "loc": {
19
+ "sourceLocationType": "source",
20
+ "start": 17,
21
+ "end": 19
22
+ }
23
+ },
24
+ "predicate": {
25
+ "type": "term",
26
+ "subType": "variable",
27
+ "value": "p",
28
+ "loc": {
29
+ "sourceLocationType": "source",
30
+ "start": 20,
31
+ "end": 22
32
+ }
33
+ },
34
+ "object": {
35
+ "type": "term",
36
+ "subType": "variable",
37
+ "value": "o",
38
+ "loc": {
39
+ "sourceLocationType": "source",
40
+ "start": 23,
41
+ "end": 25
42
+ }
43
+ },
44
+ "loc": {
45
+ "sourceLocationType": "source",
46
+ "start": 17,
47
+ "end": 25
48
+ }
49
+ }
50
+ ],
51
+ "loc": {
52
+ "sourceLocationType": "source",
53
+ "start": 17,
54
+ "end": 25
55
+ }
56
+ },
57
+ {
58
+ "type": "pattern",
59
+ "subType": "filter",
60
+ "expression": {
61
+ "type": "expression",
62
+ "subType": "operation",
63
+ "operator": ">",
64
+ "args": [
65
+ {
66
+ "type": "expression",
67
+ "subType": "operation",
68
+ "operator": "*",
69
+ "args": [
70
+ {
71
+ "type": "term",
72
+ "subType": "literal",
73
+ "value": "-3",
74
+ "langOrIri": {
75
+ "type": "term",
76
+ "subType": "namedNode",
77
+ "value": "http://www.w3.org/2001/XMLSchema#integer",
78
+ "loc": {
79
+ "sourceLocationType": "noMaterialize"
80
+ }
81
+ },
82
+ "loc": {
83
+ "sourceLocationType": "source",
84
+ "start": 33,
85
+ "end": 35
86
+ }
87
+ },
88
+ {
89
+ "type": "term",
90
+ "subType": "variable",
91
+ "value": "x",
92
+ "loc": {
93
+ "sourceLocationType": "source",
94
+ "start": 38,
95
+ "end": 40
96
+ }
97
+ }
98
+ ],
99
+ "loc": {
100
+ "sourceLocationType": "source",
101
+ "start": 33,
102
+ "end": 40
103
+ }
104
+ },
105
+ {
106
+ "type": "term",
107
+ "subType": "literal",
108
+ "value": "0",
109
+ "langOrIri": {
110
+ "type": "term",
111
+ "subType": "namedNode",
112
+ "value": "http://www.w3.org/2001/XMLSchema#integer",
113
+ "loc": {
114
+ "sourceLocationType": "noMaterialize"
115
+ }
116
+ },
117
+ "loc": {
118
+ "sourceLocationType": "source",
119
+ "start": 43,
120
+ "end": 44
121
+ }
122
+ }
123
+ ],
124
+ "loc": {
125
+ "sourceLocationType": "source",
126
+ "start": 32,
127
+ "end": 45
128
+ }
129
+ },
130
+ "loc": {
131
+ "sourceLocationType": "source",
132
+ "start": 26,
133
+ "end": 45
134
+ }
135
+ }
136
+ ],
137
+ "loc": {
138
+ "sourceLocationType": "source",
139
+ "start": 15,
140
+ "end": 47
141
+ }
142
+ },
143
+ "solutionModifiers": {},
144
+ "datasets": {
145
+ "type": "datasetClauses",
146
+ "clauses": [],
147
+ "loc": {
148
+ "sourceLocationType": "noMaterialize"
149
+ }
150
+ },
151
+ "variables": [
152
+ {
153
+ "type": "wildcard",
154
+ "loc": {
155
+ "sourceLocationType": "source",
156
+ "start": 7,
157
+ "end": 8
158
+ }
159
+ }
160
+ ],
161
+ "loc": {
162
+ "sourceLocationType": "inlinedSource",
163
+ "newSource": "SELECT * WHERE { ?s ?p ?o FILTER(-3 * ?x > 0) }",
164
+ "start": 0,
165
+ "end": 9007199254740991,
166
+ "loc": {
167
+ "sourceLocationType": "source",
168
+ "start": 0,
169
+ "end": 47
170
+ },
171
+ "startOnNew": 0,
172
+ "endOnNew": 47
173
+ },
174
+ "type": "query"
175
+ }
@@ -0,0 +1,205 @@
1
+ {
2
+ "context": [],
3
+ "subType": "select",
4
+ "where": {
5
+ "type": "pattern",
6
+ "subType": "group",
7
+ "patterns": [
8
+ {
9
+ "type": "pattern",
10
+ "subType": "bgp",
11
+ "triples": [
12
+ {
13
+ "type": "triple",
14
+ "subject": {
15
+ "type": "term",
16
+ "subType": "variable",
17
+ "value": "s",
18
+ "loc": {
19
+ "sourceLocationType": "source",
20
+ "start": 17,
21
+ "end": 19
22
+ }
23
+ },
24
+ "predicate": {
25
+ "type": "term",
26
+ "subType": "variable",
27
+ "value": "p",
28
+ "loc": {
29
+ "sourceLocationType": "source",
30
+ "start": 20,
31
+ "end": 22
32
+ }
33
+ },
34
+ "object": {
35
+ "type": "term",
36
+ "subType": "variable",
37
+ "value": "o",
38
+ "loc": {
39
+ "sourceLocationType": "source",
40
+ "start": 23,
41
+ "end": 25
42
+ }
43
+ },
44
+ "loc": {
45
+ "sourceLocationType": "source",
46
+ "start": 17,
47
+ "end": 25
48
+ }
49
+ }
50
+ ],
51
+ "loc": {
52
+ "sourceLocationType": "source",
53
+ "start": 17,
54
+ "end": 25
55
+ }
56
+ },
57
+ {
58
+ "type": "pattern",
59
+ "subType": "filter",
60
+ "expression": {
61
+ "type": "expression",
62
+ "subType": "operation",
63
+ "operator": ">",
64
+ "args": [
65
+ {
66
+ "type": "expression",
67
+ "subType": "operation",
68
+ "operator": "+",
69
+ "args": [
70
+ {
71
+ "type": "term",
72
+ "subType": "variable",
73
+ "value": "x",
74
+ "loc": {
75
+ "sourceLocationType": "source",
76
+ "start": 33,
77
+ "end": 35
78
+ }
79
+ },
80
+ {
81
+ "type": "expression",
82
+ "subType": "operation",
83
+ "operator": "/",
84
+ "args": [
85
+ {
86
+ "type": "term",
87
+ "subType": "literal",
88
+ "value": "4",
89
+ "langOrIri": {
90
+ "type": "term",
91
+ "subType": "namedNode",
92
+ "value": "http://www.w3.org/2001/XMLSchema#integer",
93
+ "loc": {
94
+ "sourceLocationType": "noMaterialize"
95
+ }
96
+ },
97
+ "loc": {
98
+ "sourceLocationType": "source",
99
+ "start": 36,
100
+ "end": 38
101
+ }
102
+ },
103
+ {
104
+ "type": "term",
105
+ "subType": "literal",
106
+ "value": "2",
107
+ "langOrIri": {
108
+ "type": "term",
109
+ "subType": "namedNode",
110
+ "value": "http://www.w3.org/2001/XMLSchema#integer",
111
+ "loc": {
112
+ "sourceLocationType": "noMaterialize"
113
+ }
114
+ },
115
+ "loc": {
116
+ "sourceLocationType": "source",
117
+ "start": 41,
118
+ "end": 42
119
+ }
120
+ }
121
+ ],
122
+ "loc": {
123
+ "sourceLocationType": "source",
124
+ "start": 36,
125
+ "end": 42
126
+ }
127
+ }
128
+ ],
129
+ "loc": {
130
+ "sourceLocationType": "source",
131
+ "start": 33,
132
+ "end": 42
133
+ }
134
+ },
135
+ {
136
+ "type": "term",
137
+ "subType": "literal",
138
+ "value": "0",
139
+ "langOrIri": {
140
+ "type": "term",
141
+ "subType": "namedNode",
142
+ "value": "http://www.w3.org/2001/XMLSchema#integer",
143
+ "loc": {
144
+ "sourceLocationType": "noMaterialize"
145
+ }
146
+ },
147
+ "loc": {
148
+ "sourceLocationType": "source",
149
+ "start": 45,
150
+ "end": 46
151
+ }
152
+ }
153
+ ],
154
+ "loc": {
155
+ "sourceLocationType": "source",
156
+ "start": 32,
157
+ "end": 47
158
+ }
159
+ },
160
+ "loc": {
161
+ "sourceLocationType": "source",
162
+ "start": 26,
163
+ "end": 47
164
+ }
165
+ }
166
+ ],
167
+ "loc": {
168
+ "sourceLocationType": "source",
169
+ "start": 15,
170
+ "end": 49
171
+ }
172
+ },
173
+ "solutionModifiers": {},
174
+ "datasets": {
175
+ "type": "datasetClauses",
176
+ "clauses": [],
177
+ "loc": {
178
+ "sourceLocationType": "noMaterialize"
179
+ }
180
+ },
181
+ "variables": [
182
+ {
183
+ "type": "wildcard",
184
+ "loc": {
185
+ "sourceLocationType": "source",
186
+ "start": 7,
187
+ "end": 8
188
+ }
189
+ }
190
+ ],
191
+ "loc": {
192
+ "sourceLocationType": "inlinedSource",
193
+ "newSource": "SELECT * WHERE { ?s ?p ?o FILTER(?x +4 / 2 > 0) }",
194
+ "start": 0,
195
+ "end": 9007199254740991,
196
+ "loc": {
197
+ "sourceLocationType": "source",
198
+ "start": 0,
199
+ "end": 49
200
+ },
201
+ "startOnNew": 0,
202
+ "endOnNew": 49
203
+ },
204
+ "type": "query"
205
+ }
@@ -0,0 +1,205 @@
1
+ {
2
+ "context": [],
3
+ "subType": "select",
4
+ "where": {
5
+ "type": "pattern",
6
+ "subType": "group",
7
+ "patterns": [
8
+ {
9
+ "type": "pattern",
10
+ "subType": "bgp",
11
+ "triples": [
12
+ {
13
+ "type": "triple",
14
+ "subject": {
15
+ "type": "term",
16
+ "subType": "variable",
17
+ "value": "s",
18
+ "loc": {
19
+ "sourceLocationType": "source",
20
+ "start": 17,
21
+ "end": 19
22
+ }
23
+ },
24
+ "predicate": {
25
+ "type": "term",
26
+ "subType": "variable",
27
+ "value": "p",
28
+ "loc": {
29
+ "sourceLocationType": "source",
30
+ "start": 20,
31
+ "end": 22
32
+ }
33
+ },
34
+ "object": {
35
+ "type": "term",
36
+ "subType": "variable",
37
+ "value": "o",
38
+ "loc": {
39
+ "sourceLocationType": "source",
40
+ "start": 23,
41
+ "end": 25
42
+ }
43
+ },
44
+ "loc": {
45
+ "sourceLocationType": "source",
46
+ "start": 17,
47
+ "end": 25
48
+ }
49
+ }
50
+ ],
51
+ "loc": {
52
+ "sourceLocationType": "source",
53
+ "start": 17,
54
+ "end": 25
55
+ }
56
+ },
57
+ {
58
+ "type": "pattern",
59
+ "subType": "filter",
60
+ "expression": {
61
+ "type": "expression",
62
+ "subType": "operation",
63
+ "operator": ">",
64
+ "args": [
65
+ {
66
+ "type": "expression",
67
+ "subType": "operation",
68
+ "operator": "+",
69
+ "args": [
70
+ {
71
+ "type": "term",
72
+ "subType": "variable",
73
+ "value": "x",
74
+ "loc": {
75
+ "sourceLocationType": "source",
76
+ "start": 33,
77
+ "end": 35
78
+ }
79
+ },
80
+ {
81
+ "type": "expression",
82
+ "subType": "operation",
83
+ "operator": "*",
84
+ "args": [
85
+ {
86
+ "type": "term",
87
+ "subType": "literal",
88
+ "value": "2",
89
+ "langOrIri": {
90
+ "type": "term",
91
+ "subType": "namedNode",
92
+ "value": "http://www.w3.org/2001/XMLSchema#integer",
93
+ "loc": {
94
+ "sourceLocationType": "noMaterialize"
95
+ }
96
+ },
97
+ "loc": {
98
+ "sourceLocationType": "source",
99
+ "start": 36,
100
+ "end": 38
101
+ }
102
+ },
103
+ {
104
+ "type": "term",
105
+ "subType": "literal",
106
+ "value": "3",
107
+ "langOrIri": {
108
+ "type": "term",
109
+ "subType": "namedNode",
110
+ "value": "http://www.w3.org/2001/XMLSchema#integer",
111
+ "loc": {
112
+ "sourceLocationType": "noMaterialize"
113
+ }
114
+ },
115
+ "loc": {
116
+ "sourceLocationType": "source",
117
+ "start": 41,
118
+ "end": 42
119
+ }
120
+ }
121
+ ],
122
+ "loc": {
123
+ "sourceLocationType": "source",
124
+ "start": 36,
125
+ "end": 42
126
+ }
127
+ }
128
+ ],
129
+ "loc": {
130
+ "sourceLocationType": "source",
131
+ "start": 33,
132
+ "end": 42
133
+ }
134
+ },
135
+ {
136
+ "type": "term",
137
+ "subType": "literal",
138
+ "value": "0",
139
+ "langOrIri": {
140
+ "type": "term",
141
+ "subType": "namedNode",
142
+ "value": "http://www.w3.org/2001/XMLSchema#integer",
143
+ "loc": {
144
+ "sourceLocationType": "noMaterialize"
145
+ }
146
+ },
147
+ "loc": {
148
+ "sourceLocationType": "source",
149
+ "start": 45,
150
+ "end": 46
151
+ }
152
+ }
153
+ ],
154
+ "loc": {
155
+ "sourceLocationType": "source",
156
+ "start": 32,
157
+ "end": 47
158
+ }
159
+ },
160
+ "loc": {
161
+ "sourceLocationType": "source",
162
+ "start": 26,
163
+ "end": 47
164
+ }
165
+ }
166
+ ],
167
+ "loc": {
168
+ "sourceLocationType": "source",
169
+ "start": 15,
170
+ "end": 49
171
+ }
172
+ },
173
+ "solutionModifiers": {},
174
+ "datasets": {
175
+ "type": "datasetClauses",
176
+ "clauses": [],
177
+ "loc": {
178
+ "sourceLocationType": "noMaterialize"
179
+ }
180
+ },
181
+ "variables": [
182
+ {
183
+ "type": "wildcard",
184
+ "loc": {
185
+ "sourceLocationType": "source",
186
+ "start": 7,
187
+ "end": 8
188
+ }
189
+ }
190
+ ],
191
+ "loc": {
192
+ "sourceLocationType": "inlinedSource",
193
+ "newSource": "SELECT * WHERE { ?s ?p ?o FILTER(?x +2 * 3 > 0) }",
194
+ "start": 0,
195
+ "end": 9007199254740991,
196
+ "loc": {
197
+ "sourceLocationType": "source",
198
+ "start": 0,
199
+ "end": 49
200
+ },
201
+ "startOnNew": 0,
202
+ "endOnNew": 49
203
+ },
204
+ "type": "query"
205
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "context": [],
3
+ "subType": "select",
4
+ "where": {
5
+ "type": "pattern",
6
+ "subType": "group",
7
+ "patterns": [
8
+ {
9
+ "type": "pattern",
10
+ "subType": "filter",
11
+ "expression": {
12
+ "type": "expression",
13
+ "subType": "functionCall",
14
+ "function": {
15
+ "type": "term",
16
+ "subType": "namedNode",
17
+ "value": "http://ex.org/func",
18
+ "loc": {
19
+ "sourceLocationType": "source",
20
+ "start": 24,
21
+ "end": 44
22
+ }
23
+ },
24
+ "args": [],
25
+ "distinct": false,
26
+ "loc": {
27
+ "sourceLocationType": "source",
28
+ "start": 23,
29
+ "end": 47
30
+ }
31
+ },
32
+ "loc": {
33
+ "sourceLocationType": "source",
34
+ "start": 17,
35
+ "end": 47
36
+ }
37
+ }
38
+ ],
39
+ "loc": {
40
+ "sourceLocationType": "source",
41
+ "start": 15,
42
+ "end": 49
43
+ }
44
+ },
45
+ "solutionModifiers": {},
46
+ "datasets": {
47
+ "type": "datasetClauses",
48
+ "clauses": [],
49
+ "loc": {
50
+ "sourceLocationType": "noMaterialize"
51
+ }
52
+ },
53
+ "variables": [
54
+ {
55
+ "type": "wildcard",
56
+ "loc": {
57
+ "sourceLocationType": "source",
58
+ "start": 7,
59
+ "end": 8
60
+ }
61
+ }
62
+ ],
63
+ "loc": {
64
+ "sourceLocationType": "inlinedSource",
65
+ "newSource": "SELECT * WHERE { FILTER(<http://ex.org/func>()) }",
66
+ "start": 0,
67
+ "end": 9007199254740991,
68
+ "loc": {
69
+ "sourceLocationType": "source",
70
+ "start": 0,
71
+ "end": 49
72
+ },
73
+ "startOnNew": 0,
74
+ "endOnNew": 49
75
+ },
76
+ "type": "query"
77
+ }