rdf-trig 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +15 -0
  2. data/VERSION +1 -1
  3. data/lib/rdf/trig/meta.rb +459 -549
  4. data/lib/rdf/trig/reader.rb +18 -37
  5. metadata +11 -36
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDA3NjJmMDc1ZGIyYjJiZTczOTNkZjdkYjEyZWVjMDlmNWMyMGI2MA==
5
+ data.tar.gz: !binary |-
6
+ ZmQ1OTM5MGExOTYxNzc1NTQwN2Y1YTRhMTJkZTk3MDc1YWViNmQyYQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NzI2YzNmYTczZGI3ZDNhNGNmNDdmZTA0ZDIyNzFjNjJkOTJhMjc0MTNjYWVh
10
+ ZjMzYTZlMzZkMmEyZmQ5YmU1OTE4MDc5MTI4MGUxNTdhODQ0ZGYxZjk0MjBi
11
+ NjZmOTNlNmI4ZTg4ZjgyMWNhN2M2MDMwMmJiMTNjZWU2NjBjNDg=
12
+ data.tar.gz: !binary |-
13
+ OGZhYjUwNTlmN2Q1Nzg0MTBjZDQ1YWJhNjllZWMwMTAzNmY3YzEyMGY2NTky
14
+ YzQ2OTBiM2Y2ZjEwYzAyMGM5NmEwZTdjMmIzMmNiYzU3ZjQ4ODRkNzE2NThj
15
+ MjhhZWRkYmU4MTkzYmEwMzc0ZGE4YjU5YmJiY2U0OGM2M2UxY2U=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -1,4 +1,4 @@
1
- # This file is automatically generated by /Users/gregg/.rvm/gems/ruby-1.9.3-p374/gems/ebnf-0.2.1/bin/ebnf
1
+ # This file is automatically generated by /Users/gregg/.rvm/gems/ruby-1.9.3-p429/gems/ebnf-0.3.0/bin/ebnf
2
2
  # BRANCH derived from etc/trig.bnf
3
3
  module RDF::TriG::Meta
4
4
  START = :trigDoc
@@ -51,6 +51,7 @@ module RDF::TriG::Meta
51
51
  "^^" => [:_RDFLiteral_2],
52
52
  "false" => [],
53
53
  "true" => [],
54
+ "}" => [],
54
55
  },
55
56
  :_RDFLiteral_2 => {
56
57
  :LANGTAG => [:LANGTAG],
@@ -66,12 +67,18 @@ module RDF::TriG::Meta
66
67
  :STRING_LITERAL_SINGLE_QUOTE => [:STRING_LITERAL_SINGLE_QUOTE],
67
68
  },
68
69
  :base => {
69
- "@base" => ["@base", :IRIREF, "."],
70
+ :BASE => [:BASE, :IRIREF, :_base_1],
70
71
  },
71
- :blank => {
72
- "(" => [:collection],
73
- :ANON => [:BlankNode],
74
- :BLANK_NODE_LABEL => [:BlankNode],
72
+ :_base_1 => {
73
+ "." => ["."],
74
+ :ANON => [],
75
+ :BASE => [],
76
+ :BLANK_NODE_LABEL => [],
77
+ :IRIREF => [],
78
+ :PNAME_LN => [],
79
+ :PNAME_NS => [],
80
+ :PREFIX => [],
81
+ "{" => [],
75
82
  },
76
83
  :blankNodePropertyList => {
77
84
  "[" => ["[", :predicateObjectList, "]"],
@@ -117,94 +124,50 @@ module RDF::TriG::Meta
117
124
  "true" => [:object, :_collection_1],
118
125
  },
119
126
  :directive => {
120
- "@base" => [:base],
121
- "@prefix" => [:prefixID],
122
- :SPARQL_BASE => [:sparqlBase],
123
- :SPARQL_PREFIX => [:sparqlPrefix],
127
+ :BASE => [:base],
128
+ :PREFIX => [:prefixID],
124
129
  },
125
130
  :graph => {
126
- :IRIREF => [:_graph_1],
127
- :PNAME_LN => [:_graph_1],
128
- :PNAME_NS => [:_graph_1],
129
- "{" => [:_graph_2],
131
+ :ANON => [:_graph_1, "{", :_graph_2, "}"],
132
+ :BLANK_NODE_LABEL => [:_graph_1, "{", :_graph_2, "}"],
133
+ :IRIREF => [:_graph_1, "{", :_graph_2, "}"],
134
+ :PNAME_LN => [:_graph_1, "{", :_graph_2, "}"],
135
+ :PNAME_NS => [:_graph_1, "{", :_graph_2, "}"],
136
+ "{" => [:_graph_1, "{", :_graph_2, "}"],
130
137
  },
131
- :graphIri => {
138
+ :graphName => {
139
+ :ANON => [:BlankNode],
140
+ :BLANK_NODE_LABEL => [:BlankNode],
132
141
  :IRIREF => [:iri],
133
142
  :PNAME_LN => [:iri],
134
143
  :PNAME_NS => [:iri],
135
144
  },
136
145
  :_graph_1 => {
137
- :IRIREF => [:graphIri, "{", :_graph_3, "}"],
138
- :PNAME_LN => [:graphIri, "{", :_graph_3, "}"],
139
- :PNAME_NS => [:graphIri, "{", :_graph_3, "}"],
146
+ :ANON => [:graphName],
147
+ :BLANK_NODE_LABEL => [:graphName],
148
+ :IRIREF => [:graphName],
149
+ :PNAME_LN => [:graphName],
150
+ :PNAME_NS => [:graphName],
151
+ "{" => [],
140
152
  },
141
153
  :_graph_2 => {
142
- "{" => ["{", :_graph_6, "}"],
143
- },
144
- :_graph_3 => {
145
- "(" => [:_graph_5],
146
- :ANON => [:_graph_5],
147
- :BLANK_NODE_LABEL => [:_graph_5],
148
- :IRIREF => [:_graph_5],
149
- :PNAME_LN => [:_graph_5],
150
- :PNAME_NS => [:_graph_5],
151
- "[" => [:_graph_5],
152
- "}" => [],
153
- },
154
- :_graph_4 => {
155
- "(" => [:triples, "."],
156
- :ANON => [:triples, "."],
157
- :BLANK_NODE_LABEL => [:triples, "."],
158
- :IRIREF => [:triples, "."],
159
- :PNAME_LN => [:triples, "."],
160
- :PNAME_NS => [:triples, "."],
161
- "[" => [:triples, "."],
162
- },
163
- :_graph_5 => {
164
- "(" => [:_graph_4, :_graph_3],
165
- :ANON => [:_graph_4, :_graph_3],
166
- :BLANK_NODE_LABEL => [:_graph_4, :_graph_3],
167
- :IRIREF => [:_graph_4, :_graph_3],
168
- :PNAME_LN => [:_graph_4, :_graph_3],
169
- :PNAME_NS => [:_graph_4, :_graph_3],
170
- "[" => [:_graph_4, :_graph_3],
171
- },
172
- :_graph_6 => {
173
- "(" => [:_graph_8],
174
- :ANON => [:_graph_8],
175
- :BLANK_NODE_LABEL => [:_graph_8],
176
- :IRIREF => [:_graph_8],
177
- :PNAME_LN => [:_graph_8],
178
- :PNAME_NS => [:_graph_8],
179
- "[" => [:_graph_8],
154
+ "(" => [:triplesBlock],
155
+ :ANON => [:triplesBlock],
156
+ :BLANK_NODE_LABEL => [:triplesBlock],
157
+ :IRIREF => [:triplesBlock],
158
+ :PNAME_LN => [:triplesBlock],
159
+ :PNAME_NS => [:triplesBlock],
160
+ "[" => [:triplesBlock],
180
161
  "}" => [],
181
162
  },
182
- :_graph_7 => {
183
- "(" => [:triples, "."],
184
- :ANON => [:triples, "."],
185
- :BLANK_NODE_LABEL => [:triples, "."],
186
- :IRIREF => [:triples, "."],
187
- :PNAME_LN => [:triples, "."],
188
- :PNAME_NS => [:triples, "."],
189
- "[" => [:triples, "."],
190
- },
191
- :_graph_8 => {
192
- "(" => [:_graph_7, :_graph_6],
193
- :ANON => [:_graph_7, :_graph_6],
194
- :BLANK_NODE_LABEL => [:_graph_7, :_graph_6],
195
- :IRIREF => [:_graph_7, :_graph_6],
196
- :PNAME_LN => [:_graph_7, :_graph_6],
197
- :PNAME_NS => [:_graph_7, :_graph_6],
198
- "[" => [:_graph_7, :_graph_6],
199
- },
200
163
  :graph_statement => {
201
- "@base" => [:directive],
202
- "@prefix" => [:directive],
164
+ :ANON => [:graph],
165
+ :BASE => [:directive],
166
+ :BLANK_NODE_LABEL => [:graph],
203
167
  :IRIREF => [:graph],
204
168
  :PNAME_LN => [:graph],
205
169
  :PNAME_NS => [:graph],
206
- :SPARQL_BASE => [:directive],
207
- :SPARQL_PREFIX => [:directive],
170
+ :PREFIX => [:directive],
208
171
  "{" => [:graph],
209
172
  },
210
173
  :iri => {
@@ -224,9 +187,9 @@ module RDF::TriG::Meta
224
187
  "true" => [:BooleanLiteral],
225
188
  },
226
189
  :object => {
227
- "(" => [:blank],
228
- :ANON => [:blank],
229
- :BLANK_NODE_LABEL => [:blank],
190
+ "(" => [:collection],
191
+ :ANON => [:BlankNode],
192
+ :BLANK_NODE_LABEL => [:BlankNode],
230
193
  :DECIMAL => [:literal],
231
194
  :DOUBLE => [:literal],
232
195
  :INTEGER => [:literal],
@@ -264,6 +227,7 @@ module RDF::TriG::Meta
264
227
  "." => [],
265
228
  ";" => [],
266
229
  "]" => [],
230
+ "}" => [],
267
231
  },
268
232
  :_objectList_2 => {
269
233
  "," => [",", :object],
@@ -286,6 +250,7 @@ module RDF::TriG::Meta
286
250
  "." => [],
287
251
  ";" => [:_predicateObjectList_3],
288
252
  "]" => [],
253
+ "}" => [],
289
254
  },
290
255
  :_predicateObjectList_2 => {
291
256
  ";" => [";", :_predicateObjectList_4],
@@ -301,6 +266,7 @@ module RDF::TriG::Meta
301
266
  :PNAME_NS => [:_predicateObjectList_5],
302
267
  "]" => [],
303
268
  "a" => [:_predicateObjectList_5],
269
+ "}" => [],
304
270
  },
305
271
  :_predicateObjectList_5 => {
306
272
  :IRIREF => [:verb, :objectList],
@@ -309,40 +275,45 @@ module RDF::TriG::Meta
309
275
  "a" => [:verb, :objectList],
310
276
  },
311
277
  :prefixID => {
312
- "@prefix" => ["@prefix", :PNAME_NS, :IRIREF, "."],
278
+ :PREFIX => [:PREFIX, :PNAME_NS, :IRIREF, :_prefixID_1],
313
279
  },
314
- :sparqlBase => {
315
- :SPARQL_BASE => [:SPARQL_BASE, :IRIREF],
316
- },
317
- :sparqlPrefix => {
318
- :SPARQL_PREFIX => [:SPARQL_PREFIX, :PNAME_NS, :IRIREF],
280
+ :_prefixID_1 => {
281
+ "." => ["."],
282
+ :ANON => [],
283
+ :BASE => [],
284
+ :BLANK_NODE_LABEL => [],
285
+ :IRIREF => [],
286
+ :PNAME_LN => [],
287
+ :PNAME_NS => [],
288
+ :PREFIX => [],
289
+ "{" => [],
319
290
  },
320
291
  :subject => {
321
- "(" => [:blank],
322
- :ANON => [:blank],
323
- :BLANK_NODE_LABEL => [:blank],
292
+ "(" => [:collection],
293
+ :ANON => [:BlankNode],
294
+ :BLANK_NODE_LABEL => [:BlankNode],
324
295
  :IRIREF => [:iri],
325
296
  :PNAME_LN => [:iri],
326
297
  :PNAME_NS => [:iri],
327
298
  },
328
299
  :trigDoc => {
329
- "@base" => [:_trigDoc_1],
330
- "@prefix" => [:_trigDoc_1],
300
+ :ANON => [:_trigDoc_1],
301
+ :BASE => [:_trigDoc_1],
302
+ :BLANK_NODE_LABEL => [:_trigDoc_1],
331
303
  :IRIREF => [:_trigDoc_1],
332
304
  :PNAME_LN => [:_trigDoc_1],
333
305
  :PNAME_NS => [:_trigDoc_1],
334
- :SPARQL_BASE => [:_trigDoc_1],
335
- :SPARQL_PREFIX => [:_trigDoc_1],
306
+ :PREFIX => [:_trigDoc_1],
336
307
  "{" => [:_trigDoc_1],
337
308
  },
338
309
  :_trigDoc_1 => {
339
- "@base" => [:graph_statement, :trigDoc],
340
- "@prefix" => [:graph_statement, :trigDoc],
310
+ :ANON => [:graph_statement, :trigDoc],
311
+ :BASE => [:graph_statement, :trigDoc],
312
+ :BLANK_NODE_LABEL => [:graph_statement, :trigDoc],
341
313
  :IRIREF => [:graph_statement, :trigDoc],
342
314
  :PNAME_LN => [:graph_statement, :trigDoc],
343
315
  :PNAME_NS => [:graph_statement, :trigDoc],
344
- :SPARQL_BASE => [:graph_statement, :trigDoc],
345
- :SPARQL_PREFIX => [:graph_statement, :trigDoc],
316
+ :PREFIX => [:graph_statement, :trigDoc],
346
317
  "{" => [:graph_statement, :trigDoc],
347
318
  },
348
319
  :triples => {
@@ -354,6 +325,32 @@ module RDF::TriG::Meta
354
325
  :PNAME_NS => [:_triples_1],
355
326
  "[" => [:_triples_2],
356
327
  },
328
+ :triplesBlock => {
329
+ "(" => [:triples, :_triplesBlock_1],
330
+ :ANON => [:triples, :_triplesBlock_1],
331
+ :BLANK_NODE_LABEL => [:triples, :_triplesBlock_1],
332
+ :IRIREF => [:triples, :_triplesBlock_1],
333
+ :PNAME_LN => [:triples, :_triplesBlock_1],
334
+ :PNAME_NS => [:triples, :_triplesBlock_1],
335
+ "[" => [:triples, :_triplesBlock_1],
336
+ },
337
+ :_triplesBlock_1 => {
338
+ "." => [:_triplesBlock_2],
339
+ "}" => [],
340
+ },
341
+ :_triplesBlock_2 => {
342
+ "." => [".", :_triplesBlock_3],
343
+ },
344
+ :_triplesBlock_3 => {
345
+ "(" => [:triplesBlock],
346
+ :ANON => [:triplesBlock],
347
+ :BLANK_NODE_LABEL => [:triplesBlock],
348
+ :IRIREF => [:triplesBlock],
349
+ :PNAME_LN => [:triplesBlock],
350
+ :PNAME_NS => [:triplesBlock],
351
+ "[" => [:triplesBlock],
352
+ "}" => [],
353
+ },
357
354
  :_triples_1 => {
358
355
  "(" => [:subject, :predicateObjectList],
359
356
  :ANON => [:subject, :predicateObjectList],
@@ -371,6 +368,7 @@ module RDF::TriG::Meta
371
368
  :PNAME_LN => [:predicateObjectList],
372
369
  :PNAME_NS => [:predicateObjectList],
373
370
  "a" => [:predicateObjectList],
371
+ "}" => [],
374
372
  },
375
373
  :verb => {
376
374
  :IRIREF => [:predicate],
@@ -385,9 +383,8 @@ module RDF::TriG::Meta
385
383
  ",",
386
384
  ".",
387
385
  ";",
388
- "@base",
389
- "@prefix",
390
386
  :ANON,
387
+ :BASE,
391
388
  :BLANK_NODE_LABEL,
392
389
  :DECIMAL,
393
390
  :DOUBLE,
@@ -396,8 +393,7 @@ module RDF::TriG::Meta
396
393
  :LANGTAG,
397
394
  :PNAME_LN,
398
395
  :PNAME_NS,
399
- :SPARQL_BASE,
400
- :SPARQL_PREFIX,
396
+ :PREFIX,
401
397
  :STRING_LITERAL_LONG_QUOTE,
402
398
  :STRING_LITERAL_LONG_SINGLE_QUOTE,
403
399
  :STRING_LITERAL_QUOTE,
@@ -449,13 +445,15 @@ module RDF::TriG::Meta
449
445
  :STRING_LITERAL_LONG_SINGLE_QUOTE,
450
446
  :STRING_LITERAL_LONG_QUOTE],
451
447
  :base => [
452
- "@base"],
448
+ :BASE],
453
449
  :_base_1 => [
450
+ ".",
451
+ :_eps],
452
+ :_base_2 => [
454
453
  :IRIREF],
455
- :blank => [
456
- :BLANK_NODE_LABEL,
457
- :ANON,
458
- "("],
454
+ :_base_3 => [
455
+ ".",
456
+ :_eps],
459
457
  :blankNodePropertyList => [
460
458
  "["],
461
459
  :_blankNodePropertyList_1 => [
@@ -470,12 +468,12 @@ module RDF::TriG::Meta
470
468
  :_collection_1 => [
471
469
  :_eps,
472
470
  :IRIREF,
473
- "[",
474
- :PNAME_LN,
475
- :PNAME_NS,
476
471
  :BLANK_NODE_LABEL,
477
472
  :ANON,
478
473
  "(",
474
+ "[",
475
+ :PNAME_LN,
476
+ :PNAME_NS,
479
477
  :INTEGER,
480
478
  :DECIMAL,
481
479
  :DOUBLE,
@@ -487,12 +485,12 @@ module RDF::TriG::Meta
487
485
  :STRING_LITERAL_LONG_QUOTE],
488
486
  :_collection_2 => [
489
487
  :IRIREF,
490
- "[",
491
- :PNAME_LN,
492
- :PNAME_NS,
493
488
  :BLANK_NODE_LABEL,
494
489
  :ANON,
495
490
  "(",
491
+ "[",
492
+ :PNAME_LN,
493
+ :PNAME_NS,
496
494
  :INTEGER,
497
495
  :DECIMAL,
498
496
  :DOUBLE,
@@ -505,12 +503,12 @@ module RDF::TriG::Meta
505
503
  :_collection_3 => [
506
504
  ")",
507
505
  :IRIREF,
508
- "[",
509
- :PNAME_LN,
510
- :PNAME_NS,
511
506
  :BLANK_NODE_LABEL,
512
507
  :ANON,
513
508
  "(",
509
+ "[",
510
+ :PNAME_LN,
511
+ :PNAME_NS,
514
512
  :INTEGER,
515
513
  :DECIMAL,
516
514
  :DOUBLE,
@@ -523,12 +521,12 @@ module RDF::TriG::Meta
523
521
  :_collection_4 => [
524
522
  :_eps,
525
523
  :IRIREF,
526
- "[",
527
- :PNAME_LN,
528
- :PNAME_NS,
529
524
  :BLANK_NODE_LABEL,
530
525
  :ANON,
531
526
  "(",
527
+ "[",
528
+ :PNAME_LN,
529
+ :PNAME_NS,
532
530
  :INTEGER,
533
531
  :DECIMAL,
534
532
  :DOUBLE,
@@ -541,128 +539,59 @@ module RDF::TriG::Meta
541
539
  :_collection_5 => [
542
540
  ")"],
543
541
  :directive => [
544
- "@prefix",
545
- "@base",
546
- :SPARQL_PREFIX,
547
- :SPARQL_BASE],
542
+ :PREFIX,
543
+ :BASE],
548
544
  :_empty => [
549
545
  :_eps],
550
546
  :graph => [
551
547
  "{",
552
548
  :IRIREF,
549
+ :BLANK_NODE_LABEL,
550
+ :ANON,
553
551
  :PNAME_LN,
554
552
  :PNAME_NS],
555
- :graphIri => [
553
+ :graphName => [
556
554
  :IRIREF,
555
+ :BLANK_NODE_LABEL,
556
+ :ANON,
557
557
  :PNAME_LN,
558
558
  :PNAME_NS],
559
559
  :_graph_1 => [
560
- :IRIREF,
561
- :PNAME_LN,
562
- :PNAME_NS],
563
- :_graph_10 => [
564
560
  :_eps,
565
- "[",
566
561
  :IRIREF,
567
- :PNAME_LN,
568
- :PNAME_NS,
569
562
  :BLANK_NODE_LABEL,
570
563
  :ANON,
571
- "("],
572
- :_graph_11 => [
573
- "."],
574
- :_graph_12 => [
575
- "}",
576
- "[",
577
- :IRIREF,
578
564
  :PNAME_LN,
579
- :PNAME_NS,
580
- :BLANK_NODE_LABEL,
581
- :ANON,
582
- "("],
583
- :_graph_13 => [
565
+ :PNAME_NS],
566
+ :_graph_2 => [
584
567
  :_eps,
585
568
  "[",
586
569
  :IRIREF,
587
- :PNAME_LN,
588
- :PNAME_NS,
589
570
  :BLANK_NODE_LABEL,
590
571
  :ANON,
591
- "("],
592
- :_graph_14 => [
593
- "."],
594
- :_graph_15 => [
595
- "}",
596
- "[",
597
- :IRIREF,
572
+ "(",
598
573
  :PNAME_LN,
599
- :PNAME_NS,
600
- :BLANK_NODE_LABEL,
601
- :ANON,
602
- "("],
603
- :_graph_16 => [
604
- "}"],
605
- :_graph_2 => [
606
- "{"],
574
+ :PNAME_NS],
607
575
  :_graph_3 => [
608
- :_eps,
609
- "[",
610
- :IRIREF,
611
- :PNAME_LN,
612
- :PNAME_NS,
613
- :BLANK_NODE_LABEL,
614
- :ANON,
615
- "("],
576
+ "{"],
616
577
  :_graph_4 => [
578
+ "}",
617
579
  "[",
618
580
  :IRIREF,
619
- :PNAME_LN,
620
- :PNAME_NS,
621
- :BLANK_NODE_LABEL,
622
- :ANON,
623
- "("],
624
- :_graph_5 => [
625
- "[",
626
- :IRIREF,
627
- :PNAME_LN,
628
- :PNAME_NS,
629
- :BLANK_NODE_LABEL,
630
- :ANON,
631
- "("],
632
- :_graph_6 => [
633
- :_eps,
634
- "[",
635
- :IRIREF,
636
- :PNAME_LN,
637
- :PNAME_NS,
638
- :BLANK_NODE_LABEL,
639
- :ANON,
640
- "("],
641
- :_graph_7 => [
642
- "[",
643
- :IRIREF,
644
- :PNAME_LN,
645
- :PNAME_NS,
646
581
  :BLANK_NODE_LABEL,
647
582
  :ANON,
648
- "("],
649
- :_graph_8 => [
650
- "[",
651
- :IRIREF,
583
+ "(",
652
584
  :PNAME_LN,
653
- :PNAME_NS,
654
- :BLANK_NODE_LABEL,
655
- :ANON,
656
- "("],
657
- :_graph_9 => [
658
- "{"],
585
+ :PNAME_NS],
586
+ :_graph_5 => [
587
+ "}"],
659
588
  :graph_statement => [
660
- "@prefix",
661
- "@base",
662
- :SPARQL_PREFIX,
663
- :SPARQL_BASE,
589
+ :PREFIX,
590
+ :BASE,
664
591
  "{",
665
592
  :IRIREF,
593
+ :BLANK_NODE_LABEL,
594
+ :ANON,
666
595
  :PNAME_LN,
667
596
  :PNAME_NS],
668
597
  :iri => [
@@ -681,12 +610,12 @@ module RDF::TriG::Meta
681
610
  :STRING_LITERAL_LONG_QUOTE],
682
611
  :object => [
683
612
  :IRIREF,
684
- "[",
685
- :PNAME_LN,
686
- :PNAME_NS,
687
613
  :BLANK_NODE_LABEL,
688
614
  :ANON,
689
615
  "(",
616
+ "[",
617
+ :PNAME_LN,
618
+ :PNAME_NS,
690
619
  :INTEGER,
691
620
  :DECIMAL,
692
621
  :DOUBLE,
@@ -698,12 +627,12 @@ module RDF::TriG::Meta
698
627
  :STRING_LITERAL_LONG_QUOTE],
699
628
  :objectList => [
700
629
  :IRIREF,
701
- "[",
702
- :PNAME_LN,
703
- :PNAME_NS,
704
630
  :BLANK_NODE_LABEL,
705
631
  :ANON,
706
632
  "(",
633
+ "[",
634
+ :PNAME_LN,
635
+ :PNAME_NS,
707
636
  :INTEGER,
708
637
  :DECIMAL,
709
638
  :DOUBLE,
@@ -728,12 +657,12 @@ module RDF::TriG::Meta
728
657
  ","],
729
658
  :_objectList_6 => [
730
659
  :IRIREF,
731
- "[",
732
- :PNAME_LN,
733
- :PNAME_NS,
734
660
  :BLANK_NODE_LABEL,
735
661
  :ANON,
736
662
  "(",
663
+ "[",
664
+ :PNAME_LN,
665
+ :PNAME_NS,
737
666
  :INTEGER,
738
667
  :DECIMAL,
739
668
  :DOUBLE,
@@ -772,12 +701,12 @@ module RDF::TriG::Meta
772
701
  :PNAME_NS],
773
702
  :_predicateObjectList_6 => [
774
703
  :IRIREF,
775
- "[",
776
- :PNAME_LN,
777
- :PNAME_NS,
778
704
  :BLANK_NODE_LABEL,
779
705
  :ANON,
780
706
  "(",
707
+ "[",
708
+ :PNAME_LN,
709
+ :PNAME_NS,
781
710
  :INTEGER,
782
711
  :DECIMAL,
783
712
  :DOUBLE,
@@ -798,12 +727,12 @@ module RDF::TriG::Meta
798
727
  :PNAME_NS],
799
728
  :_predicateObjectList_9 => [
800
729
  :IRIREF,
801
- "[",
802
- :PNAME_LN,
803
- :PNAME_NS,
804
730
  :BLANK_NODE_LABEL,
805
731
  :ANON,
806
732
  "(",
733
+ "[",
734
+ :PNAME_LN,
735
+ :PNAME_NS,
807
736
  :INTEGER,
808
737
  :DECIMAL,
809
738
  :DOUBLE,
@@ -814,68 +743,102 @@ module RDF::TriG::Meta
814
743
  :STRING_LITERAL_LONG_SINGLE_QUOTE,
815
744
  :STRING_LITERAL_LONG_QUOTE],
816
745
  :prefixID => [
817
- "@prefix"],
746
+ :PREFIX],
818
747
  :_prefixID_1 => [
748
+ ".",
749
+ :_eps],
750
+ :_prefixID_2 => [
819
751
  :PNAME_NS],
820
- :sparqlBase => [
821
- :SPARQL_BASE],
822
- :_sparqlBase_1 => [
752
+ :_prefixID_3 => [
823
753
  :IRIREF],
824
- :sparqlPrefix => [
825
- :SPARQL_PREFIX],
826
- :_sparqlPrefix_1 => [
827
- :PNAME_NS],
754
+ :_prefixID_4 => [
755
+ ".",
756
+ :_eps],
828
757
  :subject => [
829
758
  :IRIREF,
830
- :PNAME_LN,
831
- :PNAME_NS,
832
759
  :BLANK_NODE_LABEL,
833
760
  :ANON,
834
- "("],
761
+ "(",
762
+ :PNAME_LN,
763
+ :PNAME_NS],
835
764
  :trigDoc => [
836
765
  :_eps,
837
- "@prefix",
838
- "@base",
839
- :SPARQL_PREFIX,
840
- :SPARQL_BASE,
766
+ :PREFIX,
767
+ :BASE,
841
768
  "{",
842
769
  :IRIREF,
770
+ :BLANK_NODE_LABEL,
771
+ :ANON,
843
772
  :PNAME_LN,
844
773
  :PNAME_NS],
845
774
  :_trigDoc_1 => [
846
- "@prefix",
847
- "@base",
848
- :SPARQL_PREFIX,
849
- :SPARQL_BASE,
775
+ :PREFIX,
776
+ :BASE,
850
777
  "{",
851
778
  :IRIREF,
779
+ :BLANK_NODE_LABEL,
780
+ :ANON,
852
781
  :PNAME_LN,
853
782
  :PNAME_NS],
854
783
  :_trigDoc_2 => [
855
784
  :_eps,
856
- "@prefix",
857
- "@base",
858
- :SPARQL_PREFIX,
859
- :SPARQL_BASE,
785
+ :PREFIX,
786
+ :BASE,
860
787
  "{",
861
788
  :IRIREF,
789
+ :BLANK_NODE_LABEL,
790
+ :ANON,
862
791
  :PNAME_LN,
863
792
  :PNAME_NS],
864
793
  :triples => [
865
794
  "[",
866
795
  :IRIREF,
796
+ :BLANK_NODE_LABEL,
797
+ :ANON,
798
+ "(",
867
799
  :PNAME_LN,
868
- :PNAME_NS,
800
+ :PNAME_NS],
801
+ :triplesBlock => [
802
+ "[",
803
+ :IRIREF,
869
804
  :BLANK_NODE_LABEL,
870
805
  :ANON,
871
- "("],
872
- :_triples_1 => [
806
+ "(",
807
+ :PNAME_LN,
808
+ :PNAME_NS],
809
+ :_triplesBlock_1 => [
810
+ :_eps,
811
+ "."],
812
+ :_triplesBlock_2 => [
813
+ "."],
814
+ :_triplesBlock_3 => [
815
+ :_eps,
816
+ "[",
817
+ :IRIREF,
818
+ :BLANK_NODE_LABEL,
819
+ :ANON,
820
+ "(",
821
+ :PNAME_LN,
822
+ :PNAME_NS],
823
+ :_triplesBlock_4 => [
824
+ ".",
825
+ :_eps],
826
+ :_triplesBlock_5 => [
827
+ :_eps,
828
+ "[",
873
829
  :IRIREF,
830
+ :BLANK_NODE_LABEL,
831
+ :ANON,
832
+ "(",
874
833
  :PNAME_LN,
875
- :PNAME_NS,
834
+ :PNAME_NS],
835
+ :_triples_1 => [
836
+ :IRIREF,
876
837
  :BLANK_NODE_LABEL,
877
838
  :ANON,
878
- "("],
839
+ "(",
840
+ :PNAME_LN,
841
+ :PNAME_NS],
879
842
  :_triples_2 => [
880
843
  "["],
881
844
  :_triples_3 => [
@@ -903,19 +866,21 @@ module RDF::TriG::Meta
903
866
  }.freeze
904
867
  FOLLOW = {
905
868
  :BlankNode => [
869
+ "{",
906
870
  "a",
907
871
  ")",
908
872
  ",",
909
- ".",
910
873
  "]",
911
874
  :IRIREF,
875
+ :BLANK_NODE_LABEL,
876
+ :ANON,
877
+ "(",
912
878
  "[",
913
879
  ";",
880
+ ".",
881
+ "}",
914
882
  :PNAME_LN,
915
883
  :PNAME_NS,
916
- :BLANK_NODE_LABEL,
917
- :ANON,
918
- "(",
919
884
  :INTEGER,
920
885
  :DECIMAL,
921
886
  :DOUBLE,
@@ -928,16 +893,17 @@ module RDF::TriG::Meta
928
893
  :BooleanLiteral => [
929
894
  ")",
930
895
  ",",
931
- ".",
932
896
  "]",
933
897
  :IRIREF,
898
+ :BLANK_NODE_LABEL,
899
+ :ANON,
900
+ "(",
934
901
  "[",
935
902
  ";",
903
+ ".",
904
+ "}",
936
905
  :PNAME_LN,
937
906
  :PNAME_NS,
938
- :BLANK_NODE_LABEL,
939
- :ANON,
940
- "(",
941
907
  :INTEGER,
942
908
  :DECIMAL,
943
909
  :DOUBLE,
@@ -950,16 +916,17 @@ module RDF::TriG::Meta
950
916
  :NumericLiteral => [
951
917
  ")",
952
918
  ",",
953
- ".",
954
919
  "]",
955
920
  :IRIREF,
921
+ :BLANK_NODE_LABEL,
922
+ :ANON,
923
+ "(",
956
924
  "[",
957
925
  ";",
926
+ ".",
927
+ "}",
958
928
  :PNAME_LN,
959
929
  :PNAME_NS,
960
- :BLANK_NODE_LABEL,
961
- :ANON,
962
- "(",
963
930
  :INTEGER,
964
931
  :DECIMAL,
965
932
  :DOUBLE,
@@ -973,22 +940,23 @@ module RDF::TriG::Meta
973
940
  "{",
974
941
  "a",
975
942
  :IRIREF,
943
+ :BLANK_NODE_LABEL,
944
+ :ANON,
945
+ "(",
976
946
  "[",
977
947
  ")",
978
948
  ",",
979
- ".",
980
949
  "]",
981
950
  :PNAME_LN,
982
951
  :PNAME_NS,
983
- :BLANK_NODE_LABEL,
984
- :ANON,
985
- "(",
986
952
  :INTEGER,
987
953
  :DECIMAL,
988
954
  :DOUBLE,
989
955
  "true",
990
956
  "false",
991
957
  ";",
958
+ ".",
959
+ "}",
992
960
  :STRING_LITERAL_QUOTE,
993
961
  :STRING_LITERAL_SINGLE_QUOTE,
994
962
  :STRING_LITERAL_LONG_SINGLE_QUOTE,
@@ -996,16 +964,17 @@ module RDF::TriG::Meta
996
964
  :RDFLiteral => [
997
965
  ")",
998
966
  ",",
999
- ".",
1000
967
  "]",
1001
968
  :IRIREF,
969
+ :BLANK_NODE_LABEL,
970
+ :ANON,
971
+ "(",
1002
972
  "[",
1003
973
  ";",
974
+ ".",
975
+ "}",
1004
976
  :PNAME_LN,
1005
977
  :PNAME_NS,
1006
- :BLANK_NODE_LABEL,
1007
- :ANON,
1008
- "(",
1009
978
  :INTEGER,
1010
979
  :DECIMAL,
1011
980
  :DOUBLE,
@@ -1018,16 +987,17 @@ module RDF::TriG::Meta
1018
987
  :_RDFLiteral_1 => [
1019
988
  ")",
1020
989
  ",",
1021
- ".",
1022
990
  "]",
1023
991
  :IRIREF,
992
+ :BLANK_NODE_LABEL,
993
+ :ANON,
994
+ "(",
1024
995
  "[",
1025
996
  ";",
997
+ ".",
998
+ "}",
1026
999
  :PNAME_LN,
1027
1000
  :PNAME_NS,
1028
- :BLANK_NODE_LABEL,
1029
- :ANON,
1030
- "(",
1031
1001
  :INTEGER,
1032
1002
  :DECIMAL,
1033
1003
  :DOUBLE,
@@ -1040,16 +1010,17 @@ module RDF::TriG::Meta
1040
1010
  :_RDFLiteral_2 => [
1041
1011
  ")",
1042
1012
  ",",
1043
- ".",
1044
1013
  "]",
1045
1014
  :IRIREF,
1015
+ :BLANK_NODE_LABEL,
1016
+ :ANON,
1017
+ "(",
1046
1018
  "[",
1047
1019
  ";",
1020
+ ".",
1021
+ "}",
1048
1022
  :PNAME_LN,
1049
1023
  :PNAME_NS,
1050
- :BLANK_NODE_LABEL,
1051
- :ANON,
1052
- "(",
1053
1024
  :INTEGER,
1054
1025
  :DECIMAL,
1055
1026
  :DOUBLE,
@@ -1062,16 +1033,17 @@ module RDF::TriG::Meta
1062
1033
  :_RDFLiteral_3 => [
1063
1034
  ")",
1064
1035
  ",",
1065
- ".",
1066
1036
  "]",
1067
1037
  :IRIREF,
1038
+ :BLANK_NODE_LABEL,
1039
+ :ANON,
1040
+ "(",
1068
1041
  "[",
1069
1042
  ";",
1043
+ ".",
1044
+ "}",
1070
1045
  :PNAME_LN,
1071
1046
  :PNAME_NS,
1072
- :BLANK_NODE_LABEL,
1073
- :ANON,
1074
- "(",
1075
1047
  :INTEGER,
1076
1048
  :DECIMAL,
1077
1049
  :DOUBLE,
@@ -1084,16 +1056,17 @@ module RDF::TriG::Meta
1084
1056
  :_RDFLiteral_4 => [
1085
1057
  ")",
1086
1058
  ",",
1087
- ".",
1088
1059
  "]",
1089
1060
  :IRIREF,
1061
+ :BLANK_NODE_LABEL,
1062
+ :ANON,
1063
+ "(",
1090
1064
  "[",
1091
1065
  ";",
1066
+ ".",
1067
+ "}",
1092
1068
  :PNAME_LN,
1093
1069
  :PNAME_NS,
1094
- :BLANK_NODE_LABEL,
1095
- :ANON,
1096
- "(",
1097
1070
  :INTEGER,
1098
1071
  :DECIMAL,
1099
1072
  :DOUBLE,
@@ -1108,16 +1081,17 @@ module RDF::TriG::Meta
1108
1081
  "^^",
1109
1082
  ")",
1110
1083
  ",",
1111
- ".",
1112
1084
  "]",
1113
1085
  :IRIREF,
1086
+ :BLANK_NODE_LABEL,
1087
+ :ANON,
1088
+ "(",
1114
1089
  "[",
1115
1090
  ";",
1091
+ ".",
1092
+ "}",
1116
1093
  :PNAME_LN,
1117
1094
  :PNAME_NS,
1118
- :BLANK_NODE_LABEL,
1119
- :ANON,
1120
- "(",
1121
1095
  :INTEGER,
1122
1096
  :DECIMAL,
1123
1097
  :DOUBLE,
@@ -1129,61 +1103,59 @@ module RDF::TriG::Meta
1129
1103
  :STRING_LITERAL_LONG_QUOTE],
1130
1104
  :base => [
1131
1105
  :_eof,
1132
- "@prefix",
1133
- "@base",
1134
- :SPARQL_PREFIX,
1135
- :SPARQL_BASE,
1106
+ :PREFIX,
1107
+ :BASE,
1136
1108
  "{",
1137
1109
  :IRIREF,
1110
+ :BLANK_NODE_LABEL,
1111
+ :ANON,
1138
1112
  :PNAME_LN,
1139
1113
  :PNAME_NS],
1140
1114
  :_base_1 => [
1141
1115
  :_eof,
1142
- "@prefix",
1143
- "@base",
1144
- :SPARQL_PREFIX,
1145
- :SPARQL_BASE,
1116
+ :PREFIX,
1117
+ :BASE,
1146
1118
  "{",
1147
1119
  :IRIREF,
1120
+ :BLANK_NODE_LABEL,
1121
+ :ANON,
1148
1122
  :PNAME_LN,
1149
1123
  :PNAME_NS],
1150
- :blank => [
1151
- "a",
1152
- ")",
1153
- ",",
1154
- ".",
1155
- "]",
1124
+ :_base_2 => [
1125
+ :_eof,
1126
+ :PREFIX,
1127
+ :BASE,
1128
+ "{",
1156
1129
  :IRIREF,
1157
- "[",
1158
- ";",
1130
+ :BLANK_NODE_LABEL,
1131
+ :ANON,
1159
1132
  :PNAME_LN,
1160
- :PNAME_NS,
1133
+ :PNAME_NS],
1134
+ :_base_3 => [
1135
+ :_eof,
1136
+ :PREFIX,
1137
+ :BASE,
1138
+ "{",
1139
+ :IRIREF,
1161
1140
  :BLANK_NODE_LABEL,
1162
1141
  :ANON,
1163
- "(",
1164
- :INTEGER,
1165
- :DECIMAL,
1166
- :DOUBLE,
1167
- "true",
1168
- "false",
1169
- :STRING_LITERAL_QUOTE,
1170
- :STRING_LITERAL_SINGLE_QUOTE,
1171
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1172
- :STRING_LITERAL_LONG_QUOTE],
1142
+ :PNAME_LN,
1143
+ :PNAME_NS],
1173
1144
  :blankNodePropertyList => [
1174
1145
  ".",
1146
+ "}",
1175
1147
  "a",
1176
1148
  ")",
1177
1149
  ",",
1178
1150
  "]",
1179
1151
  :IRIREF,
1152
+ :BLANK_NODE_LABEL,
1153
+ :ANON,
1154
+ "(",
1180
1155
  "[",
1181
1156
  ";",
1182
1157
  :PNAME_LN,
1183
1158
  :PNAME_NS,
1184
- :BLANK_NODE_LABEL,
1185
- :ANON,
1186
- "(",
1187
1159
  :INTEGER,
1188
1160
  :DECIMAL,
1189
1161
  :DOUBLE,
@@ -1195,18 +1167,19 @@ module RDF::TriG::Meta
1195
1167
  :STRING_LITERAL_LONG_QUOTE],
1196
1168
  :_blankNodePropertyList_1 => [
1197
1169
  ".",
1170
+ "}",
1198
1171
  "a",
1199
1172
  ")",
1200
1173
  ",",
1201
1174
  "]",
1202
1175
  :IRIREF,
1176
+ :BLANK_NODE_LABEL,
1177
+ :ANON,
1178
+ "(",
1203
1179
  "[",
1204
1180
  ";",
1205
1181
  :PNAME_LN,
1206
1182
  :PNAME_NS,
1207
- :BLANK_NODE_LABEL,
1208
- :ANON,
1209
- "(",
1210
1183
  :INTEGER,
1211
1184
  :DECIMAL,
1212
1185
  :DOUBLE,
@@ -1218,18 +1191,19 @@ module RDF::TriG::Meta
1218
1191
  :STRING_LITERAL_LONG_QUOTE],
1219
1192
  :_blankNodePropertyList_2 => [
1220
1193
  ".",
1194
+ "}",
1221
1195
  "a",
1222
1196
  ")",
1223
1197
  ",",
1224
1198
  "]",
1225
1199
  :IRIREF,
1200
+ :BLANK_NODE_LABEL,
1201
+ :ANON,
1202
+ "(",
1226
1203
  "[",
1227
1204
  ";",
1228
1205
  :PNAME_LN,
1229
1206
  :PNAME_NS,
1230
- :BLANK_NODE_LABEL,
1231
- :ANON,
1232
- "(",
1233
1207
  :INTEGER,
1234
1208
  :DECIMAL,
1235
1209
  :DOUBLE,
@@ -1243,16 +1217,17 @@ module RDF::TriG::Meta
1243
1217
  "a",
1244
1218
  ")",
1245
1219
  ",",
1246
- ".",
1247
1220
  "]",
1248
1221
  :IRIREF,
1222
+ :BLANK_NODE_LABEL,
1223
+ :ANON,
1224
+ "(",
1249
1225
  "[",
1250
1226
  ";",
1227
+ ".",
1228
+ "}",
1251
1229
  :PNAME_LN,
1252
1230
  :PNAME_NS,
1253
- :BLANK_NODE_LABEL,
1254
- :ANON,
1255
- "(",
1256
1231
  :INTEGER,
1257
1232
  :DECIMAL,
1258
1233
  :DOUBLE,
@@ -1270,16 +1245,17 @@ module RDF::TriG::Meta
1270
1245
  "a",
1271
1246
  ")",
1272
1247
  ",",
1273
- ".",
1274
1248
  "]",
1275
1249
  :IRIREF,
1250
+ :BLANK_NODE_LABEL,
1251
+ :ANON,
1252
+ "(",
1276
1253
  "[",
1277
1254
  ";",
1255
+ ".",
1256
+ "}",
1278
1257
  :PNAME_LN,
1279
1258
  :PNAME_NS,
1280
- :BLANK_NODE_LABEL,
1281
- :ANON,
1282
- "(",
1283
1259
  :INTEGER,
1284
1260
  :DECIMAL,
1285
1261
  :DOUBLE,
@@ -1295,16 +1271,17 @@ module RDF::TriG::Meta
1295
1271
  "a",
1296
1272
  ")",
1297
1273
  ",",
1298
- ".",
1299
1274
  "]",
1300
1275
  :IRIREF,
1276
+ :BLANK_NODE_LABEL,
1277
+ :ANON,
1278
+ "(",
1301
1279
  "[",
1302
1280
  ";",
1281
+ ".",
1282
+ "}",
1303
1283
  :PNAME_LN,
1304
1284
  :PNAME_NS,
1305
- :BLANK_NODE_LABEL,
1306
- :ANON,
1307
- "(",
1308
1285
  :INTEGER,
1309
1286
  :DECIMAL,
1310
1287
  :DOUBLE,
@@ -1316,191 +1293,91 @@ module RDF::TriG::Meta
1316
1293
  :STRING_LITERAL_LONG_QUOTE],
1317
1294
  :directive => [
1318
1295
  :_eof,
1319
- "@prefix",
1320
- "@base",
1321
- :SPARQL_PREFIX,
1322
- :SPARQL_BASE,
1296
+ :PREFIX,
1297
+ :BASE,
1323
1298
  "{",
1324
1299
  :IRIREF,
1300
+ :BLANK_NODE_LABEL,
1301
+ :ANON,
1325
1302
  :PNAME_LN,
1326
1303
  :PNAME_NS],
1327
1304
  :graph => [
1328
1305
  :_eof,
1329
- "@prefix",
1330
- "@base",
1331
- :SPARQL_PREFIX,
1332
- :SPARQL_BASE,
1306
+ :PREFIX,
1307
+ :BASE,
1333
1308
  "{",
1334
1309
  :IRIREF,
1335
- :PNAME_LN,
1336
- :PNAME_NS],
1337
- :graphIri => [
1338
- "{",
1339
- ")",
1340
- ",",
1341
- ".",
1342
- "]",
1343
- :IRIREF,
1344
- "[",
1345
- ";",
1346
- :PNAME_LN,
1347
- :PNAME_NS,
1348
1310
  :BLANK_NODE_LABEL,
1349
1311
  :ANON,
1350
- "(",
1351
- :INTEGER,
1352
- :DECIMAL,
1353
- :DOUBLE,
1354
- "true",
1355
- "false",
1356
- :STRING_LITERAL_QUOTE,
1357
- :STRING_LITERAL_SINGLE_QUOTE,
1358
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1359
- :STRING_LITERAL_LONG_QUOTE],
1360
- :_graph_1 => [
1361
- :_eof,
1362
- "@prefix",
1363
- "@base",
1364
- :SPARQL_PREFIX,
1365
- :SPARQL_BASE,
1366
- "{",
1367
- :IRIREF,
1368
1312
  :PNAME_LN,
1369
1313
  :PNAME_NS],
1370
- :_graph_10 => [
1314
+ :graphName => [
1315
+ "{"],
1316
+ :_graph_1 => [
1317
+ "{"],
1318
+ :_graph_2 => [
1371
1319
  "}"],
1372
- :_graph_11 => [
1373
- "}",
1374
- :_eof,
1375
- "@prefix",
1376
- "@base",
1377
- :SPARQL_PREFIX,
1378
- :SPARQL_BASE,
1379
- "{",
1380
- "[",
1381
- :IRIREF,
1382
- :PNAME_LN,
1383
- :PNAME_NS,
1384
- :BLANK_NODE_LABEL,
1385
- :ANON,
1386
- "("],
1387
- :_graph_12 => [
1320
+ :_graph_3 => [
1388
1321
  :_eof,
1389
- "@prefix",
1390
- "@base",
1391
- :SPARQL_PREFIX,
1392
- :SPARQL_BASE,
1322
+ :PREFIX,
1323
+ :BASE,
1393
1324
  "{",
1394
1325
  :IRIREF,
1395
- :PNAME_LN,
1396
- :PNAME_NS],
1397
- :_graph_13 => [
1398
- "}"],
1399
- :_graph_14 => [
1400
- "}",
1401
- "[",
1402
- :IRIREF,
1403
- :PNAME_LN,
1404
- :PNAME_NS,
1405
1326
  :BLANK_NODE_LABEL,
1406
1327
  :ANON,
1407
- "("],
1408
- :_graph_15 => [
1409
- :_eof,
1410
- "@prefix",
1411
- "@base",
1412
- :SPARQL_PREFIX,
1413
- :SPARQL_BASE,
1414
- "{",
1415
- :IRIREF,
1416
1328
  :PNAME_LN,
1417
1329
  :PNAME_NS],
1418
- :_graph_16 => [
1330
+ :_graph_4 => [
1419
1331
  :_eof,
1420
- "@prefix",
1421
- "@base",
1422
- :SPARQL_PREFIX,
1423
- :SPARQL_BASE,
1332
+ :PREFIX,
1333
+ :BASE,
1424
1334
  "{",
1425
1335
  :IRIREF,
1336
+ :BLANK_NODE_LABEL,
1337
+ :ANON,
1426
1338
  :PNAME_LN,
1427
1339
  :PNAME_NS],
1428
- :_graph_2 => [
1340
+ :_graph_5 => [
1429
1341
  :_eof,
1430
- "@prefix",
1431
- "@base",
1432
- :SPARQL_PREFIX,
1433
- :SPARQL_BASE,
1342
+ :PREFIX,
1343
+ :BASE,
1434
1344
  "{",
1435
1345
  :IRIREF,
1436
- :PNAME_LN,
1437
- :PNAME_NS],
1438
- :_graph_3 => [
1439
- "}"],
1440
- :_graph_4 => [
1441
- "}",
1442
- "[",
1443
- :IRIREF,
1444
- :PNAME_LN,
1445
- :PNAME_NS,
1446
1346
  :BLANK_NODE_LABEL,
1447
1347
  :ANON,
1448
- "("],
1449
- :_graph_5 => [
1450
- "}"],
1451
- :_graph_6 => [
1452
- "}"],
1453
- :_graph_7 => [
1454
- "}",
1455
- "[",
1456
- :IRIREF,
1457
- :PNAME_LN,
1458
- :PNAME_NS,
1459
- :BLANK_NODE_LABEL,
1460
- :ANON,
1461
- "("],
1462
- :_graph_8 => [
1463
- "}"],
1464
- :_graph_9 => [
1465
- :_eof,
1466
- "@prefix",
1467
- "@base",
1468
- :SPARQL_PREFIX,
1469
- :SPARQL_BASE,
1470
- "{",
1471
- :IRIREF,
1472
1348
  :PNAME_LN,
1473
1349
  :PNAME_NS],
1474
1350
  :graph_statement => [
1475
1351
  :_eof,
1476
- "@prefix",
1477
- "@base",
1478
- :SPARQL_PREFIX,
1479
- :SPARQL_BASE,
1352
+ :PREFIX,
1353
+ :BASE,
1480
1354
  "{",
1481
1355
  :IRIREF,
1356
+ :BLANK_NODE_LABEL,
1357
+ :ANON,
1482
1358
  :PNAME_LN,
1483
1359
  :PNAME_NS],
1484
1360
  :iri => [
1485
1361
  "{",
1486
1362
  "a",
1487
1363
  :IRIREF,
1364
+ :BLANK_NODE_LABEL,
1365
+ :ANON,
1366
+ "(",
1488
1367
  "[",
1489
1368
  ")",
1490
1369
  ",",
1491
- ".",
1492
1370
  "]",
1493
1371
  :PNAME_LN,
1494
1372
  :PNAME_NS,
1495
- :BLANK_NODE_LABEL,
1496
- :ANON,
1497
- "(",
1498
1373
  :INTEGER,
1499
1374
  :DECIMAL,
1500
1375
  :DOUBLE,
1501
1376
  "true",
1502
1377
  "false",
1503
1378
  ";",
1379
+ ".",
1380
+ "}",
1504
1381
  :STRING_LITERAL_QUOTE,
1505
1382
  :STRING_LITERAL_SINGLE_QUOTE,
1506
1383
  :STRING_LITERAL_LONG_SINGLE_QUOTE,
@@ -1508,16 +1385,17 @@ module RDF::TriG::Meta
1508
1385
  :literal => [
1509
1386
  ")",
1510
1387
  ",",
1511
- ".",
1512
1388
  "]",
1513
1389
  :IRIREF,
1390
+ :BLANK_NODE_LABEL,
1391
+ :ANON,
1392
+ "(",
1514
1393
  "[",
1515
1394
  ";",
1395
+ ".",
1396
+ "}",
1516
1397
  :PNAME_LN,
1517
1398
  :PNAME_NS,
1518
- :BLANK_NODE_LABEL,
1519
- :ANON,
1520
- "(",
1521
1399
  :INTEGER,
1522
1400
  :DECIMAL,
1523
1401
  :DOUBLE,
@@ -1530,16 +1408,17 @@ module RDF::TriG::Meta
1530
1408
  :object => [
1531
1409
  ")",
1532
1410
  ",",
1533
- ".",
1534
1411
  "]",
1535
1412
  :IRIREF,
1413
+ :BLANK_NODE_LABEL,
1414
+ :ANON,
1415
+ "(",
1536
1416
  "[",
1537
1417
  ";",
1418
+ ".",
1419
+ "}",
1538
1420
  :PNAME_LN,
1539
1421
  :PNAME_NS,
1540
- :BLANK_NODE_LABEL,
1541
- :ANON,
1542
- "(",
1543
1422
  :INTEGER,
1544
1423
  :DECIMAL,
1545
1424
  :DOUBLE,
@@ -1550,145 +1429,158 @@ module RDF::TriG::Meta
1550
1429
  :STRING_LITERAL_LONG_SINGLE_QUOTE,
1551
1430
  :STRING_LITERAL_LONG_QUOTE],
1552
1431
  :objectList => [
1553
- ".",
1554
1432
  "]",
1555
- ";"],
1556
- :_objectList_1 => [
1433
+ ";",
1557
1434
  ".",
1435
+ "}"],
1436
+ :_objectList_1 => [
1558
1437
  "]",
1559
- ";"],
1438
+ ";",
1439
+ ".",
1440
+ "}"],
1560
1441
  :_objectList_2 => [
1561
1442
  ",",
1562
- ".",
1563
1443
  "]",
1564
- ";"],
1565
- :_objectList_3 => [
1444
+ ";",
1566
1445
  ".",
1446
+ "}"],
1447
+ :_objectList_3 => [
1567
1448
  "]",
1568
- ";"],
1569
- :_objectList_4 => [
1449
+ ";",
1570
1450
  ".",
1451
+ "}"],
1452
+ :_objectList_4 => [
1571
1453
  "]",
1572
- ";"],
1573
- :_objectList_5 => [
1454
+ ";",
1574
1455
  ".",
1456
+ "}"],
1457
+ :_objectList_5 => [
1575
1458
  "]",
1576
- ";"],
1459
+ ";",
1460
+ ".",
1461
+ "}"],
1577
1462
  :_objectList_6 => [
1578
1463
  ",",
1579
- ".",
1580
1464
  "]",
1581
- ";"],
1465
+ ";",
1466
+ ".",
1467
+ "}"],
1582
1468
  :predicate => [
1583
1469
  :IRIREF,
1584
- "[",
1585
- :PNAME_LN,
1586
- :PNAME_NS,
1587
1470
  :BLANK_NODE_LABEL,
1588
1471
  :ANON,
1589
1472
  "(",
1473
+ "[",
1474
+ :PNAME_LN,
1475
+ :PNAME_NS,
1590
1476
  :INTEGER,
1591
1477
  :DECIMAL,
1592
1478
  :DOUBLE,
1593
1479
  "true",
1594
1480
  "false",
1481
+ ")",
1482
+ ",",
1483
+ "]",
1595
1484
  :STRING_LITERAL_QUOTE,
1596
1485
  :STRING_LITERAL_SINGLE_QUOTE,
1597
1486
  :STRING_LITERAL_LONG_SINGLE_QUOTE,
1598
- :STRING_LITERAL_LONG_QUOTE],
1487
+ :STRING_LITERAL_LONG_QUOTE,
1488
+ ";",
1489
+ ".",
1490
+ "}"],
1599
1491
  :predicateObjectList => [
1492
+ "]",
1600
1493
  ".",
1601
- "]"],
1494
+ "}"],
1602
1495
  :_predicateObjectList_1 => [
1496
+ "]",
1603
1497
  ".",
1604
- "]"],
1498
+ "}"],
1605
1499
  :_predicateObjectList_2 => [
1606
1500
  ";",
1501
+ "]",
1607
1502
  ".",
1608
- "]"],
1503
+ "}"],
1609
1504
  :_predicateObjectList_3 => [
1505
+ "]",
1610
1506
  ".",
1611
- "]"],
1507
+ "}"],
1612
1508
  :_predicateObjectList_4 => [
1613
1509
  ";",
1510
+ "]",
1614
1511
  ".",
1615
- "]"],
1512
+ "}"],
1616
1513
  :_predicateObjectList_5 => [
1617
1514
  ";",
1515
+ "]",
1618
1516
  ".",
1619
- "]"],
1517
+ "}"],
1620
1518
  :_predicateObjectList_6 => [
1519
+ "]",
1621
1520
  ".",
1622
- "]"],
1521
+ "}"],
1623
1522
  :_predicateObjectList_7 => [
1523
+ "]",
1624
1524
  ".",
1625
- "]"],
1525
+ "}"],
1626
1526
  :_predicateObjectList_8 => [
1627
1527
  ";",
1528
+ "]",
1628
1529
  ".",
1629
- "]"],
1530
+ "}"],
1630
1531
  :_predicateObjectList_9 => [
1631
1532
  ";",
1533
+ "]",
1632
1534
  ".",
1633
- "]"],
1535
+ "}"],
1634
1536
  :prefixID => [
1635
1537
  :_eof,
1636
- "@prefix",
1637
- "@base",
1638
- :SPARQL_PREFIX,
1639
- :SPARQL_BASE,
1538
+ :PREFIX,
1539
+ :BASE,
1640
1540
  "{",
1641
1541
  :IRIREF,
1542
+ :BLANK_NODE_LABEL,
1543
+ :ANON,
1642
1544
  :PNAME_LN,
1643
1545
  :PNAME_NS],
1644
1546
  :_prefixID_1 => [
1645
1547
  :_eof,
1646
- "@prefix",
1647
- "@base",
1648
- :SPARQL_PREFIX,
1649
- :SPARQL_BASE,
1650
- "{",
1651
- :IRIREF,
1652
- :PNAME_LN,
1653
- :PNAME_NS],
1654
- :sparqlBase => [
1655
- :_eof,
1656
- "@prefix",
1657
- "@base",
1658
- :SPARQL_PREFIX,
1659
- :SPARQL_BASE,
1548
+ :PREFIX,
1549
+ :BASE,
1660
1550
  "{",
1661
1551
  :IRIREF,
1552
+ :BLANK_NODE_LABEL,
1553
+ :ANON,
1662
1554
  :PNAME_LN,
1663
1555
  :PNAME_NS],
1664
- :_sparqlBase_1 => [
1556
+ :_prefixID_2 => [
1665
1557
  :_eof,
1666
- "@prefix",
1667
- "@base",
1668
- :SPARQL_PREFIX,
1669
- :SPARQL_BASE,
1558
+ :PREFIX,
1559
+ :BASE,
1670
1560
  "{",
1671
1561
  :IRIREF,
1562
+ :BLANK_NODE_LABEL,
1563
+ :ANON,
1672
1564
  :PNAME_LN,
1673
1565
  :PNAME_NS],
1674
- :sparqlPrefix => [
1566
+ :_prefixID_3 => [
1675
1567
  :_eof,
1676
- "@prefix",
1677
- "@base",
1678
- :SPARQL_PREFIX,
1679
- :SPARQL_BASE,
1568
+ :PREFIX,
1569
+ :BASE,
1680
1570
  "{",
1681
1571
  :IRIREF,
1572
+ :BLANK_NODE_LABEL,
1573
+ :ANON,
1682
1574
  :PNAME_LN,
1683
1575
  :PNAME_NS],
1684
- :_sparqlPrefix_1 => [
1576
+ :_prefixID_4 => [
1685
1577
  :_eof,
1686
- "@prefix",
1687
- "@base",
1688
- :SPARQL_PREFIX,
1689
- :SPARQL_BASE,
1578
+ :PREFIX,
1579
+ :BASE,
1690
1580
  "{",
1691
1581
  :IRIREF,
1582
+ :BLANK_NODE_LABEL,
1583
+ :ANON,
1692
1584
  :PNAME_LN,
1693
1585
  :PNAME_NS],
1694
1586
  :subject => [
@@ -1703,25 +1595,43 @@ module RDF::TriG::Meta
1703
1595
  :_trigDoc_2 => [
1704
1596
  :_eof],
1705
1597
  :triples => [
1706
- "."],
1598
+ ".",
1599
+ "}"],
1600
+ :triplesBlock => [
1601
+ "}"],
1602
+ :_triplesBlock_1 => [
1603
+ "}"],
1604
+ :_triplesBlock_2 => [
1605
+ "}"],
1606
+ :_triplesBlock_3 => [
1607
+ "}"],
1608
+ :_triplesBlock_4 => [
1609
+ "}"],
1610
+ :_triplesBlock_5 => [
1611
+ "}"],
1707
1612
  :_triples_1 => [
1708
- "."],
1613
+ ".",
1614
+ "}"],
1709
1615
  :_triples_2 => [
1710
- "."],
1616
+ ".",
1617
+ "}"],
1711
1618
  :_triples_3 => [
1712
- "."],
1619
+ ".",
1620
+ "}"],
1713
1621
  :_triples_4 => [
1714
- "."],
1622
+ ".",
1623
+ "}"],
1715
1624
  :_triples_5 => [
1716
- "."],
1625
+ ".",
1626
+ "}"],
1717
1627
  :verb => [
1718
1628
  :IRIREF,
1719
- "[",
1720
- :PNAME_LN,
1721
- :PNAME_NS,
1722
1629
  :BLANK_NODE_LABEL,
1723
1630
  :ANON,
1724
1631
  "(",
1632
+ "[",
1633
+ :PNAME_LN,
1634
+ :PNAME_NS,
1725
1635
  :INTEGER,
1726
1636
  :DECIMAL,
1727
1637
  :DOUBLE,