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