@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,126 @@
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
+ "loc": {
59
+ "sourceLocationType": "source",
60
+ "start": 15,
61
+ "end": 27
62
+ }
63
+ },
64
+ "solutionModifiers": {
65
+ "order": {
66
+ "type": "solutionModifier",
67
+ "subType": "order",
68
+ "orderDefs": [
69
+ {
70
+ "expression": {
71
+ "type": "term",
72
+ "subType": "variable",
73
+ "value": "o",
74
+ "loc": {
75
+ "sourceLocationType": "source",
76
+ "start": 37,
77
+ "end": 39
78
+ }
79
+ },
80
+ "descending": false,
81
+ "loc": {
82
+ "sourceLocationType": "source",
83
+ "start": 37,
84
+ "end": 39
85
+ }
86
+ }
87
+ ],
88
+ "loc": {
89
+ "sourceLocationType": "source",
90
+ "start": 28,
91
+ "end": 39
92
+ }
93
+ }
94
+ },
95
+ "datasets": {
96
+ "type": "datasetClauses",
97
+ "clauses": [],
98
+ "loc": {
99
+ "sourceLocationType": "noMaterialize"
100
+ }
101
+ },
102
+ "variables": [
103
+ {
104
+ "type": "wildcard",
105
+ "loc": {
106
+ "sourceLocationType": "source",
107
+ "start": 7,
108
+ "end": 8
109
+ }
110
+ }
111
+ ],
112
+ "loc": {
113
+ "sourceLocationType": "inlinedSource",
114
+ "newSource": "SELECT * WHERE { ?s ?p ?o } ORDER BY ?o",
115
+ "start": 0,
116
+ "end": 9007199254740991,
117
+ "loc": {
118
+ "sourceLocationType": "source",
119
+ "start": 0,
120
+ "end": 39
121
+ },
122
+ "startOnNew": 0,
123
+ "endOnNew": 39
124
+ },
125
+ "type": "query"
126
+ }
@@ -0,0 +1,118 @@
1
+ {
2
+ "context": [
3
+ {
4
+ "type": "contextDef",
5
+ "subType": "prefix",
6
+ "key": "ex",
7
+ "value": {
8
+ "type": "term",
9
+ "subType": "namedNode",
10
+ "value": "http://example.org/",
11
+ "loc": {
12
+ "sourceLocationType": "source",
13
+ "start": 11,
14
+ "end": 32
15
+ }
16
+ },
17
+ "loc": {
18
+ "sourceLocationType": "source",
19
+ "start": 0,
20
+ "end": 32
21
+ }
22
+ }
23
+ ],
24
+ "subType": "select",
25
+ "where": {
26
+ "type": "pattern",
27
+ "subType": "group",
28
+ "patterns": [
29
+ {
30
+ "type": "pattern",
31
+ "subType": "bgp",
32
+ "triples": [
33
+ {
34
+ "type": "triple",
35
+ "subject": {
36
+ "type": "term",
37
+ "subType": "namedNode",
38
+ "value": "",
39
+ "loc": {
40
+ "sourceLocationType": "source",
41
+ "start": 50,
42
+ "end": 53
43
+ },
44
+ "prefix": "ex"
45
+ },
46
+ "predicate": {
47
+ "type": "term",
48
+ "subType": "variable",
49
+ "value": "p",
50
+ "loc": {
51
+ "sourceLocationType": "source",
52
+ "start": 54,
53
+ "end": 56
54
+ }
55
+ },
56
+ "object": {
57
+ "type": "term",
58
+ "subType": "variable",
59
+ "value": "o",
60
+ "loc": {
61
+ "sourceLocationType": "source",
62
+ "start": 57,
63
+ "end": 59
64
+ }
65
+ },
66
+ "loc": {
67
+ "sourceLocationType": "source",
68
+ "start": 50,
69
+ "end": 59
70
+ }
71
+ }
72
+ ],
73
+ "loc": {
74
+ "sourceLocationType": "source",
75
+ "start": 50,
76
+ "end": 59
77
+ }
78
+ }
79
+ ],
80
+ "loc": {
81
+ "sourceLocationType": "source",
82
+ "start": 48,
83
+ "end": 61
84
+ }
85
+ },
86
+ "solutionModifiers": {},
87
+ "datasets": {
88
+ "type": "datasetClauses",
89
+ "clauses": [],
90
+ "loc": {
91
+ "sourceLocationType": "noMaterialize"
92
+ }
93
+ },
94
+ "variables": [
95
+ {
96
+ "type": "wildcard",
97
+ "loc": {
98
+ "sourceLocationType": "source",
99
+ "start": 40,
100
+ "end": 41
101
+ }
102
+ }
103
+ ],
104
+ "loc": {
105
+ "sourceLocationType": "inlinedSource",
106
+ "newSource": "PREFIX ex: <http://example.org/> SELECT * WHERE { ex: ?p ?o }",
107
+ "start": 0,
108
+ "end": 9007199254740991,
109
+ "loc": {
110
+ "sourceLocationType": "source",
111
+ "start": 0,
112
+ "end": 61
113
+ },
114
+ "startOnNew": 0,
115
+ "endOnNew": 61
116
+ },
117
+ "type": "query"
118
+ }
@@ -0,0 +1,148 @@
1
+ {
2
+ "type": "update",
3
+ "updates": [
4
+ {
5
+ "context": [],
6
+ "operation": {
7
+ "type": "updateOperation",
8
+ "subType": "insertdata",
9
+ "data": [
10
+ {
11
+ "type": "graph",
12
+ "graph": {
13
+ "type": "term",
14
+ "subType": "namedNode",
15
+ "value": "http://g",
16
+ "loc": {
17
+ "sourceLocationType": "source",
18
+ "start": 20,
19
+ "end": 30
20
+ }
21
+ },
22
+ "triples": {
23
+ "type": "pattern",
24
+ "subType": "bgp",
25
+ "triples": [
26
+ {
27
+ "type": "triple",
28
+ "subject": {
29
+ "type": "term",
30
+ "subType": "namedNode",
31
+ "value": "http://s",
32
+ "loc": {
33
+ "sourceLocationType": "source",
34
+ "start": 33,
35
+ "end": 43
36
+ }
37
+ },
38
+ "predicate": {
39
+ "type": "term",
40
+ "subType": "namedNode",
41
+ "value": "http://p",
42
+ "loc": {
43
+ "sourceLocationType": "source",
44
+ "start": 44,
45
+ "end": 54
46
+ }
47
+ },
48
+ "object": {
49
+ "type": "term",
50
+ "subType": "namedNode",
51
+ "value": "http://o",
52
+ "loc": {
53
+ "sourceLocationType": "source",
54
+ "start": 55,
55
+ "end": 65
56
+ }
57
+ },
58
+ "loc": {
59
+ "sourceLocationType": "source",
60
+ "start": 33,
61
+ "end": 65
62
+ }
63
+ }
64
+ ],
65
+ "loc": {
66
+ "sourceLocationType": "source",
67
+ "start": 33,
68
+ "end": 65
69
+ }
70
+ },
71
+ "loc": {
72
+ "sourceLocationType": "source",
73
+ "start": 14,
74
+ "end": 67
75
+ }
76
+ },
77
+ {
78
+ "type": "pattern",
79
+ "subType": "bgp",
80
+ "triples": [
81
+ {
82
+ "type": "triple",
83
+ "subject": {
84
+ "type": "term",
85
+ "subType": "namedNode",
86
+ "value": "http://s2",
87
+ "loc": {
88
+ "sourceLocationType": "source",
89
+ "start": 68,
90
+ "end": 79
91
+ }
92
+ },
93
+ "predicate": {
94
+ "type": "term",
95
+ "subType": "namedNode",
96
+ "value": "http://p2",
97
+ "loc": {
98
+ "sourceLocationType": "source",
99
+ "start": 80,
100
+ "end": 91
101
+ }
102
+ },
103
+ "object": {
104
+ "type": "term",
105
+ "subType": "namedNode",
106
+ "value": "http://o2",
107
+ "loc": {
108
+ "sourceLocationType": "source",
109
+ "start": 92,
110
+ "end": 103
111
+ }
112
+ },
113
+ "loc": {
114
+ "sourceLocationType": "source",
115
+ "start": 68,
116
+ "end": 103
117
+ }
118
+ }
119
+ ],
120
+ "loc": {
121
+ "sourceLocationType": "source",
122
+ "start": 68,
123
+ "end": 103
124
+ }
125
+ }
126
+ ],
127
+ "loc": {
128
+ "sourceLocationType": "source",
129
+ "start": 0,
130
+ "end": 105
131
+ }
132
+ }
133
+ }
134
+ ],
135
+ "loc": {
136
+ "sourceLocationType": "inlinedSource",
137
+ "newSource": "INSERT DATA { GRAPH <http://g> { <http://s> <http://p> <http://o> } <http://s2> <http://p2> <http://o2> }",
138
+ "start": 0,
139
+ "end": 9007199254740991,
140
+ "loc": {
141
+ "sourceLocationType": "source",
142
+ "start": 0,
143
+ "end": 105
144
+ },
145
+ "startOnNew": 0,
146
+ "endOnNew": 105
147
+ }
148
+ }
@@ -0,0 +1,130 @@
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": "operation",
14
+ "operator": "=",
15
+ "args": [
16
+ {
17
+ "type": "expression",
18
+ "subType": "operation",
19
+ "operator": "replace",
20
+ "args": [
21
+ {
22
+ "type": "term",
23
+ "subType": "variable",
24
+ "value": "s",
25
+ "loc": {
26
+ "sourceLocationType": "source",
27
+ "start": 32,
28
+ "end": 34
29
+ }
30
+ },
31
+ {
32
+ "type": "term",
33
+ "subType": "literal",
34
+ "value": "x",
35
+ "loc": {
36
+ "sourceLocationType": "source",
37
+ "start": 36,
38
+ "end": 39
39
+ }
40
+ },
41
+ {
42
+ "type": "term",
43
+ "subType": "literal",
44
+ "value": "y",
45
+ "loc": {
46
+ "sourceLocationType": "source",
47
+ "start": 41,
48
+ "end": 44
49
+ }
50
+ },
51
+ {
52
+ "type": "term",
53
+ "subType": "literal",
54
+ "value": "i",
55
+ "loc": {
56
+ "sourceLocationType": "source",
57
+ "start": 46,
58
+ "end": 49
59
+ }
60
+ }
61
+ ],
62
+ "loc": {
63
+ "sourceLocationType": "source",
64
+ "start": 24,
65
+ "end": 50
66
+ }
67
+ },
68
+ {
69
+ "type": "term",
70
+ "subType": "variable",
71
+ "value": "s",
72
+ "loc": {
73
+ "sourceLocationType": "source",
74
+ "start": 53,
75
+ "end": 55
76
+ }
77
+ }
78
+ ],
79
+ "loc": {
80
+ "sourceLocationType": "source",
81
+ "start": 23,
82
+ "end": 56
83
+ }
84
+ },
85
+ "loc": {
86
+ "sourceLocationType": "source",
87
+ "start": 17,
88
+ "end": 56
89
+ }
90
+ }
91
+ ],
92
+ "loc": {
93
+ "sourceLocationType": "source",
94
+ "start": 15,
95
+ "end": 58
96
+ }
97
+ },
98
+ "solutionModifiers": {},
99
+ "datasets": {
100
+ "type": "datasetClauses",
101
+ "clauses": [],
102
+ "loc": {
103
+ "sourceLocationType": "noMaterialize"
104
+ }
105
+ },
106
+ "variables": [
107
+ {
108
+ "type": "wildcard",
109
+ "loc": {
110
+ "sourceLocationType": "source",
111
+ "start": 7,
112
+ "end": 8
113
+ }
114
+ }
115
+ ],
116
+ "loc": {
117
+ "sourceLocationType": "inlinedSource",
118
+ "newSource": "SELECT * WHERE { FILTER(REPLACE(?s, \"x\", \"y\", \"i\") = ?s) }",
119
+ "start": 0,
120
+ "end": 9007199254740991,
121
+ "loc": {
122
+ "sourceLocationType": "source",
123
+ "start": 0,
124
+ "end": 58
125
+ },
126
+ "startOnNew": 0,
127
+ "endOnNew": 58
128
+ },
129
+ "type": "query"
130
+ }
@@ -0,0 +1,120 @@
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": "operation",
14
+ "operator": "=",
15
+ "args": [
16
+ {
17
+ "type": "expression",
18
+ "subType": "operation",
19
+ "operator": "replace",
20
+ "args": [
21
+ {
22
+ "type": "term",
23
+ "subType": "variable",
24
+ "value": "s",
25
+ "loc": {
26
+ "sourceLocationType": "source",
27
+ "start": 32,
28
+ "end": 34
29
+ }
30
+ },
31
+ {
32
+ "type": "term",
33
+ "subType": "literal",
34
+ "value": "x",
35
+ "loc": {
36
+ "sourceLocationType": "source",
37
+ "start": 36,
38
+ "end": 39
39
+ }
40
+ },
41
+ {
42
+ "type": "term",
43
+ "subType": "literal",
44
+ "value": "y",
45
+ "loc": {
46
+ "sourceLocationType": "source",
47
+ "start": 41,
48
+ "end": 44
49
+ }
50
+ }
51
+ ],
52
+ "loc": {
53
+ "sourceLocationType": "source",
54
+ "start": 24,
55
+ "end": 45
56
+ }
57
+ },
58
+ {
59
+ "type": "term",
60
+ "subType": "variable",
61
+ "value": "s",
62
+ "loc": {
63
+ "sourceLocationType": "source",
64
+ "start": 48,
65
+ "end": 50
66
+ }
67
+ }
68
+ ],
69
+ "loc": {
70
+ "sourceLocationType": "source",
71
+ "start": 23,
72
+ "end": 51
73
+ }
74
+ },
75
+ "loc": {
76
+ "sourceLocationType": "source",
77
+ "start": 17,
78
+ "end": 51
79
+ }
80
+ }
81
+ ],
82
+ "loc": {
83
+ "sourceLocationType": "source",
84
+ "start": 15,
85
+ "end": 53
86
+ }
87
+ },
88
+ "solutionModifiers": {},
89
+ "datasets": {
90
+ "type": "datasetClauses",
91
+ "clauses": [],
92
+ "loc": {
93
+ "sourceLocationType": "noMaterialize"
94
+ }
95
+ },
96
+ "variables": [
97
+ {
98
+ "type": "wildcard",
99
+ "loc": {
100
+ "sourceLocationType": "source",
101
+ "start": 7,
102
+ "end": 8
103
+ }
104
+ }
105
+ ],
106
+ "loc": {
107
+ "sourceLocationType": "inlinedSource",
108
+ "newSource": "SELECT * WHERE { FILTER(REPLACE(?s, \"x\", \"y\") = ?s) }",
109
+ "start": 0,
110
+ "end": 9007199254740991,
111
+ "loc": {
112
+ "sourceLocationType": "source",
113
+ "start": 0,
114
+ "end": 53
115
+ },
116
+ "startOnNew": 0,
117
+ "endOnNew": 53
118
+ },
119
+ "type": "query"
120
+ }