sparql 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,1805 +0,0 @@
1
- # This file is automatically generated by script/build_meta
2
- # Branch and Regexp tables derived from /Users/gregg/Projects/sparql-grammar/etc/sparql-selectors.n3
3
- # Note, branch tables completed with conflicts, may need to be resolved manually:
4
- #
5
- # Conflict: in :UnaryExpression:
6
- # "+" is the condition for ["\"+\"", ":PrimaryExpression"].
7
- #
8
- # We are changing it to :PrimaryExpression.
9
- #
10
- # Conflict: in :UnaryExpression:
11
- # "-" is the condition for ["\"-\"", ":PrimaryExpression"].
12
- #
13
- # We are changing it to :PrimaryExpression.
14
- module SPARQL::Grammar::Meta
15
- BRANCHES = {
16
- :AdditiveExpression => {
17
- "!" => [:MultiplicativeExpression,
18
- :_Add_Sub_MultiplicativeExpression_Star],
19
- "(" => [:MultiplicativeExpression,
20
- :_Add_Sub_MultiplicativeExpression_Star],
21
- "+" => [:MultiplicativeExpression,
22
- :_Add_Sub_MultiplicativeExpression_Star],
23
- "-" => [:MultiplicativeExpression,
24
- :_Add_Sub_MultiplicativeExpression_Star],
25
- "BOUND" => [:MultiplicativeExpression,
26
- :_Add_Sub_MultiplicativeExpression_Star],
27
- "DATATYPE" => [:MultiplicativeExpression,
28
- :_Add_Sub_MultiplicativeExpression_Star],
29
- "LANG" => [:MultiplicativeExpression,
30
- :_Add_Sub_MultiplicativeExpression_Star],
31
- "LANGMATCHES" => [:MultiplicativeExpression,
32
- :_Add_Sub_MultiplicativeExpression_Star],
33
- "REGEX" => [:MultiplicativeExpression,
34
- :_Add_Sub_MultiplicativeExpression_Star],
35
- "STR" => [:MultiplicativeExpression,
36
- :_Add_Sub_MultiplicativeExpression_Star],
37
- :BooleanLiteral => [:MultiplicativeExpression,
38
- :_Add_Sub_MultiplicativeExpression_Star],
39
- :DECIMAL => [:MultiplicativeExpression,
40
- :_Add_Sub_MultiplicativeExpression_Star],
41
- :DOUBLE => [:MultiplicativeExpression,
42
- :_Add_Sub_MultiplicativeExpression_Star],
43
- :INTEGER => [:MultiplicativeExpression,
44
- :_Add_Sub_MultiplicativeExpression_Star],
45
- :IRI_REF => [:MultiplicativeExpression,
46
- :_Add_Sub_MultiplicativeExpression_Star],
47
- :PNAME_LN => [:MultiplicativeExpression,
48
- :_Add_Sub_MultiplicativeExpression_Star],
49
- :PNAME_NS => [:MultiplicativeExpression,
50
- :_Add_Sub_MultiplicativeExpression_Star],
51
- :STRING_LITERAL1 => [:MultiplicativeExpression,
52
- :_Add_Sub_MultiplicativeExpression_Star],
53
- :STRING_LITERAL2 => [:MultiplicativeExpression,
54
- :_Add_Sub_MultiplicativeExpression_Star],
55
- :STRING_LITERAL_LONG1 => [:MultiplicativeExpression,
56
- :_Add_Sub_MultiplicativeExpression_Star],
57
- :STRING_LITERAL_LONG2 => [:MultiplicativeExpression,
58
- :_Add_Sub_MultiplicativeExpression_Star],
59
- :VAR1 => [:MultiplicativeExpression,
60
- :_Add_Sub_MultiplicativeExpression_Star],
61
- :VAR2 => [:MultiplicativeExpression,
62
- :_Add_Sub_MultiplicativeExpression_Star],
63
- "ISBLANK" => [:MultiplicativeExpression,
64
- :_Add_Sub_MultiplicativeExpression_Star],
65
- "ISIRI" => [:MultiplicativeExpression,
66
- :_Add_Sub_MultiplicativeExpression_Star],
67
- "ISLITERAL" => [:MultiplicativeExpression,
68
- :_Add_Sub_MultiplicativeExpression_Star],
69
- "ISURI" => [:MultiplicativeExpression,
70
- :_Add_Sub_MultiplicativeExpression_Star],
71
- "SAMETERM" => [:MultiplicativeExpression,
72
- :_Add_Sub_MultiplicativeExpression_Star],
73
- },
74
- :ArgList => {
75
- "(" => ["(",
76
- :_Expression_COMMA_Expression_Star,
77
- ")"],
78
- :NIL => [:NIL],
79
- },
80
- :AskQuery => {
81
- "ASK" => ["ASK",
82
- :_DatasetClause_Star,
83
- :WhereClause],
84
- },
85
- :BaseDecl => {
86
- "BASE" => ["BASE",
87
- :IRI_REF],
88
- },
89
- :BlankNode => {
90
- :ANON => [:ANON],
91
- :BLANK_NODE_LABEL => [:BLANK_NODE_LABEL],
92
- },
93
- :BlankNodePropertyList => {
94
- "[" => ["[",
95
- :PropertyListNotEmpty,
96
- "]"],
97
- },
98
- :BrackettedExpression => {
99
- "(" => ["(",
100
- :Expression,
101
- ")"],
102
- },
103
- :BuiltInCall => {
104
- "BOUND" => ["BOUND",
105
- "(",
106
- :Var,
107
- ")"],
108
- "DATATYPE" => ["DATATYPE",
109
- "(",
110
- :Expression,
111
- ")"],
112
- "LANG" => ["LANG",
113
- "(",
114
- :Expression,
115
- ")"],
116
- "LANGMATCHES" => ["LANGMATCHES",
117
- "(",
118
- :Expression,
119
- ",",
120
- :Expression,
121
- ")"],
122
- "REGEX" => [:RegexExpression],
123
- "STR" => ["STR",
124
- "(",
125
- :Expression,
126
- ")"],
127
- "ISBLANK" => ["ISBLANK",
128
- "(",
129
- :Expression,
130
- ")"],
131
- "ISIRI" => ["ISIRI",
132
- "(",
133
- :Expression,
134
- ")"],
135
- "ISLITERAL" => ["ISLITERAL",
136
- "(",
137
- :Expression,
138
- ")"],
139
- "ISURI" => ["ISURI",
140
- "(",
141
- :Expression,
142
- ")"],
143
- "SAMETERM" => ["SAMETERM",
144
- "(",
145
- :Expression,
146
- ",",
147
- :Expression,
148
- ")"],
149
- },
150
- :Collection => {
151
- "(" => ["(",
152
- :_GraphNode_Plus,
153
- ")"],
154
- },
155
- :ConditionalAndExpression => {
156
- "!" => [:ValueLogical,
157
- :_AND_ValueLogical_Star],
158
- "(" => [:ValueLogical,
159
- :_AND_ValueLogical_Star],
160
- "+" => [:ValueLogical,
161
- :_AND_ValueLogical_Star],
162
- "-" => [:ValueLogical,
163
- :_AND_ValueLogical_Star],
164
- "BOUND" => [:ValueLogical,
165
- :_AND_ValueLogical_Star],
166
- "DATATYPE" => [:ValueLogical,
167
- :_AND_ValueLogical_Star],
168
- "LANG" => [:ValueLogical,
169
- :_AND_ValueLogical_Star],
170
- "LANGMATCHES" => [:ValueLogical,
171
- :_AND_ValueLogical_Star],
172
- "REGEX" => [:ValueLogical,
173
- :_AND_ValueLogical_Star],
174
- "STR" => [:ValueLogical,
175
- :_AND_ValueLogical_Star],
176
- :BooleanLiteral => [:ValueLogical,
177
- :_AND_ValueLogical_Star],
178
- :DECIMAL => [:ValueLogical,
179
- :_AND_ValueLogical_Star],
180
- :DOUBLE => [:ValueLogical,
181
- :_AND_ValueLogical_Star],
182
- :INTEGER => [:ValueLogical,
183
- :_AND_ValueLogical_Star],
184
- :IRI_REF => [:ValueLogical,
185
- :_AND_ValueLogical_Star],
186
- :PNAME_LN => [:ValueLogical,
187
- :_AND_ValueLogical_Star],
188
- :PNAME_NS => [:ValueLogical,
189
- :_AND_ValueLogical_Star],
190
- :STRING_LITERAL1 => [:ValueLogical,
191
- :_AND_ValueLogical_Star],
192
- :STRING_LITERAL2 => [:ValueLogical,
193
- :_AND_ValueLogical_Star],
194
- :STRING_LITERAL_LONG1 => [:ValueLogical,
195
- :_AND_ValueLogical_Star],
196
- :STRING_LITERAL_LONG2 => [:ValueLogical,
197
- :_AND_ValueLogical_Star],
198
- :VAR1 => [:ValueLogical,
199
- :_AND_ValueLogical_Star],
200
- :VAR2 => [:ValueLogical,
201
- :_AND_ValueLogical_Star],
202
- "ISBLANK" => [:ValueLogical,
203
- :_AND_ValueLogical_Star],
204
- "ISIRI" => [:ValueLogical,
205
- :_AND_ValueLogical_Star],
206
- "ISLITERAL" => [:ValueLogical,
207
- :_AND_ValueLogical_Star],
208
- "ISURI" => [:ValueLogical,
209
- :_AND_ValueLogical_Star],
210
- "SAMETERM" => [:ValueLogical,
211
- :_AND_ValueLogical_Star],
212
- },
213
- :ConditionalOrExpression => {
214
- "!" => [:ConditionalAndExpression,
215
- :_OR_ConditionalAndExpression_Star],
216
- "(" => [:ConditionalAndExpression,
217
- :_OR_ConditionalAndExpression_Star],
218
- "+" => [:ConditionalAndExpression,
219
- :_OR_ConditionalAndExpression_Star],
220
- "-" => [:ConditionalAndExpression,
221
- :_OR_ConditionalAndExpression_Star],
222
- "BOUND" => [:ConditionalAndExpression,
223
- :_OR_ConditionalAndExpression_Star],
224
- "DATATYPE" => [:ConditionalAndExpression,
225
- :_OR_ConditionalAndExpression_Star],
226
- "LANG" => [:ConditionalAndExpression,
227
- :_OR_ConditionalAndExpression_Star],
228
- "LANGMATCHES" => [:ConditionalAndExpression,
229
- :_OR_ConditionalAndExpression_Star],
230
- "REGEX" => [:ConditionalAndExpression,
231
- :_OR_ConditionalAndExpression_Star],
232
- "STR" => [:ConditionalAndExpression,
233
- :_OR_ConditionalAndExpression_Star],
234
- :BooleanLiteral => [:ConditionalAndExpression,
235
- :_OR_ConditionalAndExpression_Star],
236
- :DECIMAL => [:ConditionalAndExpression,
237
- :_OR_ConditionalAndExpression_Star],
238
- :DOUBLE => [:ConditionalAndExpression,
239
- :_OR_ConditionalAndExpression_Star],
240
- :INTEGER => [:ConditionalAndExpression,
241
- :_OR_ConditionalAndExpression_Star],
242
- :IRI_REF => [:ConditionalAndExpression,
243
- :_OR_ConditionalAndExpression_Star],
244
- :PNAME_LN => [:ConditionalAndExpression,
245
- :_OR_ConditionalAndExpression_Star],
246
- :PNAME_NS => [:ConditionalAndExpression,
247
- :_OR_ConditionalAndExpression_Star],
248
- :STRING_LITERAL1 => [:ConditionalAndExpression,
249
- :_OR_ConditionalAndExpression_Star],
250
- :STRING_LITERAL2 => [:ConditionalAndExpression,
251
- :_OR_ConditionalAndExpression_Star],
252
- :STRING_LITERAL_LONG1 => [:ConditionalAndExpression,
253
- :_OR_ConditionalAndExpression_Star],
254
- :STRING_LITERAL_LONG2 => [:ConditionalAndExpression,
255
- :_OR_ConditionalAndExpression_Star],
256
- :VAR1 => [:ConditionalAndExpression,
257
- :_OR_ConditionalAndExpression_Star],
258
- :VAR2 => [:ConditionalAndExpression,
259
- :_OR_ConditionalAndExpression_Star],
260
- "ISBLANK" => [:ConditionalAndExpression,
261
- :_OR_ConditionalAndExpression_Star],
262
- "ISIRI" => [:ConditionalAndExpression,
263
- :_OR_ConditionalAndExpression_Star],
264
- "ISLITERAL" => [:ConditionalAndExpression,
265
- :_OR_ConditionalAndExpression_Star],
266
- "ISURI" => [:ConditionalAndExpression,
267
- :_OR_ConditionalAndExpression_Star],
268
- "SAMETERM" => [:ConditionalAndExpression,
269
- :_OR_ConditionalAndExpression_Star],
270
- },
271
- :Constraint => {
272
- "(" => [:BrackettedExpression],
273
- "BOUND" => [:BuiltInCall],
274
- "DATATYPE" => [:BuiltInCall],
275
- "LANG" => [:BuiltInCall],
276
- "LANGMATCHES" => [:BuiltInCall],
277
- "REGEX" => [:BuiltInCall],
278
- "STR" => [:BuiltInCall],
279
- :IRI_REF => [:FunctionCall],
280
- :PNAME_LN => [:FunctionCall],
281
- :PNAME_NS => [:FunctionCall],
282
- "ISBLANK" => [:BuiltInCall],
283
- "ISIRI" => [:BuiltInCall],
284
- "ISLITERAL" => [:BuiltInCall],
285
- "ISURI" => [:BuiltInCall],
286
- "SAMETERM" => [:BuiltInCall],
287
- },
288
- :ConstructQuery => {
289
- "CONSTRUCT" => ["CONSTRUCT",
290
- :ConstructTemplate,
291
- :_DatasetClause_Star,
292
- :WhereClause,
293
- :SolutionModifier],
294
- },
295
- :ConstructTemplate => {
296
- "{" => ["{",
297
- :_ConstructTriples_Opt,
298
- "}"],
299
- },
300
- :ConstructTriples => {
301
- "(" => [:TriplesSameSubject,
302
- :_DOT_ConstructTriples_Opt_Opt],
303
- "+" => [:TriplesSameSubject,
304
- :_DOT_ConstructTriples_Opt_Opt],
305
- "-" => [:TriplesSameSubject,
306
- :_DOT_ConstructTriples_Opt_Opt],
307
- "[" => [:TriplesSameSubject,
308
- :_DOT_ConstructTriples_Opt_Opt],
309
- :ANON => [:TriplesSameSubject,
310
- :_DOT_ConstructTriples_Opt_Opt],
311
- :BLANK_NODE_LABEL => [:TriplesSameSubject,
312
- :_DOT_ConstructTriples_Opt_Opt],
313
- :BooleanLiteral => [:TriplesSameSubject,
314
- :_DOT_ConstructTriples_Opt_Opt],
315
- :DECIMAL => [:TriplesSameSubject,
316
- :_DOT_ConstructTriples_Opt_Opt],
317
- :DOUBLE => [:TriplesSameSubject,
318
- :_DOT_ConstructTriples_Opt_Opt],
319
- :INTEGER => [:TriplesSameSubject,
320
- :_DOT_ConstructTriples_Opt_Opt],
321
- :IRI_REF => [:TriplesSameSubject,
322
- :_DOT_ConstructTriples_Opt_Opt],
323
- :NIL => [:TriplesSameSubject,
324
- :_DOT_ConstructTriples_Opt_Opt],
325
- :PNAME_LN => [:TriplesSameSubject,
326
- :_DOT_ConstructTriples_Opt_Opt],
327
- :PNAME_NS => [:TriplesSameSubject,
328
- :_DOT_ConstructTriples_Opt_Opt],
329
- :STRING_LITERAL1 => [:TriplesSameSubject,
330
- :_DOT_ConstructTriples_Opt_Opt],
331
- :STRING_LITERAL2 => [:TriplesSameSubject,
332
- :_DOT_ConstructTriples_Opt_Opt],
333
- :STRING_LITERAL_LONG1 => [:TriplesSameSubject,
334
- :_DOT_ConstructTriples_Opt_Opt],
335
- :STRING_LITERAL_LONG2 => [:TriplesSameSubject,
336
- :_DOT_ConstructTriples_Opt_Opt],
337
- :VAR1 => [:TriplesSameSubject,
338
- :_DOT_ConstructTriples_Opt_Opt],
339
- :VAR2 => [:TriplesSameSubject,
340
- :_DOT_ConstructTriples_Opt_Opt],
341
- },
342
- :DatasetClause => {
343
- "FROM" => ["FROM",
344
- :_DefaultGraphClause_or_NamedGraphClause],
345
- },
346
- :DefaultGraphClause => {
347
- :IRI_REF => [:SourceSelector],
348
- :PNAME_LN => [:SourceSelector],
349
- :PNAME_NS => [:SourceSelector],
350
- },
351
- :DescribeQuery => {
352
- "DESCRIBE" => ["DESCRIBE",
353
- :_VarOrIRIref_Plus_or_Star,
354
- :_DatasetClause_Star,
355
- :_WhereClause_Opt,
356
- :SolutionModifier],
357
- },
358
- :Expression => {
359
- "!" => [:ConditionalOrExpression],
360
- "(" => [:ConditionalOrExpression],
361
- "+" => [:ConditionalOrExpression],
362
- "-" => [:ConditionalOrExpression],
363
- "BOUND" => [:ConditionalOrExpression],
364
- "DATATYPE" => [:ConditionalOrExpression],
365
- "LANG" => [:ConditionalOrExpression],
366
- "LANGMATCHES" => [:ConditionalOrExpression],
367
- "REGEX" => [:ConditionalOrExpression],
368
- "STR" => [:ConditionalOrExpression],
369
- :BooleanLiteral => [:ConditionalOrExpression],
370
- :DECIMAL => [:ConditionalOrExpression],
371
- :DOUBLE => [:ConditionalOrExpression],
372
- :INTEGER => [:ConditionalOrExpression],
373
- :IRI_REF => [:ConditionalOrExpression],
374
- :PNAME_LN => [:ConditionalOrExpression],
375
- :PNAME_NS => [:ConditionalOrExpression],
376
- :STRING_LITERAL1 => [:ConditionalOrExpression],
377
- :STRING_LITERAL2 => [:ConditionalOrExpression],
378
- :STRING_LITERAL_LONG1 => [:ConditionalOrExpression],
379
- :STRING_LITERAL_LONG2 => [:ConditionalOrExpression],
380
- :VAR1 => [:ConditionalOrExpression],
381
- :VAR2 => [:ConditionalOrExpression],
382
- "ISBLANK" => [:ConditionalOrExpression],
383
- "ISIRI" => [:ConditionalOrExpression],
384
- "ISLITERAL" => [:ConditionalOrExpression],
385
- "ISURI" => [:ConditionalOrExpression],
386
- "SAMETERM" => [:ConditionalOrExpression],
387
- },
388
- :Filter => {
389
- "FILTER" => ["FILTER",
390
- :Constraint],
391
- },
392
- :FunctionCall => {
393
- :IRI_REF => [:IRIref,
394
- :ArgList],
395
- :PNAME_LN => [:IRIref,
396
- :ArgList],
397
- :PNAME_NS => [:IRIref,
398
- :ArgList],
399
- },
400
- :GraphGraphPattern => {
401
- "GRAPH" => ["GRAPH",
402
- :VarOrIRIref,
403
- :GroupGraphPattern],
404
- },
405
- :GraphNode => {
406
- "(" => [:TriplesNode],
407
- "+" => [:VarOrTerm],
408
- "-" => [:VarOrTerm],
409
- "[" => [:TriplesNode],
410
- :ANON => [:VarOrTerm],
411
- :BLANK_NODE_LABEL => [:VarOrTerm],
412
- :BooleanLiteral => [:VarOrTerm],
413
- :DECIMAL => [:VarOrTerm],
414
- :DOUBLE => [:VarOrTerm],
415
- :INTEGER => [:VarOrTerm],
416
- :IRI_REF => [:VarOrTerm],
417
- :NIL => [:VarOrTerm],
418
- :PNAME_LN => [:VarOrTerm],
419
- :PNAME_NS => [:VarOrTerm],
420
- :STRING_LITERAL1 => [:VarOrTerm],
421
- :STRING_LITERAL2 => [:VarOrTerm],
422
- :STRING_LITERAL_LONG1 => [:VarOrTerm],
423
- :STRING_LITERAL_LONG2 => [:VarOrTerm],
424
- :VAR1 => [:VarOrTerm],
425
- :VAR2 => [:VarOrTerm],
426
- },
427
- :GraphPatternNotTriples => {
428
- "GRAPH" => [:GraphGraphPattern],
429
- "OPTIONAL" => [:OptionalGraphPattern],
430
- "{" => [:GroupOrUnionGraphPattern],
431
- },
432
- :GraphTerm => {
433
- "+" => [:NumericLiteral],
434
- "-" => [:NumericLiteral],
435
- :ANON => [:BlankNode],
436
- :BLANK_NODE_LABEL => [:BlankNode],
437
- :BooleanLiteral => [:BooleanLiteral],
438
- :DECIMAL => [:NumericLiteral],
439
- :DOUBLE => [:NumericLiteral],
440
- :INTEGER => [:NumericLiteral],
441
- :IRI_REF => [:IRIref],
442
- :NIL => [:NIL],
443
- :PNAME_LN => [:IRIref],
444
- :PNAME_NS => [:IRIref],
445
- :STRING_LITERAL1 => [:RDFLiteral],
446
- :STRING_LITERAL2 => [:RDFLiteral],
447
- :STRING_LITERAL_LONG1 => [:RDFLiteral],
448
- :STRING_LITERAL_LONG2 => [:RDFLiteral],
449
- },
450
- :GroupGraphPattern => {
451
- "{" => ["{",
452
- :_TriplesBlock_Opt,
453
- :_GraphPatternNotTriples_or_Filter_Dot_Opt_TriplesBlock_Opt_Star,
454
- "}"],
455
- },
456
- :GroupOrUnionGraphPattern => {
457
- "{" => [:GroupGraphPattern,
458
- :_UNION_GroupGraphPattern_Star],
459
- },
460
- :IRIref => {
461
- :IRI_REF => [:IRI_REF],
462
- :PNAME_LN => [:PrefixedName],
463
- :PNAME_NS => [:PrefixedName],
464
- },
465
- :IRIrefOrFunction => {
466
- :IRI_REF => [:IRIref,
467
- :_ArgList_Opt],
468
- :PNAME_LN => [:IRIref,
469
- :_ArgList_Opt],
470
- :PNAME_NS => [:IRIref,
471
- :_ArgList_Opt],
472
- },
473
- :LimitClause => {
474
- "LIMIT" => ["LIMIT",
475
- :INTEGER],
476
- },
477
- :LimitOffsetClauses => {
478
- "LIMIT" => [:LimitClause,
479
- :_OffsetClause_Opt],
480
- "OFFSET" => [:OffsetClause,
481
- :_LimitClause_Opt],
482
- },
483
- :MultiplicativeExpression => {
484
- "!" => [:UnaryExpression,
485
- :_Mul_Div_UnaryExpression_Star],
486
- "(" => [:UnaryExpression,
487
- :_Mul_Div_UnaryExpression_Star],
488
- "+" => [:UnaryExpression,
489
- :_Mul_Div_UnaryExpression_Star],
490
- "-" => [:UnaryExpression,
491
- :_Mul_Div_UnaryExpression_Star],
492
- "BOUND" => [:UnaryExpression,
493
- :_Mul_Div_UnaryExpression_Star],
494
- "DATATYPE" => [:UnaryExpression,
495
- :_Mul_Div_UnaryExpression_Star],
496
- "LANG" => [:UnaryExpression,
497
- :_Mul_Div_UnaryExpression_Star],
498
- "LANGMATCHES" => [:UnaryExpression,
499
- :_Mul_Div_UnaryExpression_Star],
500
- "REGEX" => [:UnaryExpression,
501
- :_Mul_Div_UnaryExpression_Star],
502
- "STR" => [:UnaryExpression,
503
- :_Mul_Div_UnaryExpression_Star],
504
- :BooleanLiteral => [:UnaryExpression,
505
- :_Mul_Div_UnaryExpression_Star],
506
- :DECIMAL => [:UnaryExpression,
507
- :_Mul_Div_UnaryExpression_Star],
508
- :DOUBLE => [:UnaryExpression,
509
- :_Mul_Div_UnaryExpression_Star],
510
- :INTEGER => [:UnaryExpression,
511
- :_Mul_Div_UnaryExpression_Star],
512
- :IRI_REF => [:UnaryExpression,
513
- :_Mul_Div_UnaryExpression_Star],
514
- :PNAME_LN => [:UnaryExpression,
515
- :_Mul_Div_UnaryExpression_Star],
516
- :PNAME_NS => [:UnaryExpression,
517
- :_Mul_Div_UnaryExpression_Star],
518
- :STRING_LITERAL1 => [:UnaryExpression,
519
- :_Mul_Div_UnaryExpression_Star],
520
- :STRING_LITERAL2 => [:UnaryExpression,
521
- :_Mul_Div_UnaryExpression_Star],
522
- :STRING_LITERAL_LONG1 => [:UnaryExpression,
523
- :_Mul_Div_UnaryExpression_Star],
524
- :STRING_LITERAL_LONG2 => [:UnaryExpression,
525
- :_Mul_Div_UnaryExpression_Star],
526
- :VAR1 => [:UnaryExpression,
527
- :_Mul_Div_UnaryExpression_Star],
528
- :VAR2 => [:UnaryExpression,
529
- :_Mul_Div_UnaryExpression_Star],
530
- "ISBLANK" => [:UnaryExpression,
531
- :_Mul_Div_UnaryExpression_Star],
532
- "ISIRI" => [:UnaryExpression,
533
- :_Mul_Div_UnaryExpression_Star],
534
- "ISLITERAL" => [:UnaryExpression,
535
- :_Mul_Div_UnaryExpression_Star],
536
- "ISURI" => [:UnaryExpression,
537
- :_Mul_Div_UnaryExpression_Star],
538
- "SAMETERM" => [:UnaryExpression,
539
- :_Mul_Div_UnaryExpression_Star],
540
- },
541
- :NamedGraphClause => {
542
- "NAMED" => ["NAMED",
543
- :SourceSelector],
544
- },
545
- :NumericExpression => {
546
- "!" => [:AdditiveExpression],
547
- "(" => [:AdditiveExpression],
548
- "+" => [:AdditiveExpression],
549
- "-" => [:AdditiveExpression],
550
- "BOUND" => [:AdditiveExpression],
551
- "DATATYPE" => [:AdditiveExpression],
552
- "LANG" => [:AdditiveExpression],
553
- "LANGMATCHES" => [:AdditiveExpression],
554
- "REGEX" => [:AdditiveExpression],
555
- "STR" => [:AdditiveExpression],
556
- :BooleanLiteral => [:AdditiveExpression],
557
- :DECIMAL => [:AdditiveExpression],
558
- :DOUBLE => [:AdditiveExpression],
559
- :INTEGER => [:AdditiveExpression],
560
- :IRI_REF => [:AdditiveExpression],
561
- :PNAME_LN => [:AdditiveExpression],
562
- :PNAME_NS => [:AdditiveExpression],
563
- :STRING_LITERAL1 => [:AdditiveExpression],
564
- :STRING_LITERAL2 => [:AdditiveExpression],
565
- :STRING_LITERAL_LONG1 => [:AdditiveExpression],
566
- :STRING_LITERAL_LONG2 => [:AdditiveExpression],
567
- :VAR1 => [:AdditiveExpression],
568
- :VAR2 => [:AdditiveExpression],
569
- "ISBLANK" => [:AdditiveExpression],
570
- "ISIRI" => [:AdditiveExpression],
571
- "ISLITERAL" => [:AdditiveExpression],
572
- "ISURI" => [:AdditiveExpression],
573
- "SAMETERM" => [:AdditiveExpression],
574
- },
575
- :NumericLiteral => {
576
- "+" => [:NumericLiteralPositive],
577
- "-" => [:NumericLiteralNegative],
578
- :DECIMAL => [:NumericLiteralUnsigned],
579
- :DOUBLE => [:NumericLiteralUnsigned],
580
- :INTEGER => [:NumericLiteralUnsigned],
581
- },
582
- :NumericLiteralNegative => {
583
- "-" => ["-",
584
- :NumericLiteralUnsigned],
585
- },
586
- :NumericLiteralPositive => {
587
- "+" => ["+",
588
- :NumericLiteralUnsigned],
589
- },
590
- :NumericLiteralUnsigned => {
591
- :DECIMAL => [:DECIMAL],
592
- :DOUBLE => [:DOUBLE],
593
- :INTEGER => [:INTEGER],
594
- },
595
- :Object => {
596
- "(" => [:GraphNode],
597
- "+" => [:GraphNode],
598
- "-" => [:GraphNode],
599
- "[" => [:GraphNode],
600
- :ANON => [:GraphNode],
601
- :BLANK_NODE_LABEL => [:GraphNode],
602
- :BooleanLiteral => [:GraphNode],
603
- :DECIMAL => [:GraphNode],
604
- :DOUBLE => [:GraphNode],
605
- :INTEGER => [:GraphNode],
606
- :IRI_REF => [:GraphNode],
607
- :NIL => [:GraphNode],
608
- :PNAME_LN => [:GraphNode],
609
- :PNAME_NS => [:GraphNode],
610
- :STRING_LITERAL1 => [:GraphNode],
611
- :STRING_LITERAL2 => [:GraphNode],
612
- :STRING_LITERAL_LONG1 => [:GraphNode],
613
- :STRING_LITERAL_LONG2 => [:GraphNode],
614
- :VAR1 => [:GraphNode],
615
- :VAR2 => [:GraphNode],
616
- },
617
- :ObjectList => {
618
- "(" => [:Object,
619
- :_COMMA_Object_Star],
620
- "+" => [:Object,
621
- :_COMMA_Object_Star],
622
- "-" => [:Object,
623
- :_COMMA_Object_Star],
624
- "[" => [:Object,
625
- :_COMMA_Object_Star],
626
- :ANON => [:Object,
627
- :_COMMA_Object_Star],
628
- :BLANK_NODE_LABEL => [:Object,
629
- :_COMMA_Object_Star],
630
- :BooleanLiteral => [:Object,
631
- :_COMMA_Object_Star],
632
- :DECIMAL => [:Object,
633
- :_COMMA_Object_Star],
634
- :DOUBLE => [:Object,
635
- :_COMMA_Object_Star],
636
- :INTEGER => [:Object,
637
- :_COMMA_Object_Star],
638
- :IRI_REF => [:Object,
639
- :_COMMA_Object_Star],
640
- :NIL => [:Object,
641
- :_COMMA_Object_Star],
642
- :PNAME_LN => [:Object,
643
- :_COMMA_Object_Star],
644
- :PNAME_NS => [:Object,
645
- :_COMMA_Object_Star],
646
- :STRING_LITERAL1 => [:Object,
647
- :_COMMA_Object_Star],
648
- :STRING_LITERAL2 => [:Object,
649
- :_COMMA_Object_Star],
650
- :STRING_LITERAL_LONG1 => [:Object,
651
- :_COMMA_Object_Star],
652
- :STRING_LITERAL_LONG2 => [:Object,
653
- :_COMMA_Object_Star],
654
- :VAR1 => [:Object,
655
- :_COMMA_Object_Star],
656
- :VAR2 => [:Object,
657
- :_COMMA_Object_Star],
658
- },
659
- :OffsetClause => {
660
- "OFFSET" => ["OFFSET",
661
- :INTEGER],
662
- },
663
- :OptionalGraphPattern => {
664
- "OPTIONAL" => ["OPTIONAL",
665
- :GroupGraphPattern],
666
- },
667
- :OrderClause => {
668
- "ORDER" => ["ORDER",
669
- "BY",
670
- :OrderCondition,
671
- :_OrderCondition_Plus],
672
- },
673
- :OrderCondition => {
674
- "(" => [:_Constraint_or_Var],
675
- "ASC" => [:_ASC_Or_DESC_BrackettedExpression],
676
- "BOUND" => [:_Constraint_or_Var],
677
- "DATATYPE" => [:_Constraint_or_Var],
678
- "DESC" => [:_ASC_Or_DESC_BrackettedExpression],
679
- "LANG" => [:_Constraint_or_Var],
680
- "LANGMATCHES" => [:_Constraint_or_Var],
681
- "REGEX" => [:_Constraint_or_Var],
682
- "STR" => [:_Constraint_or_Var],
683
- :IRI_REF => [:_Constraint_or_Var],
684
- :PNAME_LN => [:_Constraint_or_Var],
685
- :PNAME_NS => [:_Constraint_or_Var],
686
- :VAR1 => [:_Constraint_or_Var],
687
- :VAR2 => [:_Constraint_or_Var],
688
- "ISBLANK" => [:_Constraint_or_Var],
689
- "ISIRI" => [:_Constraint_or_Var],
690
- "ISLITERAL" => [:_Constraint_or_Var],
691
- "ISURI" => [:_Constraint_or_Var],
692
- "SAMETERM" => [:_Constraint_or_Var],
693
- },
694
- :PrefixDecl => {
695
- "PREFIX" => ["PREFIX",
696
- :PNAME_NS,
697
- :IRI_REF],
698
- },
699
- :PrefixedName => {
700
- :PNAME_LN => [:PNAME_LN],
701
- :PNAME_NS => [:PNAME_NS],
702
- },
703
- :PrimaryExpression => {
704
- "(" => [:BrackettedExpression],
705
- "+" => [:NumericLiteral],
706
- "-" => [:NumericLiteral],
707
- "BOUND" => [:BuiltInCall],
708
- "DATATYPE" => [:BuiltInCall],
709
- "LANG" => [:BuiltInCall],
710
- "LANGMATCHES" => [:BuiltInCall],
711
- "REGEX" => [:BuiltInCall],
712
- "STR" => [:BuiltInCall],
713
- :BooleanLiteral => [:BooleanLiteral],
714
- :DECIMAL => [:NumericLiteral],
715
- :DOUBLE => [:NumericLiteral],
716
- :INTEGER => [:NumericLiteral],
717
- :IRI_REF => [:IRIrefOrFunction],
718
- :PNAME_LN => [:IRIrefOrFunction],
719
- :PNAME_NS => [:IRIrefOrFunction],
720
- :STRING_LITERAL1 => [:RDFLiteral],
721
- :STRING_LITERAL2 => [:RDFLiteral],
722
- :STRING_LITERAL_LONG1 => [:RDFLiteral],
723
- :STRING_LITERAL_LONG2 => [:RDFLiteral],
724
- :VAR1 => [:Var],
725
- :VAR2 => [:Var],
726
- "ISBLANK" => [:BuiltInCall],
727
- "ISIRI" => [:BuiltInCall],
728
- "ISLITERAL" => [:BuiltInCall],
729
- "ISURI" => [:BuiltInCall],
730
- "SAMETERM" => [:BuiltInCall],
731
- },
732
- :Prologue => {
733
- "ASK" => [:_BaseDecl_Opt,
734
- :_PrefixDecl_Star],
735
- "BASE" => [:_BaseDecl_Opt,
736
- :_PrefixDecl_Star],
737
- "CONSTRUCT" => [:_BaseDecl_Opt,
738
- :_PrefixDecl_Star],
739
- "DESCRIBE" => [:_BaseDecl_Opt,
740
- :_PrefixDecl_Star],
741
- "PREFIX" => [:_BaseDecl_Opt,
742
- :_PrefixDecl_Star],
743
- "SELECT" => [:_BaseDecl_Opt,
744
- :_PrefixDecl_Star],
745
- },
746
- :PropertyList => {
747
- "." => [],
748
- "FILTER" => [],
749
- "GRAPH" => [],
750
- "OPTIONAL" => [],
751
- "a" => [:PropertyListNotEmpty],
752
- :IRI_REF => [:PropertyListNotEmpty],
753
- :PNAME_LN => [:PropertyListNotEmpty],
754
- :PNAME_NS => [:PropertyListNotEmpty],
755
- :VAR1 => [:PropertyListNotEmpty],
756
- :VAR2 => [:PropertyListNotEmpty],
757
- "{" => [],
758
- "}" => [],
759
- },
760
- :PropertyListNotEmpty => {
761
- "a" => [:Verb,
762
- :ObjectList,
763
- :_SEMI_Verb_ObjectList_Opt_Star],
764
- :IRI_REF => [:Verb,
765
- :ObjectList,
766
- :_SEMI_Verb_ObjectList_Opt_Star],
767
- :PNAME_LN => [:Verb,
768
- :ObjectList,
769
- :_SEMI_Verb_ObjectList_Opt_Star],
770
- :PNAME_NS => [:Verb,
771
- :ObjectList,
772
- :_SEMI_Verb_ObjectList_Opt_Star],
773
- :VAR1 => [:Verb,
774
- :ObjectList,
775
- :_SEMI_Verb_ObjectList_Opt_Star],
776
- :VAR2 => [:Verb,
777
- :ObjectList,
778
- :_SEMI_Verb_ObjectList_Opt_Star],
779
- },
780
- :Query => {
781
- "ASK" => [:Prologue,
782
- :_SelectQuery_or_ConstructQuery_or_DescribeQuery_or_AskQuery,
783
- :eof],
784
- "BASE" => [:Prologue,
785
- :_SelectQuery_or_ConstructQuery_or_DescribeQuery_or_AskQuery,
786
- :eof],
787
- "CONSTRUCT" => [:Prologue,
788
- :_SelectQuery_or_ConstructQuery_or_DescribeQuery_or_AskQuery,
789
- :eof],
790
- "DESCRIBE" => [:Prologue,
791
- :_SelectQuery_or_ConstructQuery_or_DescribeQuery_or_AskQuery,
792
- :eof],
793
- "PREFIX" => [:Prologue,
794
- :_SelectQuery_or_ConstructQuery_or_DescribeQuery_or_AskQuery,
795
- :eof],
796
- "SELECT" => [:Prologue,
797
- :_SelectQuery_or_ConstructQuery_or_DescribeQuery_or_AskQuery,
798
- :eof],
799
- },
800
- :RDFLiteral => {
801
- :STRING_LITERAL1 => [:String,
802
- :_LANGTAG_IRIref_Opt],
803
- :STRING_LITERAL2 => [:String,
804
- :_LANGTAG_IRIref_Opt],
805
- :STRING_LITERAL_LONG1 => [:String,
806
- :_LANGTAG_IRIref_Opt],
807
- :STRING_LITERAL_LONG2 => [:String,
808
- :_LANGTAG_IRIref_Opt],
809
- },
810
- :RegexExpression => {
811
- "REGEX" => ["REGEX",
812
- "(",
813
- :Expression,
814
- ",",
815
- :Expression,
816
- :_COMMA_Expression_Opt,
817
- ")"],
818
- },
819
- :RelationalExpression => {
820
- "!" => [:NumericExpression,
821
- :_Compare_NumericExpression_Opt],
822
- "(" => [:NumericExpression,
823
- :_Compare_NumericExpression_Opt],
824
- "+" => [:NumericExpression,
825
- :_Compare_NumericExpression_Opt],
826
- "-" => [:NumericExpression,
827
- :_Compare_NumericExpression_Opt],
828
- "BOUND" => [:NumericExpression,
829
- :_Compare_NumericExpression_Opt],
830
- "DATATYPE" => [:NumericExpression,
831
- :_Compare_NumericExpression_Opt],
832
- "LANG" => [:NumericExpression,
833
- :_Compare_NumericExpression_Opt],
834
- "LANGMATCHES" => [:NumericExpression,
835
- :_Compare_NumericExpression_Opt],
836
- "REGEX" => [:NumericExpression,
837
- :_Compare_NumericExpression_Opt],
838
- "STR" => [:NumericExpression,
839
- :_Compare_NumericExpression_Opt],
840
- :BooleanLiteral => [:NumericExpression,
841
- :_Compare_NumericExpression_Opt],
842
- :DECIMAL => [:NumericExpression,
843
- :_Compare_NumericExpression_Opt],
844
- :DOUBLE => [:NumericExpression,
845
- :_Compare_NumericExpression_Opt],
846
- :INTEGER => [:NumericExpression,
847
- :_Compare_NumericExpression_Opt],
848
- :IRI_REF => [:NumericExpression,
849
- :_Compare_NumericExpression_Opt],
850
- :PNAME_LN => [:NumericExpression,
851
- :_Compare_NumericExpression_Opt],
852
- :PNAME_NS => [:NumericExpression,
853
- :_Compare_NumericExpression_Opt],
854
- :STRING_LITERAL1 => [:NumericExpression,
855
- :_Compare_NumericExpression_Opt],
856
- :STRING_LITERAL2 => [:NumericExpression,
857
- :_Compare_NumericExpression_Opt],
858
- :STRING_LITERAL_LONG1 => [:NumericExpression,
859
- :_Compare_NumericExpression_Opt],
860
- :STRING_LITERAL_LONG2 => [:NumericExpression,
861
- :_Compare_NumericExpression_Opt],
862
- :VAR1 => [:NumericExpression,
863
- :_Compare_NumericExpression_Opt],
864
- :VAR2 => [:NumericExpression,
865
- :_Compare_NumericExpression_Opt],
866
- "ISBLANK" => [:NumericExpression,
867
- :_Compare_NumericExpression_Opt],
868
- "ISIRI" => [:NumericExpression,
869
- :_Compare_NumericExpression_Opt],
870
- "ISLITERAL" => [:NumericExpression,
871
- :_Compare_NumericExpression_Opt],
872
- "ISURI" => [:NumericExpression,
873
- :_Compare_NumericExpression_Opt],
874
- "SAMETERM" => [:NumericExpression,
875
- :_Compare_NumericExpression_Opt],
876
- },
877
- :SelectQuery => {
878
- "SELECT" => ["SELECT",
879
- :_DISTINCT_OR_REDUCED_Opt,
880
- :_Var_Plus_or_Star,
881
- :_DatasetClause_Star,
882
- :WhereClause,
883
- :SolutionModifier],
884
- },
885
- :SolutionModifier => {
886
- "LIMIT" => [:_OrderClause_Opt,
887
- :_LimitOffsetClauses_Opt],
888
- "OFFSET" => [:_OrderClause_Opt,
889
- :_LimitOffsetClauses_Opt],
890
- "ORDER" => [:_OrderClause_Opt,
891
- :_LimitOffsetClauses_Opt],
892
- :eof => [:_OrderClause_Opt,
893
- :_LimitOffsetClauses_Opt],
894
- },
895
- :SourceSelector => {
896
- :IRI_REF => [:IRIref],
897
- :PNAME_LN => [:IRIref],
898
- :PNAME_NS => [:IRIref],
899
- },
900
- :String => {
901
- :STRING_LITERAL1 => [:STRING_LITERAL1],
902
- :STRING_LITERAL2 => [:STRING_LITERAL2],
903
- :STRING_LITERAL_LONG1 => [:STRING_LITERAL_LONG1],
904
- :STRING_LITERAL_LONG2 => [:STRING_LITERAL_LONG2],
905
- },
906
- :TriplesBlock => {
907
- "(" => [:TriplesSameSubject,
908
- :_Dot_TriplesBlock_Opt_Opt],
909
- "+" => [:TriplesSameSubject,
910
- :_Dot_TriplesBlock_Opt_Opt],
911
- "-" => [:TriplesSameSubject,
912
- :_Dot_TriplesBlock_Opt_Opt],
913
- "[" => [:TriplesSameSubject,
914
- :_Dot_TriplesBlock_Opt_Opt],
915
- :ANON => [:TriplesSameSubject,
916
- :_Dot_TriplesBlock_Opt_Opt],
917
- :BLANK_NODE_LABEL => [:TriplesSameSubject,
918
- :_Dot_TriplesBlock_Opt_Opt],
919
- :BooleanLiteral => [:TriplesSameSubject,
920
- :_Dot_TriplesBlock_Opt_Opt],
921
- :DECIMAL => [:TriplesSameSubject,
922
- :_Dot_TriplesBlock_Opt_Opt],
923
- :DOUBLE => [:TriplesSameSubject,
924
- :_Dot_TriplesBlock_Opt_Opt],
925
- :INTEGER => [:TriplesSameSubject,
926
- :_Dot_TriplesBlock_Opt_Opt],
927
- :IRI_REF => [:TriplesSameSubject,
928
- :_Dot_TriplesBlock_Opt_Opt],
929
- :NIL => [:TriplesSameSubject,
930
- :_Dot_TriplesBlock_Opt_Opt],
931
- :PNAME_LN => [:TriplesSameSubject,
932
- :_Dot_TriplesBlock_Opt_Opt],
933
- :PNAME_NS => [:TriplesSameSubject,
934
- :_Dot_TriplesBlock_Opt_Opt],
935
- :STRING_LITERAL1 => [:TriplesSameSubject,
936
- :_Dot_TriplesBlock_Opt_Opt],
937
- :STRING_LITERAL2 => [:TriplesSameSubject,
938
- :_Dot_TriplesBlock_Opt_Opt],
939
- :STRING_LITERAL_LONG1 => [:TriplesSameSubject,
940
- :_Dot_TriplesBlock_Opt_Opt],
941
- :STRING_LITERAL_LONG2 => [:TriplesSameSubject,
942
- :_Dot_TriplesBlock_Opt_Opt],
943
- :VAR1 => [:TriplesSameSubject,
944
- :_Dot_TriplesBlock_Opt_Opt],
945
- :VAR2 => [:TriplesSameSubject,
946
- :_Dot_TriplesBlock_Opt_Opt],
947
- },
948
- :TriplesNode => {
949
- "(" => [:Collection],
950
- "[" => [:BlankNodePropertyList],
951
- },
952
- :TriplesSameSubject => {
953
- "(" => [:TriplesNode,
954
- :PropertyList],
955
- "+" => [:VarOrTerm,
956
- :PropertyListNotEmpty],
957
- "-" => [:VarOrTerm,
958
- :PropertyListNotEmpty],
959
- "[" => [:TriplesNode,
960
- :PropertyList],
961
- :ANON => [:VarOrTerm,
962
- :PropertyListNotEmpty],
963
- :BLANK_NODE_LABEL => [:VarOrTerm,
964
- :PropertyListNotEmpty],
965
- :BooleanLiteral => [:VarOrTerm,
966
- :PropertyListNotEmpty],
967
- :DECIMAL => [:VarOrTerm,
968
- :PropertyListNotEmpty],
969
- :DOUBLE => [:VarOrTerm,
970
- :PropertyListNotEmpty],
971
- :INTEGER => [:VarOrTerm,
972
- :PropertyListNotEmpty],
973
- :IRI_REF => [:VarOrTerm,
974
- :PropertyListNotEmpty],
975
- :NIL => [:VarOrTerm,
976
- :PropertyListNotEmpty],
977
- :PNAME_LN => [:VarOrTerm,
978
- :PropertyListNotEmpty],
979
- :PNAME_NS => [:VarOrTerm,
980
- :PropertyListNotEmpty],
981
- :STRING_LITERAL1 => [:VarOrTerm,
982
- :PropertyListNotEmpty],
983
- :STRING_LITERAL2 => [:VarOrTerm,
984
- :PropertyListNotEmpty],
985
- :STRING_LITERAL_LONG1 => [:VarOrTerm,
986
- :PropertyListNotEmpty],
987
- :STRING_LITERAL_LONG2 => [:VarOrTerm,
988
- :PropertyListNotEmpty],
989
- :VAR1 => [:VarOrTerm,
990
- :PropertyListNotEmpty],
991
- :VAR2 => [:VarOrTerm,
992
- :PropertyListNotEmpty],
993
- },
994
- :UnaryExpression => {
995
- "!" => ["!",
996
- :PrimaryExpression],
997
- "(" => [:PrimaryExpression],
998
- "+" => ["+", :PrimaryExpression], # GK: Added back due to conflict
999
- "-" => ["-", :PrimaryExpression], # GK: Added back due to conflict
1000
- "BOUND" => [:PrimaryExpression],
1001
- "DATATYPE" => [:PrimaryExpression],
1002
- "LANG" => [:PrimaryExpression],
1003
- "LANGMATCHES" => [:PrimaryExpression],
1004
- "REGEX" => [:PrimaryExpression],
1005
- "STR" => [:PrimaryExpression],
1006
- :BooleanLiteral => [:PrimaryExpression],
1007
- :DECIMAL => [:PrimaryExpression],
1008
- :DOUBLE => [:PrimaryExpression],
1009
- :INTEGER => [:PrimaryExpression],
1010
- :IRI_REF => [:PrimaryExpression],
1011
- :PNAME_LN => [:PrimaryExpression],
1012
- :PNAME_NS => [:PrimaryExpression],
1013
- :STRING_LITERAL1 => [:PrimaryExpression],
1014
- :STRING_LITERAL2 => [:PrimaryExpression],
1015
- :STRING_LITERAL_LONG1 => [:PrimaryExpression],
1016
- :STRING_LITERAL_LONG2 => [:PrimaryExpression],
1017
- :VAR1 => [:PrimaryExpression],
1018
- :VAR2 => [:PrimaryExpression],
1019
- "ISBLANK" => [:PrimaryExpression],
1020
- "ISIRI" => [:PrimaryExpression],
1021
- "ISLITERAL" => [:PrimaryExpression],
1022
- "ISURI" => [:PrimaryExpression],
1023
- "SAMETERM" => [:PrimaryExpression],
1024
- },
1025
- :ValueLogical => {
1026
- "!" => [:RelationalExpression],
1027
- "(" => [:RelationalExpression],
1028
- "+" => [:RelationalExpression],
1029
- "-" => [:RelationalExpression],
1030
- "BOUND" => [:RelationalExpression],
1031
- "DATATYPE" => [:RelationalExpression],
1032
- "LANG" => [:RelationalExpression],
1033
- "LANGMATCHES" => [:RelationalExpression],
1034
- "REGEX" => [:RelationalExpression],
1035
- "STR" => [:RelationalExpression],
1036
- :BooleanLiteral => [:RelationalExpression],
1037
- :DECIMAL => [:RelationalExpression],
1038
- :DOUBLE => [:RelationalExpression],
1039
- :INTEGER => [:RelationalExpression],
1040
- :IRI_REF => [:RelationalExpression],
1041
- :PNAME_LN => [:RelationalExpression],
1042
- :PNAME_NS => [:RelationalExpression],
1043
- :STRING_LITERAL1 => [:RelationalExpression],
1044
- :STRING_LITERAL2 => [:RelationalExpression],
1045
- :STRING_LITERAL_LONG1 => [:RelationalExpression],
1046
- :STRING_LITERAL_LONG2 => [:RelationalExpression],
1047
- :VAR1 => [:RelationalExpression],
1048
- :VAR2 => [:RelationalExpression],
1049
- "ISBLANK" => [:RelationalExpression],
1050
- "ISIRI" => [:RelationalExpression],
1051
- "ISLITERAL" => [:RelationalExpression],
1052
- "ISURI" => [:RelationalExpression],
1053
- "SAMETERM" => [:RelationalExpression],
1054
- },
1055
- :Var => {
1056
- :VAR1 => [:VAR1],
1057
- :VAR2 => [:VAR2],
1058
- },
1059
- :VarOrIRIref => {
1060
- :IRI_REF => [:IRIref],
1061
- :PNAME_LN => [:IRIref],
1062
- :PNAME_NS => [:IRIref],
1063
- :VAR1 => [:Var],
1064
- :VAR2 => [:Var],
1065
- },
1066
- :VarOrTerm => {
1067
- "+" => [:GraphTerm],
1068
- "-" => [:GraphTerm],
1069
- :ANON => [:GraphTerm],
1070
- :BLANK_NODE_LABEL => [:GraphTerm],
1071
- :BooleanLiteral => [:GraphTerm],
1072
- :DECIMAL => [:GraphTerm],
1073
- :DOUBLE => [:GraphTerm],
1074
- :INTEGER => [:GraphTerm],
1075
- :IRI_REF => [:GraphTerm],
1076
- :NIL => [:GraphTerm],
1077
- :PNAME_LN => [:GraphTerm],
1078
- :PNAME_NS => [:GraphTerm],
1079
- :STRING_LITERAL1 => [:GraphTerm],
1080
- :STRING_LITERAL2 => [:GraphTerm],
1081
- :STRING_LITERAL_LONG1 => [:GraphTerm],
1082
- :STRING_LITERAL_LONG2 => [:GraphTerm],
1083
- :VAR1 => [:Var],
1084
- :VAR2 => [:Var],
1085
- },
1086
- :Verb => {
1087
- "a" => ["a"],
1088
- :IRI_REF => [:VarOrIRIref],
1089
- :PNAME_LN => [:VarOrIRIref],
1090
- :PNAME_NS => [:VarOrIRIref],
1091
- :VAR1 => [:VarOrIRIref],
1092
- :VAR2 => [:VarOrIRIref],
1093
- },
1094
- :WhereClause => {
1095
- "WHERE" => [:_WHERE_Opt,
1096
- :GroupGraphPattern],
1097
- "{" => [:_WHERE_Opt,
1098
- :GroupGraphPattern],
1099
- },
1100
- :_AND_ValueLogical => {
1101
- "&&" => ["&&",
1102
- :ValueLogical],
1103
- },
1104
- :_AND_ValueLogical_Star => {
1105
- "&&" => [:_AND_ValueLogical,
1106
- :_AND_ValueLogical_Star],
1107
- ")" => [],
1108
- "," => [],
1109
- "||" => [],
1110
- },
1111
- :_ASC_Or_DESC => {
1112
- "ASC" => ["ASC"],
1113
- "DESC" => ["DESC"],
1114
- },
1115
- :_ASC_Or_DESC_BrackettedExpression => {
1116
- "ASC" => [:_ASC_Or_DESC,
1117
- :BrackettedExpression],
1118
- "DESC" => [:_ASC_Or_DESC,
1119
- :BrackettedExpression],
1120
- },
1121
- :_Add_Sub_MultiplicativeExpression_Star => {
1122
- "!=" => [],
1123
- "&&" => [],
1124
- ")" => [],
1125
- "+" => ["+",
1126
- :MultiplicativeExpression,
1127
- :_Add_Sub_MultiplicativeExpression_Star],
1128
- "," => [],
1129
- "-" => ["-",
1130
- :MultiplicativeExpression,
1131
- :_Add_Sub_MultiplicativeExpression_Star],
1132
- "<" => [],
1133
- "<=" => [],
1134
- "=" => [],
1135
- ">=" => [],
1136
- ">" => [],
1137
- "||" => [],
1138
- },
1139
- :_ArgList_Opt => {
1140
- "!=" => [],
1141
- "&&" => [],
1142
- "(" => [:ArgList],
1143
- ")" => [],
1144
- "*" => [],
1145
- "+" => [],
1146
- "," => [],
1147
- "-" => [],
1148
- "/" => [],
1149
- "<" => [],
1150
- "<=" => [],
1151
- "=" => [],
1152
- ">=" => [],
1153
- ">" => [],
1154
- :NIL => [:ArgList],
1155
- "||" => [],
1156
- },
1157
- :_BaseDecl_Opt => {
1158
- "ASK" => [],
1159
- "BASE" => [:BaseDecl],
1160
- "CONSTRUCT" => [],
1161
- "DESCRIBE" => [],
1162
- "PREFIX" => [],
1163
- "SELECT" => [],
1164
- },
1165
- :_COMMA_Expression_Opt => {
1166
- ")" => [],
1167
- "," => [",",
1168
- :Expression],
1169
- },
1170
- :_COMMA_Expression_Star => {
1171
- ")" => [],
1172
- "," => [",",
1173
- :Expression],
1174
- },
1175
- :_COMMA_Object => {
1176
- "," => [",",
1177
- :Object],
1178
- },
1179
- :_COMMA_Object_Star => {
1180
- "," => [:_COMMA_Object,
1181
- :_COMMA_Object_Star],
1182
- "." => [],
1183
- ";" => [],
1184
- "FILTER" => [],
1185
- "GRAPH" => [],
1186
- "OPTIONAL" => [],
1187
- "]" => [],
1188
- "{" => [],
1189
- "}" => [],
1190
- },
1191
- :_Compare_NumericExpression_Opt => {
1192
- "!=" => ["!=",
1193
- :NumericExpression],
1194
- "&&" => [],
1195
- ")" => [],
1196
- "," => [],
1197
- "<" => ["<",
1198
- :NumericExpression],
1199
- "<=" => ["<=",
1200
- :NumericExpression],
1201
- "=" => ["=",
1202
- :NumericExpression],
1203
- ">=" => [">=",
1204
- :NumericExpression],
1205
- ">" => [">",
1206
- :NumericExpression],
1207
- "||" => [],
1208
- },
1209
- :_Constraint_or_Var => {
1210
- "(" => [:Constraint],
1211
- "BOUND" => [:Constraint],
1212
- "DATATYPE" => [:Constraint],
1213
- "LANG" => [:Constraint],
1214
- "LANGMATCHES" => [:Constraint],
1215
- "REGEX" => [:Constraint],
1216
- "STR" => [:Constraint],
1217
- :IRI_REF => [:Constraint],
1218
- :PNAME_LN => [:Constraint],
1219
- :PNAME_NS => [:Constraint],
1220
- :VAR1 => [:Var],
1221
- :VAR2 => [:Var],
1222
- "ISBLANK" => [:Constraint],
1223
- "ISIRI" => [:Constraint],
1224
- "ISLITERAL" => [:Constraint],
1225
- "ISURI" => [:Constraint],
1226
- "SAMETERM" => [:Constraint],
1227
- },
1228
- :_ConstructTriples_Opt => {
1229
- "(" => [:ConstructTriples],
1230
- "+" => [:ConstructTriples],
1231
- "-" => [:ConstructTriples],
1232
- "[" => [:ConstructTriples],
1233
- :ANON => [:ConstructTriples],
1234
- :BLANK_NODE_LABEL => [:ConstructTriples],
1235
- :BooleanLiteral => [:ConstructTriples],
1236
- :DECIMAL => [:ConstructTriples],
1237
- :DOUBLE => [:ConstructTriples],
1238
- :INTEGER => [:ConstructTriples],
1239
- :IRI_REF => [:ConstructTriples],
1240
- :NIL => [:ConstructTriples],
1241
- :PNAME_LN => [:ConstructTriples],
1242
- :PNAME_NS => [:ConstructTriples],
1243
- :STRING_LITERAL1 => [:ConstructTriples],
1244
- :STRING_LITERAL2 => [:ConstructTriples],
1245
- :STRING_LITERAL_LONG1 => [:ConstructTriples],
1246
- :STRING_LITERAL_LONG2 => [:ConstructTriples],
1247
- :VAR1 => [:ConstructTriples],
1248
- :VAR2 => [:ConstructTriples],
1249
- "}" => [],
1250
- },
1251
- :_DISTINCT_OR_REDUCED_Opt => {
1252
- "*" => [],
1253
- "DISTINCT" => ["DISTINCT"],
1254
- "REDUCED" => ["REDUCED"],
1255
- :VAR1 => [],
1256
- :VAR2 => [],
1257
- },
1258
- :_DOT_ConstructTriples_Opt_Opt => {
1259
- "." => [".",
1260
- :_ConstructTriples_Opt],
1261
- "}" => [],
1262
- },
1263
- :_DOT_Opt => {
1264
- "(" => [],
1265
- "+" => [],
1266
- "-" => [],
1267
- "." => ["."],
1268
- "FILTER" => [],
1269
- "GRAPH" => [],
1270
- "OPTIONAL" => [],
1271
- "[" => [],
1272
- :ANON => [],
1273
- :BLANK_NODE_LABEL => [],
1274
- :BooleanLiteral => [],
1275
- :DECIMAL => [],
1276
- :DOUBLE => [],
1277
- :INTEGER => [],
1278
- :IRI_REF => [],
1279
- :NIL => [],
1280
- :PNAME_LN => [],
1281
- :PNAME_NS => [],
1282
- :STRING_LITERAL1 => [],
1283
- :STRING_LITERAL2 => [],
1284
- :STRING_LITERAL_LONG1 => [],
1285
- :STRING_LITERAL_LONG2 => [],
1286
- :VAR1 => [],
1287
- :VAR2 => [],
1288
- "{" => [],
1289
- "}" => [],
1290
- },
1291
- :_DatasetClause_Star => {
1292
- "FROM" => [:DatasetClause,
1293
- :_DatasetClause_Star],
1294
- "LIMIT" => [],
1295
- "OFFSET" => [],
1296
- "ORDER" => [],
1297
- "WHERE" => [],
1298
- :eof => [],
1299
- "{" => [],
1300
- },
1301
- :_DefaultGraphClause_or_NamedGraphClause => {
1302
- "NAMED" => [:NamedGraphClause],
1303
- :IRI_REF => [:DefaultGraphClause],
1304
- :PNAME_LN => [:DefaultGraphClause],
1305
- :PNAME_NS => [:DefaultGraphClause],
1306
- },
1307
- :_Dot_TriplesBlock_Opt_Opt => {
1308
- "." => [".",
1309
- :_TriplesBlock_Opt],
1310
- "FILTER" => [],
1311
- "GRAPH" => [],
1312
- "OPTIONAL" => [],
1313
- "{" => [],
1314
- "}" => [],
1315
- },
1316
- :_Expression_COMMA_Expression_Star => {
1317
- "!" => [:Expression,
1318
- :_COMMA_Expression_Star],
1319
- "(" => [:Expression,
1320
- :_COMMA_Expression_Star],
1321
- "+" => [:Expression,
1322
- :_COMMA_Expression_Star],
1323
- "-" => [:Expression,
1324
- :_COMMA_Expression_Star],
1325
- "BOUND" => [:Expression,
1326
- :_COMMA_Expression_Star],
1327
- "DATATYPE" => [:Expression,
1328
- :_COMMA_Expression_Star],
1329
- "LANG" => [:Expression,
1330
- :_COMMA_Expression_Star],
1331
- "LANGMATCHES" => [:Expression,
1332
- :_COMMA_Expression_Star],
1333
- "REGEX" => [:Expression,
1334
- :_COMMA_Expression_Star],
1335
- "STR" => [:Expression,
1336
- :_COMMA_Expression_Star],
1337
- :BooleanLiteral => [:Expression,
1338
- :_COMMA_Expression_Star],
1339
- :DECIMAL => [:Expression,
1340
- :_COMMA_Expression_Star],
1341
- :DOUBLE => [:Expression,
1342
- :_COMMA_Expression_Star],
1343
- :INTEGER => [:Expression,
1344
- :_COMMA_Expression_Star],
1345
- :IRI_REF => [:Expression,
1346
- :_COMMA_Expression_Star],
1347
- :PNAME_LN => [:Expression,
1348
- :_COMMA_Expression_Star],
1349
- :PNAME_NS => [:Expression,
1350
- :_COMMA_Expression_Star],
1351
- :STRING_LITERAL1 => [:Expression,
1352
- :_COMMA_Expression_Star],
1353
- :STRING_LITERAL2 => [:Expression,
1354
- :_COMMA_Expression_Star],
1355
- :STRING_LITERAL_LONG1 => [:Expression,
1356
- :_COMMA_Expression_Star],
1357
- :STRING_LITERAL_LONG2 => [:Expression,
1358
- :_COMMA_Expression_Star],
1359
- :VAR1 => [:Expression,
1360
- :_COMMA_Expression_Star],
1361
- :VAR2 => [:Expression,
1362
- :_COMMA_Expression_Star],
1363
- "ISBLANK" => [:Expression,
1364
- :_COMMA_Expression_Star],
1365
- "ISIRI" => [:Expression,
1366
- :_COMMA_Expression_Star],
1367
- "ISLITERAL" => [:Expression,
1368
- :_COMMA_Expression_Star],
1369
- "ISURI" => [:Expression,
1370
- :_COMMA_Expression_Star],
1371
- "SAMETERM" => [:Expression,
1372
- :_COMMA_Expression_Star],
1373
- },
1374
- :_GraphNode_Opt => {
1375
- "(" => [:GraphNode,
1376
- :_GraphNode_Opt],
1377
- ")" => [],
1378
- "+" => [:GraphNode,
1379
- :_GraphNode_Opt],
1380
- "-" => [:GraphNode,
1381
- :_GraphNode_Opt],
1382
- "[" => [:GraphNode,
1383
- :_GraphNode_Opt],
1384
- :ANON => [:GraphNode,
1385
- :_GraphNode_Opt],
1386
- :BLANK_NODE_LABEL => [:GraphNode,
1387
- :_GraphNode_Opt],
1388
- :BooleanLiteral => [:GraphNode,
1389
- :_GraphNode_Opt],
1390
- :DECIMAL => [:GraphNode,
1391
- :_GraphNode_Opt],
1392
- :DOUBLE => [:GraphNode,
1393
- :_GraphNode_Opt],
1394
- :INTEGER => [:GraphNode,
1395
- :_GraphNode_Opt],
1396
- :IRI_REF => [:GraphNode,
1397
- :_GraphNode_Opt],
1398
- :NIL => [:GraphNode,
1399
- :_GraphNode_Opt],
1400
- :PNAME_LN => [:GraphNode,
1401
- :_GraphNode_Opt],
1402
- :PNAME_NS => [:GraphNode,
1403
- :_GraphNode_Opt],
1404
- :STRING_LITERAL1 => [:GraphNode,
1405
- :_GraphNode_Opt],
1406
- :STRING_LITERAL2 => [:GraphNode,
1407
- :_GraphNode_Opt],
1408
- :STRING_LITERAL_LONG1 => [:GraphNode,
1409
- :_GraphNode_Opt],
1410
- :STRING_LITERAL_LONG2 => [:GraphNode,
1411
- :_GraphNode_Opt],
1412
- :VAR1 => [:GraphNode,
1413
- :_GraphNode_Opt],
1414
- :VAR2 => [:GraphNode,
1415
- :_GraphNode_Opt],
1416
- },
1417
- :_GraphNode_Plus => {
1418
- "(" => [:GraphNode,
1419
- :_GraphNode_Opt],
1420
- "+" => [:GraphNode,
1421
- :_GraphNode_Opt],
1422
- "-" => [:GraphNode,
1423
- :_GraphNode_Opt],
1424
- "[" => [:GraphNode,
1425
- :_GraphNode_Opt],
1426
- :ANON => [:GraphNode,
1427
- :_GraphNode_Opt],
1428
- :BLANK_NODE_LABEL => [:GraphNode,
1429
- :_GraphNode_Opt],
1430
- :BooleanLiteral => [:GraphNode,
1431
- :_GraphNode_Opt],
1432
- :DECIMAL => [:GraphNode,
1433
- :_GraphNode_Opt],
1434
- :DOUBLE => [:GraphNode,
1435
- :_GraphNode_Opt],
1436
- :INTEGER => [:GraphNode,
1437
- :_GraphNode_Opt],
1438
- :IRI_REF => [:GraphNode,
1439
- :_GraphNode_Opt],
1440
- :NIL => [:GraphNode,
1441
- :_GraphNode_Opt],
1442
- :PNAME_LN => [:GraphNode,
1443
- :_GraphNode_Opt],
1444
- :PNAME_NS => [:GraphNode,
1445
- :_GraphNode_Opt],
1446
- :STRING_LITERAL1 => [:GraphNode,
1447
- :_GraphNode_Opt],
1448
- :STRING_LITERAL2 => [:GraphNode,
1449
- :_GraphNode_Opt],
1450
- :STRING_LITERAL_LONG1 => [:GraphNode,
1451
- :_GraphNode_Opt],
1452
- :STRING_LITERAL_LONG2 => [:GraphNode,
1453
- :_GraphNode_Opt],
1454
- :VAR1 => [:GraphNode,
1455
- :_GraphNode_Opt],
1456
- :VAR2 => [:GraphNode,
1457
- :_GraphNode_Opt],
1458
- },
1459
- :_GraphPatternNotTriples_or_Filter => {
1460
- "FILTER" => [:Filter],
1461
- "GRAPH" => [:GraphPatternNotTriples],
1462
- "OPTIONAL" => [:GraphPatternNotTriples],
1463
- "{" => [:GraphPatternNotTriples],
1464
- },
1465
- :_GraphPatternNotTriples_or_Filter_Dot_Opt_TriplesBlock_Opt => {
1466
- "FILTER" => [:_GraphPatternNotTriples_or_Filter,
1467
- :_DOT_Opt,
1468
- :_TriplesBlock_Opt],
1469
- "GRAPH" => [:_GraphPatternNotTriples_or_Filter,
1470
- :_DOT_Opt,
1471
- :_TriplesBlock_Opt],
1472
- "OPTIONAL" => [:_GraphPatternNotTriples_or_Filter,
1473
- :_DOT_Opt,
1474
- :_TriplesBlock_Opt],
1475
- "{" => [:_GraphPatternNotTriples_or_Filter,
1476
- :_DOT_Opt,
1477
- :_TriplesBlock_Opt],
1478
- },
1479
- :_GraphPatternNotTriples_or_Filter_Dot_Opt_TriplesBlock_Opt_Star => {
1480
- "FILTER" => [:_GraphPatternNotTriples_or_Filter_Dot_Opt_TriplesBlock_Opt,
1481
- :_GraphPatternNotTriples_or_Filter_Dot_Opt_TriplesBlock_Opt_Star],
1482
- "GRAPH" => [:_GraphPatternNotTriples_or_Filter_Dot_Opt_TriplesBlock_Opt,
1483
- :_GraphPatternNotTriples_or_Filter_Dot_Opt_TriplesBlock_Opt_Star],
1484
- "OPTIONAL" => [:_GraphPatternNotTriples_or_Filter_Dot_Opt_TriplesBlock_Opt,
1485
- :_GraphPatternNotTriples_or_Filter_Dot_Opt_TriplesBlock_Opt_Star],
1486
- "{" => [:_GraphPatternNotTriples_or_Filter_Dot_Opt_TriplesBlock_Opt,
1487
- :_GraphPatternNotTriples_or_Filter_Dot_Opt_TriplesBlock_Opt_Star],
1488
- "}" => [],
1489
- },
1490
- :_LANGTAG_IRIref_Opt => {
1491
- "!=" => [],
1492
- "&&" => [],
1493
- "(" => [],
1494
- ")" => [],
1495
- "*" => [],
1496
- "+" => [],
1497
- "," => [],
1498
- "-" => [],
1499
- "." => [],
1500
- "/" => [],
1501
- ";" => [],
1502
- "<" => [],
1503
- "<=" => [],
1504
- "=" => [],
1505
- ">=" => [],
1506
- ">" => [],
1507
- "FILTER" => [],
1508
- "GRAPH" => [],
1509
- "OPTIONAL" => [],
1510
- "[" => [],
1511
- "]" => [],
1512
- "^^" => ["^^",
1513
- :IRIref],
1514
- "a" => [],
1515
- :ANON => [],
1516
- :BLANK_NODE_LABEL => [],
1517
- :BooleanLiteral => [],
1518
- :DECIMAL => [],
1519
- :DOUBLE => [],
1520
- :INTEGER => [],
1521
- :IRI_REF => [],
1522
- :LANGTAG => [:LANGTAG],
1523
- :NIL => [],
1524
- :PNAME_LN => [],
1525
- :PNAME_NS => [],
1526
- :STRING_LITERAL1 => [],
1527
- :STRING_LITERAL2 => [],
1528
- :STRING_LITERAL_LONG1 => [],
1529
- :STRING_LITERAL_LONG2 => [],
1530
- :VAR1 => [],
1531
- :VAR2 => [],
1532
- "{" => [],
1533
- "||" => [],
1534
- "}" => [],
1535
- },
1536
- :_LimitClause_Opt => {
1537
- "LIMIT" => [:LimitClause],
1538
- :eof => [],
1539
- },
1540
- :_LimitOffsetClauses_Opt => {
1541
- "LIMIT" => [:LimitOffsetClauses],
1542
- "OFFSET" => [:LimitOffsetClauses],
1543
- :eof => [],
1544
- },
1545
- :_Mul_Div_UnaryExpression_Star => {
1546
- "!=" => [],
1547
- "&&" => [],
1548
- ")" => [],
1549
- "*" => ["*",
1550
- :UnaryExpression,
1551
- :_Mul_Div_UnaryExpression_Star],
1552
- "+" => [],
1553
- "," => [],
1554
- "-" => [],
1555
- "/" => ["/",
1556
- :UnaryExpression,
1557
- :_Mul_Div_UnaryExpression_Star],
1558
- "<" => [],
1559
- "<=" => [],
1560
- "=" => [],
1561
- ">=" => [],
1562
- ">" => [],
1563
- "||" => [],
1564
- },
1565
- :_OR_ConditionalAndExpression => {
1566
- "||" => ["||",
1567
- :ConditionalAndExpression],
1568
- },
1569
- :_OR_ConditionalAndExpression_Star => {
1570
- ")" => [],
1571
- "," => [],
1572
- "||" => [:_OR_ConditionalAndExpression,
1573
- :_OR_ConditionalAndExpression_Star],
1574
- },
1575
- :_OffsetClause_Opt => {
1576
- "OFFSET" => [:OffsetClause],
1577
- :eof => [],
1578
- },
1579
- :_OrderClause_Opt => {
1580
- "LIMIT" => [],
1581
- "OFFSET" => [],
1582
- "ORDER" => [:OrderClause],
1583
- :eof => [],
1584
- },
1585
- :_OrderCondition_Plus => {
1586
- "(" => [:OrderCondition,
1587
- :_OrderCondition_Plus],
1588
- "ASC" => [:OrderCondition,
1589
- :_OrderCondition_Plus],
1590
- "BOUND" => [:OrderCondition,
1591
- :_OrderCondition_Plus],
1592
- "DATATYPE" => [:OrderCondition,
1593
- :_OrderCondition_Plus],
1594
- "DESC" => [:OrderCondition,
1595
- :_OrderCondition_Plus],
1596
- "LANG" => [:OrderCondition,
1597
- :_OrderCondition_Plus],
1598
- "LANGMATCHES" => [:OrderCondition,
1599
- :_OrderCondition_Plus],
1600
- "LIMIT" => [],
1601
- "OFFSET" => [],
1602
- "REGEX" => [:OrderCondition,
1603
- :_OrderCondition_Plus],
1604
- "STR" => [:OrderCondition,
1605
- :_OrderCondition_Plus],
1606
- :eof => [],
1607
- :IRI_REF => [:OrderCondition,
1608
- :_OrderCondition_Plus],
1609
- :PNAME_LN => [:OrderCondition,
1610
- :_OrderCondition_Plus],
1611
- :PNAME_NS => [:OrderCondition,
1612
- :_OrderCondition_Plus],
1613
- :VAR1 => [:OrderCondition,
1614
- :_OrderCondition_Plus],
1615
- :VAR2 => [:OrderCondition,
1616
- :_OrderCondition_Plus],
1617
- "ISBLANK" => [:OrderCondition,
1618
- :_OrderCondition_Plus],
1619
- "ISIRI" => [:OrderCondition,
1620
- :_OrderCondition_Plus],
1621
- "ISLITERAL" => [:OrderCondition,
1622
- :_OrderCondition_Plus],
1623
- "ISURI" => [:OrderCondition,
1624
- :_OrderCondition_Plus],
1625
- "SAMETERM" => [:OrderCondition,
1626
- :_OrderCondition_Plus],
1627
- },
1628
- :_PrefixDecl_Star => {
1629
- "ASK" => [],
1630
- "CONSTRUCT" => [],
1631
- "DESCRIBE" => [],
1632
- "PREFIX" => [:PrefixDecl,
1633
- :_PrefixDecl_Star],
1634
- "SELECT" => [],
1635
- },
1636
- :_SEMI_Verb_ObjectList_Opt => {
1637
- ";" => [";",
1638
- :_Verb_ObjectList_Opt],
1639
- },
1640
- :_SEMI_Verb_ObjectList_Opt_Star => {
1641
- "." => [],
1642
- ";" => [:_SEMI_Verb_ObjectList_Opt,
1643
- :_SEMI_Verb_ObjectList_Opt_Star],
1644
- "FILTER" => [],
1645
- "GRAPH" => [],
1646
- "OPTIONAL" => [],
1647
- "]" => [],
1648
- "{" => [],
1649
- "}" => [],
1650
- },
1651
- :_SelectQuery_or_ConstructQuery_or_DescribeQuery_or_AskQuery => {
1652
- "ASK" => [:AskQuery],
1653
- "CONSTRUCT" => [:ConstructQuery],
1654
- "DESCRIBE" => [:DescribeQuery],
1655
- "SELECT" => [:SelectQuery],
1656
- },
1657
- :_TriplesBlock_Opt => {
1658
- "(" => [:TriplesBlock],
1659
- "+" => [:TriplesBlock],
1660
- "-" => [:TriplesBlock],
1661
- "FILTER" => [],
1662
- "GRAPH" => [],
1663
- "OPTIONAL" => [],
1664
- "[" => [:TriplesBlock],
1665
- :ANON => [:TriplesBlock],
1666
- :BLANK_NODE_LABEL => [:TriplesBlock],
1667
- :BooleanLiteral => [:TriplesBlock],
1668
- :DECIMAL => [:TriplesBlock],
1669
- :DOUBLE => [:TriplesBlock],
1670
- :INTEGER => [:TriplesBlock],
1671
- :IRI_REF => [:TriplesBlock],
1672
- :NIL => [:TriplesBlock],
1673
- :PNAME_LN => [:TriplesBlock],
1674
- :PNAME_NS => [:TriplesBlock],
1675
- :STRING_LITERAL1 => [:TriplesBlock],
1676
- :STRING_LITERAL2 => [:TriplesBlock],
1677
- :STRING_LITERAL_LONG1 => [:TriplesBlock],
1678
- :STRING_LITERAL_LONG2 => [:TriplesBlock],
1679
- :VAR1 => [:TriplesBlock],
1680
- :VAR2 => [:TriplesBlock],
1681
- "{" => [],
1682
- "}" => [],
1683
- },
1684
- :_UNION_GroupGraphPattern => {
1685
- "UNION" => ["UNION",
1686
- :GroupGraphPattern],
1687
- },
1688
- :_UNION_GroupGraphPattern_Star => {
1689
- "(" => [],
1690
- "+" => [],
1691
- "-" => [],
1692
- "." => [],
1693
- "FILTER" => [],
1694
- "GRAPH" => [],
1695
- "OPTIONAL" => [],
1696
- "UNION" => [:_UNION_GroupGraphPattern,
1697
- :_UNION_GroupGraphPattern_Star],
1698
- "[" => [],
1699
- :ANON => [],
1700
- :BLANK_NODE_LABEL => [],
1701
- :BooleanLiteral => [],
1702
- :DECIMAL => [],
1703
- :DOUBLE => [],
1704
- :INTEGER => [],
1705
- :IRI_REF => [],
1706
- :NIL => [],
1707
- :PNAME_LN => [],
1708
- :PNAME_NS => [],
1709
- :STRING_LITERAL1 => [],
1710
- :STRING_LITERAL2 => [],
1711
- :STRING_LITERAL_LONG1 => [],
1712
- :STRING_LITERAL_LONG2 => [],
1713
- :VAR1 => [],
1714
- :VAR2 => [],
1715
- "{" => [],
1716
- "}" => [],
1717
- },
1718
- :_VarOrIRIRef_Plus => {
1719
- "FROM" => [],
1720
- "LIMIT" => [],
1721
- "OFFSET" => [],
1722
- "ORDER" => [],
1723
- "WHERE" => [],
1724
- :eof => [],
1725
- :IRI_REF => [:VarOrIRIref,
1726
- :_VarOrIRIRef_Plus],
1727
- :PNAME_LN => [:VarOrIRIref,
1728
- :_VarOrIRIRef_Plus],
1729
- :PNAME_NS => [:VarOrIRIref,
1730
- :_VarOrIRIRef_Plus],
1731
- :VAR1 => [:VarOrIRIref,
1732
- :_VarOrIRIRef_Plus],
1733
- :VAR2 => [:VarOrIRIref,
1734
- :_VarOrIRIRef_Plus],
1735
- "{" => [],
1736
- },
1737
- :_VarOrIRIref_Plus_or_Star => {
1738
- "*" => ["*"],
1739
- :IRI_REF => [:VarOrIRIref,
1740
- :_VarOrIRIRef_Plus],
1741
- :PNAME_LN => [:VarOrIRIref,
1742
- :_VarOrIRIRef_Plus],
1743
- :PNAME_NS => [:VarOrIRIref,
1744
- :_VarOrIRIRef_Plus],
1745
- :VAR1 => [:VarOrIRIref,
1746
- :_VarOrIRIRef_Plus],
1747
- :VAR2 => [:VarOrIRIref,
1748
- :_VarOrIRIRef_Plus],
1749
- },
1750
- :_Var_Plus => {
1751
- "FROM" => [],
1752
- "LIMIT" => [],
1753
- "OFFSET" => [],
1754
- "ORDER" => [],
1755
- "WHERE" => [],
1756
- :eof => [],
1757
- :VAR1 => [:Var,
1758
- :_Var_Plus],
1759
- :VAR2 => [:Var,
1760
- :_Var_Plus],
1761
- "{" => [],
1762
- },
1763
- :_Var_Plus_or_Star => {
1764
- "*" => ["*"],
1765
- :VAR1 => [:Var,
1766
- :_Var_Plus],
1767
- :VAR2 => [:Var,
1768
- :_Var_Plus],
1769
- },
1770
- :_Verb_ObjectList_Opt => {
1771
- "." => [],
1772
- ";" => [],
1773
- "FILTER" => [],
1774
- "GRAPH" => [],
1775
- "OPTIONAL" => [],
1776
- "]" => [],
1777
- "a" => [:Verb,
1778
- :ObjectList],
1779
- :IRI_REF => [:Verb,
1780
- :ObjectList],
1781
- :PNAME_LN => [:Verb,
1782
- :ObjectList],
1783
- :PNAME_NS => [:Verb,
1784
- :ObjectList],
1785
- :VAR1 => [:Verb,
1786
- :ObjectList],
1787
- :VAR2 => [:Verb,
1788
- :ObjectList],
1789
- "{" => [],
1790
- "}" => [],
1791
- },
1792
- :_WHERE_Opt => {
1793
- "WHERE" => ["WHERE"],
1794
- "{" => [],
1795
- },
1796
- :_WhereClause_Opt => {
1797
- "LIMIT" => [],
1798
- "OFFSET" => [],
1799
- "ORDER" => [],
1800
- "WHERE" => [:WhereClause],
1801
- :eof => [],
1802
- "{" => [:WhereClause],
1803
- },
1804
- }
1805
- end