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