@traqula/rules-sparql-1-1 0.0.21 → 0.0.23
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.
- package/dist/cjs/lib/MinimalSparqlParser.js +64 -0
- package/dist/cjs/lib/Sparql11types.js +16 -0
- package/dist/cjs/lib/astFactory.js +121 -0
- package/dist/cjs/lib/expressionHelpers.js +215 -0
- package/dist/cjs/lib/factoryMixins/ContextFactory.js +55 -0
- package/dist/cjs/lib/factoryMixins/ExpressionFactory.js +105 -0
- package/dist/cjs/lib/factoryMixins/GraphRefFactory.js +76 -0
- package/dist/cjs/lib/factoryMixins/PathFactory.js +90 -0
- package/dist/cjs/lib/factoryMixins/Patternfactory.js +123 -0
- package/dist/cjs/lib/factoryMixins/QueryFactory.js +68 -0
- package/dist/cjs/lib/factoryMixins/SolutionModifiersFactory.js +80 -0
- package/dist/cjs/lib/factoryMixins/TermFactory.js +105 -0
- package/dist/cjs/lib/factoryMixins/UpdateOperationFactory.js +150 -0
- package/dist/cjs/lib/factoryMixins/mixins.js +43 -0
- package/dist/cjs/lib/grammar/builtIn.js +385 -0
- package/dist/cjs/lib/grammar/dataSetClause.js +118 -0
- package/dist/cjs/lib/grammar/expression.js +384 -0
- package/dist/cjs/lib/grammar/general.js +168 -0
- package/dist/cjs/lib/grammar/index.js +115 -0
- package/dist/cjs/lib/grammar/literals.js +282 -0
- package/dist/cjs/lib/grammar/propertyPaths.js +206 -0
- package/dist/cjs/lib/grammar/queryUnit.js +390 -0
- package/dist/cjs/lib/grammar/solutionModifier.js +280 -0
- package/dist/cjs/lib/grammar/tripleBlock.js +384 -0
- package/dist/cjs/lib/grammar/updateUnit.js +546 -0
- package/dist/cjs/lib/grammar/whereClause.js +483 -0
- package/dist/cjs/lib/index.js +56 -0
- package/dist/cjs/lib/lexer/BuiltInCalls.js +337 -0
- package/dist/cjs/lib/lexer/graph.js +41 -0
- package/dist/cjs/lib/lexer/index.js +50 -0
- package/dist/cjs/lib/lexer/lexer.js +199 -0
- package/dist/cjs/lib/lexer/lexerPatterns.js +133 -0
- package/dist/cjs/lib/lexer/symbols.js +107 -0
- package/dist/cjs/lib/lexer/terminals.js +103 -0
- package/dist/cjs/lib/sparql11HelperTypes.js +16 -0
- package/dist/cjs/lib/utils.js +64 -0
- package/dist/cjs/lib/validation/validators.js +214 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/lib/MinimalSparqlParser.js.map +1 -0
- package/dist/esm/lib/Sparql11types.js.map +1 -0
- package/dist/esm/lib/astFactory.js.map +1 -0
- package/{lib → dist/esm/lib}/expressionHelpers.d.ts +1 -1
- package/dist/esm/lib/expressionHelpers.js.map +1 -0
- package/dist/esm/lib/factoryMixins/ContextFactory.js.map +1 -0
- package/dist/esm/lib/factoryMixins/ExpressionFactory.js.map +1 -0
- package/dist/esm/lib/factoryMixins/GraphRefFactory.js.map +1 -0
- package/dist/esm/lib/factoryMixins/PathFactory.js.map +1 -0
- package/dist/esm/lib/factoryMixins/Patternfactory.js.map +1 -0
- package/dist/esm/lib/factoryMixins/QueryFactory.js.map +1 -0
- package/dist/esm/lib/factoryMixins/SolutionModifiersFactory.js.map +1 -0
- package/dist/esm/lib/factoryMixins/TermFactory.js.map +1 -0
- package/dist/esm/lib/factoryMixins/UpdateOperationFactory.js.map +1 -0
- package/dist/esm/lib/factoryMixins/mixins.js.map +1 -0
- package/{lib → dist/esm/lib}/grammar/builtIn.d.ts +1 -1
- package/dist/esm/lib/grammar/builtIn.js.map +1 -0
- package/{lib → dist/esm/lib}/grammar/dataSetClause.d.ts +1 -1
- package/dist/esm/lib/grammar/dataSetClause.js.map +1 -0
- package/dist/esm/lib/grammar/expression.js.map +1 -0
- package/dist/esm/lib/grammar/general.js.map +1 -0
- package/dist/esm/lib/grammar/index.js.map +1 -0
- package/dist/esm/lib/grammar/literals.js.map +1 -0
- package/{lib → dist/esm/lib}/grammar/propertyPaths.d.ts +3 -3
- package/dist/esm/lib/grammar/propertyPaths.js.map +1 -0
- package/dist/esm/lib/grammar/queryUnit.js.map +1 -0
- package/dist/esm/lib/grammar/solutionModifier.js.map +1 -0
- package/{lib → dist/esm/lib}/grammar/tripleBlock.d.ts +4 -4
- package/dist/esm/lib/grammar/tripleBlock.js.map +1 -0
- package/dist/esm/lib/grammar/updateUnit.js.map +1 -0
- package/dist/esm/lib/grammar/whereClause.js.map +1 -0
- package/dist/esm/lib/index.js.map +1 -0
- package/{lib → dist/esm/lib}/lexer/BuiltInCalls.d.ts +1 -1
- package/dist/esm/lib/lexer/BuiltInCalls.js.map +1 -0
- package/{lib → dist/esm/lib}/lexer/graph.d.ts +1 -1
- package/dist/esm/lib/lexer/graph.js.map +1 -0
- package/dist/esm/lib/lexer/index.js.map +1 -0
- package/{lib → dist/esm/lib}/lexer/lexer.d.ts +2 -2
- package/dist/esm/lib/lexer/lexer.js.map +1 -0
- package/dist/esm/lib/lexer/lexerPatterns.js.map +1 -0
- package/{lib → dist/esm/lib}/lexer/symbols.d.ts +1 -1
- package/dist/esm/lib/lexer/symbols.js.map +1 -0
- package/{lib → dist/esm/lib}/lexer/terminals.d.ts +1 -1
- package/{lib → dist/esm/lib}/lexer/terminals.js +1 -1
- package/dist/esm/lib/lexer/terminals.js.map +1 -0
- package/dist/esm/lib/sparql11HelperTypes.js.map +1 -0
- package/dist/esm/lib/utils.js.map +1 -0
- package/dist/esm/lib/validation/validators.js.map +1 -0
- package/package.json +14 -18
- package/lib/MinimalSparqlParser.js.map +0 -1
- package/lib/Sparql11types.js.map +0 -1
- package/lib/astFactory.js.map +0 -1
- package/lib/expressionHelpers.js.map +0 -1
- package/lib/factoryMixins/ContextFactory.js.map +0 -1
- package/lib/factoryMixins/ExpressionFactory.js.map +0 -1
- package/lib/factoryMixins/GraphRefFactory.js.map +0 -1
- package/lib/factoryMixins/PathFactory.js.map +0 -1
- package/lib/factoryMixins/Patternfactory.js.map +0 -1
- package/lib/factoryMixins/QueryFactory.js.map +0 -1
- package/lib/factoryMixins/SolutionModifiersFactory.js.map +0 -1
- package/lib/factoryMixins/TermFactory.js.map +0 -1
- package/lib/factoryMixins/UpdateOperationFactory.js.map +0 -1
- package/lib/factoryMixins/mixins.js.map +0 -1
- package/lib/grammar/builtIn.js.map +0 -1
- package/lib/grammar/dataSetClause.js.map +0 -1
- package/lib/grammar/expression.js.map +0 -1
- package/lib/grammar/general.js.map +0 -1
- package/lib/grammar/index.js.map +0 -1
- package/lib/grammar/literals.js.map +0 -1
- package/lib/grammar/propertyPaths.js.map +0 -1
- package/lib/grammar/queryUnit.js.map +0 -1
- package/lib/grammar/solutionModifier.js.map +0 -1
- package/lib/grammar/tripleBlock.js.map +0 -1
- package/lib/grammar/updateUnit.js.map +0 -1
- package/lib/grammar/whereClause.js.map +0 -1
- package/lib/index.cjs +0 -14673
- package/lib/index.js.map +0 -1
- package/lib/lexer/BuiltInCalls.js.map +0 -1
- package/lib/lexer/graph.js.map +0 -1
- package/lib/lexer/index.js.map +0 -1
- package/lib/lexer/lexer.js.map +0 -1
- package/lib/lexer/lexerPatterns.js.map +0 -1
- package/lib/lexer/symbols.js.map +0 -1
- package/lib/lexer/terminals.js.map +0 -1
- package/lib/sparql11HelperTypes.js.map +0 -1
- package/lib/utils.js.map +0 -1
- package/lib/validation/validators.js.map +0 -1
- /package/{lib → dist/esm/lib}/MinimalSparqlParser.d.ts +0 -0
- /package/{lib → dist/esm/lib}/MinimalSparqlParser.js +0 -0
- /package/{lib → dist/esm/lib}/Sparql11types.d.ts +0 -0
- /package/{lib → dist/esm/lib}/Sparql11types.js +0 -0
- /package/{lib → dist/esm/lib}/astFactory.d.ts +0 -0
- /package/{lib → dist/esm/lib}/astFactory.js +0 -0
- /package/{lib → dist/esm/lib}/expressionHelpers.js +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/ContextFactory.d.ts +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/ContextFactory.js +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/ExpressionFactory.d.ts +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/ExpressionFactory.js +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/GraphRefFactory.d.ts +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/GraphRefFactory.js +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/PathFactory.d.ts +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/PathFactory.js +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/Patternfactory.d.ts +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/Patternfactory.js +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/QueryFactory.d.ts +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/QueryFactory.js +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/SolutionModifiersFactory.d.ts +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/SolutionModifiersFactory.js +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/TermFactory.d.ts +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/TermFactory.js +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/UpdateOperationFactory.d.ts +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/UpdateOperationFactory.js +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/mixins.d.ts +0 -0
- /package/{lib → dist/esm/lib}/factoryMixins/mixins.js +0 -0
- /package/{lib → dist/esm/lib}/grammar/builtIn.js +0 -0
- /package/{lib → dist/esm/lib}/grammar/dataSetClause.js +0 -0
- /package/{lib → dist/esm/lib}/grammar/expression.d.ts +0 -0
- /package/{lib → dist/esm/lib}/grammar/expression.js +0 -0
- /package/{lib → dist/esm/lib}/grammar/general.d.ts +0 -0
- /package/{lib → dist/esm/lib}/grammar/general.js +0 -0
- /package/{lib → dist/esm/lib}/grammar/index.d.ts +0 -0
- /package/{lib → dist/esm/lib}/grammar/index.js +0 -0
- /package/{lib → dist/esm/lib}/grammar/literals.d.ts +0 -0
- /package/{lib → dist/esm/lib}/grammar/literals.js +0 -0
- /package/{lib → dist/esm/lib}/grammar/propertyPaths.js +0 -0
- /package/{lib → dist/esm/lib}/grammar/queryUnit.d.ts +0 -0
- /package/{lib → dist/esm/lib}/grammar/queryUnit.js +0 -0
- /package/{lib → dist/esm/lib}/grammar/solutionModifier.d.ts +0 -0
- /package/{lib → dist/esm/lib}/grammar/solutionModifier.js +0 -0
- /package/{lib → dist/esm/lib}/grammar/tripleBlock.js +0 -0
- /package/{lib → dist/esm/lib}/grammar/updateUnit.d.ts +0 -0
- /package/{lib → dist/esm/lib}/grammar/updateUnit.js +0 -0
- /package/{lib → dist/esm/lib}/grammar/whereClause.d.ts +0 -0
- /package/{lib → dist/esm/lib}/grammar/whereClause.js +0 -0
- /package/{lib → dist/esm/lib}/index.d.ts +0 -0
- /package/{lib → dist/esm/lib}/index.js +0 -0
- /package/{lib → dist/esm/lib}/lexer/BuiltInCalls.js +0 -0
- /package/{lib → dist/esm/lib}/lexer/graph.js +0 -0
- /package/{lib → dist/esm/lib}/lexer/index.d.ts +0 -0
- /package/{lib → dist/esm/lib}/lexer/index.js +0 -0
- /package/{lib → dist/esm/lib}/lexer/lexer.js +0 -0
- /package/{lib → dist/esm/lib}/lexer/lexerPatterns.d.ts +0 -0
- /package/{lib → dist/esm/lib}/lexer/lexerPatterns.js +0 -0
- /package/{lib → dist/esm/lib}/lexer/symbols.js +0 -0
- /package/{lib → dist/esm/lib}/sparql11HelperTypes.d.ts +0 -0
- /package/{lib → dist/esm/lib}/sparql11HelperTypes.js +0 -0
- /package/{lib → dist/esm/lib}/utils.d.ts +0 -0
- /package/{lib → dist/esm/lib}/utils.js +0 -0
- /package/{lib → dist/esm/lib}/validation/validators.d.ts +0 -0
- /package/{lib → dist/esm/lib}/validation/validators.js +0 -0
|
@@ -0,0 +1,337 @@
|
|
|
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 BuiltInCalls_exports = {};
|
|
20
|
+
__export(BuiltInCalls_exports, {
|
|
21
|
+
BuiltInCalls: () => BuiltInCalls,
|
|
22
|
+
abs: () => abs,
|
|
23
|
+
allBuiltInCalls: () => allBuiltInCalls,
|
|
24
|
+
avg: () => avg,
|
|
25
|
+
bnode: () => bnode,
|
|
26
|
+
bound: () => bound,
|
|
27
|
+
ceil: () => ceil,
|
|
28
|
+
coalesce: () => coalesce,
|
|
29
|
+
concat: () => concat,
|
|
30
|
+
contains: () => contains,
|
|
31
|
+
count: () => count,
|
|
32
|
+
datatype: () => datatype,
|
|
33
|
+
day: () => day,
|
|
34
|
+
encode_for_uri: () => encode_for_uri,
|
|
35
|
+
exists: () => exists,
|
|
36
|
+
floor: () => floor,
|
|
37
|
+
groupConcat: () => groupConcat,
|
|
38
|
+
hours: () => hours,
|
|
39
|
+
if_: () => if_,
|
|
40
|
+
iri: () => iri,
|
|
41
|
+
isblank: () => isblank,
|
|
42
|
+
isiri: () => isiri,
|
|
43
|
+
isliteral: () => isliteral,
|
|
44
|
+
isnumeric: () => isnumeric,
|
|
45
|
+
isuri: () => isuri,
|
|
46
|
+
lang: () => lang,
|
|
47
|
+
langmatches: () => langmatches,
|
|
48
|
+
lcase: () => lcase,
|
|
49
|
+
max: () => max,
|
|
50
|
+
md5: () => md5,
|
|
51
|
+
min: () => min,
|
|
52
|
+
minutes: () => minutes,
|
|
53
|
+
month: () => month,
|
|
54
|
+
notexists: () => notexists,
|
|
55
|
+
now: () => now,
|
|
56
|
+
rand: () => rand,
|
|
57
|
+
regex: () => regex,
|
|
58
|
+
replace: () => replace,
|
|
59
|
+
round: () => round,
|
|
60
|
+
sameterm: () => sameterm,
|
|
61
|
+
sample: () => sample,
|
|
62
|
+
seconds: () => seconds,
|
|
63
|
+
sha1: () => sha1,
|
|
64
|
+
sha256: () => sha256,
|
|
65
|
+
sha384: () => sha384,
|
|
66
|
+
sha512: () => sha512,
|
|
67
|
+
str: () => str,
|
|
68
|
+
strafter: () => strafter,
|
|
69
|
+
strbefore: () => strbefore,
|
|
70
|
+
strdt: () => strdt,
|
|
71
|
+
strends: () => strends,
|
|
72
|
+
strlang: () => strlang,
|
|
73
|
+
strlen: () => strlen,
|
|
74
|
+
strstarts: () => strstarts,
|
|
75
|
+
struuid: () => struuid,
|
|
76
|
+
substr: () => substr,
|
|
77
|
+
sum: () => sum,
|
|
78
|
+
timezone: () => timezone,
|
|
79
|
+
tz: () => tz,
|
|
80
|
+
ucase: () => ucase,
|
|
81
|
+
uri: () => uri,
|
|
82
|
+
uuid: () => uuid,
|
|
83
|
+
year: () => year
|
|
84
|
+
});
|
|
85
|
+
module.exports = __toCommonJS(BuiltInCalls_exports);
|
|
86
|
+
var import_core = require("@traqula/core");
|
|
87
|
+
var BuiltInCalls;
|
|
88
|
+
(function(BuiltInCalls2) {
|
|
89
|
+
BuiltInCalls2["Str"] = "builtInStr";
|
|
90
|
+
BuiltInCalls2["Lang"] = "builtInLang";
|
|
91
|
+
BuiltInCalls2["Langmatches"] = "builtInLangmatches";
|
|
92
|
+
BuiltInCalls2["Datatype"] = "builtInDatatype";
|
|
93
|
+
BuiltInCalls2["Bound"] = "builtInBound";
|
|
94
|
+
BuiltInCalls2["Iri"] = "builtInIri";
|
|
95
|
+
BuiltInCalls2["Uri"] = "builtInUri";
|
|
96
|
+
BuiltInCalls2["Bnode"] = "builtInBnode";
|
|
97
|
+
BuiltInCalls2["Rand"] = "builtInRand";
|
|
98
|
+
BuiltInCalls2["Abs"] = "builtInAbs";
|
|
99
|
+
BuiltInCalls2["Ceil"] = "builtInCeil";
|
|
100
|
+
BuiltInCalls2["Floor"] = "builtInFloor";
|
|
101
|
+
BuiltInCalls2["Round"] = "builtInRound";
|
|
102
|
+
BuiltInCalls2["Concat"] = "builtInConcat";
|
|
103
|
+
BuiltInCalls2["Strlen"] = "builtInStrlen";
|
|
104
|
+
BuiltInCalls2["Ucase"] = "builtInUcase";
|
|
105
|
+
BuiltInCalls2["Lcase"] = "builtInLcase";
|
|
106
|
+
BuiltInCalls2["Encode_for_uri"] = "builtInEncode_for_uri";
|
|
107
|
+
BuiltInCalls2["Contains"] = "builtInContains";
|
|
108
|
+
BuiltInCalls2["Strstarts"] = "builtInStrstarts";
|
|
109
|
+
BuiltInCalls2["Strends"] = "builtInStrends";
|
|
110
|
+
BuiltInCalls2["Strbefore"] = "builtInStrbefore";
|
|
111
|
+
BuiltInCalls2["Strafter"] = "builtInStrafter";
|
|
112
|
+
BuiltInCalls2["Year"] = "builtInYear";
|
|
113
|
+
BuiltInCalls2["Month"] = "builtInMonth";
|
|
114
|
+
BuiltInCalls2["Day"] = "builtInDay";
|
|
115
|
+
BuiltInCalls2["Hours"] = "builtInHours";
|
|
116
|
+
BuiltInCalls2["Minutes"] = "builtInMinutes";
|
|
117
|
+
BuiltInCalls2["Seconds"] = "builtInSeconds";
|
|
118
|
+
BuiltInCalls2["Timezone"] = "builtInTimezone";
|
|
119
|
+
BuiltInCalls2["Tz"] = "builtInTz";
|
|
120
|
+
BuiltInCalls2["Now"] = "builtInNow";
|
|
121
|
+
BuiltInCalls2["Uuid"] = "builtInUuid";
|
|
122
|
+
BuiltInCalls2["Struuid"] = "builtInStruuid";
|
|
123
|
+
BuiltInCalls2["Md5"] = "builtInMd5";
|
|
124
|
+
BuiltInCalls2["Sha1"] = "builtInSha1";
|
|
125
|
+
BuiltInCalls2["Sha256"] = "builtInSha256";
|
|
126
|
+
BuiltInCalls2["Sha384"] = "builtInSha384";
|
|
127
|
+
BuiltInCalls2["Sha512"] = "builtInSha512";
|
|
128
|
+
BuiltInCalls2["Coalesce"] = "builtInCoalesce";
|
|
129
|
+
BuiltInCalls2["If"] = "builtInIf";
|
|
130
|
+
BuiltInCalls2["Strlang"] = "builtInStrlang";
|
|
131
|
+
BuiltInCalls2["Strdt"] = "builtInStrdt";
|
|
132
|
+
BuiltInCalls2["Sameterm"] = "builtInSameterm";
|
|
133
|
+
BuiltInCalls2["Isiri"] = "builtInIsiri";
|
|
134
|
+
BuiltInCalls2["Isuri"] = "builtInIsuri";
|
|
135
|
+
BuiltInCalls2["Isblank"] = "builtInIsblank";
|
|
136
|
+
BuiltInCalls2["Isliteral"] = "builtInIsliteral";
|
|
137
|
+
BuiltInCalls2["Isnumeric"] = "builtInIsnumeric";
|
|
138
|
+
BuiltInCalls2["Regex"] = "builtInRegex";
|
|
139
|
+
BuiltInCalls2["Substr"] = "builtInSubstr";
|
|
140
|
+
BuiltInCalls2["Replace"] = "builtInReplace";
|
|
141
|
+
BuiltInCalls2["Exists"] = "builtInExists";
|
|
142
|
+
BuiltInCalls2["Notexists"] = "builtInNotexists";
|
|
143
|
+
BuiltInCalls2["Count"] = "builtInCount";
|
|
144
|
+
BuiltInCalls2["Sum"] = "builtInSum";
|
|
145
|
+
BuiltInCalls2["Min"] = "builtInMin";
|
|
146
|
+
BuiltInCalls2["Max"] = "builtInMax";
|
|
147
|
+
BuiltInCalls2["Avg"] = "builtInAvg";
|
|
148
|
+
BuiltInCalls2["Sample"] = "builtInSample";
|
|
149
|
+
BuiltInCalls2["Group_concat"] = "builtInGroup_concat";
|
|
150
|
+
})(BuiltInCalls || (BuiltInCalls = {}));
|
|
151
|
+
function capitalize(string) {
|
|
152
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
153
|
+
}
|
|
154
|
+
const str = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Str), pattern: /str/i, label: "STR" });
|
|
155
|
+
const lang = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Lang), pattern: /lang/i, label: "LANG" });
|
|
156
|
+
const langmatches = (0, import_core.createToken)({
|
|
157
|
+
name: capitalize(BuiltInCalls.Langmatches),
|
|
158
|
+
pattern: /langmatches/i,
|
|
159
|
+
label: "LANGMATCHES"
|
|
160
|
+
});
|
|
161
|
+
const datatype = (0, import_core.createToken)({
|
|
162
|
+
name: capitalize(BuiltInCalls.Datatype),
|
|
163
|
+
pattern: /datatype/i,
|
|
164
|
+
label: "DATATYPE"
|
|
165
|
+
});
|
|
166
|
+
const bound = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Bound), pattern: /bound/i, label: "BOUND" });
|
|
167
|
+
const iri = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Iri), pattern: /iri/i, label: "IRI" });
|
|
168
|
+
const uri = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Uri), pattern: /uri/i, label: "URI" });
|
|
169
|
+
const bnode = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Bnode), pattern: /bnode/i, label: "BNODE" });
|
|
170
|
+
const rand = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Rand), pattern: /rand/i, label: "RAND" });
|
|
171
|
+
const abs = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Abs), pattern: /abs/i, label: "ABS" });
|
|
172
|
+
const ceil = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Ceil), pattern: /ceil/i, label: "CEIL" });
|
|
173
|
+
const floor = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Floor), pattern: /floor/i, label: "FLOOR" });
|
|
174
|
+
const round = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Round), pattern: /round/i, label: "ROUND" });
|
|
175
|
+
const concat = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Concat), pattern: /concat/i, label: "CONCAT" });
|
|
176
|
+
const strlen = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Strlen), pattern: /strlen/i, label: "STRLEN" });
|
|
177
|
+
const ucase = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Ucase), pattern: /ucase/i, label: "UCASE" });
|
|
178
|
+
const lcase = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Lcase), pattern: /lcase/i, label: "LCASE" });
|
|
179
|
+
const encode_for_uri = (0, import_core.createToken)({
|
|
180
|
+
name: capitalize(BuiltInCalls.Encode_for_uri),
|
|
181
|
+
pattern: /encode_for_uri/i,
|
|
182
|
+
label: "ENCODE_FOR_URI"
|
|
183
|
+
});
|
|
184
|
+
const contains = (0, import_core.createToken)({
|
|
185
|
+
name: capitalize(BuiltInCalls.Contains),
|
|
186
|
+
pattern: /contains/i,
|
|
187
|
+
label: "CONTAINS"
|
|
188
|
+
});
|
|
189
|
+
const strstarts = (0, import_core.createToken)({
|
|
190
|
+
name: capitalize(BuiltInCalls.Strstarts),
|
|
191
|
+
pattern: /strstarts/i,
|
|
192
|
+
label: "STRSTARTS"
|
|
193
|
+
});
|
|
194
|
+
const strends = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Strends), pattern: /strends/i, label: "STRENDS" });
|
|
195
|
+
const strbefore = (0, import_core.createToken)({
|
|
196
|
+
name: capitalize(BuiltInCalls.Strbefore),
|
|
197
|
+
pattern: /strbefore/i,
|
|
198
|
+
label: "STRBEFORE"
|
|
199
|
+
});
|
|
200
|
+
const strafter = (0, import_core.createToken)({
|
|
201
|
+
name: capitalize(BuiltInCalls.Strafter),
|
|
202
|
+
pattern: /strafter/i,
|
|
203
|
+
label: "STRAFTER"
|
|
204
|
+
});
|
|
205
|
+
const year = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Year), pattern: /year/i, label: "YEAR" });
|
|
206
|
+
const month = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Month), pattern: /month/i, label: "MONTH" });
|
|
207
|
+
const day = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Day), pattern: /day/i, label: "DAY" });
|
|
208
|
+
const hours = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Hours), pattern: /hours/i, label: "HOURS" });
|
|
209
|
+
const minutes = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Minutes), pattern: /minutes/i, label: "MINUTES" });
|
|
210
|
+
const seconds = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Seconds), pattern: /seconds/i, label: "SECONDS" });
|
|
211
|
+
const timezone = (0, import_core.createToken)({
|
|
212
|
+
name: capitalize(BuiltInCalls.Timezone),
|
|
213
|
+
pattern: /timezone/i,
|
|
214
|
+
label: "TIMEZONE"
|
|
215
|
+
});
|
|
216
|
+
const tz = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Tz), pattern: /tz/i, label: "TZ" });
|
|
217
|
+
const now = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Now), pattern: /now/i, label: "NOW" });
|
|
218
|
+
const uuid = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Uuid), pattern: /uuid/i, label: "UUID" });
|
|
219
|
+
const struuid = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Struuid), pattern: /struuid/i, label: "STRUUID" });
|
|
220
|
+
const md5 = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Md5), pattern: /md5/i, label: "MD5" });
|
|
221
|
+
const sha1 = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Sha1), pattern: /sha1/i, label: "SHA1" });
|
|
222
|
+
const sha256 = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Sha256), pattern: /sha256/i, label: "SHA256" });
|
|
223
|
+
const sha384 = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Sha384), pattern: /sha384/i, label: "SHA384" });
|
|
224
|
+
const sha512 = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Sha512), pattern: /sha512/i, label: "SHA512" });
|
|
225
|
+
const coalesce = (0, import_core.createToken)({
|
|
226
|
+
name: capitalize(BuiltInCalls.Coalesce),
|
|
227
|
+
pattern: /coalesce/i,
|
|
228
|
+
label: "COALESCE"
|
|
229
|
+
});
|
|
230
|
+
const if_ = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.If), pattern: /if/i, label: "IF" });
|
|
231
|
+
const strlang = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Strlang), pattern: /strlang/i, label: "STRLANG" });
|
|
232
|
+
const strdt = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Strdt), pattern: /strdt/i, label: "STRDT" });
|
|
233
|
+
const sameterm = (0, import_core.createToken)({
|
|
234
|
+
name: capitalize(BuiltInCalls.Sameterm),
|
|
235
|
+
pattern: /sameterm/i,
|
|
236
|
+
label: "SAMETERM"
|
|
237
|
+
});
|
|
238
|
+
const isiri = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Isiri), pattern: /isiri/i, label: "ISIRI" });
|
|
239
|
+
const isuri = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Isuri), pattern: /isuri/i, label: "ISURI" });
|
|
240
|
+
const isblank = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Isblank), pattern: /isblank/i, label: "ISBLANK" });
|
|
241
|
+
const isliteral = (0, import_core.createToken)({
|
|
242
|
+
name: capitalize(BuiltInCalls.Isliteral),
|
|
243
|
+
pattern: /isliteral/i,
|
|
244
|
+
label: "ISLITERAL"
|
|
245
|
+
});
|
|
246
|
+
const isnumeric = (0, import_core.createToken)({
|
|
247
|
+
name: capitalize(BuiltInCalls.Isnumeric),
|
|
248
|
+
pattern: /isnumeric/i,
|
|
249
|
+
label: "ISNUMERIC"
|
|
250
|
+
});
|
|
251
|
+
const regex = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Regex), pattern: /regex/i, label: "REGEX" });
|
|
252
|
+
const substr = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Substr), pattern: /substr/i, label: "SUBSTR" });
|
|
253
|
+
const replace = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Replace), pattern: /replace/i, label: "REPLACE" });
|
|
254
|
+
const exists = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Exists), pattern: /exists/i, label: "EXISTS" });
|
|
255
|
+
const notexists = (0, import_core.createToken)({
|
|
256
|
+
name: capitalize(BuiltInCalls.Notexists),
|
|
257
|
+
pattern: /not exists/i,
|
|
258
|
+
label: "NOT EXISTS"
|
|
259
|
+
});
|
|
260
|
+
const count = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Count), pattern: /count/i, label: "COUNT" });
|
|
261
|
+
const sum = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Sum), pattern: /sum/i, label: "SUM" });
|
|
262
|
+
const min = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Min), pattern: /min/i, label: "MIN" });
|
|
263
|
+
const max = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Max), pattern: /max/i, label: "MAX" });
|
|
264
|
+
const avg = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Avg), pattern: /avg/i, label: "AVG" });
|
|
265
|
+
const sample = (0, import_core.createToken)({ name: capitalize(BuiltInCalls.Sample), pattern: /sample/i, label: "SAMPLE" });
|
|
266
|
+
const groupConcat = (0, import_core.createToken)({
|
|
267
|
+
name: capitalize(BuiltInCalls.Group_concat),
|
|
268
|
+
pattern: /group_concat/i,
|
|
269
|
+
label: "GROUP_CONCAT"
|
|
270
|
+
});
|
|
271
|
+
const allBuiltInCalls = import_core.LexerBuilder.create().add(langmatches, datatype, lang, bound, iri, uri, bnode, rand, abs, ceil, floor, round, concat, strlen, ucase, lcase, encode_for_uri, contains, strstarts, strends, strbefore, strafter, year, month, day, hours, minutes, seconds, timezone, tz, now, uuid, struuid, md5, sha1, sha256, sha384, sha512, coalesce, if_, strlang, strdt, sameterm, isiri, isuri, isblank, isliteral, isnumeric, regex, substr, replace, exists, notexists, count, sum, min, max, avg, sample, groupConcat, str);
|
|
272
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
273
|
+
0 && (module.exports = {
|
|
274
|
+
BuiltInCalls,
|
|
275
|
+
abs,
|
|
276
|
+
allBuiltInCalls,
|
|
277
|
+
avg,
|
|
278
|
+
bnode,
|
|
279
|
+
bound,
|
|
280
|
+
ceil,
|
|
281
|
+
coalesce,
|
|
282
|
+
concat,
|
|
283
|
+
contains,
|
|
284
|
+
count,
|
|
285
|
+
datatype,
|
|
286
|
+
day,
|
|
287
|
+
encode_for_uri,
|
|
288
|
+
exists,
|
|
289
|
+
floor,
|
|
290
|
+
groupConcat,
|
|
291
|
+
hours,
|
|
292
|
+
if_,
|
|
293
|
+
iri,
|
|
294
|
+
isblank,
|
|
295
|
+
isiri,
|
|
296
|
+
isliteral,
|
|
297
|
+
isnumeric,
|
|
298
|
+
isuri,
|
|
299
|
+
lang,
|
|
300
|
+
langmatches,
|
|
301
|
+
lcase,
|
|
302
|
+
max,
|
|
303
|
+
md5,
|
|
304
|
+
min,
|
|
305
|
+
minutes,
|
|
306
|
+
month,
|
|
307
|
+
notexists,
|
|
308
|
+
now,
|
|
309
|
+
rand,
|
|
310
|
+
regex,
|
|
311
|
+
replace,
|
|
312
|
+
round,
|
|
313
|
+
sameterm,
|
|
314
|
+
sample,
|
|
315
|
+
seconds,
|
|
316
|
+
sha1,
|
|
317
|
+
sha256,
|
|
318
|
+
sha384,
|
|
319
|
+
sha512,
|
|
320
|
+
str,
|
|
321
|
+
strafter,
|
|
322
|
+
strbefore,
|
|
323
|
+
strdt,
|
|
324
|
+
strends,
|
|
325
|
+
strlang,
|
|
326
|
+
strlen,
|
|
327
|
+
strstarts,
|
|
328
|
+
struuid,
|
|
329
|
+
substr,
|
|
330
|
+
sum,
|
|
331
|
+
timezone,
|
|
332
|
+
tz,
|
|
333
|
+
ucase,
|
|
334
|
+
uri,
|
|
335
|
+
uuid,
|
|
336
|
+
year
|
|
337
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
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 graph_exports = {};
|
|
20
|
+
__export(graph_exports, {
|
|
21
|
+
allGraphTokens: () => allGraphTokens,
|
|
22
|
+
default_: () => default_,
|
|
23
|
+
graph: () => graph,
|
|
24
|
+
graphAll: () => graphAll,
|
|
25
|
+
named: () => named
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(graph_exports);
|
|
28
|
+
var import_core = require("@traqula/core");
|
|
29
|
+
const named = (0, import_core.createToken)({ name: "NamedGraph", pattern: /named/i, label: "NAMED" });
|
|
30
|
+
const default_ = (0, import_core.createToken)({ name: "DefaultGraph", pattern: /default/i, label: "DEFAULT" });
|
|
31
|
+
const graph = (0, import_core.createToken)({ name: "Graph", pattern: /graph/i, label: "GRAPH" });
|
|
32
|
+
const graphAll = (0, import_core.createToken)({ name: "GraphAll", pattern: /all/i, label: "ALL" });
|
|
33
|
+
const allGraphTokens = import_core.LexerBuilder.create().add(named, default_, graph, graphAll);
|
|
34
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
+
0 && (module.exports = {
|
|
36
|
+
allGraphTokens,
|
|
37
|
+
default_,
|
|
38
|
+
graph,
|
|
39
|
+
graphAll,
|
|
40
|
+
named
|
|
41
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
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 __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var lexer_exports = {};
|
|
31
|
+
__export(lexer_exports, {
|
|
32
|
+
builtIn: () => builtIn,
|
|
33
|
+
graph: () => graph,
|
|
34
|
+
symbols: () => symbols,
|
|
35
|
+
terminals: () => terminals
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(lexer_exports);
|
|
38
|
+
var builtIn = __toESM(require("./BuiltInCalls.js"), 1);
|
|
39
|
+
var graph = __toESM(require("./graph.js"), 1);
|
|
40
|
+
__reExport(lexer_exports, require("./lexer.js"), module.exports);
|
|
41
|
+
var symbols = __toESM(require("./symbols.js"), 1);
|
|
42
|
+
var terminals = __toESM(require("./terminals.js"), 1);
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
builtIn,
|
|
46
|
+
graph,
|
|
47
|
+
symbols,
|
|
48
|
+
terminals,
|
|
49
|
+
...require("./lexer.js")
|
|
50
|
+
});
|
|
@@ -0,0 +1,199 @@
|
|
|
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 = (to2, from2, except, desc) => {
|
|
11
|
+
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from2))
|
|
13
|
+
if (!__hasOwnProp.call(to2, key) && key !== except)
|
|
14
|
+
__defProp(to2, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to2;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var lexer_exports = {};
|
|
20
|
+
__export(lexer_exports, {
|
|
21
|
+
a: () => a,
|
|
22
|
+
add: () => add,
|
|
23
|
+
allBaseTokens: () => allBaseTokens,
|
|
24
|
+
as: () => as,
|
|
25
|
+
ask: () => ask,
|
|
26
|
+
baseDecl: () => baseDecl,
|
|
27
|
+
bind: () => bind,
|
|
28
|
+
by: () => by,
|
|
29
|
+
clear: () => clear,
|
|
30
|
+
construct: () => construct,
|
|
31
|
+
copy: () => copy,
|
|
32
|
+
create: () => create,
|
|
33
|
+
deleteClause: () => deleteClause,
|
|
34
|
+
deleteDataClause: () => deleteDataClause,
|
|
35
|
+
deleteWhereClause: () => deleteWhereClause,
|
|
36
|
+
describe: () => describe,
|
|
37
|
+
distinct: () => distinct,
|
|
38
|
+
drop: () => drop,
|
|
39
|
+
false_: () => false_,
|
|
40
|
+
filter: () => filter,
|
|
41
|
+
from: () => from,
|
|
42
|
+
groupByGroup: () => groupByGroup,
|
|
43
|
+
having: () => having,
|
|
44
|
+
in_: () => in_,
|
|
45
|
+
insertClause: () => insertClause,
|
|
46
|
+
insertDataClause: () => insertDataClause,
|
|
47
|
+
limit: () => limit,
|
|
48
|
+
load: () => load,
|
|
49
|
+
loadInto: () => loadInto,
|
|
50
|
+
minus: () => minus,
|
|
51
|
+
modifyWith: () => modifyWith,
|
|
52
|
+
move: () => move,
|
|
53
|
+
notIn: () => notIn,
|
|
54
|
+
offset: () => offset,
|
|
55
|
+
optional: () => optional,
|
|
56
|
+
order: () => order,
|
|
57
|
+
orderAsc: () => orderAsc,
|
|
58
|
+
orderDesc: () => orderDesc,
|
|
59
|
+
prefixDecl: () => prefixDecl,
|
|
60
|
+
reduced: () => reduced,
|
|
61
|
+
select: () => select,
|
|
62
|
+
separator: () => separator,
|
|
63
|
+
service: () => service,
|
|
64
|
+
silent: () => silent,
|
|
65
|
+
sparql11LexerBuilder: () => sparql11LexerBuilder,
|
|
66
|
+
to: () => to,
|
|
67
|
+
true_: () => true_,
|
|
68
|
+
undef: () => undef,
|
|
69
|
+
union: () => union,
|
|
70
|
+
usingClause: () => usingClause,
|
|
71
|
+
values: () => values,
|
|
72
|
+
where: () => where
|
|
73
|
+
});
|
|
74
|
+
module.exports = __toCommonJS(lexer_exports);
|
|
75
|
+
var import_core = require("@traqula/core");
|
|
76
|
+
var import_BuiltInCalls = require("./BuiltInCalls.js");
|
|
77
|
+
var import_graph = require("./graph.js");
|
|
78
|
+
var import_lexerPatterns = require("./lexerPatterns.js");
|
|
79
|
+
var import_symbols = require("./symbols.js");
|
|
80
|
+
var import_terminals = require("./terminals.js");
|
|
81
|
+
const baseDecl = (0, import_core.createToken)({ name: "BaseDecl", pattern: /base/i, label: "BASE" });
|
|
82
|
+
const prefixDecl = (0, import_core.createToken)({ name: "PrefixDecl", pattern: /prefix/i, label: "PREFIX" });
|
|
83
|
+
const select = (0, import_core.createToken)({ name: "Select", pattern: /select/i, label: "SELECT" });
|
|
84
|
+
const distinct = (0, import_core.createToken)({ name: "Distinct", pattern: /distinct/i, label: "DISTINCT" });
|
|
85
|
+
const reduced = (0, import_core.createToken)({ name: "Reduced", pattern: /reduced/i, label: "REDUCED" });
|
|
86
|
+
const as = (0, import_core.createToken)({ name: "As", pattern: /as/i, label: "AS" });
|
|
87
|
+
const construct = (0, import_core.createToken)({ name: "Construct", pattern: /construct/i, label: "CONSTRUCT" });
|
|
88
|
+
const describe = (0, import_core.createToken)({ name: "Describe", pattern: /describe/i, label: "DESCRIBE" });
|
|
89
|
+
const ask = (0, import_core.createToken)({ name: "Ask", pattern: /ask/i, label: "ASK" });
|
|
90
|
+
const from = (0, import_core.createToken)({ name: "From", pattern: /from/i, label: "FROM" });
|
|
91
|
+
const where = (0, import_core.createToken)({ name: "Where", pattern: /where/i, label: "WHERE" });
|
|
92
|
+
const groupByGroup = (0, import_core.createToken)({ name: "GroupByGroup", pattern: /group/i, label: "_GROUP_ BY" });
|
|
93
|
+
const by = (0, import_core.createToken)({ name: "By", pattern: /by/i, label: "BY" });
|
|
94
|
+
const having = (0, import_core.createToken)({ name: "Having", pattern: /having/i, label: "HAVING" });
|
|
95
|
+
const order = (0, import_core.createToken)({ name: "Order", pattern: /order/i, label: "_ORDER_ BY" });
|
|
96
|
+
const orderAsc = (0, import_core.createToken)({ name: "OrderAsc", pattern: /asc/i, label: "ASC" });
|
|
97
|
+
const orderDesc = (0, import_core.createToken)({ name: "OrderDesc", pattern: /desc/i, label: "DESC" });
|
|
98
|
+
const limit = (0, import_core.createToken)({ name: "Limit", pattern: /limit/i, label: "LIMIT" });
|
|
99
|
+
const offset = (0, import_core.createToken)({ name: "Offset", pattern: /offset/i, label: "OFFSET" });
|
|
100
|
+
const values = (0, import_core.createToken)({ name: "Values", pattern: /values/i, label: "VALUES" });
|
|
101
|
+
const load = (0, import_core.createToken)({ name: "Load", pattern: /load/i, label: "LOAD" });
|
|
102
|
+
const silent = (0, import_core.createToken)({ name: "Silent", pattern: /silent/i, label: "SILENT" });
|
|
103
|
+
const loadInto = (0, import_core.createToken)({ name: "LoadInto", pattern: /into/i, label: "INTO" });
|
|
104
|
+
const clear = (0, import_core.createToken)({ name: "Clear", pattern: /clear/i, label: "CLEAR" });
|
|
105
|
+
const drop = (0, import_core.createToken)({ name: "Drop", pattern: /drop/i, label: "DROP" });
|
|
106
|
+
const create = (0, import_core.createToken)({ name: "Create", pattern: /create/i, label: "CREATE" });
|
|
107
|
+
const add = (0, import_core.createToken)({ name: "Add", pattern: /add/i, label: "ADD" });
|
|
108
|
+
const to = (0, import_core.createToken)({ name: "To", pattern: /to/i, label: "TO" });
|
|
109
|
+
const move = (0, import_core.createToken)({ name: "Move", pattern: /move/i, label: "MOVE" });
|
|
110
|
+
const copy = (0, import_core.createToken)({ name: "Copy", pattern: /copy/i, label: "COPY" });
|
|
111
|
+
const modifyWith = (0, import_core.createToken)({ name: "ModifyWith", pattern: /with/i, label: "WITH" });
|
|
112
|
+
const deleteDataClause = (0, import_core.createToken)({
|
|
113
|
+
name: "DeleteDataClause",
|
|
114
|
+
pattern: new RegExp(`delete(${import_lexerPatterns.atLeastOneBlankPattern.source})data`, "i"),
|
|
115
|
+
label: "DELETE DATA"
|
|
116
|
+
});
|
|
117
|
+
const deleteWhereClause = (0, import_core.createToken)({
|
|
118
|
+
name: "DeleteWhereClause",
|
|
119
|
+
pattern: new RegExp(`delete(${import_lexerPatterns.atLeastOneBlankPattern.source})where`, "i"),
|
|
120
|
+
label: "DELETE WHERE"
|
|
121
|
+
});
|
|
122
|
+
const deleteClause = (0, import_core.createToken)({ name: "DeleteClause", pattern: /delete/i, label: "DELETE" });
|
|
123
|
+
const insertDataClause = (0, import_core.createToken)({
|
|
124
|
+
name: "InsertDataClause",
|
|
125
|
+
pattern: new RegExp(`insert(${import_lexerPatterns.atLeastOneBlankPattern.source})data`, "i"),
|
|
126
|
+
label: "INSERT DATA"
|
|
127
|
+
});
|
|
128
|
+
const insertClause = (0, import_core.createToken)({ name: "InsertClause", pattern: /insert/i, label: "insert" });
|
|
129
|
+
const usingClause = (0, import_core.createToken)({ name: "UsingClause", pattern: /using/i, label: "USING" });
|
|
130
|
+
const optional = (0, import_core.createToken)({ name: "Optional", pattern: /optional/i, label: "OPTIONAL" });
|
|
131
|
+
const service = (0, import_core.createToken)({ name: "Service", pattern: /service/i, label: "SERVICE" });
|
|
132
|
+
const bind = (0, import_core.createToken)({ name: "Bind", pattern: /bind/i, label: "BIND" });
|
|
133
|
+
const undef = (0, import_core.createToken)({ name: "Undef", pattern: /undef/i, label: "UNDEF" });
|
|
134
|
+
const minus = (0, import_core.createToken)({ name: "Minus", pattern: /minus/i, label: "MINUS" });
|
|
135
|
+
const union = (0, import_core.createToken)({ name: "Union", pattern: /union/i, label: "UNION" });
|
|
136
|
+
const filter = (0, import_core.createToken)({ name: "Filter", pattern: /filter/i, label: "FILTER" });
|
|
137
|
+
const a = (0, import_core.createToken)({ name: "a", pattern: "a", label: "type declaration 'a'" });
|
|
138
|
+
const true_ = (0, import_core.createToken)({ name: "True", pattern: /true/i, label: "true" });
|
|
139
|
+
const false_ = (0, import_core.createToken)({ name: "False", pattern: /false/i, label: "false" });
|
|
140
|
+
const in_ = (0, import_core.createToken)({ name: "In", pattern: /in/i, label: "IN" });
|
|
141
|
+
const notIn = (0, import_core.createToken)({ name: "NotIn", pattern: /not[\u0020\u0009\u000D\u000A]+in/i, label: "NOT IN" });
|
|
142
|
+
const separator = (0, import_core.createToken)({ name: "Separator", pattern: /separator/i, label: "SEPARATOR" });
|
|
143
|
+
const allBaseTokens = import_core.LexerBuilder.create().add(baseDecl, prefixDecl, select, distinct, reduced, construct, describe, ask, from, where, having, groupByGroup, by, order, orderAsc, orderDesc, limit, offset, values, load, silent, loadInto, clear, drop, create, add, to, move, copy, modifyWith, deleteWhereClause, deleteDataClause, deleteClause, insertDataClause, insertClause, usingClause, optional, service, bind, undef, minus, union, filter, as, a, true_, false_, in_, notIn, separator);
|
|
144
|
+
const sparql11LexerBuilder = import_core.LexerBuilder.create(import_terminals.allTerminals).merge(allBaseTokens).merge(import_BuiltInCalls.allBuiltInCalls).merge(import_graph.allGraphTokens).merge(import_symbols.allSymbols).moveAfter(import_BuiltInCalls.avg, a).moveBefore(a, import_graph.graphAll).moveAfter(import_BuiltInCalls.groupConcat, groupByGroup);
|
|
145
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
146
|
+
0 && (module.exports = {
|
|
147
|
+
a,
|
|
148
|
+
add,
|
|
149
|
+
allBaseTokens,
|
|
150
|
+
as,
|
|
151
|
+
ask,
|
|
152
|
+
baseDecl,
|
|
153
|
+
bind,
|
|
154
|
+
by,
|
|
155
|
+
clear,
|
|
156
|
+
construct,
|
|
157
|
+
copy,
|
|
158
|
+
create,
|
|
159
|
+
deleteClause,
|
|
160
|
+
deleteDataClause,
|
|
161
|
+
deleteWhereClause,
|
|
162
|
+
describe,
|
|
163
|
+
distinct,
|
|
164
|
+
drop,
|
|
165
|
+
false_,
|
|
166
|
+
filter,
|
|
167
|
+
from,
|
|
168
|
+
groupByGroup,
|
|
169
|
+
having,
|
|
170
|
+
in_,
|
|
171
|
+
insertClause,
|
|
172
|
+
insertDataClause,
|
|
173
|
+
limit,
|
|
174
|
+
load,
|
|
175
|
+
loadInto,
|
|
176
|
+
minus,
|
|
177
|
+
modifyWith,
|
|
178
|
+
move,
|
|
179
|
+
notIn,
|
|
180
|
+
offset,
|
|
181
|
+
optional,
|
|
182
|
+
order,
|
|
183
|
+
orderAsc,
|
|
184
|
+
orderDesc,
|
|
185
|
+
prefixDecl,
|
|
186
|
+
reduced,
|
|
187
|
+
select,
|
|
188
|
+
separator,
|
|
189
|
+
service,
|
|
190
|
+
silent,
|
|
191
|
+
sparql11LexerBuilder,
|
|
192
|
+
to,
|
|
193
|
+
true_,
|
|
194
|
+
undef,
|
|
195
|
+
union,
|
|
196
|
+
usingClause,
|
|
197
|
+
values,
|
|
198
|
+
where
|
|
199
|
+
});
|