@traqula/parser-sparql-1-1 0.0.20 → 0.0.22

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 (68) hide show
  1. package/dist/cjs/lib/Parser.js +44 -0
  2. package/dist/cjs/lib/expressionParser.js +75 -0
  3. package/dist/cjs/lib/index.js +38 -0
  4. package/dist/cjs/lib/objectListParser.js +57 -0
  5. package/dist/cjs/lib/queryUnitParser.js +44 -0
  6. package/dist/cjs/lib/subSelectParser.js +65 -0
  7. package/dist/cjs/lib/triplesBlockParser.js +57 -0
  8. package/dist/cjs/lib/triplesTemplateParserBuilder.js +59 -0
  9. package/dist/cjs/lib/updateNoModifyParser.js +72 -0
  10. package/dist/cjs/lib/updateUnitParser.js +33 -0
  11. package/dist/cjs/spec/parser.js +43 -0
  12. package/dist/cjs/test/heatmap.js +177 -0
  13. package/dist/cjs/test/query.bench.js +40 -0
  14. package/dist/cjs/test/statics.test.js +80 -0
  15. package/dist/esm/lib/Parser.js.map +1 -0
  16. package/dist/esm/lib/expressionParser.js.map +1 -0
  17. package/dist/esm/lib/index.js.map +1 -0
  18. package/dist/esm/lib/objectListParser.js.map +1 -0
  19. package/dist/esm/lib/queryUnitParser.js.map +1 -0
  20. package/dist/esm/lib/subSelectParser.js.map +1 -0
  21. package/dist/esm/lib/triplesBlockParser.js.map +1 -0
  22. package/dist/esm/lib/triplesTemplateParserBuilder.js.map +1 -0
  23. package/dist/esm/lib/updateNoModifyParser.js.map +1 -0
  24. package/dist/esm/lib/updateUnitParser.js.map +1 -0
  25. package/dist/esm/spec/parser.d.ts +4 -0
  26. package/dist/esm/spec/parser.js +13 -0
  27. package/dist/esm/spec/parser.js.map +1 -0
  28. package/dist/esm/test/heatmap.d.ts +1 -0
  29. package/dist/esm/test/heatmap.js +151 -0
  30. package/dist/esm/test/heatmap.js.map +1 -0
  31. package/dist/esm/test/query.bench.d.ts +1 -0
  32. package/dist/esm/test/query.bench.js +41 -0
  33. package/dist/esm/test/query.bench.js.map +1 -0
  34. package/dist/esm/test/statics.test.d.ts +1 -0
  35. package/dist/esm/test/statics.test.js +61 -0
  36. package/dist/esm/test/statics.test.js.map +1 -0
  37. package/package.json +14 -17
  38. package/lib/Parser.js.map +0 -1
  39. package/lib/expressionParser.js.map +0 -1
  40. package/lib/index.cjs +0 -15175
  41. package/lib/index.js.map +0 -1
  42. package/lib/objectListParser.js.map +0 -1
  43. package/lib/queryUnitParser.js.map +0 -1
  44. package/lib/subSelectParser.js.map +0 -1
  45. package/lib/triplesBlockParser.js.map +0 -1
  46. package/lib/triplesTemplateParserBuilder.js.map +0 -1
  47. package/lib/updateNoModifyParser.js.map +0 -1
  48. package/lib/updateUnitParser.js.map +0 -1
  49. /package/{lib → dist/esm/lib}/Parser.d.ts +0 -0
  50. /package/{lib → dist/esm/lib}/Parser.js +0 -0
  51. /package/{lib → dist/esm/lib}/expressionParser.d.ts +0 -0
  52. /package/{lib → dist/esm/lib}/expressionParser.js +0 -0
  53. /package/{lib → dist/esm/lib}/index.d.ts +0 -0
  54. /package/{lib → dist/esm/lib}/index.js +0 -0
  55. /package/{lib → dist/esm/lib}/objectListParser.d.ts +0 -0
  56. /package/{lib → dist/esm/lib}/objectListParser.js +0 -0
  57. /package/{lib → dist/esm/lib}/queryUnitParser.d.ts +0 -0
  58. /package/{lib → dist/esm/lib}/queryUnitParser.js +0 -0
  59. /package/{lib → dist/esm/lib}/subSelectParser.d.ts +0 -0
  60. /package/{lib → dist/esm/lib}/subSelectParser.js +0 -0
  61. /package/{lib → dist/esm/lib}/triplesBlockParser.d.ts +0 -0
  62. /package/{lib → dist/esm/lib}/triplesBlockParser.js +0 -0
  63. /package/{lib → dist/esm/lib}/triplesTemplateParserBuilder.d.ts +0 -0
  64. /package/{lib → dist/esm/lib}/triplesTemplateParserBuilder.js +0 -0
  65. /package/{lib → dist/esm/lib}/updateNoModifyParser.d.ts +0 -0
  66. /package/{lib → dist/esm/lib}/updateNoModifyParser.js +0 -0
  67. /package/{lib → dist/esm/lib}/updateUnitParser.d.ts +0 -0
  68. /package/{lib → dist/esm/lib}/updateUnitParser.js +0 -0
@@ -0,0 +1,177 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var heatmap_exports = {};
20
+ __export(heatmap_exports, {
21
+ queryLargeObjectList: () => queryLargeObjectList
22
+ });
23
+ module.exports = __toCommonJS(heatmap_exports);
24
+ var import_lib = require("../lib/index.js");
25
+ const queryLargeObjectList = `
26
+ BASE <http://foo.com/>
27
+ INSERT DATA {
28
+ GRAPH <http://example.com/data> {
29
+ <a> <b> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
30
+ 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
31
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 .
32
+ <c> <d> "000"; <d> "001"; <d> "002"; <d> "003"; <d> "004"; <d> "005"; <d> "006"; <d> "007"; <d> "008"; <d> "009";
33
+ <d> "010"; <d> "011"; <d> "012"; <d> "013"; <d> "014"; <d> "015"; <d> "016"; <d> "017"; <d> "018"; <d> "019";
34
+ <d> "020"; <d> "021"; <d> "022"; <d> "023"; <d> "024"; <d> "025"; <d> "026"; <d> "027"; <d> "028"; <d> "029";
35
+ <d> "030"; <d> "031"; <d> "032"; <d> "033"; <d> "034"; <d> "035"; <d> "036"; <d> "037"; <d> "038"; <d> "039";
36
+ <d> "040"; <d> "041"; <d> "042"; <d> "043"; <d> "044"; <d> "045"; <d> "046"; <d> "047"; <d> "048"; <d> "049";
37
+ <d> "050"; <d> "051"; <d> "052"; <d> "053"; <d> "054"; <d> "055"; <d> "056"; <d> "057"; <d> "058"; <d> "059";
38
+ <d> "060"; <d> "061"; <d> "062"; <d> "063"; <d> "064"; <d> "065"; <d> "066"; <d> "067"; <d> "068"; <d> "069";
39
+ <d> "070"; <d> "071"; <d> "072"; <d> "073"; <d> "074"; <d> "075"; <d> "076"; <d> "077"; <d> "078"; <d> "079";
40
+ <d> "080"; <d> "081"; <d> "082"; <d> "083"; <d> "084"; <d> "085"; <d> "086"; <d> "087"; <d> "088"; <d> "089";
41
+ <d> "090"; <d> "091"; <d> "092"; <d> "093"; <d> "094"; <d> "095"; <d> "096"; <d> "097"; <d> "098"; <d> "099";
42
+ <d> "100"; <d> "101"; <d> "102"; <d> "103"; <d> "104"; <d> "105"; <d> "106"; <d> "107"; <d> "108"; <d> "109";
43
+ <d> "110"; <d> "111"; <d> "112"; <d> "113"; <d> "114"; <d> "115"; <d> "116"; <d> "117"; <d> "118"; <d> "119";
44
+ <d> "120"; <d> "121"; <d> "122"; <d> "123"; <d> "124"; <d> "125"; <d> "126"; <d> "127"; <d> "128"; <d> "129";
45
+ <d> "130"; <d> "131"; <d> "132"; <d> "133"; <d> "134"; <d> "135"; <d> "136"; <d> "137"; <d> "138"; <d> "139";
46
+ <d> "140"; <d> "141"; <d> "142"; <d> "143"; <d> "144"; <d> "145"; <d> "146"; <d> "147"; <d> "148"; <d> "149";
47
+ <d> "150"; <d> "151"; <d> "152"; <d> "153"; <d> "154"; <d> "155"; <d> "156"; <d> "157"; <d> "158"; <d> "159";
48
+ <d> "160"; <d> "161"; <d> "162"; <d> "163"; <d> "164"; <d> "165"; <d> "166"; <d> "167"; <d> "168"; <d> "169";
49
+ <d> "170"; <d> "171"; <d> "172"; <d> "173"; <d> "174"; <d> "175"; <d> "176"; <d> "177"; <d> "178"; <d> "179";
50
+ <d> "180"; <d> "181"; <d> "182"; <d> "183"; <d> "184"; <d> "185"; <d> "186"; <d> "187"; <d> "188"; <d> "189";
51
+ <d> "190"; <d> "191"; <d> "192"; <d> "193"; <d> "194"; <d> "195"; <d> "196"; <d> "197"; <d> "198"; <d> "199";
52
+ <d> "200"; <d> "201"; <d> "202"; <d> "203"; <d> "204"; <d> "205"; <d> "206"; <d> "207"; <d> "208"; <d> "209";
53
+ <d> "210"; <d> "211"; <d> "212"; <d> "213"; <d> "214"; <d> "215"; <d> "216"; <d> "217"; <d> "218"; <d> "219";
54
+ <d> "220"; <d> "221"; <d> "222"; <d> "223"; <d> "224"; <d> "225"; <d> "226"; <d> "227"; <d> "228"; <d> "229";
55
+ <d> "230"; <d> "231"; <d> "232"; <d> "233"; <d> "234"; <d> "235"; <d> "236"; <d> "237"; <d> "238"; <d> "239";
56
+ <d> "240"; <d> "241"; <d> "242"; <d> "243"; <d> "244"; <d> "245"; <d> "246"; <d> "247"; <d> "248"; <d> "249";
57
+ <d> "250"; <d> "251"; <d> "252"; <d> "253"; <d> "254"; <d> "255"; <d> "256"; <d> "257"; <d> "258"; <d> "259";
58
+ <d> "260"; <d> "261"; <d> "262"; <d> "263"; <d> "264"; <d> "265"; <d> "266"; <d> "267"; <d> "268"; <d> "269";
59
+ <d> "270"; <d> "271"; <d> "272"; <d> "273"; <d> "274"; <d> "275"; <d> "276"; <d> "277"; <d> "278"; <d> "279";
60
+ <d> "280"; <d> "281"; <d> "282"; <d> "283"; <d> "284"; <d> "285"; <d> "286"; <d> "287"; <d> "288"; <d> "289";
61
+ <d> "290"; <d> "291"; <d> "292"; <d> "293"; <d> "294"; <d> "295"; <d> "296"; <d> "297"; <d> "298"; <d> "299".
62
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
63
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
64
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
65
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
66
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
67
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
68
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
69
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
70
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
71
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
72
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
73
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
74
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
75
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
76
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
77
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
78
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
79
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
80
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
81
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
82
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
83
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
84
+ <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .
85
+ <e> <f> <g000> . <e> <f> <g001> . <e> <f> <g002> . <e> <f> <g003> . <e> <f> <g004> .
86
+ <e> <f> <g005> . <e> <f> <g006> . <e> <f> <g007> . <e> <f> <g008> . <e> <f> <g009> .
87
+ <e> <f> <g010> . <e> <f> <g011> . <e> <f> <g012> . <e> <f> <g013> . <e> <f> <g014> .
88
+ <e> <f> <g015> . <e> <f> <g016> . <e> <f> <g017> . <e> <f> <g018> . <e> <f> <g019> .
89
+ <e> <f> <g020> . <e> <f> <g021> . <e> <f> <g022> . <e> <f> <g023> . <e> <f> <g024> .
90
+ <e> <f> <g025> . <e> <f> <g026> . <e> <f> <g027> . <e> <f> <g028> . <e> <f> <g029> .
91
+ <e> <f> <g030> . <e> <f> <g031> . <e> <f> <g032> . <e> <f> <g033> . <e> <f> <g034> .
92
+ <e> <f> <g035> . <e> <f> <g036> . <e> <f> <g037> . <e> <f> <g038> . <e> <f> <g039> .
93
+ <e> <f> <g040> . <e> <f> <g041> . <e> <f> <g042> . <e> <f> <g043> . <e> <f> <g044> .
94
+ <e> <f> <g045> . <e> <f> <g046> . <e> <f> <g047> . <e> <f> <g048> . <e> <f> <g049> .
95
+ <e> <f> <g050> . <e> <f> <g051> . <e> <f> <g052> . <e> <f> <g053> . <e> <f> <g054> .
96
+ <e> <f> <g055> . <e> <f> <g056> . <e> <f> <g057> . <e> <f> <g058> . <e> <f> <g059> .
97
+ <e> <f> <g060> . <e> <f> <g061> . <e> <f> <g062> . <e> <f> <g063> . <e> <f> <g064> .
98
+ <e> <f> <g065> . <e> <f> <g066> . <e> <f> <g067> . <e> <f> <g068> . <e> <f> <g069> .
99
+ <e> <f> <g070> . <e> <f> <g071> . <e> <f> <g072> . <e> <f> <g073> . <e> <f> <g074> .
100
+ <e> <f> <g075> . <e> <f> <g076> . <e> <f> <g077> . <e> <f> <g078> . <e> <f> <g079> .
101
+ <e> <f> <g080> . <e> <f> <g081> . <e> <f> <g082> . <e> <f> <g083> . <e> <f> <g084> .
102
+ <e> <f> <g085> . <e> <f> <g086> . <e> <f> <g087> . <e> <f> <g088> . <e> <f> <g089> .
103
+ <e> <f> <g090> . <e> <f> <g091> . <e> <f> <g092> . <e> <f> <g093> . <e> <f> <g094> .
104
+ <e> <f> <g095> . <e> <f> <g096> . <e> <f> <g097> . <e> <f> <g098> . <e> <f> <g099> .
105
+ <e> <f> <g100> . <e> <f> <g101> . <e> <f> <g102> . <e> <f> <g103> . <e> <f> <g104> .
106
+ <e> <f> <g105> . <e> <f> <g106> . <e> <f> <g107> . <e> <f> <g108> . <e> <f> <g109> .
107
+ <e> <f> <g110> . <e> <f> <g111> . <e> <f> <g112> . <e> <f> <g113> . <e> <f> <g114> .
108
+ <e> <f> <g115> . <e> <f> <g116> . <e> <f> <g117> . <e> <f> <g118> . <e> <f> <g119> .
109
+ <e> <f> <g120> . <e> <f> <g121> . <e> <f> <g122> . <e> <f> <g123> . <e> <f> <g124> .
110
+ <e> <f> <g125> . <e> <f> <g126> . <e> <f> <g127> . <e> <f> <g128> . <e> <f> <g129> .
111
+ <e> <f> <g130> . <e> <f> <g131> . <e> <f> <g132> . <e> <f> <g133> . <e> <f> <g134> .
112
+ <e> <f> <g135> . <e> <f> <g136> . <e> <f> <g137> . <e> <f> <g138> . <e> <f> <g139> .
113
+ <e> <f> <g140> . <e> <f> <g141> . <e> <f> <g142> . <e> <f> <g143> . <e> <f> <g144> .
114
+ <e> <f> <g145> . <e> <f> <g146> . <e> <f> <g147> . <e> <f> <g148> . <e> <f> <g149> .
115
+ <e> <f> <g150> . <e> <f> <g151> . <e> <f> <g152> . <e> <f> <g153> . <e> <f> <g154> .
116
+ <e> <f> <g155> . <e> <f> <g156> . <e> <f> <g157> . <e> <f> <g158> . <e> <f> <g159> .
117
+ <e> <f> <g160> . <e> <f> <g161> . <e> <f> <g162> . <e> <f> <g163> . <e> <f> <g164> .
118
+ <e> <f> <g165> . <e> <f> <g166> . <e> <f> <g167> . <e> <f> <g168> . <e> <f> <g169> .
119
+ <e> <f> <g170> . <e> <f> <g171> . <e> <f> <g172> . <e> <f> <g173> . <e> <f> <g174> .
120
+ <e> <f> <g175> . <e> <f> <g176> . <e> <f> <g177> . <e> <f> <g178> . <e> <f> <g179> .
121
+ <e> <f> <g180> . <e> <f> <g181> . <e> <f> <g182> . <e> <f> <g183> . <e> <f> <g184> .
122
+ <e> <f> <g185> . <e> <f> <g186> . <e> <f> <g187> . <e> <f> <g188> . <e> <f> <g189> .
123
+ <e> <f> <g190> . <e> <f> <g191> . <e> <f> <g192> . <e> <f> <g193> . <e> <f> <g194> .
124
+ <e> <f> <g195> . <e> <f> <g196> . <e> <f> <g197> . <e> <f> <g198> . <e> <f> <g199> .
125
+ <e> <f> <g200> . <e> <f> <g201> . <e> <f> <g202> . <e> <f> <g203> . <e> <f> <g204> .
126
+ <e> <f> <g205> . <e> <f> <g206> . <e> <f> <g207> . <e> <f> <g208> . <e> <f> <g209> .
127
+ <e> <f> <g210> . <e> <f> <g211> . <e> <f> <g212> . <e> <f> <g213> . <e> <f> <g214> .
128
+ <e> <f> <g215> . <e> <f> <g216> . <e> <f> <g217> . <e> <f> <g218> . <e> <f> <g219> .
129
+ <e> <f> <g220> . <e> <f> <g221> . <e> <f> <g222> . <e> <f> <g223> . <e> <f> <g224> .
130
+ <e> <f> <g225> . <e> <f> <g226> . <e> <f> <g227> . <e> <f> <g228> . <e> <f> <g229> .
131
+ <e> <f> <g230> . <e> <f> <g231> . <e> <f> <g232> . <e> <f> <g233> . <e> <f> <g234> .
132
+ <e> <f> <g235> . <e> <f> <g236> . <e> <f> <g237> . <e> <f> <g238> . <e> <f> <g239> .
133
+ <e> <f> <g240> . <e> <f> <g241> . <e> <f> <g242> . <e> <f> <g243> . <e> <f> <g244> .
134
+ <e> <f> <g245> . <e> <f> <g246> . <e> <f> <g247> . <e> <f> <g248> . <e> <f> <g249> .
135
+ <e> <f> <g250> . <e> <f> <g251> . <e> <f> <g252> . <e> <f> <g253> . <e> <f> <g254> .
136
+ <e> <f> <g255> . <e> <f> <g256> . <e> <f> <g257> . <e> <f> <g258> . <e> <f> <g259> .
137
+ <e> <f> <g260> . <e> <f> <g261> . <e> <f> <g262> . <e> <f> <g263> . <e> <f> <g264> .
138
+ <e> <f> <g265> . <e> <f> <g266> . <e> <f> <g267> . <e> <f> <g268> . <e> <f> <g269> .
139
+ <e> <f> <g270> . <e> <f> <g271> . <e> <f> <g272> . <e> <f> <g273> . <e> <f> <g274> .
140
+ <e> <f> <g275> . <e> <f> <g276> . <e> <f> <g277> . <e> <f> <g278> . <e> <f> <g279> .
141
+ <e> <f> <g280> . <e> <f> <g281> . <e> <f> <g282> . <e> <f> <g283> . <e> <f> <g284> .
142
+ <e> <f> <g285> . <e> <f> <g286> . <e> <f> <g287> . <e> <f> <g288> . <e> <f> <g289> .
143
+ <e> <f> <g290> . <e> <f> <g291> . <e> <f> <g292> . <e> <f> <g293> . <e> <f> <g294> .
144
+ <e> <f> <g295> . <e> <f> <g296> . <e> <f> <g297> . <e> <f> <g298> . <e> <f> <g299> .
145
+ <e> <f> <g300> . <e> <f> <g301> . <e> <f> <g302> . <e> <f> <g303> . <e> <f> <g304> .
146
+ <e> <f> <g305> . <e> <f> <g306> . <e> <f> <g307> . <e> <f> <g308> . <e> <f> <g309> .
147
+ <e> <f> <g310> . <e> <f> <g311> . <e> <f> <g312> . <e> <f> <g313> . <e> <f> <g314> .
148
+ <e> <f> <g315> . <e> <f> <g316> . <e> <f> <g317> . <e> <f> <g318> . <e> <f> <g319> .
149
+ <e> <f> <g320> . <e> <f> <g321> . <e> <f> <g322> . <e> <f> <g323> . <e> <f> <g324> .
150
+ <e> <f> <g325> . <e> <f> <g326> . <e> <f> <g327> . <e> <f> <g328> . <e> <f> <g329> .
151
+ <e> <f> <g330> . <e> <f> <g331> . <e> <f> <g332> . <e> <f> <g333> . <e> <f> <g334> .
152
+ <e> <f> <g335> . <e> <f> <g336> . <e> <f> <g337> . <e> <f> <g338> . <e> <f> <g339> .
153
+ <e> <f> <g340> . <e> <f> <g341> . <e> <f> <g342> . <e> <f> <g343> . <e> <f> <g344> .
154
+ <e> <f> <g345> . <e> <f> <g346> . <e> <f> <g347> . <e> <f> <g348> . <e> <f> <g349> .
155
+ <e> <f> <g350> . <e> <f> <g351> . <e> <f> <g352> . <e> <f> <g353> . <e> <f> <g354> .
156
+ <e> <f> <g355> . <e> <f> <g356> . <e> <f> <g357> . <e> <f> <g358> . <e> <f> <g359> .
157
+ <e> <f> <g360> . <e> <f> <g361> . <e> <f> <g362> . <e> <f> <g363> . <e> <f> <g364> .
158
+ <e> <f> <g365> . <e> <f> <g366> . <e> <f> <g367> . <e> <f> <g368> . <e> <f> <g369> .
159
+ <e> <f> <g370> . <e> <f> <g371> . <e> <f> <g372> . <e> <f> <g373> . <e> <f> <g374> .
160
+ <e> <f> <g375> . <e> <f> <g376> . <e> <f> <g377> . <e> <f> <g378> . <e> <f> <g379> .
161
+ <e> <f> <g380> . <e> <f> <g381> . <e> <f> <g382> . <e> <f> <g383> . <e> <f> <g384> .
162
+ <e> <f> <g385> . <e> <f> <g386> . <e> <f> <g387> . <e> <f> <g388> . <e> <f> <g389> .
163
+ <e> <f> <g390> . <e> <f> <g391> . <e> <f> <g392> . <e> <f> <g393> . <e> <f> <g394> .
164
+ <e> <f> <g395> . <e> <f> <g396> . <e> <f> <g397> . <e> <f> <g398> . <e> <f> <g399> .
165
+ }
166
+ }
167
+ `;
168
+ if (false) {
169
+ const parser = new import_lib.Parser();
170
+ for (let i = 0; i < 1e3; i++) {
171
+ parser.parse(queryLargeObjectList);
172
+ }
173
+ }
174
+ // Annotate the CommonJS export names for ESM import in node:
175
+ 0 && (module.exports = {
176
+ queryLargeObjectList
177
+ });
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var import_test_utils = require("@traqula/test-utils");
3
+ var import_sparqljs = require("sparqljs");
4
+ var import_vitest = require("vitest");
5
+ var import_lib = require("../lib/index.js");
6
+ var import_heatmap = require("./heatmap.js");
7
+ (0, import_vitest.describe)("query 1.1, exclude construction", () => {
8
+ const traqulaParser = new import_lib.Parser();
9
+ const noSourceTrackingTraqula = new import_lib.Parser({
10
+ lexerConfig: {
11
+ positionTracking: "onlyOffset"
12
+ }
13
+ });
14
+ const sparqlJSparser = new import_sparqljs.Parser();
15
+ const query = import_heatmap.queryLargeObjectList;
16
+ (0, import_vitest.describe)("large objectList", () => {
17
+ (0, import_vitest.bench)("traqula parse", () => {
18
+ traqulaParser.parse(query);
19
+ });
20
+ (0, import_vitest.bench)("sparqljs", () => {
21
+ sparqlJSparser.parse(query);
22
+ });
23
+ });
24
+ (0, import_vitest.describe)("general queries", async () => {
25
+ const allQueries = await Promise.all([...(0, import_test_utils.positiveTest)("sparql-1-1")].map((x) => x.statics().then((x2) => x2.query)));
26
+ (0, import_vitest.bench)("traqula parse 1.1", () => {
27
+ for (const query2 of allQueries) {
28
+ traqulaParser.parse(query2);
29
+ }
30
+ });
31
+ (0, import_vitest.bench)("sparqljs", () => {
32
+ for (const query2 of allQueries) {
33
+ sparqlJSparser.parse(query2);
34
+ }
35
+ });
36
+ (0, import_vitest.bench)("traqula no-source tracking", () => {
37
+ noSourceTrackingTraqula.parse(query);
38
+ });
39
+ });
40
+ });
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var import_node_fs = __toESM(require("node:fs"), 1);
25
+ var import_node_path = __toESM(require("node:path"), 1);
26
+ var import_rules_sparql_1_1 = require("@traqula/rules-sparql-1-1");
27
+ var import_test_utils = require("@traqula/test-utils");
28
+ var import_rdf_data_factory = require("rdf-data-factory");
29
+ var import_vitest = require("vitest");
30
+ var import_lib = require("../lib/index.js");
31
+ (0, import_vitest.describe)("a SPARQL 1.1 parser", () => {
32
+ const parser = new import_lib.Parser();
33
+ const context = { prefixes: { ex: "http://example.org/" } };
34
+ function _sinkAst(suite, test, response) {
35
+ const dir = (0, import_test_utils.getStaticFilePath)();
36
+ const fileLoc = import_node_path.default.join(dir, suite, `${test}.json`);
37
+ import_node_fs.default.writeFileSync(fileLoc, JSON.stringify(response, null, 2));
38
+ }
39
+ (0, import_vitest.it)("passes chevrotain validation", () => {
40
+ import_lib.sparql11ParserBuilder.build({
41
+ tokenVocabulary: import_rules_sparql_1_1.lex.sparql11LexerBuilder.tokenVocabulary,
42
+ lexerConfig: {
43
+ skipValidations: false,
44
+ ensureOptimizations: true
45
+ },
46
+ parserConfig: {
47
+ skipValidations: false
48
+ }
49
+ });
50
+ });
51
+ (0, import_vitest.describe)("positive paths", () => {
52
+ for (const { name, statics } of (0, import_test_utils.positiveTest)("paths")) {
53
+ (0, import_vitest.it)(`can parse ${name}`, async ({ expect }) => {
54
+ const { query, ast } = await statics();
55
+ const res = parser.parsePath(query, context);
56
+ expect(res).toEqualParsedQuery(ast);
57
+ });
58
+ }
59
+ });
60
+ (0, import_vitest.describe)("positive sparql 1.1", () => {
61
+ for (const { name, statics } of (0, import_test_utils.positiveTest)("sparql-1-1")) {
62
+ (0, import_vitest.it)(`can parse ${name}`, async ({ expect }) => {
63
+ const { query, ast } = await statics();
64
+ const res = parser.parse(query, context);
65
+ expect(res).toEqualParsedQuery(ast);
66
+ });
67
+ }
68
+ });
69
+ (0, import_vitest.describe)("negative SPARQL 1.1", () => {
70
+ for (const { name, statics } of (0, import_test_utils.negativeTest)("sparql-1-1-invalid")) {
71
+ (0, import_vitest.it)(`should NOT parse ${name}`, async ({ expect }) => {
72
+ const { query } = await statics();
73
+ expect(() => parser.parse(query, context)).toThrow();
74
+ });
75
+ }
76
+ });
77
+ (0, import_vitest.describe)("specific sparql 1.1 tests", () => {
78
+ (0, import_test_utils.importSparql11NoteTests)(parser, new import_rdf_data_factory.DataFactory());
79
+ });
80
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Parser.js","sourceRoot":"","sources":["../../../lib/Parser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvG,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,MAAM,CAAC,sBAAsB,CAAC;KAC9E,KAAK,CAAC,mBAAmB,EAAU,EAAE,CAAC;KACtC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AAI/B,MAAM,OAAO,MAAO,SAAQ,mBAAoC;IAC9D,YAAmB,OAA8D,EAAE;QACjF,MAAM,MAAM,GAAiB,qBAAqB,CAAC,KAAK,CAAC;YACvD,GAAG,IAAI;YACP,eAAe,EAAE,CAAC,CAAC,oBAAoB,CAAC,eAAe;YACvD,iBAAiB,EAAE,qBAAqB;SACzC,CAAC,CAAC;QACH,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;CACF","sourcesContent":["import type { ParserBuildArgs } from '@traqula/core';\nimport { ParserBuilder } from '@traqula/core';\nimport type * as T11 from '@traqula/rules-sparql-1-1';\nimport { gram, lex as l, MinimalSparqlParser, sparqlCodepointEscape } from '@traqula/rules-sparql-1-1';\nimport { queryUnitParserBuilder } from './queryUnitParser.js';\nimport { updateParserBuilder } from './updateUnitParser.js';\n\nexport const sparql11ParserBuilder = ParserBuilder.create(queryUnitParserBuilder)\n .merge(updateParserBuilder, <const> [])\n .addRule(gram.queryOrUpdate);\n\nexport type SparqlParser = ReturnType<typeof sparql11ParserBuilder.build>;\n\nexport class Parser extends MinimalSparqlParser<T11.SparqlQuery> {\n public constructor(args: Pick<ParserBuildArgs, 'parserConfig' | 'lexerConfig'> = {}) {\n const parser: SparqlParser = sparql11ParserBuilder.build({\n ...args,\n tokenVocabulary: l.sparql11LexerBuilder.tokenVocabulary,\n queryPreProcessor: sparqlCodepointEscape,\n });\n super(parser);\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expressionParser.js","sourceRoot":"","sources":["../../../lib/expressionParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEjD,MAAM,cAAc,GAAW;IAC7B,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,uBAAuB;IAC5B,IAAI,CAAC,wBAAwB;IAC7B,IAAI,CAAC,YAAY;IACjB,IAAI,CAAC,oBAAoB;IACzB,IAAI,CAAC,iBAAiB;IACtB,IAAI,CAAC,cAAc;IACnB,IAAI,CAAC,kBAAkB;IACvB,IAAI,CAAC,wBAAwB;IAC7B,IAAI,CAAC,eAAe;IACpB,IAAI,CAAC,iBAAiB;IACtB,IAAI,CAAC,oBAAoB;IACzB,eAAe;IACf,IAAI,CAAC,aAAa;IAClB,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,cAAc;IACnB,IAAI,CAAC,sBAAsB;IAC3B,IAAI,CAAC,sBAAsB;IAC3B,IAAI,CAAC,sBAAsB;IAC3B,IAAI,CAAC,cAAc;IACnB,IAAI,CAAC,IAAI;IACT,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,WAAW;IAChB,IAAI,CAAC,kBAAkB;IACvB,IAAI,CAAC,eAAe;IACpB,IAAI,CAAC,YAAY;IACjB,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,oBAAoB;IACzB,IAAI,CAAC,WAAW;IAChB,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,WAAW;IAChB,IAAI,CAAC,YAAY;IACjB,IAAI,CAAC,YAAY;IACjB,IAAI,CAAC,aAAa;IAClB,IAAI,CAAC,aAAa;IAClB,IAAI,CAAC,YAAY;IACjB,IAAI,CAAC,YAAY;IACjB,IAAI,CAAC,qBAAqB;CAC3B,CAAC;AAEF,MAAM,YAAY,GAA4B;IAC5C,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAChF,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,MAAM,CAAC,cAAc,CAAC;KACxE,OAAO,CACN,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,mBAAmB,EACxB,IAAI,CAAC,oBAAoB,EACzB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,qBAAqB,EAC1B,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,GAAG,EACR,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,MAAM,CACZ;KACA,OAAO,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import { ParserBuilder } from '@traqula/core';\nimport { gram } from '@traqula/rules-sparql-1-1';\n\nconst rulesNoBuiltIn = <const> [\n gram.expression,\n gram.conditionalOrExpression,\n gram.conditionalAndExpression,\n gram.valueLogical,\n gram.relationalExpression,\n gram.numericExpression,\n gram.expressionList,\n gram.additiveExpression,\n gram.multiplicativeExpression,\n gram.unaryExpression,\n gram.primaryExpression,\n gram.brackettedExpression,\n // BuiltInCall,\n gram.iriOrFunction,\n gram.rdfLiteral,\n gram.numericLiteral,\n gram.numericLiteralUnsigned,\n gram.numericLiteralPositive,\n gram.numericLiteralNegative,\n gram.booleanLiteral,\n gram.var_,\n gram.builtInStr,\n gram.builtInLang,\n gram.builtInLangmatches,\n gram.builtInDatatype,\n gram.builtInBound,\n gram.builtInIri,\n gram.builtInUri,\n gram.builtInBnodeSparqlJs,\n gram.builtInRand,\n gram.builtInAbs,\n gram.builtInCeil,\n gram.builtInFloor,\n gram.builtInRound,\n gram.builtInConcat,\n gram.builtInStrlen,\n gram.builtInUcase,\n gram.builtInLcase,\n gram.builtInEncode_for_uri,\n];\n\nconst builtInPatch: typeof gram.builtInCall = {\n name: 'builtInCall',\n impl: ({ OR, SUBRULE }) => () => OR(gram.builtInCallList(SUBRULE).slice(0, -2)),\n};\n\nexport const expressionParserBuilder = ParserBuilder.create(rulesNoBuiltIn)\n .addMany(\n gram.builtInContains,\n gram.builtInStrstarts,\n gram.builtInStrends,\n gram.builtInStrbefore,\n gram.builtInStrafter,\n gram.builtInYear,\n gram.builtInMonth,\n gram.builtInDay,\n gram.builtInHours,\n gram.builtInMinutes,\n gram.builtInSeconds,\n gram.builtInTimezone,\n gram.builtInTz,\n gram.builtInNow,\n gram.builtInUuid,\n gram.builtInStruuid,\n gram.builtInMd5,\n gram.builtInSha1,\n gram.builtInSha256,\n gram.builtInSha384,\n gram.builtInSha512,\n gram.builtInCoalesce,\n gram.builtInIf,\n gram.builtInStrlang,\n gram.builtInStrdt,\n gram.builtInSameterm,\n gram.builtInIsiri,\n gram.builtInIsuri,\n gram.builtInIsblank,\n gram.builtInIsliteral,\n gram.builtInIsnumeric,\n gram.regexExpression,\n gram.substringExpression,\n gram.strReplaceExpression,\n gram.aggregateCount,\n gram.aggregateSum,\n gram.aggregateMin,\n gram.aggregateMax,\n gram.aggregateAvg,\n gram.aggregateSample,\n gram.aggregateGroup_concat,\n gram.aggregate,\n gram.iri,\n gram.prefixedName,\n gram.argList,\n gram.string,\n )\n .addRule(builtInPatch);\n\nexport type ExpressionParser = ReturnType<typeof expressionParserBuilder.build>;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC","sourcesContent":["export * from './expressionParser.js';\nexport * from './objectListParser.js';\nexport * from './queryUnitParser.js';\nexport * from './Parser.js';\nexport * from './subSelectParser.js';\nexport * from './triplesBlockParser.js';\nexport * from './triplesTemplateParserBuilder.js';\nexport * from './updateNoModifyParser.js';\nexport * from './updateUnitParser.js';\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"objectListParser.js","sourceRoot":"","sources":["../../../lib/objectListParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEjD,MAAM,KAAK,GAAW;IACpB,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,MAAM;IACX,IAAI,CAAC,SAAS;IACd,IAAI,CAAC,SAAS;IACd,IAAI,CAAC,WAAW;IAChB,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,qBAAqB;IAC1B,IAAI,CAAC,oBAAoB;IACzB,uBAAuB;IACvB,IAAI,CAAC,IAAI;IACT,IAAI,CAAC,KAAK;IACV,IAAI,CAAC,QAAQ;IACb,IAAI,CAAC,IAAI;IACT,IAAI,CAAC,GAAG;IACR,IAAI,CAAC,OAAO;IACZ,IAAI,CAAC,YAAY;IACjB,IAAI,CAAC,SAAS;IACd,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,cAAc;IACnB,IAAI,CAAC,cAAc;IACnB,IAAI,CAAC,SAAS;IACd,IAAI,CAAC,MAAM;IACX,IAAI,CAAC,sBAAsB;IAC3B,IAAI,CAAC,sBAAsB;IAC3B,IAAI,CAAC,sBAAsB;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC","sourcesContent":["import { ParserBuilder } from '@traqula/core';\nimport { gram } from '@traqula/rules-sparql-1-1';\n\nconst rules = <const> [\n gram.objectList,\n gram.object,\n gram.graphNode,\n gram.varOrTerm,\n gram.triplesNode,\n gram.collection,\n gram.blankNodePropertyList,\n gram.propertyListNotEmpty,\n // PropertyListNotEmpty\n gram.verb,\n gram.verbA,\n gram.varOrIri,\n gram.var_,\n gram.iri,\n gram.iriFull,\n gram.prefixedName,\n gram.graphTerm,\n gram.rdfLiteral,\n gram.numericLiteral,\n gram.booleanLiteral,\n gram.blankNode,\n gram.string,\n gram.numericLiteralUnsigned,\n gram.numericLiteralPositive,\n gram.numericLiteralNegative,\n];\n\nexport const objectListParserBuilder = ParserBuilder.create(rules);\n\nexport type ObjectListParser = ReturnType<typeof objectListParserBuilder.build>;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryUnitParser.js","sourceRoot":"","sources":["../../../lib/queryUnitParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF,MAAM,KAAK,GAAW;IACpB,IAAI,CAAC,SAAS;IACd,IAAI,CAAC,KAAK;IACV,IAAI,CAAC,QAAQ;IACb,IAAI,CAAC,WAAW;IAChB,IAAI,CAAC,cAAc;IACnB,IAAI,CAAC,aAAa;IAClB,IAAI,CAAC,QAAQ;IACb,IAAI,CAAC,YAAY;IACjB,IAAI,CAAC,QAAQ;IACb,IAAI,CAAC,UAAU;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC;IAC/D,eAAe;KACd,KAAK,CAAC,sBAAsB,EAAU,EAAE,CAAC;KACzC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC;KAC3B,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC/B,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC;KAChC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC;KAC9B,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC;IAC7B,kBAAkB;KACjB,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC/B,KAAK,CAAC,4BAA4B,EAAU,EAAE,CAAC;KAC/C,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["import { ParserBuilder } from '@traqula/core';\nimport { gram } from '@traqula/rules-sparql-1-1';\nimport { subSelectParserBuilder } from './subSelectParser.js';\nimport { triplesTemplateParserBuilder } from './triplesTemplateParserBuilder.js';\n\nconst rules = <const> [\n gram.queryUnit,\n gram.query,\n gram.prologue,\n gram.selectQuery,\n gram.constructQuery,\n gram.describeQuery,\n gram.askQuery,\n gram.valuesClause,\n gram.baseDecl,\n gram.prefixDecl,\n];\n\nexport const queryUnitParserBuilder = ParserBuilder.create(rules)\n // Select Query\n .merge(subSelectParserBuilder, <const> [])\n .addRule(gram.datasetClause)\n .addRule(gram.datasetClauseStar)\n .addRule(gram.defaultGraphClause)\n .addRule(gram.namedGraphClause)\n .addRule(gram.sourceSelector)\n // Construct Query\n .addRule(gram.constructTemplate)\n .merge(triplesTemplateParserBuilder, <const> [])\n .addRule(gram.constructTriples);\n\nexport type QueryUnitParser = ReturnType<typeof queryUnitParserBuilder.build>;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subSelectParser.js","sourceRoot":"","sources":["../../../lib/subSelectParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,MAAM,KAAK,GAAW;IACpB,IAAI,CAAC,SAAS;IACd,IAAI,CAAC,YAAY;IACjB,IAAI,CAAC,WAAW;IAChB,IAAI,CAAC,gBAAgB;IACrB,IAAI,CAAC,YAAY;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC;KAC9D,KAAK,CAAC,uBAAuB,EAAU,EAAE,CAAC;KAC1C,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC;KAC3B,OAAO,CACN,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,iBAAiB,EACtB,IAAI,CAAC,oBAAoB,CAC1B;KACA,KAAK,CAAC,yBAAyB,EAAU,EAAE,CAAC;KAC5C,OAAO,CACN,IAAI,CAAC,sBAAsB,EAC3B,IAAI,CAAC,wBAAwB,EAC7B,IAAI,CAAC,oBAAoB,EACzB,IAAI,CAAC,iBAAiB,EACtB,IAAI,CAAC,iBAAiB,EACtB,IAAI,CAAC,mBAAmB,EACxB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,cAAc;AACnB,oBAAoB;AACpB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,YAAY,CAClB,CAAC","sourcesContent":["import { ParserBuilder } from '@traqula/core';\nimport { gram } from '@traqula/rules-sparql-1-1';\nimport { expressionParserBuilder } from './expressionParser.js';\nimport { triplesBlockParserBuilder } from './triplesBlockParser.js';\n\nconst rules = <const> [\n gram.subSelect,\n gram.selectClause,\n gram.whereClause,\n gram.solutionModifier,\n gram.valuesClause,\n];\n\nexport const subSelectParserBuilder = ParserBuilder.create(rules)\n .merge(expressionParserBuilder, <const> [])\n .patchRule(gram.builtInCall)\n .addMany(\n gram.existsFunc,\n gram.notExistsFunc,\n gram.groupGraphPattern,\n gram.groupGraphPatternSub,\n )\n .merge(triplesBlockParserBuilder, <const> [])\n .addMany(\n gram.graphPatternNotTriples,\n gram.groupOrUnionGraphPattern,\n gram.optionalGraphPattern,\n gram.minusGraphPattern,\n gram.graphGraphPattern,\n gram.serviceGraphPattern,\n gram.filter,\n gram.bind,\n gram.inlineData,\n gram.constraint,\n gram.functionCall,\n gram.dataBlock,\n gram.inlineDataOneVar,\n gram.inlineDataFull,\n gram.dataBlockValue,\n // Solution modifier\n gram.groupClause,\n gram.havingClause,\n gram.orderClause,\n gram.limitOffsetClauses,\n gram.groupCondition,\n gram.havingCondition,\n gram.orderCondition,\n gram.limitClause,\n gram.offsetClause,\n );\n\nexport type SubSelectParser = ReturnType<typeof subSelectParserBuilder.build>;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triplesBlockParser.js","sourceRoot":"","sources":["../../../lib/triplesBlockParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAC,MAAM,CAAS;IACpE,IAAI,CAAC,YAAY;IACjB,IAAI,CAAC,sBAAsB;IAC3B,wDAAwD;IACxD,IAAI,CAAC,wBAAwB;IAC7B,IAAI,CAAC,eAAe;IACpB,IAAI,CAAC,gBAAgB;IACrB,uBAAuB;IACvB,IAAI,CAAC,QAAQ;IACb,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,cAAc;CACpB,CAAC;KACC,KAAK,CAAC,uBAAuB,EAAU,EAAE,CAAC;IAC3C,YAAY;KACX,OAAO,CACN,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,sBAAsB,EAC3B,IAAI,CAAC,oBAAoB;AACzB,iBAAiB;AACjB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,yBAAyB,CAC/B,CAAC","sourcesContent":["import { ParserBuilder } from '@traqula/core';\nimport { gram } from '@traqula/rules-sparql-1-1';\nimport { objectListParserBuilder } from './objectListParser.js';\n\nexport const triplesBlockParserBuilder = ParserBuilder.create(<const> [\n gram.triplesBlock,\n gram.triplesSameSubjectPath,\n // VarOrTerm is included in the required ObjectList rule\n gram.propertyListPathNotEmpty,\n gram.triplesNodePath,\n gram.propertyListPath,\n // PropertyListNotEmpty\n gram.verbPath,\n gram.verbSimple,\n gram.objectListPath,\n])\n .merge(objectListParserBuilder, <const> [])\n // Verb path\n .addMany(\n gram.path,\n gram.pathAlternative,\n gram.pathSequence,\n gram.pathEltOrInverse,\n gram.pathElt,\n gram.pathPrimary,\n gram.pathMod,\n gram.pathNegatedPropertySet,\n gram.pathOneInPropertySet,\n // ObjectListPath\n gram.objectPath,\n gram.graphNodePath,\n gram.collectionPath,\n gram.blankNodePropertyListPath,\n );\n\nexport type triplesBlockParser = ReturnType<typeof triplesBlockParserBuilder.build>;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triplesTemplateParserBuilder.js","sourceRoot":"","sources":["../../../lib/triplesTemplateParserBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEjD,MAAM,KAAK,GAAW;IACpB,IAAI,CAAC,eAAe;IACpB,IAAI,CAAC,kBAAkB;IACvB,IAAI,CAAC,SAAS;IACd,IAAI,CAAC,oBAAoB;IACzB,IAAI,CAAC,WAAW;IAChB,IAAI,CAAC,YAAY;IACjB,IAAI,CAAC,IAAI;IACT,IAAI,CAAC,SAAS;IACd,IAAI,CAAC,GAAG;IACR,IAAI,CAAC,OAAO;IACZ,IAAI,CAAC,YAAY;IACjB,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,MAAM;IACX,IAAI,CAAC,cAAc;IACnB,IAAI,CAAC,sBAAsB;IAC3B,IAAI,CAAC,sBAAsB;IAC3B,IAAI,CAAC,sBAAsB;IAC3B,IAAI,CAAC,cAAc;IACnB,IAAI,CAAC,SAAS;IACd,IAAI,CAAC,IAAI;IACT,IAAI,CAAC,KAAK;IACV,IAAI,CAAC,QAAQ;IACb,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,MAAM;IACX,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,qBAAqB;IAC1B,IAAI,CAAC,SAAS;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC","sourcesContent":["import { ParserBuilder } from '@traqula/core';\nimport { gram } from '@traqula/rules-sparql-1-1';\n\nconst rules = <const> [\n gram.triplesTemplate,\n gram.triplesSameSubject,\n gram.varOrTerm,\n gram.propertyListNotEmpty,\n gram.triplesNode,\n gram.propertyList,\n gram.var_,\n gram.graphTerm,\n gram.iri,\n gram.iriFull,\n gram.prefixedName,\n gram.rdfLiteral,\n gram.string,\n gram.numericLiteral,\n gram.numericLiteralUnsigned,\n gram.numericLiteralPositive,\n gram.numericLiteralNegative,\n gram.booleanLiteral,\n gram.blankNode,\n gram.verb,\n gram.verbA,\n gram.varOrIri,\n gram.objectList,\n gram.object,\n gram.collection,\n gram.blankNodePropertyList,\n gram.graphNode,\n];\n\nexport const triplesTemplateParserBuilder = ParserBuilder.create(rules);\n\nexport type TriplesTemplateParser = ReturnType<typeof triplesTemplateParserBuilder.build>;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateNoModifyParser.js","sourceRoot":"","sources":["../../../lib/updateNoModifyParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF,MAAM,YAAY,GAAwB;IACxC,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,CAAkB;QACnD,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;QACjC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;QAClC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;QACjC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QAChC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;QACjC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;QACjC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;QACnC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;QACvC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;QACvC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;KACzC,CAAC;IACF,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK;CAC1B,CAAC;AAEF,MAAM,cAAc,GAAU;IAC5B,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,MAAM;IACX,IAAI,CAAC,QAAQ;IACb,WAAW;IACX,IAAI,CAAC,QAAQ;IACb,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,IAAI;IACT,IAAI,CAAC,KAAK;IACV,IAAI,CAAC,IAAI;IACT,IAAI,CAAC,GAAG;IACR,IAAI,CAAC,IAAI;IACT,IAAI,CAAC,IAAI;IACT,IAAI,CAAC,MAAM;IACX,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,UAAU;IACf,IAAI,CAAC,WAAW;IAChB,IAAI,CAAC,GAAG;IACR,IAAI,CAAC,YAAY;IACjB,IAAI,CAAC,QAAQ;IACb,IAAI,CAAC,WAAW;IAChB,IAAI,CAAC,cAAc;IACnB,IAAI,CAAC,QAAQ;IACb,IAAI,CAAC,KAAK;CACX,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,aAAa;KACrD,MAAM,CAAC,cAAc,CAAC;KACtB,OAAO,CAAC,YAAY,CAAC;KACrB,KAAK,CAAC,4BAA4B,EAAU,EAAE,CAAC;KAC/C,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC;KACzB,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC","sourcesContent":["import { ParserBuilder } from '@traqula/core';\nimport type { UpdateOperation } from '@traqula/rules-sparql-1-1';\nimport { gram } from '@traqula/rules-sparql-1-1';\nimport { triplesTemplateParserBuilder } from './triplesTemplateParserBuilder.js';\n\nconst update1Patch: typeof gram.update1 = {\n name: 'update1',\n impl: ({ SUBRULE, OR }) => () => OR<UpdateOperation>([\n { ALT: () => SUBRULE(gram.load) },\n { ALT: () => SUBRULE(gram.clear) },\n { ALT: () => SUBRULE(gram.drop) },\n { ALT: () => SUBRULE(gram.add) },\n { ALT: () => SUBRULE(gram.move) },\n { ALT: () => SUBRULE(gram.copy) },\n { ALT: () => SUBRULE(gram.create) },\n { ALT: () => SUBRULE(gram.insertData) },\n { ALT: () => SUBRULE(gram.deleteData) },\n { ALT: () => SUBRULE(gram.deleteWhere) },\n ]),\n gImpl: gram.update1.gImpl,\n};\n\nconst rulesNoUpdate1 = <const>[\n gram.updateUnit,\n gram.update,\n gram.prologue,\n // Update1,\n gram.baseDecl,\n gram.prefixDecl,\n gram.load,\n gram.clear,\n gram.drop,\n gram.add,\n gram.move,\n gram.copy,\n gram.create,\n gram.insertData,\n gram.deleteData,\n gram.deleteWhere,\n gram.iri,\n gram.prefixedName,\n gram.graphRef,\n gram.graphRefAll,\n gram.graphOrDefault,\n gram.quadData,\n gram.quads,\n];\n\n/**\n * Simple SPARQL 1.1 Update parser excluding MODIFY operations.\n * Top enable MODIFY, you need to path the update1 rule.\n */\nexport const updateNoModifyParserBuilder = ParserBuilder\n .create(rulesNoUpdate1)\n .addRule(update1Patch)\n .merge(triplesTemplateParserBuilder, <const> [])\n .addRule(gram.quadPattern)\n .addRule(gram.quadsNotTriples);\n\nexport type updateNoModifyParser = ReturnType<typeof updateNoModifyParserBuilder.build>;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateUnitParser.js","sourceRoot":"","sources":["../../../lib/updateUnitParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAExE,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,MAAM,CAAC,2BAA2B,CAAC;KACjF,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC;KACvB,OAAO,CACN,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,iBAAiB,CACvB;IACD,+CAA+C;KAC9C,KAAK,CAAC,uBAAuB,EAAU,EAAE,CAAC;KAC1C,KAAK,CAAC,sBAAsB,EAAU,EAAE,CAAC,CAAC","sourcesContent":["import { ParserBuilder } from '@traqula/core';\nimport { gram } from '@traqula/rules-sparql-1-1';\nimport { objectListParserBuilder } from './objectListParser.js';\nimport { subSelectParserBuilder } from './subSelectParser.js';\nimport { updateNoModifyParserBuilder } from './updateNoModifyParser.js';\n\nexport const updateParserBuilder = ParserBuilder.create(updateNoModifyParserBuilder)\n .patchRule(gram.update1)\n .addMany(\n gram.modify,\n gram.deleteClause,\n gram.insertClause,\n gram.usingClause,\n gram.defaultGraphClause,\n gram.namedGraphClause,\n gram.sourceSelector,\n gram.usingClauseStar,\n gram.groupGraphPattern,\n )\n // This substitutes all of propertyListNotEmpty\n .merge(objectListParserBuilder, <const> [])\n .merge(subSelectParserBuilder, <const> []);\n\nexport type UpdateUnitParser = ReturnType<typeof updateParserBuilder.build>;\n"]}
@@ -0,0 +1,4 @@
1
+ import type { SparqlContext } from '@traqula/rules-sparql-1-1';
2
+ export declare function parse(query: string, context?: Partial<SparqlContext>): void;
3
+ export declare function query(): Promise<never>;
4
+ export declare function update(): Promise<never>;
@@ -0,0 +1,13 @@
1
+ import { ErrorSkipped } from 'rdf-test-suite';
2
+ import { Parser } from '../lib/index.js';
3
+ export function parse(query, context = {}) {
4
+ const parser = new Parser();
5
+ parser.parse(query, context);
6
+ }
7
+ export function query() {
8
+ return Promise.reject(new ErrorSkipped('Querying is not supported'));
9
+ }
10
+ export function update() {
11
+ return Promise.reject(new ErrorSkipped('Updating is not supported'));
12
+ }
13
+ //# sourceMappingURL=parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../spec/parser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,UAAU,KAAK,CAAC,KAAa,EAAE,UAAkC,EAAE;IACvE,MAAM,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;IAC5B,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAC/B,CAAC;AACD,MAAM,UAAU,KAAK;IACnB,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,2BAA2B,CAAC,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,MAAM;IACpB,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,2BAA2B,CAAC,CAAC,CAAC;AACvE,CAAC","sourcesContent":["import type { SparqlContext } from '@traqula/rules-sparql-1-1';\nimport { ErrorSkipped } from 'rdf-test-suite';\nimport { Parser } from '../lib/index.js';\n\nexport function parse(query: string, context: Partial<SparqlContext> = {}): void {\n const parser = new Parser();\n parser.parse(query, context);\n}\nexport function query(): Promise<never> {\n return Promise.reject(new ErrorSkipped('Querying is not supported'));\n}\n\nexport function update(): Promise<never> {\n return Promise.reject(new ErrorSkipped('Updating is not supported'));\n}\n"]}
@@ -0,0 +1 @@
1
+ export declare const queryLargeObjectList = "\nBASE <http://foo.com/>\nINSERT DATA {\n GRAPH <http://example.com/data> {\n <a> <b> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,\n 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 .\n <c> <d> \"000\"; <d> \"001\"; <d> \"002\"; <d> \"003\"; <d> \"004\"; <d> \"005\"; <d> \"006\"; <d> \"007\"; <d> \"008\"; <d> \"009\";\n <d> \"010\"; <d> \"011\"; <d> \"012\"; <d> \"013\"; <d> \"014\"; <d> \"015\"; <d> \"016\"; <d> \"017\"; <d> \"018\"; <d> \"019\";\n <d> \"020\"; <d> \"021\"; <d> \"022\"; <d> \"023\"; <d> \"024\"; <d> \"025\"; <d> \"026\"; <d> \"027\"; <d> \"028\"; <d> \"029\";\n <d> \"030\"; <d> \"031\"; <d> \"032\"; <d> \"033\"; <d> \"034\"; <d> \"035\"; <d> \"036\"; <d> \"037\"; <d> \"038\"; <d> \"039\";\n <d> \"040\"; <d> \"041\"; <d> \"042\"; <d> \"043\"; <d> \"044\"; <d> \"045\"; <d> \"046\"; <d> \"047\"; <d> \"048\"; <d> \"049\";\n <d> \"050\"; <d> \"051\"; <d> \"052\"; <d> \"053\"; <d> \"054\"; <d> \"055\"; <d> \"056\"; <d> \"057\"; <d> \"058\"; <d> \"059\";\n <d> \"060\"; <d> \"061\"; <d> \"062\"; <d> \"063\"; <d> \"064\"; <d> \"065\"; <d> \"066\"; <d> \"067\"; <d> \"068\"; <d> \"069\";\n <d> \"070\"; <d> \"071\"; <d> \"072\"; <d> \"073\"; <d> \"074\"; <d> \"075\"; <d> \"076\"; <d> \"077\"; <d> \"078\"; <d> \"079\";\n <d> \"080\"; <d> \"081\"; <d> \"082\"; <d> \"083\"; <d> \"084\"; <d> \"085\"; <d> \"086\"; <d> \"087\"; <d> \"088\"; <d> \"089\";\n <d> \"090\"; <d> \"091\"; <d> \"092\"; <d> \"093\"; <d> \"094\"; <d> \"095\"; <d> \"096\"; <d> \"097\"; <d> \"098\"; <d> \"099\";\n <d> \"100\"; <d> \"101\"; <d> \"102\"; <d> \"103\"; <d> \"104\"; <d> \"105\"; <d> \"106\"; <d> \"107\"; <d> \"108\"; <d> \"109\";\n <d> \"110\"; <d> \"111\"; <d> \"112\"; <d> \"113\"; <d> \"114\"; <d> \"115\"; <d> \"116\"; <d> \"117\"; <d> \"118\"; <d> \"119\";\n <d> \"120\"; <d> \"121\"; <d> \"122\"; <d> \"123\"; <d> \"124\"; <d> \"125\"; <d> \"126\"; <d> \"127\"; <d> \"128\"; <d> \"129\";\n <d> \"130\"; <d> \"131\"; <d> \"132\"; <d> \"133\"; <d> \"134\"; <d> \"135\"; <d> \"136\"; <d> \"137\"; <d> \"138\"; <d> \"139\";\n <d> \"140\"; <d> \"141\"; <d> \"142\"; <d> \"143\"; <d> \"144\"; <d> \"145\"; <d> \"146\"; <d> \"147\"; <d> \"148\"; <d> \"149\";\n <d> \"150\"; <d> \"151\"; <d> \"152\"; <d> \"153\"; <d> \"154\"; <d> \"155\"; <d> \"156\"; <d> \"157\"; <d> \"158\"; <d> \"159\";\n <d> \"160\"; <d> \"161\"; <d> \"162\"; <d> \"163\"; <d> \"164\"; <d> \"165\"; <d> \"166\"; <d> \"167\"; <d> \"168\"; <d> \"169\";\n <d> \"170\"; <d> \"171\"; <d> \"172\"; <d> \"173\"; <d> \"174\"; <d> \"175\"; <d> \"176\"; <d> \"177\"; <d> \"178\"; <d> \"179\";\n <d> \"180\"; <d> \"181\"; <d> \"182\"; <d> \"183\"; <d> \"184\"; <d> \"185\"; <d> \"186\"; <d> \"187\"; <d> \"188\"; <d> \"189\";\n <d> \"190\"; <d> \"191\"; <d> \"192\"; <d> \"193\"; <d> \"194\"; <d> \"195\"; <d> \"196\"; <d> \"197\"; <d> \"198\"; <d> \"199\";\n <d> \"200\"; <d> \"201\"; <d> \"202\"; <d> \"203\"; <d> \"204\"; <d> \"205\"; <d> \"206\"; <d> \"207\"; <d> \"208\"; <d> \"209\";\n <d> \"210\"; <d> \"211\"; <d> \"212\"; <d> \"213\"; <d> \"214\"; <d> \"215\"; <d> \"216\"; <d> \"217\"; <d> \"218\"; <d> \"219\";\n <d> \"220\"; <d> \"221\"; <d> \"222\"; <d> \"223\"; <d> \"224\"; <d> \"225\"; <d> \"226\"; <d> \"227\"; <d> \"228\"; <d> \"229\";\n <d> \"230\"; <d> \"231\"; <d> \"232\"; <d> \"233\"; <d> \"234\"; <d> \"235\"; <d> \"236\"; <d> \"237\"; <d> \"238\"; <d> \"239\";\n <d> \"240\"; <d> \"241\"; <d> \"242\"; <d> \"243\"; <d> \"244\"; <d> \"245\"; <d> \"246\"; <d> \"247\"; <d> \"248\"; <d> \"249\";\n <d> \"250\"; <d> \"251\"; <d> \"252\"; <d> \"253\"; <d> \"254\"; <d> \"255\"; <d> \"256\"; <d> \"257\"; <d> \"258\"; <d> \"259\";\n <d> \"260\"; <d> \"261\"; <d> \"262\"; <d> \"263\"; <d> \"264\"; <d> \"265\"; <d> \"266\"; <d> \"267\"; <d> \"268\"; <d> \"269\";\n <d> \"270\"; <d> \"271\"; <d> \"272\"; <d> \"273\"; <d> \"274\"; <d> \"275\"; <d> \"276\"; <d> \"277\"; <d> \"278\"; <d> \"279\";\n <d> \"280\"; <d> \"281\"; <d> \"282\"; <d> \"283\"; <d> \"284\"; <d> \"285\"; <d> \"286\"; <d> \"287\"; <d> \"288\"; <d> \"289\";\n <d> \"290\"; <d> \"291\"; <d> \"292\"; <d> \"293\"; <d> \"294\"; <d> \"295\"; <d> \"296\"; <d> \"297\"; <d> \"298\"; <d> \"299\".\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> . <e> <f> <g> .\n <e> <f> <g000> . <e> <f> <g001> . <e> <f> <g002> . <e> <f> <g003> . <e> <f> <g004> .\n <e> <f> <g005> . <e> <f> <g006> . <e> <f> <g007> . <e> <f> <g008> . <e> <f> <g009> .\n <e> <f> <g010> . <e> <f> <g011> . <e> <f> <g012> . <e> <f> <g013> . <e> <f> <g014> .\n <e> <f> <g015> . <e> <f> <g016> . <e> <f> <g017> . <e> <f> <g018> . <e> <f> <g019> .\n <e> <f> <g020> . <e> <f> <g021> . <e> <f> <g022> . <e> <f> <g023> . <e> <f> <g024> .\n <e> <f> <g025> . <e> <f> <g026> . <e> <f> <g027> . <e> <f> <g028> . <e> <f> <g029> .\n <e> <f> <g030> . <e> <f> <g031> . <e> <f> <g032> . <e> <f> <g033> . <e> <f> <g034> .\n <e> <f> <g035> . <e> <f> <g036> . <e> <f> <g037> . <e> <f> <g038> . <e> <f> <g039> .\n <e> <f> <g040> . <e> <f> <g041> . <e> <f> <g042> . <e> <f> <g043> . <e> <f> <g044> .\n <e> <f> <g045> . <e> <f> <g046> . <e> <f> <g047> . <e> <f> <g048> . <e> <f> <g049> .\n <e> <f> <g050> . <e> <f> <g051> . <e> <f> <g052> . <e> <f> <g053> . <e> <f> <g054> .\n <e> <f> <g055> . <e> <f> <g056> . <e> <f> <g057> . <e> <f> <g058> . <e> <f> <g059> .\n <e> <f> <g060> . <e> <f> <g061> . <e> <f> <g062> . <e> <f> <g063> . <e> <f> <g064> .\n <e> <f> <g065> . <e> <f> <g066> . <e> <f> <g067> . <e> <f> <g068> . <e> <f> <g069> .\n <e> <f> <g070> . <e> <f> <g071> . <e> <f> <g072> . <e> <f> <g073> . <e> <f> <g074> .\n <e> <f> <g075> . <e> <f> <g076> . <e> <f> <g077> . <e> <f> <g078> . <e> <f> <g079> .\n <e> <f> <g080> . <e> <f> <g081> . <e> <f> <g082> . <e> <f> <g083> . <e> <f> <g084> .\n <e> <f> <g085> . <e> <f> <g086> . <e> <f> <g087> . <e> <f> <g088> . <e> <f> <g089> .\n <e> <f> <g090> . <e> <f> <g091> . <e> <f> <g092> . <e> <f> <g093> . <e> <f> <g094> .\n <e> <f> <g095> . <e> <f> <g096> . <e> <f> <g097> . <e> <f> <g098> . <e> <f> <g099> .\n <e> <f> <g100> . <e> <f> <g101> . <e> <f> <g102> . <e> <f> <g103> . <e> <f> <g104> .\n <e> <f> <g105> . <e> <f> <g106> . <e> <f> <g107> . <e> <f> <g108> . <e> <f> <g109> .\n <e> <f> <g110> . <e> <f> <g111> . <e> <f> <g112> . <e> <f> <g113> . <e> <f> <g114> .\n <e> <f> <g115> . <e> <f> <g116> . <e> <f> <g117> . <e> <f> <g118> . <e> <f> <g119> .\n <e> <f> <g120> . <e> <f> <g121> . <e> <f> <g122> . <e> <f> <g123> . <e> <f> <g124> .\n <e> <f> <g125> . <e> <f> <g126> . <e> <f> <g127> . <e> <f> <g128> . <e> <f> <g129> .\n <e> <f> <g130> . <e> <f> <g131> . <e> <f> <g132> . <e> <f> <g133> . <e> <f> <g134> .\n <e> <f> <g135> . <e> <f> <g136> . <e> <f> <g137> . <e> <f> <g138> . <e> <f> <g139> .\n <e> <f> <g140> . <e> <f> <g141> . <e> <f> <g142> . <e> <f> <g143> . <e> <f> <g144> .\n <e> <f> <g145> . <e> <f> <g146> . <e> <f> <g147> . <e> <f> <g148> . <e> <f> <g149> .\n <e> <f> <g150> . <e> <f> <g151> . <e> <f> <g152> . <e> <f> <g153> . <e> <f> <g154> .\n <e> <f> <g155> . <e> <f> <g156> . <e> <f> <g157> . <e> <f> <g158> . <e> <f> <g159> .\n <e> <f> <g160> . <e> <f> <g161> . <e> <f> <g162> . <e> <f> <g163> . <e> <f> <g164> .\n <e> <f> <g165> . <e> <f> <g166> . <e> <f> <g167> . <e> <f> <g168> . <e> <f> <g169> .\n <e> <f> <g170> . <e> <f> <g171> . <e> <f> <g172> . <e> <f> <g173> . <e> <f> <g174> .\n <e> <f> <g175> . <e> <f> <g176> . <e> <f> <g177> . <e> <f> <g178> . <e> <f> <g179> .\n <e> <f> <g180> . <e> <f> <g181> . <e> <f> <g182> . <e> <f> <g183> . <e> <f> <g184> .\n <e> <f> <g185> . <e> <f> <g186> . <e> <f> <g187> . <e> <f> <g188> . <e> <f> <g189> .\n <e> <f> <g190> . <e> <f> <g191> . <e> <f> <g192> . <e> <f> <g193> . <e> <f> <g194> .\n <e> <f> <g195> . <e> <f> <g196> . <e> <f> <g197> . <e> <f> <g198> . <e> <f> <g199> .\n <e> <f> <g200> . <e> <f> <g201> . <e> <f> <g202> . <e> <f> <g203> . <e> <f> <g204> .\n <e> <f> <g205> . <e> <f> <g206> . <e> <f> <g207> . <e> <f> <g208> . <e> <f> <g209> .\n <e> <f> <g210> . <e> <f> <g211> . <e> <f> <g212> . <e> <f> <g213> . <e> <f> <g214> .\n <e> <f> <g215> . <e> <f> <g216> . <e> <f> <g217> . <e> <f> <g218> . <e> <f> <g219> .\n <e> <f> <g220> . <e> <f> <g221> . <e> <f> <g222> . <e> <f> <g223> . <e> <f> <g224> .\n <e> <f> <g225> . <e> <f> <g226> . <e> <f> <g227> . <e> <f> <g228> . <e> <f> <g229> .\n <e> <f> <g230> . <e> <f> <g231> . <e> <f> <g232> . <e> <f> <g233> . <e> <f> <g234> .\n <e> <f> <g235> . <e> <f> <g236> . <e> <f> <g237> . <e> <f> <g238> . <e> <f> <g239> .\n <e> <f> <g240> . <e> <f> <g241> . <e> <f> <g242> . <e> <f> <g243> . <e> <f> <g244> .\n <e> <f> <g245> . <e> <f> <g246> . <e> <f> <g247> . <e> <f> <g248> . <e> <f> <g249> .\n <e> <f> <g250> . <e> <f> <g251> . <e> <f> <g252> . <e> <f> <g253> . <e> <f> <g254> .\n <e> <f> <g255> . <e> <f> <g256> . <e> <f> <g257> . <e> <f> <g258> . <e> <f> <g259> .\n <e> <f> <g260> . <e> <f> <g261> . <e> <f> <g262> . <e> <f> <g263> . <e> <f> <g264> .\n <e> <f> <g265> . <e> <f> <g266> . <e> <f> <g267> . <e> <f> <g268> . <e> <f> <g269> .\n <e> <f> <g270> . <e> <f> <g271> . <e> <f> <g272> . <e> <f> <g273> . <e> <f> <g274> .\n <e> <f> <g275> . <e> <f> <g276> . <e> <f> <g277> . <e> <f> <g278> . <e> <f> <g279> .\n <e> <f> <g280> . <e> <f> <g281> . <e> <f> <g282> . <e> <f> <g283> . <e> <f> <g284> .\n <e> <f> <g285> . <e> <f> <g286> . <e> <f> <g287> . <e> <f> <g288> . <e> <f> <g289> .\n <e> <f> <g290> . <e> <f> <g291> . <e> <f> <g292> . <e> <f> <g293> . <e> <f> <g294> .\n <e> <f> <g295> . <e> <f> <g296> . <e> <f> <g297> . <e> <f> <g298> . <e> <f> <g299> .\n <e> <f> <g300> . <e> <f> <g301> . <e> <f> <g302> . <e> <f> <g303> . <e> <f> <g304> .\n <e> <f> <g305> . <e> <f> <g306> . <e> <f> <g307> . <e> <f> <g308> . <e> <f> <g309> .\n <e> <f> <g310> . <e> <f> <g311> . <e> <f> <g312> . <e> <f> <g313> . <e> <f> <g314> .\n <e> <f> <g315> . <e> <f> <g316> . <e> <f> <g317> . <e> <f> <g318> . <e> <f> <g319> .\n <e> <f> <g320> . <e> <f> <g321> . <e> <f> <g322> . <e> <f> <g323> . <e> <f> <g324> .\n <e> <f> <g325> . <e> <f> <g326> . <e> <f> <g327> . <e> <f> <g328> . <e> <f> <g329> .\n <e> <f> <g330> . <e> <f> <g331> . <e> <f> <g332> . <e> <f> <g333> . <e> <f> <g334> .\n <e> <f> <g335> . <e> <f> <g336> . <e> <f> <g337> . <e> <f> <g338> . <e> <f> <g339> .\n <e> <f> <g340> . <e> <f> <g341> . <e> <f> <g342> . <e> <f> <g343> . <e> <f> <g344> .\n <e> <f> <g345> . <e> <f> <g346> . <e> <f> <g347> . <e> <f> <g348> . <e> <f> <g349> .\n <e> <f> <g350> . <e> <f> <g351> . <e> <f> <g352> . <e> <f> <g353> . <e> <f> <g354> .\n <e> <f> <g355> . <e> <f> <g356> . <e> <f> <g357> . <e> <f> <g358> . <e> <f> <g359> .\n <e> <f> <g360> . <e> <f> <g361> . <e> <f> <g362> . <e> <f> <g363> . <e> <f> <g364> .\n <e> <f> <g365> . <e> <f> <g366> . <e> <f> <g367> . <e> <f> <g368> . <e> <f> <g369> .\n <e> <f> <g370> . <e> <f> <g371> . <e> <f> <g372> . <e> <f> <g373> . <e> <f> <g374> .\n <e> <f> <g375> . <e> <f> <g376> . <e> <f> <g377> . <e> <f> <g378> . <e> <f> <g379> .\n <e> <f> <g380> . <e> <f> <g381> . <e> <f> <g382> . <e> <f> <g383> . <e> <f> <g384> .\n <e> <f> <g385> . <e> <f> <g386> . <e> <f> <g387> . <e> <f> <g388> . <e> <f> <g389> .\n <e> <f> <g390> . <e> <f> <g391> . <e> <f> <g392> . <e> <f> <g393> . <e> <f> <g394> .\n <e> <f> <g395> . <e> <f> <g396> . <e> <f> <g397> . <e> <f> <g398> . <e> <f> <g399> .\n }\n}\n";