ebnf 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/etc/turtle.rb ADDED
@@ -0,0 +1,1375 @@
1
+ # This file is automatically generated by bin/ebnf
2
+ # BRANCH derived from etc/turtle.ebnf
3
+ module RDF::Turtle::Meta
4
+ START = :turtleDoc
5
+
6
+ BRANCH = {
7
+ :BlankNode => {
8
+ "(" => [],
9
+ "," => [],
10
+ :ANON => [:ANON],
11
+ :BLANK_NODE_LABEL => [:BLANK_NODE_LABEL],
12
+ :DECIMAL => [],
13
+ :DOUBLE => [],
14
+ :INTEGER => [],
15
+ :IRIREF => [],
16
+ :PNAME_LN => [],
17
+ :PNAME_NS => [],
18
+ :STRING_LITERAL_LONG_QUOTE => [],
19
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
20
+ :STRING_LITERAL_QUOTE => [],
21
+ :STRING_LITERAL_SINGLE_QUOTE => [],
22
+ "[" => [],
23
+ "a" => [],
24
+ "false" => [],
25
+ "true" => [],
26
+ },
27
+ :BooleanLiteral => {
28
+ "(" => [],
29
+ "," => [],
30
+ :ANON => [],
31
+ :BLANK_NODE_LABEL => [],
32
+ :DECIMAL => [],
33
+ :DOUBLE => [],
34
+ :INTEGER => [],
35
+ :IRIREF => [],
36
+ :PNAME_LN => [],
37
+ :PNAME_NS => [],
38
+ :STRING_LITERAL_LONG_QUOTE => [],
39
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
40
+ :STRING_LITERAL_QUOTE => [],
41
+ :STRING_LITERAL_SINGLE_QUOTE => [],
42
+ "[" => [],
43
+ "false" => ["false"],
44
+ "true" => ["true"],
45
+ },
46
+ :NumericLiteral => {
47
+ "(" => [],
48
+ "," => [],
49
+ :ANON => [],
50
+ :BLANK_NODE_LABEL => [],
51
+ :DECIMAL => [:DECIMAL],
52
+ :DOUBLE => [:DOUBLE],
53
+ :INTEGER => [:INTEGER],
54
+ :IRIREF => [],
55
+ :PNAME_LN => [],
56
+ :PNAME_NS => [],
57
+ :STRING_LITERAL_LONG_QUOTE => [],
58
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
59
+ :STRING_LITERAL_QUOTE => [],
60
+ :STRING_LITERAL_SINGLE_QUOTE => [],
61
+ "[" => [],
62
+ "false" => [],
63
+ "true" => [],
64
+ },
65
+ :PrefixedName => {
66
+ "(" => [],
67
+ "," => [],
68
+ :ANON => [],
69
+ :BLANK_NODE_LABEL => [],
70
+ :DECIMAL => [],
71
+ :DOUBLE => [],
72
+ :INTEGER => [],
73
+ :IRIREF => [],
74
+ :PNAME_LN => [:PNAME_LN],
75
+ :PNAME_NS => [:PNAME_NS],
76
+ :STRING_LITERAL_LONG_QUOTE => [],
77
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
78
+ :STRING_LITERAL_QUOTE => [],
79
+ :STRING_LITERAL_SINGLE_QUOTE => [],
80
+ "[" => [],
81
+ "a" => [],
82
+ "false" => [],
83
+ "true" => [],
84
+ },
85
+ :RDFLiteral => {
86
+ "(" => [],
87
+ "," => [],
88
+ :ANON => [],
89
+ :BLANK_NODE_LABEL => [],
90
+ :DECIMAL => [],
91
+ :DOUBLE => [],
92
+ :INTEGER => [],
93
+ :IRIREF => [],
94
+ :PNAME_LN => [],
95
+ :PNAME_NS => [],
96
+ :STRING_LITERAL_LONG_QUOTE => [:String, :_RDFLiteral_1],
97
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [:String, :_RDFLiteral_1],
98
+ :STRING_LITERAL_QUOTE => [:String, :_RDFLiteral_1],
99
+ :STRING_LITERAL_SINGLE_QUOTE => [:String, :_RDFLiteral_1],
100
+ "[" => [],
101
+ "false" => [],
102
+ "true" => [],
103
+ },
104
+ :String => {
105
+ :LANGTAG => [],
106
+ :STRING_LITERAL_LONG_QUOTE => [:STRING_LITERAL_LONG_QUOTE],
107
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [:STRING_LITERAL_LONG_SINGLE_QUOTE],
108
+ :STRING_LITERAL_QUOTE => [:STRING_LITERAL_QUOTE],
109
+ :STRING_LITERAL_SINGLE_QUOTE => [:STRING_LITERAL_SINGLE_QUOTE],
110
+ "^^" => [],
111
+ },
112
+ :_RDFLiteral_1 => {
113
+ "(" => [],
114
+ "," => [],
115
+ :ANON => [],
116
+ :BLANK_NODE_LABEL => [],
117
+ :DECIMAL => [],
118
+ :DOUBLE => [],
119
+ :INTEGER => [],
120
+ :IRIREF => [],
121
+ :LANGTAG => [:_RDFLiteral_2],
122
+ :PNAME_LN => [],
123
+ :PNAME_NS => [],
124
+ :STRING_LITERAL_LONG_QUOTE => [],
125
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
126
+ :STRING_LITERAL_QUOTE => [],
127
+ :STRING_LITERAL_SINGLE_QUOTE => [],
128
+ "[" => [],
129
+ "^^" => [:_RDFLiteral_2],
130
+ :_empty => [],
131
+ "false" => [],
132
+ "true" => [],
133
+ },
134
+ :_RDFLiteral_2 => {
135
+ "(" => [],
136
+ "," => [],
137
+ :ANON => [],
138
+ :BLANK_NODE_LABEL => [],
139
+ :DECIMAL => [],
140
+ :DOUBLE => [],
141
+ :INTEGER => [],
142
+ :IRIREF => [],
143
+ :LANGTAG => [:LANGTAG],
144
+ :PNAME_LN => [],
145
+ :PNAME_NS => [],
146
+ :STRING_LITERAL_LONG_QUOTE => [],
147
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
148
+ :STRING_LITERAL_QUOTE => [],
149
+ :STRING_LITERAL_SINGLE_QUOTE => [],
150
+ "[" => [],
151
+ "^^" => [:_RDFLiteral_3],
152
+ "false" => [],
153
+ "true" => [],
154
+ },
155
+ :_RDFLiteral_3 => {
156
+ "(" => [],
157
+ "," => [],
158
+ :ANON => [],
159
+ :BLANK_NODE_LABEL => [],
160
+ :DECIMAL => [],
161
+ :DOUBLE => [],
162
+ :INTEGER => [],
163
+ :IRIREF => [],
164
+ :PNAME_LN => [],
165
+ :PNAME_NS => [],
166
+ :STRING_LITERAL_LONG_QUOTE => [],
167
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
168
+ :STRING_LITERAL_QUOTE => [],
169
+ :STRING_LITERAL_SINGLE_QUOTE => [],
170
+ "[" => [],
171
+ "^^" => ["^^", :iri],
172
+ "false" => [],
173
+ "true" => [],
174
+ },
175
+ :_collection_1 => {
176
+ "(" => [:_collection_2],
177
+ ")" => [],
178
+ :ANON => [:_collection_2],
179
+ :BLANK_NODE_LABEL => [:_collection_2],
180
+ :DECIMAL => [:_collection_2],
181
+ :DOUBLE => [:_collection_2],
182
+ :INTEGER => [:_collection_2],
183
+ :IRIREF => [:_collection_2],
184
+ :PNAME_LN => [:_collection_2],
185
+ :PNAME_NS => [:_collection_2],
186
+ :STRING_LITERAL_LONG_QUOTE => [:_collection_2],
187
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [:_collection_2],
188
+ :STRING_LITERAL_QUOTE => [:_collection_2],
189
+ :STRING_LITERAL_SINGLE_QUOTE => [:_collection_2],
190
+ "[" => [:_collection_2],
191
+ :_empty => [],
192
+ "false" => [:_collection_2],
193
+ "true" => [:_collection_2],
194
+ },
195
+ :_collection_2 => {
196
+ "(" => [:object, :_collection_1],
197
+ ")" => [],
198
+ :ANON => [:object, :_collection_1],
199
+ :BLANK_NODE_LABEL => [:object, :_collection_1],
200
+ :DECIMAL => [:object, :_collection_1],
201
+ :DOUBLE => [:object, :_collection_1],
202
+ :INTEGER => [:object, :_collection_1],
203
+ :IRIREF => [:object, :_collection_1],
204
+ :PNAME_LN => [:object, :_collection_1],
205
+ :PNAME_NS => [:object, :_collection_1],
206
+ :STRING_LITERAL_LONG_QUOTE => [:object, :_collection_1],
207
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [:object, :_collection_1],
208
+ :STRING_LITERAL_QUOTE => [:object, :_collection_1],
209
+ :STRING_LITERAL_SINGLE_QUOTE => [:object, :_collection_1],
210
+ "[" => [:object, :_collection_1],
211
+ "false" => [:object, :_collection_1],
212
+ "true" => [:object, :_collection_1],
213
+ },
214
+ :_objectList_1 => {
215
+ "," => [:_objectList_3],
216
+ ";" => [],
217
+ :_empty => [],
218
+ },
219
+ :_objectList_2 => {
220
+ "," => [",", :object],
221
+ },
222
+ :_objectList_3 => {
223
+ "," => [:_objectList_2, :_objectList_1],
224
+ ";" => [],
225
+ },
226
+ :_predicateObjectList_1 => {
227
+ "." => [],
228
+ ";" => [:_predicateObjectList_3],
229
+ "]" => [],
230
+ :_empty => [],
231
+ },
232
+ :_predicateObjectList_2 => {
233
+ ";" => [";", :_predicateObjectList_4],
234
+ },
235
+ :_predicateObjectList_3 => {
236
+ "." => [],
237
+ ";" => [:_predicateObjectList_2, :_predicateObjectList_1],
238
+ "]" => [],
239
+ },
240
+ :_predicateObjectList_4 => {
241
+ ";" => [],
242
+ :IRIREF => [:_predicateObjectList_5],
243
+ :PNAME_LN => [:_predicateObjectList_5],
244
+ :PNAME_NS => [:_predicateObjectList_5],
245
+ :_empty => [],
246
+ "a" => [:_predicateObjectList_5],
247
+ },
248
+ :_predicateObjectList_5 => {
249
+ ";" => [],
250
+ :IRIREF => [:verb, :objectList],
251
+ :PNAME_LN => [:verb, :objectList],
252
+ :PNAME_NS => [:verb, :objectList],
253
+ "a" => [:verb, :objectList],
254
+ },
255
+ :_statement_1 => {
256
+ "(" => [:triples, "."],
257
+ "@base" => [],
258
+ "@prefix" => [],
259
+ :ANON => [:triples, "."],
260
+ :BLANK_NODE_LABEL => [:triples, "."],
261
+ :IRIREF => [:triples, "."],
262
+ :PNAME_LN => [:triples, "."],
263
+ :PNAME_NS => [:triples, "."],
264
+ :SPARQL_BASE => [],
265
+ :SPARQL_PREFIX => [],
266
+ "[" => [:triples, "."],
267
+ },
268
+ :_triples_1 => {
269
+ "(" => [:subject, :predicateObjectList],
270
+ "." => [],
271
+ :ANON => [:subject, :predicateObjectList],
272
+ :BLANK_NODE_LABEL => [:subject, :predicateObjectList],
273
+ :IRIREF => [:subject, :predicateObjectList],
274
+ :PNAME_LN => [:subject, :predicateObjectList],
275
+ :PNAME_NS => [:subject, :predicateObjectList],
276
+ },
277
+ :_triples_2 => {
278
+ "." => [],
279
+ "[" => [:blankNodePropertyList, :_triples_3],
280
+ },
281
+ :_triples_3 => {
282
+ "." => [],
283
+ :IRIREF => [:predicateObjectList],
284
+ :PNAME_LN => [:predicateObjectList],
285
+ :PNAME_NS => [:predicateObjectList],
286
+ :_empty => [],
287
+ "a" => [:predicateObjectList],
288
+ },
289
+ :_turtleDoc_1 => {
290
+ "(" => [:statement, :turtleDoc],
291
+ "@base" => [:statement, :turtleDoc],
292
+ "@prefix" => [:statement, :turtleDoc],
293
+ :ANON => [:statement, :turtleDoc],
294
+ :BLANK_NODE_LABEL => [:statement, :turtleDoc],
295
+ :IRIREF => [:statement, :turtleDoc],
296
+ :PNAME_LN => [:statement, :turtleDoc],
297
+ :PNAME_NS => [:statement, :turtleDoc],
298
+ :SPARQL_BASE => [:statement, :turtleDoc],
299
+ :SPARQL_PREFIX => [:statement, :turtleDoc],
300
+ "[" => [:statement, :turtleDoc],
301
+ :_eof => [],
302
+ },
303
+ :base => {
304
+ "(" => [],
305
+ "@base" => ["@base", :IRIREF, "."],
306
+ "@prefix" => [],
307
+ :ANON => [],
308
+ :BLANK_NODE_LABEL => [],
309
+ :IRIREF => [],
310
+ :PNAME_LN => [],
311
+ :PNAME_NS => [],
312
+ :SPARQL_BASE => [],
313
+ :SPARQL_PREFIX => [],
314
+ "[" => [],
315
+ },
316
+ :blankNodePropertyList => {
317
+ "(" => [],
318
+ "," => [],
319
+ :ANON => [],
320
+ :BLANK_NODE_LABEL => [],
321
+ :DECIMAL => [],
322
+ :DOUBLE => [],
323
+ :INTEGER => [],
324
+ :IRIREF => [],
325
+ :PNAME_LN => [],
326
+ :PNAME_NS => [],
327
+ :STRING_LITERAL_LONG_QUOTE => [],
328
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
329
+ :STRING_LITERAL_QUOTE => [],
330
+ :STRING_LITERAL_SINGLE_QUOTE => [],
331
+ "[" => ["[", :predicateObjectList, "]"],
332
+ "a" => [],
333
+ "false" => [],
334
+ "true" => [],
335
+ },
336
+ :collection => {
337
+ "(" => ["(", :_collection_1, ")"],
338
+ "," => [],
339
+ :ANON => [],
340
+ :BLANK_NODE_LABEL => [],
341
+ :DECIMAL => [],
342
+ :DOUBLE => [],
343
+ :INTEGER => [],
344
+ :IRIREF => [],
345
+ :PNAME_LN => [],
346
+ :PNAME_NS => [],
347
+ :STRING_LITERAL_LONG_QUOTE => [],
348
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
349
+ :STRING_LITERAL_QUOTE => [],
350
+ :STRING_LITERAL_SINGLE_QUOTE => [],
351
+ "[" => [],
352
+ "a" => [],
353
+ "false" => [],
354
+ "true" => [],
355
+ },
356
+ :directive => {
357
+ "(" => [],
358
+ "@base" => [:base],
359
+ "@prefix" => [:prefixID],
360
+ :ANON => [],
361
+ :BLANK_NODE_LABEL => [],
362
+ :IRIREF => [],
363
+ :PNAME_LN => [],
364
+ :PNAME_NS => [],
365
+ :SPARQL_BASE => [:sparqlBase],
366
+ :SPARQL_PREFIX => [:sparqlPrefix],
367
+ "[" => [],
368
+ },
369
+ :iri => {
370
+ "(" => [],
371
+ "," => [],
372
+ :ANON => [],
373
+ :BLANK_NODE_LABEL => [],
374
+ :DECIMAL => [],
375
+ :DOUBLE => [],
376
+ :INTEGER => [],
377
+ :IRIREF => [:IRIREF],
378
+ :PNAME_LN => [:PrefixedName],
379
+ :PNAME_NS => [:PrefixedName],
380
+ :STRING_LITERAL_LONG_QUOTE => [],
381
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
382
+ :STRING_LITERAL_QUOTE => [],
383
+ :STRING_LITERAL_SINGLE_QUOTE => [],
384
+ "[" => [],
385
+ "a" => [],
386
+ "false" => [],
387
+ "true" => [],
388
+ },
389
+ :literal => {
390
+ "(" => [],
391
+ "," => [],
392
+ :ANON => [],
393
+ :BLANK_NODE_LABEL => [],
394
+ :DECIMAL => [:NumericLiteral],
395
+ :DOUBLE => [:NumericLiteral],
396
+ :INTEGER => [:NumericLiteral],
397
+ :IRIREF => [],
398
+ :PNAME_LN => [],
399
+ :PNAME_NS => [],
400
+ :STRING_LITERAL_LONG_QUOTE => [:RDFLiteral],
401
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [:RDFLiteral],
402
+ :STRING_LITERAL_QUOTE => [:RDFLiteral],
403
+ :STRING_LITERAL_SINGLE_QUOTE => [:RDFLiteral],
404
+ "[" => [],
405
+ "false" => [:BooleanLiteral],
406
+ "true" => [:BooleanLiteral],
407
+ },
408
+ :object => {
409
+ "(" => [:collection],
410
+ "," => [],
411
+ :ANON => [:BlankNode],
412
+ :BLANK_NODE_LABEL => [:BlankNode],
413
+ :DECIMAL => [:literal],
414
+ :DOUBLE => [:literal],
415
+ :INTEGER => [:literal],
416
+ :IRIREF => [:iri],
417
+ :PNAME_LN => [:iri],
418
+ :PNAME_NS => [:iri],
419
+ :STRING_LITERAL_LONG_QUOTE => [:literal],
420
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [:literal],
421
+ :STRING_LITERAL_QUOTE => [:literal],
422
+ :STRING_LITERAL_SINGLE_QUOTE => [:literal],
423
+ "[" => [:blankNodePropertyList],
424
+ "false" => [:literal],
425
+ "true" => [:literal],
426
+ },
427
+ :objectList => {
428
+ "(" => [:object, :_objectList_1],
429
+ ";" => [],
430
+ :ANON => [:object, :_objectList_1],
431
+ :BLANK_NODE_LABEL => [:object, :_objectList_1],
432
+ :DECIMAL => [:object, :_objectList_1],
433
+ :DOUBLE => [:object, :_objectList_1],
434
+ :INTEGER => [:object, :_objectList_1],
435
+ :IRIREF => [:object, :_objectList_1],
436
+ :PNAME_LN => [:object, :_objectList_1],
437
+ :PNAME_NS => [:object, :_objectList_1],
438
+ :STRING_LITERAL_LONG_QUOTE => [:object, :_objectList_1],
439
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [:object, :_objectList_1],
440
+ :STRING_LITERAL_QUOTE => [:object, :_objectList_1],
441
+ :STRING_LITERAL_SINGLE_QUOTE => [:object, :_objectList_1],
442
+ "[" => [:object, :_objectList_1],
443
+ "false" => [:object, :_objectList_1],
444
+ "true" => [:object, :_objectList_1],
445
+ },
446
+ :predicate => {
447
+ "(" => [],
448
+ :ANON => [],
449
+ :BLANK_NODE_LABEL => [],
450
+ :DECIMAL => [],
451
+ :DOUBLE => [],
452
+ :INTEGER => [],
453
+ :IRIREF => [:iri],
454
+ :PNAME_LN => [:iri],
455
+ :PNAME_NS => [:iri],
456
+ :STRING_LITERAL_LONG_QUOTE => [],
457
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
458
+ :STRING_LITERAL_QUOTE => [],
459
+ :STRING_LITERAL_SINGLE_QUOTE => [],
460
+ "[" => [],
461
+ "false" => [],
462
+ "true" => [],
463
+ },
464
+ :predicateObjectList => {
465
+ "." => [],
466
+ :IRIREF => [:verb, :objectList, :_predicateObjectList_1],
467
+ :PNAME_LN => [:verb, :objectList, :_predicateObjectList_1],
468
+ :PNAME_NS => [:verb, :objectList, :_predicateObjectList_1],
469
+ "]" => [],
470
+ "a" => [:verb, :objectList, :_predicateObjectList_1],
471
+ },
472
+ :prefixID => {
473
+ "(" => [],
474
+ "@base" => [],
475
+ "@prefix" => ["@prefix", :PNAME_NS, :IRIREF, "."],
476
+ :ANON => [],
477
+ :BLANK_NODE_LABEL => [],
478
+ :IRIREF => [],
479
+ :PNAME_LN => [],
480
+ :PNAME_NS => [],
481
+ :SPARQL_BASE => [],
482
+ :SPARQL_PREFIX => [],
483
+ "[" => [],
484
+ },
485
+ :sparqlBase => {
486
+ "(" => [],
487
+ "@base" => [],
488
+ "@prefix" => [],
489
+ :ANON => [],
490
+ :BLANK_NODE_LABEL => [],
491
+ :IRIREF => [],
492
+ :PNAME_LN => [],
493
+ :PNAME_NS => [],
494
+ :SPARQL_BASE => [:SPARQL_BASE, :IRIREF],
495
+ :SPARQL_PREFIX => [],
496
+ "[" => [],
497
+ },
498
+ :sparqlPrefix => {
499
+ "(" => [],
500
+ "@base" => [],
501
+ "@prefix" => [],
502
+ :ANON => [],
503
+ :BLANK_NODE_LABEL => [],
504
+ :IRIREF => [],
505
+ :PNAME_LN => [],
506
+ :PNAME_NS => [],
507
+ :SPARQL_BASE => [],
508
+ :SPARQL_PREFIX => [:SPARQL_PREFIX, :PNAME_NS, :IRIREF],
509
+ "[" => [],
510
+ },
511
+ :statement => {
512
+ "(" => [:_statement_1],
513
+ "@base" => [:directive],
514
+ "@prefix" => [:directive],
515
+ :ANON => [:_statement_1],
516
+ :BLANK_NODE_LABEL => [:_statement_1],
517
+ :IRIREF => [:_statement_1],
518
+ :PNAME_LN => [:_statement_1],
519
+ :PNAME_NS => [:_statement_1],
520
+ :SPARQL_BASE => [:directive],
521
+ :SPARQL_PREFIX => [:directive],
522
+ "[" => [:_statement_1],
523
+ },
524
+ :subject => {
525
+ "(" => [:collection],
526
+ :ANON => [:BlankNode],
527
+ :BLANK_NODE_LABEL => [:BlankNode],
528
+ :IRIREF => [:iri],
529
+ :PNAME_LN => [:iri],
530
+ :PNAME_NS => [:iri],
531
+ "a" => [],
532
+ },
533
+ :triples => {
534
+ "(" => [:_triples_1],
535
+ "." => [],
536
+ :ANON => [:_triples_1],
537
+ :BLANK_NODE_LABEL => [:_triples_1],
538
+ :IRIREF => [:_triples_1],
539
+ :PNAME_LN => [:_triples_1],
540
+ :PNAME_NS => [:_triples_1],
541
+ "[" => [:_triples_2],
542
+ },
543
+ :turtleDoc => {
544
+ "(" => [:_turtleDoc_1],
545
+ "@base" => [:_turtleDoc_1],
546
+ "@prefix" => [:_turtleDoc_1],
547
+ :ANON => [:_turtleDoc_1],
548
+ :BLANK_NODE_LABEL => [:_turtleDoc_1],
549
+ :IRIREF => [:_turtleDoc_1],
550
+ :PNAME_LN => [:_turtleDoc_1],
551
+ :PNAME_NS => [:_turtleDoc_1],
552
+ :SPARQL_BASE => [:_turtleDoc_1],
553
+ :SPARQL_PREFIX => [:_turtleDoc_1],
554
+ "[" => [:_turtleDoc_1],
555
+ :_empty => [],
556
+ :_eof => [],
557
+ },
558
+ :verb => {
559
+ "(" => [],
560
+ :ANON => [],
561
+ :BLANK_NODE_LABEL => [],
562
+ :DECIMAL => [],
563
+ :DOUBLE => [],
564
+ :INTEGER => [],
565
+ :IRIREF => [:predicate],
566
+ :PNAME_LN => [:predicate],
567
+ :PNAME_NS => [:predicate],
568
+ :STRING_LITERAL_LONG_QUOTE => [],
569
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
570
+ :STRING_LITERAL_QUOTE => [],
571
+ :STRING_LITERAL_SINGLE_QUOTE => [],
572
+ "[" => [],
573
+ "a" => ["a"],
574
+ "false" => [],
575
+ "true" => [],
576
+ },
577
+ }.freeze
578
+ TERMINALS = [
579
+ "(",
580
+ ")",
581
+ ",",
582
+ ".",
583
+ ";",
584
+ "@base",
585
+ "@prefix",
586
+ :ANON,
587
+ :BLANK_NODE_LABEL,
588
+ :DECIMAL,
589
+ :DOUBLE,
590
+ :INTEGER,
591
+ :IRIREF,
592
+ :LANGTAG,
593
+ :PNAME_LN,
594
+ :PNAME_NS,
595
+ :SPARQL_BASE,
596
+ :SPARQL_PREFIX,
597
+ :STRING_LITERAL_LONG_QUOTE,
598
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
599
+ :STRING_LITERAL_QUOTE,
600
+ :STRING_LITERAL_SINGLE_QUOTE,
601
+ "[",
602
+ "]",
603
+ "^^",
604
+ "a",
605
+ "false",
606
+ "true"
607
+ ].freeze
608
+ FIRST = {
609
+ :BlankNode => [
610
+ :BLANK_NODE_LABEL,
611
+ :ANON],
612
+ :BooleanLiteral => [
613
+ "true",
614
+ "false"],
615
+ :NumericLiteral => [
616
+ :INTEGER,
617
+ :DECIMAL,
618
+ :DOUBLE],
619
+ :PrefixedName => [
620
+ :PNAME_NS,
621
+ :PNAME_LN],
622
+ :RDFLiteral => [
623
+ :STRING_LITERAL_QUOTE,
624
+ :STRING_LITERAL_SINGLE_QUOTE,
625
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
626
+ :STRING_LITERAL_LONG_QUOTE],
627
+ :String => [
628
+ :STRING_LITERAL_QUOTE,
629
+ :STRING_LITERAL_SINGLE_QUOTE,
630
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
631
+ :STRING_LITERAL_LONG_QUOTE],
632
+ :_RDFLiteral_1 => [
633
+ :LANGTAG,
634
+ "^^"],
635
+ :_RDFLiteral_2 => [
636
+ :LANGTAG,
637
+ "^^"],
638
+ :_RDFLiteral_3 => [
639
+ "^^"],
640
+ :_RDFLiteral_4 => [
641
+ :LANGTAG,
642
+ "^^"],
643
+ :_base_1 => [
644
+ :IRIREF],
645
+ :_blankNodePropertyList_1 => [
646
+ "a",
647
+ :IRIREF,
648
+ :PNAME_NS,
649
+ :PNAME_LN],
650
+ :_blankNodePropertyList_2 => [
651
+ "]"],
652
+ :_collection_1 => [
653
+ "[",
654
+ "(",
655
+ :IRIREF,
656
+ :BLANK_NODE_LABEL,
657
+ :ANON,
658
+ :INTEGER,
659
+ :DECIMAL,
660
+ :DOUBLE,
661
+ "true",
662
+ "false",
663
+ :PNAME_NS,
664
+ :PNAME_LN,
665
+ :STRING_LITERAL_QUOTE,
666
+ :STRING_LITERAL_SINGLE_QUOTE,
667
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
668
+ :STRING_LITERAL_LONG_QUOTE],
669
+ :_collection_2 => [
670
+ "[",
671
+ "(",
672
+ :IRIREF,
673
+ :BLANK_NODE_LABEL,
674
+ :ANON,
675
+ :INTEGER,
676
+ :DECIMAL,
677
+ :DOUBLE,
678
+ "true",
679
+ "false",
680
+ :PNAME_NS,
681
+ :PNAME_LN,
682
+ :STRING_LITERAL_QUOTE,
683
+ :STRING_LITERAL_SINGLE_QUOTE,
684
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
685
+ :STRING_LITERAL_LONG_QUOTE],
686
+ :_collection_3 => [
687
+ "[",
688
+ "(",
689
+ :IRIREF,
690
+ :BLANK_NODE_LABEL,
691
+ :ANON,
692
+ :INTEGER,
693
+ :DECIMAL,
694
+ :DOUBLE,
695
+ "true",
696
+ "false",
697
+ :PNAME_NS,
698
+ :PNAME_LN,
699
+ :STRING_LITERAL_QUOTE,
700
+ :STRING_LITERAL_SINGLE_QUOTE,
701
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
702
+ :STRING_LITERAL_LONG_QUOTE],
703
+ :_collection_4 => [
704
+ "[",
705
+ "(",
706
+ :IRIREF,
707
+ :BLANK_NODE_LABEL,
708
+ :ANON,
709
+ :INTEGER,
710
+ :DECIMAL,
711
+ :DOUBLE,
712
+ "true",
713
+ "false",
714
+ :PNAME_NS,
715
+ :PNAME_LN,
716
+ :STRING_LITERAL_QUOTE,
717
+ :STRING_LITERAL_SINGLE_QUOTE,
718
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
719
+ :STRING_LITERAL_LONG_QUOTE],
720
+ :_collection_5 => [
721
+ ")"],
722
+ :_empty => [
723
+ ],
724
+ :_objectList_1 => [
725
+ ","],
726
+ :_objectList_2 => [
727
+ ","],
728
+ :_objectList_3 => [
729
+ ","],
730
+ :_objectList_4 => [
731
+ ","],
732
+ :_objectList_5 => [
733
+ ","],
734
+ :_objectList_6 => [
735
+ "[",
736
+ "(",
737
+ :IRIREF,
738
+ :BLANK_NODE_LABEL,
739
+ :ANON,
740
+ :INTEGER,
741
+ :DECIMAL,
742
+ :DOUBLE,
743
+ "true",
744
+ "false",
745
+ :PNAME_NS,
746
+ :PNAME_LN,
747
+ :STRING_LITERAL_QUOTE,
748
+ :STRING_LITERAL_SINGLE_QUOTE,
749
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
750
+ :STRING_LITERAL_LONG_QUOTE],
751
+ :_predicateObjectList_1 => [
752
+ ";"],
753
+ :_predicateObjectList_2 => [
754
+ ";"],
755
+ :_predicateObjectList_3 => [
756
+ ";"],
757
+ :_predicateObjectList_4 => [
758
+ "a",
759
+ :IRIREF,
760
+ :PNAME_NS,
761
+ :PNAME_LN],
762
+ :_predicateObjectList_5 => [
763
+ "a",
764
+ :IRIREF,
765
+ :PNAME_NS,
766
+ :PNAME_LN],
767
+ :_predicateObjectList_6 => [
768
+ "[",
769
+ "(",
770
+ :IRIREF,
771
+ :BLANK_NODE_LABEL,
772
+ :ANON,
773
+ :INTEGER,
774
+ :DECIMAL,
775
+ :DOUBLE,
776
+ "true",
777
+ "false",
778
+ :PNAME_NS,
779
+ :PNAME_LN,
780
+ :STRING_LITERAL_QUOTE,
781
+ :STRING_LITERAL_SINGLE_QUOTE,
782
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
783
+ :STRING_LITERAL_LONG_QUOTE],
784
+ :_predicateObjectList_7 => [
785
+ ";"],
786
+ :_predicateObjectList_8 => [
787
+ "a",
788
+ :IRIREF,
789
+ :PNAME_NS,
790
+ :PNAME_LN],
791
+ :_predicateObjectList_9 => [
792
+ "[",
793
+ "(",
794
+ :IRIREF,
795
+ :BLANK_NODE_LABEL,
796
+ :ANON,
797
+ :INTEGER,
798
+ :DECIMAL,
799
+ :DOUBLE,
800
+ "true",
801
+ "false",
802
+ :PNAME_NS,
803
+ :PNAME_LN,
804
+ :STRING_LITERAL_QUOTE,
805
+ :STRING_LITERAL_SINGLE_QUOTE,
806
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
807
+ :STRING_LITERAL_LONG_QUOTE],
808
+ :_prefixID_1 => [
809
+ :PNAME_NS],
810
+ :_sparqlBase_1 => [
811
+ :IRIREF],
812
+ :_sparqlPrefix_1 => [
813
+ :PNAME_NS],
814
+ :_statement_1 => [
815
+ "[",
816
+ "(",
817
+ :IRIREF,
818
+ :BLANK_NODE_LABEL,
819
+ :ANON,
820
+ :PNAME_NS,
821
+ :PNAME_LN],
822
+ :_statement_2 => [
823
+ "."],
824
+ :_triples_1 => [
825
+ "(",
826
+ :IRIREF,
827
+ :BLANK_NODE_LABEL,
828
+ :ANON,
829
+ :PNAME_NS,
830
+ :PNAME_LN],
831
+ :_triples_2 => [
832
+ "["],
833
+ :_triples_3 => [
834
+ "a",
835
+ :IRIREF,
836
+ :PNAME_NS,
837
+ :PNAME_LN],
838
+ :_triples_4 => [
839
+ "a",
840
+ :IRIREF,
841
+ :PNAME_NS,
842
+ :PNAME_LN],
843
+ :_triples_5 => [
844
+ "a",
845
+ :IRIREF,
846
+ :PNAME_NS,
847
+ :PNAME_LN],
848
+ :_turtleDoc_1 => [
849
+ "@prefix",
850
+ "@base",
851
+ :SPARQL_PREFIX,
852
+ :SPARQL_BASE,
853
+ "[",
854
+ "(",
855
+ :IRIREF,
856
+ :BLANK_NODE_LABEL,
857
+ :ANON,
858
+ :PNAME_NS,
859
+ :PNAME_LN],
860
+ :_turtleDoc_2 => [
861
+ "@prefix",
862
+ "@base",
863
+ :SPARQL_PREFIX,
864
+ :SPARQL_BASE,
865
+ "[",
866
+ "(",
867
+ :IRIREF,
868
+ :BLANK_NODE_LABEL,
869
+ :ANON,
870
+ :PNAME_NS,
871
+ :PNAME_LN],
872
+ :base => [
873
+ "@base"],
874
+ :blankNodePropertyList => [
875
+ "["],
876
+ :collection => [
877
+ "("],
878
+ :directive => [
879
+ "@prefix",
880
+ "@base",
881
+ :SPARQL_PREFIX,
882
+ :SPARQL_BASE],
883
+ :iri => [
884
+ :IRIREF,
885
+ :PNAME_NS,
886
+ :PNAME_LN],
887
+ :literal => [
888
+ :INTEGER,
889
+ :DECIMAL,
890
+ :DOUBLE,
891
+ "true",
892
+ "false",
893
+ :STRING_LITERAL_QUOTE,
894
+ :STRING_LITERAL_SINGLE_QUOTE,
895
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
896
+ :STRING_LITERAL_LONG_QUOTE],
897
+ :object => [
898
+ "[",
899
+ "(",
900
+ :IRIREF,
901
+ :BLANK_NODE_LABEL,
902
+ :ANON,
903
+ :INTEGER,
904
+ :DECIMAL,
905
+ :DOUBLE,
906
+ "true",
907
+ "false",
908
+ :PNAME_NS,
909
+ :PNAME_LN,
910
+ :STRING_LITERAL_QUOTE,
911
+ :STRING_LITERAL_SINGLE_QUOTE,
912
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
913
+ :STRING_LITERAL_LONG_QUOTE],
914
+ :objectList => [
915
+ "[",
916
+ "(",
917
+ :IRIREF,
918
+ :BLANK_NODE_LABEL,
919
+ :ANON,
920
+ :INTEGER,
921
+ :DECIMAL,
922
+ :DOUBLE,
923
+ "true",
924
+ "false",
925
+ :PNAME_NS,
926
+ :PNAME_LN,
927
+ :STRING_LITERAL_QUOTE,
928
+ :STRING_LITERAL_SINGLE_QUOTE,
929
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
930
+ :STRING_LITERAL_LONG_QUOTE],
931
+ :predicate => [
932
+ :IRIREF,
933
+ :PNAME_NS,
934
+ :PNAME_LN],
935
+ :predicateObjectList => [
936
+ "a",
937
+ :IRIREF,
938
+ :PNAME_NS,
939
+ :PNAME_LN],
940
+ :prefixID => [
941
+ "@prefix"],
942
+ :sparqlBase => [
943
+ :SPARQL_BASE],
944
+ :sparqlPrefix => [
945
+ :SPARQL_PREFIX],
946
+ :statement => [
947
+ "@prefix",
948
+ "@base",
949
+ :SPARQL_PREFIX,
950
+ :SPARQL_BASE,
951
+ "[",
952
+ "(",
953
+ :IRIREF,
954
+ :BLANK_NODE_LABEL,
955
+ :ANON,
956
+ :PNAME_NS,
957
+ :PNAME_LN],
958
+ :subject => [
959
+ "(",
960
+ :IRIREF,
961
+ :BLANK_NODE_LABEL,
962
+ :ANON,
963
+ :PNAME_NS,
964
+ :PNAME_LN],
965
+ :triples => [
966
+ "[",
967
+ "(",
968
+ :IRIREF,
969
+ :BLANK_NODE_LABEL,
970
+ :ANON,
971
+ :PNAME_NS,
972
+ :PNAME_LN],
973
+ :turtleDoc => [
974
+ "@prefix",
975
+ "@base",
976
+ :SPARQL_PREFIX,
977
+ :SPARQL_BASE,
978
+ "[",
979
+ "(",
980
+ :IRIREF,
981
+ :BLANK_NODE_LABEL,
982
+ :ANON,
983
+ :PNAME_NS,
984
+ :PNAME_LN],
985
+ :verb => [
986
+ "a",
987
+ :IRIREF,
988
+ :PNAME_NS,
989
+ :PNAME_LN],
990
+ }.freeze
991
+ FOLLOW = {
992
+ :BlankNode => [
993
+ :BLANK_NODE_LABEL,
994
+ :ANON],
995
+ :BooleanLiteral => [
996
+ "true",
997
+ "false"],
998
+ :NumericLiteral => [
999
+ :INTEGER,
1000
+ :DECIMAL,
1001
+ :DOUBLE],
1002
+ :PrefixedName => [
1003
+ :PNAME_NS,
1004
+ :PNAME_LN],
1005
+ :RDFLiteral => [
1006
+ :STRING_LITERAL_QUOTE,
1007
+ :STRING_LITERAL_SINGLE_QUOTE,
1008
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1009
+ :STRING_LITERAL_LONG_QUOTE],
1010
+ :String => [
1011
+ :STRING_LITERAL_QUOTE,
1012
+ :STRING_LITERAL_SINGLE_QUOTE,
1013
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1014
+ :STRING_LITERAL_LONG_QUOTE],
1015
+ :_RDFLiteral_1 => [
1016
+ :LANGTAG,
1017
+ "^^"],
1018
+ :_RDFLiteral_2 => [
1019
+ :LANGTAG,
1020
+ "^^"],
1021
+ :_RDFLiteral_3 => [
1022
+ "^^"],
1023
+ :_RDFLiteral_4 => [
1024
+ :LANGTAG,
1025
+ "^^"],
1026
+ :_base_1 => [
1027
+ :IRIREF],
1028
+ :_blankNodePropertyList_1 => [
1029
+ "a",
1030
+ :IRIREF,
1031
+ :PNAME_NS,
1032
+ :PNAME_LN],
1033
+ :_blankNodePropertyList_2 => [
1034
+ "]"],
1035
+ :_collection_1 => [
1036
+ "[",
1037
+ "(",
1038
+ :IRIREF,
1039
+ :BLANK_NODE_LABEL,
1040
+ :ANON,
1041
+ :INTEGER,
1042
+ :DECIMAL,
1043
+ :DOUBLE,
1044
+ "true",
1045
+ "false",
1046
+ :PNAME_NS,
1047
+ :PNAME_LN,
1048
+ :STRING_LITERAL_QUOTE,
1049
+ :STRING_LITERAL_SINGLE_QUOTE,
1050
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1051
+ :STRING_LITERAL_LONG_QUOTE],
1052
+ :_collection_2 => [
1053
+ "[",
1054
+ "(",
1055
+ :IRIREF,
1056
+ :BLANK_NODE_LABEL,
1057
+ :ANON,
1058
+ :INTEGER,
1059
+ :DECIMAL,
1060
+ :DOUBLE,
1061
+ "true",
1062
+ "false",
1063
+ :PNAME_NS,
1064
+ :PNAME_LN,
1065
+ :STRING_LITERAL_QUOTE,
1066
+ :STRING_LITERAL_SINGLE_QUOTE,
1067
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1068
+ :STRING_LITERAL_LONG_QUOTE],
1069
+ :_collection_3 => [
1070
+ "[",
1071
+ "(",
1072
+ :IRIREF,
1073
+ :BLANK_NODE_LABEL,
1074
+ :ANON,
1075
+ :INTEGER,
1076
+ :DECIMAL,
1077
+ :DOUBLE,
1078
+ "true",
1079
+ "false",
1080
+ :PNAME_NS,
1081
+ :PNAME_LN,
1082
+ :STRING_LITERAL_QUOTE,
1083
+ :STRING_LITERAL_SINGLE_QUOTE,
1084
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1085
+ :STRING_LITERAL_LONG_QUOTE],
1086
+ :_collection_4 => [
1087
+ "[",
1088
+ "(",
1089
+ :IRIREF,
1090
+ :BLANK_NODE_LABEL,
1091
+ :ANON,
1092
+ :INTEGER,
1093
+ :DECIMAL,
1094
+ :DOUBLE,
1095
+ "true",
1096
+ "false",
1097
+ :PNAME_NS,
1098
+ :PNAME_LN,
1099
+ :STRING_LITERAL_QUOTE,
1100
+ :STRING_LITERAL_SINGLE_QUOTE,
1101
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1102
+ :STRING_LITERAL_LONG_QUOTE],
1103
+ :_collection_5 => [
1104
+ ")"],
1105
+ :_empty => [
1106
+ ],
1107
+ :_objectList_1 => [
1108
+ ","],
1109
+ :_objectList_2 => [
1110
+ ","],
1111
+ :_objectList_3 => [
1112
+ ","],
1113
+ :_objectList_4 => [
1114
+ ","],
1115
+ :_objectList_5 => [
1116
+ ","],
1117
+ :_objectList_6 => [
1118
+ "[",
1119
+ "(",
1120
+ :IRIREF,
1121
+ :BLANK_NODE_LABEL,
1122
+ :ANON,
1123
+ :INTEGER,
1124
+ :DECIMAL,
1125
+ :DOUBLE,
1126
+ "true",
1127
+ "false",
1128
+ :PNAME_NS,
1129
+ :PNAME_LN,
1130
+ :STRING_LITERAL_QUOTE,
1131
+ :STRING_LITERAL_SINGLE_QUOTE,
1132
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1133
+ :STRING_LITERAL_LONG_QUOTE],
1134
+ :_predicateObjectList_1 => [
1135
+ ";"],
1136
+ :_predicateObjectList_2 => [
1137
+ ";"],
1138
+ :_predicateObjectList_3 => [
1139
+ ";"],
1140
+ :_predicateObjectList_4 => [
1141
+ "a",
1142
+ :IRIREF,
1143
+ :PNAME_NS,
1144
+ :PNAME_LN],
1145
+ :_predicateObjectList_5 => [
1146
+ "a",
1147
+ :IRIREF,
1148
+ :PNAME_NS,
1149
+ :PNAME_LN],
1150
+ :_predicateObjectList_6 => [
1151
+ "[",
1152
+ "(",
1153
+ :IRIREF,
1154
+ :BLANK_NODE_LABEL,
1155
+ :ANON,
1156
+ :INTEGER,
1157
+ :DECIMAL,
1158
+ :DOUBLE,
1159
+ "true",
1160
+ "false",
1161
+ :PNAME_NS,
1162
+ :PNAME_LN,
1163
+ :STRING_LITERAL_QUOTE,
1164
+ :STRING_LITERAL_SINGLE_QUOTE,
1165
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1166
+ :STRING_LITERAL_LONG_QUOTE],
1167
+ :_predicateObjectList_7 => [
1168
+ ";"],
1169
+ :_predicateObjectList_8 => [
1170
+ "a",
1171
+ :IRIREF,
1172
+ :PNAME_NS,
1173
+ :PNAME_LN],
1174
+ :_predicateObjectList_9 => [
1175
+ "[",
1176
+ "(",
1177
+ :IRIREF,
1178
+ :BLANK_NODE_LABEL,
1179
+ :ANON,
1180
+ :INTEGER,
1181
+ :DECIMAL,
1182
+ :DOUBLE,
1183
+ "true",
1184
+ "false",
1185
+ :PNAME_NS,
1186
+ :PNAME_LN,
1187
+ :STRING_LITERAL_QUOTE,
1188
+ :STRING_LITERAL_SINGLE_QUOTE,
1189
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1190
+ :STRING_LITERAL_LONG_QUOTE],
1191
+ :_prefixID_1 => [
1192
+ :PNAME_NS],
1193
+ :_sparqlBase_1 => [
1194
+ :IRIREF],
1195
+ :_sparqlPrefix_1 => [
1196
+ :PNAME_NS],
1197
+ :_statement_1 => [
1198
+ "[",
1199
+ "(",
1200
+ :IRIREF,
1201
+ :BLANK_NODE_LABEL,
1202
+ :ANON,
1203
+ :PNAME_NS,
1204
+ :PNAME_LN],
1205
+ :_statement_2 => [
1206
+ "."],
1207
+ :_triples_1 => [
1208
+ "(",
1209
+ :IRIREF,
1210
+ :BLANK_NODE_LABEL,
1211
+ :ANON,
1212
+ :PNAME_NS,
1213
+ :PNAME_LN],
1214
+ :_triples_2 => [
1215
+ "["],
1216
+ :_triples_3 => [
1217
+ "a",
1218
+ :IRIREF,
1219
+ :PNAME_NS,
1220
+ :PNAME_LN],
1221
+ :_triples_4 => [
1222
+ "a",
1223
+ :IRIREF,
1224
+ :PNAME_NS,
1225
+ :PNAME_LN],
1226
+ :_triples_5 => [
1227
+ "a",
1228
+ :IRIREF,
1229
+ :PNAME_NS,
1230
+ :PNAME_LN],
1231
+ :_turtleDoc_1 => [
1232
+ "@prefix",
1233
+ "@base",
1234
+ :SPARQL_PREFIX,
1235
+ :SPARQL_BASE,
1236
+ "[",
1237
+ "(",
1238
+ :IRIREF,
1239
+ :BLANK_NODE_LABEL,
1240
+ :ANON,
1241
+ :PNAME_NS,
1242
+ :PNAME_LN],
1243
+ :_turtleDoc_2 => [
1244
+ "@prefix",
1245
+ "@base",
1246
+ :SPARQL_PREFIX,
1247
+ :SPARQL_BASE,
1248
+ "[",
1249
+ "(",
1250
+ :IRIREF,
1251
+ :BLANK_NODE_LABEL,
1252
+ :ANON,
1253
+ :PNAME_NS,
1254
+ :PNAME_LN],
1255
+ :base => [
1256
+ "@base"],
1257
+ :blankNodePropertyList => [
1258
+ "["],
1259
+ :collection => [
1260
+ "("],
1261
+ :directive => [
1262
+ "@prefix",
1263
+ "@base",
1264
+ :SPARQL_PREFIX,
1265
+ :SPARQL_BASE],
1266
+ :iri => [
1267
+ :IRIREF,
1268
+ :PNAME_NS,
1269
+ :PNAME_LN],
1270
+ :literal => [
1271
+ :INTEGER,
1272
+ :DECIMAL,
1273
+ :DOUBLE,
1274
+ "true",
1275
+ "false",
1276
+ :STRING_LITERAL_QUOTE,
1277
+ :STRING_LITERAL_SINGLE_QUOTE,
1278
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1279
+ :STRING_LITERAL_LONG_QUOTE],
1280
+ :object => [
1281
+ "[",
1282
+ "(",
1283
+ :IRIREF,
1284
+ :BLANK_NODE_LABEL,
1285
+ :ANON,
1286
+ :INTEGER,
1287
+ :DECIMAL,
1288
+ :DOUBLE,
1289
+ "true",
1290
+ "false",
1291
+ :PNAME_NS,
1292
+ :PNAME_LN,
1293
+ :STRING_LITERAL_QUOTE,
1294
+ :STRING_LITERAL_SINGLE_QUOTE,
1295
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1296
+ :STRING_LITERAL_LONG_QUOTE],
1297
+ :objectList => [
1298
+ "[",
1299
+ "(",
1300
+ :IRIREF,
1301
+ :BLANK_NODE_LABEL,
1302
+ :ANON,
1303
+ :INTEGER,
1304
+ :DECIMAL,
1305
+ :DOUBLE,
1306
+ "true",
1307
+ "false",
1308
+ :PNAME_NS,
1309
+ :PNAME_LN,
1310
+ :STRING_LITERAL_QUOTE,
1311
+ :STRING_LITERAL_SINGLE_QUOTE,
1312
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1313
+ :STRING_LITERAL_LONG_QUOTE],
1314
+ :predicate => [
1315
+ :IRIREF,
1316
+ :PNAME_NS,
1317
+ :PNAME_LN],
1318
+ :predicateObjectList => [
1319
+ "a",
1320
+ :IRIREF,
1321
+ :PNAME_NS,
1322
+ :PNAME_LN],
1323
+ :prefixID => [
1324
+ "@prefix"],
1325
+ :sparqlBase => [
1326
+ :SPARQL_BASE],
1327
+ :sparqlPrefix => [
1328
+ :SPARQL_PREFIX],
1329
+ :statement => [
1330
+ "@prefix",
1331
+ "@base",
1332
+ :SPARQL_PREFIX,
1333
+ :SPARQL_BASE,
1334
+ "[",
1335
+ "(",
1336
+ :IRIREF,
1337
+ :BLANK_NODE_LABEL,
1338
+ :ANON,
1339
+ :PNAME_NS,
1340
+ :PNAME_LN],
1341
+ :subject => [
1342
+ "(",
1343
+ :IRIREF,
1344
+ :BLANK_NODE_LABEL,
1345
+ :ANON,
1346
+ :PNAME_NS,
1347
+ :PNAME_LN],
1348
+ :triples => [
1349
+ "[",
1350
+ "(",
1351
+ :IRIREF,
1352
+ :BLANK_NODE_LABEL,
1353
+ :ANON,
1354
+ :PNAME_NS,
1355
+ :PNAME_LN],
1356
+ :turtleDoc => [
1357
+ "@prefix",
1358
+ "@base",
1359
+ :SPARQL_PREFIX,
1360
+ :SPARQL_BASE,
1361
+ "[",
1362
+ "(",
1363
+ :IRIREF,
1364
+ :BLANK_NODE_LABEL,
1365
+ :ANON,
1366
+ :PNAME_NS,
1367
+ :PNAME_LN],
1368
+ :verb => [
1369
+ "a",
1370
+ :IRIREF,
1371
+ :PNAME_NS,
1372
+ :PNAME_LN],
1373
+ }.freeze
1374
+ end
1375
+