rdf-trig 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,24 +11,24 @@ module RDF::TriG
11
11
  if statement.context != @streaming_context
12
12
  stream_epilogue
13
13
  if statement.context
14
- @output.write "#{format_term(statement.context)} {"
14
+ @output.write "#{format_term(statement.context, options)} {"
15
15
  end
16
16
  @streaming_context, @streaming_subject, @streaming_predicate = statement.context, statement.subject, statement.predicate
17
- @output.write "#{format_term(statement.subject)} "
18
- @output.write "#{format_term(statement.predicate)} "
17
+ @output.write "#{format_term(statement.subject, options)} "
18
+ @output.write "#{format_term(statement.predicate, options)} "
19
19
  elsif statement.subject != @streaming_subject
20
20
  @output.puts " ." if @previous_statement
21
21
  @output.write "#{indent(@streaming_subject ? 1 : 0)}"
22
22
  @streaming_subject, @streaming_predicate = statement.subject, statement.predicate
23
- @output.write "#{format_term(statement.subject)} "
24
- @output.write "#{format_term(statement.predicate)} "
23
+ @output.write "#{format_term(statement.subject, options)} "
24
+ @output.write "#{format_term(statement.predicate, options)} "
25
25
  elsif statement.predicate != @streaming_predicate
26
26
  @streaming_predicate = statement.predicate
27
- @output.write ";\n#{indent(@streaming_subject ? 2 : 1)}#{format_term(statement.predicate)} "
27
+ @output.write ";\n#{indent(@streaming_subject ? 2 : 1)}#{format_term(statement.predicate, options)} "
28
28
  else
29
29
  @output.write ",\n#{indent(@streaming_subject ? 3 : 2)}"
30
30
  end
31
- @output.write("#{format_term(statement.object)}")
31
+ @output.write("#{format_term(statement.object, options)}")
32
32
  @previous_statement = statement
33
33
  end
34
34
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-trig
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregg Kellogg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-11 00:00:00.000000000 Z
11
+ date: 2015-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -59,7 +59,7 @@ dependencies:
59
59
  version: '1.1'
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 1.1.6
62
+ version: 1.1.7
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
@@ -69,27 +69,7 @@ dependencies:
69
69
  version: '1.1'
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 1.1.6
73
- - !ruby/object:Gem::Dependency
74
- name: open-uri-cached
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '0.0'
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 0.0.5
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '0.0'
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 0.0.5
72
+ version: 1.1.7
93
73
  - !ruby/object:Gem::Dependency
94
74
  name: json-ld
95
75
  requirement: !ruby/object:Gem::Requirement
@@ -201,7 +181,6 @@ files:
201
181
  - VERSION
202
182
  - lib/rdf/trig.rb
203
183
  - lib/rdf/trig/format.rb
204
- - lib/rdf/trig/meta.rb
205
184
  - lib/rdf/trig/reader.rb
206
185
  - lib/rdf/trig/streaming_writer.rb
207
186
  - lib/rdf/trig/version.rb
@@ -226,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
205
  version: '0'
227
206
  requirements: []
228
207
  rubyforge_project: rdf-trig
229
- rubygems_version: 2.4.3
208
+ rubygems_version: 2.4.7
230
209
  signing_key:
231
210
  specification_version: 4
232
211
  summary: TriG reader/writer for Ruby.
@@ -1,2000 +0,0 @@
1
- # This file is automatically generated by /Users/gregg/.rvm/gems/ruby-2.0.0-p247/gems/ebnf-0.3.1/bin/ebnf
2
- # BRANCH derived from etc/trig.bnf
3
- module RDF::TriG::Meta
4
- START = :trigDoc
5
-
6
- BRANCH = {
7
- :BlankNode => {
8
- :ANON => [:ANON],
9
- :BLANK_NODE_LABEL => [:BLANK_NODE_LABEL],
10
- },
11
- :BooleanLiteral => {
12
- "false" => ["false"],
13
- "true" => ["true"],
14
- },
15
- :NumericLiteral => {
16
- :DECIMAL => [:DECIMAL],
17
- :DOUBLE => [:DOUBLE],
18
- :INTEGER => [:INTEGER],
19
- },
20
- :PrefixedName => {
21
- :PNAME_LN => [:PNAME_LN],
22
- :PNAME_NS => [:PNAME_NS],
23
- },
24
- :RDFLiteral => {
25
- :STRING_LITERAL_LONG_QUOTE => [:String, :_RDFLiteral_1],
26
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [:String, :_RDFLiteral_1],
27
- :STRING_LITERAL_QUOTE => [:String, :_RDFLiteral_1],
28
- :STRING_LITERAL_SINGLE_QUOTE => [:String, :_RDFLiteral_1],
29
- },
30
- :_RDFLiteral_1 => {
31
- "(" => [],
32
- ")" => [],
33
- "," => [],
34
- "." => [],
35
- ";" => [],
36
- :ANON => [],
37
- :BLANK_NODE_LABEL => [],
38
- :DECIMAL => [],
39
- :DOUBLE => [],
40
- :INTEGER => [],
41
- :IRIREF => [],
42
- :LANGTAG => [:_RDFLiteral_2],
43
- :PNAME_LN => [],
44
- :PNAME_NS => [],
45
- :STRING_LITERAL_LONG_QUOTE => [],
46
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
47
- :STRING_LITERAL_QUOTE => [],
48
- :STRING_LITERAL_SINGLE_QUOTE => [],
49
- "[" => [],
50
- "]" => [],
51
- "^^" => [:_RDFLiteral_2],
52
- "false" => [],
53
- "true" => [],
54
- "}" => [],
55
- },
56
- :_RDFLiteral_2 => {
57
- :LANGTAG => [:LANGTAG],
58
- "^^" => [:_RDFLiteral_3],
59
- },
60
- :_RDFLiteral_3 => {
61
- "^^" => ["^^", :iri],
62
- },
63
- :String => {
64
- :STRING_LITERAL_LONG_QUOTE => [:STRING_LITERAL_LONG_QUOTE],
65
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [:STRING_LITERAL_LONG_SINGLE_QUOTE],
66
- :STRING_LITERAL_QUOTE => [:STRING_LITERAL_QUOTE],
67
- :STRING_LITERAL_SINGLE_QUOTE => [:STRING_LITERAL_SINGLE_QUOTE],
68
- },
69
- :base => {
70
- :BASE => [:BASE, :IRIREF, :_base_1],
71
- },
72
- :_base_1 => {
73
- "(" => [],
74
- "." => ["."],
75
- :ANON => [],
76
- :BASE => [],
77
- :BLANK_NODE_LABEL => [],
78
- :GRAPH => [],
79
- :IRIREF => [],
80
- :PNAME_LN => [],
81
- :PNAME_NS => [],
82
- :PREFIX => [],
83
- "[" => [],
84
- "{" => [],
85
- },
86
- :blank => {
87
- "(" => [:collection],
88
- :ANON => [:BlankNode],
89
- :BLANK_NODE_LABEL => [:BlankNode],
90
- },
91
- :blankNodePropertyList => {
92
- "[" => ["[", :predicateObjectList, "]"],
93
- },
94
- :block => {
95
- "(" => [:triples2],
96
- :ANON => [:triplesOrGraph],
97
- :BLANK_NODE_LABEL => [:triplesOrGraph],
98
- :GRAPH => [:_block_1],
99
- :IRIREF => [:triplesOrGraph],
100
- :PNAME_LN => [:triplesOrGraph],
101
- :PNAME_NS => [:triplesOrGraph],
102
- "[" => [:triples2],
103
- "{" => [:wrappedGraph],
104
- },
105
- :_block_1 => {
106
- :GRAPH => [:GRAPH, :labelOrSubject, :wrappedGraph],
107
- },
108
- :collection => {
109
- "(" => ["(", :_collection_1, ")"],
110
- },
111
- :_collection_1 => {
112
- "(" => [:_collection_2],
113
- ")" => [],
114
- :ANON => [:_collection_2],
115
- :BLANK_NODE_LABEL => [:_collection_2],
116
- :DECIMAL => [:_collection_2],
117
- :DOUBLE => [:_collection_2],
118
- :INTEGER => [:_collection_2],
119
- :IRIREF => [:_collection_2],
120
- :PNAME_LN => [:_collection_2],
121
- :PNAME_NS => [:_collection_2],
122
- :STRING_LITERAL_LONG_QUOTE => [:_collection_2],
123
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [:_collection_2],
124
- :STRING_LITERAL_QUOTE => [:_collection_2],
125
- :STRING_LITERAL_SINGLE_QUOTE => [:_collection_2],
126
- "[" => [:_collection_2],
127
- "false" => [:_collection_2],
128
- "true" => [:_collection_2],
129
- },
130
- :_collection_2 => {
131
- "(" => [:object, :_collection_1],
132
- :ANON => [:object, :_collection_1],
133
- :BLANK_NODE_LABEL => [:object, :_collection_1],
134
- :DECIMAL => [:object, :_collection_1],
135
- :DOUBLE => [:object, :_collection_1],
136
- :INTEGER => [:object, :_collection_1],
137
- :IRIREF => [:object, :_collection_1],
138
- :PNAME_LN => [:object, :_collection_1],
139
- :PNAME_NS => [:object, :_collection_1],
140
- :STRING_LITERAL_LONG_QUOTE => [:object, :_collection_1],
141
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [:object, :_collection_1],
142
- :STRING_LITERAL_QUOTE => [:object, :_collection_1],
143
- :STRING_LITERAL_SINGLE_QUOTE => [:object, :_collection_1],
144
- "[" => [:object, :_collection_1],
145
- "false" => [:object, :_collection_1],
146
- "true" => [:object, :_collection_1],
147
- },
148
- :directive => {
149
- :BASE => [:base],
150
- :PREFIX => [:prefixID],
151
- },
152
- :iri => {
153
- :IRIREF => [:IRIREF],
154
- :PNAME_LN => [:PrefixedName],
155
- :PNAME_NS => [:PrefixedName],
156
- },
157
- :labelOrSubject => {
158
- :ANON => [:BlankNode],
159
- :BLANK_NODE_LABEL => [:BlankNode],
160
- :IRIREF => [:iri],
161
- :PNAME_LN => [:iri],
162
- :PNAME_NS => [:iri],
163
- },
164
- :literal => {
165
- :DECIMAL => [:NumericLiteral],
166
- :DOUBLE => [:NumericLiteral],
167
- :INTEGER => [:NumericLiteral],
168
- :STRING_LITERAL_LONG_QUOTE => [:RDFLiteral],
169
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [:RDFLiteral],
170
- :STRING_LITERAL_QUOTE => [:RDFLiteral],
171
- :STRING_LITERAL_SINGLE_QUOTE => [:RDFLiteral],
172
- "false" => [:BooleanLiteral],
173
- "true" => [:BooleanLiteral],
174
- },
175
- :object => {
176
- "(" => [:blank],
177
- :ANON => [:blank],
178
- :BLANK_NODE_LABEL => [:blank],
179
- :DECIMAL => [:literal],
180
- :DOUBLE => [:literal],
181
- :INTEGER => [:literal],
182
- :IRIREF => [:iri],
183
- :PNAME_LN => [:iri],
184
- :PNAME_NS => [:iri],
185
- :STRING_LITERAL_LONG_QUOTE => [:literal],
186
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [:literal],
187
- :STRING_LITERAL_QUOTE => [:literal],
188
- :STRING_LITERAL_SINGLE_QUOTE => [:literal],
189
- "[" => [:blankNodePropertyList],
190
- "false" => [:literal],
191
- "true" => [:literal],
192
- },
193
- :objectList => {
194
- "(" => [:object, :_objectList_1],
195
- :ANON => [:object, :_objectList_1],
196
- :BLANK_NODE_LABEL => [:object, :_objectList_1],
197
- :DECIMAL => [:object, :_objectList_1],
198
- :DOUBLE => [:object, :_objectList_1],
199
- :INTEGER => [:object, :_objectList_1],
200
- :IRIREF => [:object, :_objectList_1],
201
- :PNAME_LN => [:object, :_objectList_1],
202
- :PNAME_NS => [:object, :_objectList_1],
203
- :STRING_LITERAL_LONG_QUOTE => [:object, :_objectList_1],
204
- :STRING_LITERAL_LONG_SINGLE_QUOTE => [:object, :_objectList_1],
205
- :STRING_LITERAL_QUOTE => [:object, :_objectList_1],
206
- :STRING_LITERAL_SINGLE_QUOTE => [:object, :_objectList_1],
207
- "[" => [:object, :_objectList_1],
208
- "false" => [:object, :_objectList_1],
209
- "true" => [:object, :_objectList_1],
210
- },
211
- :_objectList_1 => {
212
- "," => [:_objectList_3],
213
- "." => [],
214
- ";" => [],
215
- "]" => [],
216
- "}" => [],
217
- },
218
- :_objectList_2 => {
219
- "," => [",", :object],
220
- },
221
- :_objectList_3 => {
222
- "," => [:_objectList_2, :_objectList_1],
223
- },
224
- :predicate => {
225
- :IRIREF => [:iri],
226
- :PNAME_LN => [:iri],
227
- :PNAME_NS => [:iri],
228
- },
229
- :predicateObjectList => {
230
- :IRIREF => [:verb, :objectList, :_predicateObjectList_1],
231
- :PNAME_LN => [:verb, :objectList, :_predicateObjectList_1],
232
- :PNAME_NS => [:verb, :objectList, :_predicateObjectList_1],
233
- "a" => [:verb, :objectList, :_predicateObjectList_1],
234
- },
235
- :_predicateObjectList_1 => {
236
- "." => [],
237
- ";" => [:_predicateObjectList_3],
238
- "]" => [],
239
- "}" => [],
240
- },
241
- :_predicateObjectList_2 => {
242
- ";" => [";", :_predicateObjectList_4],
243
- },
244
- :_predicateObjectList_3 => {
245
- ";" => [:_predicateObjectList_2, :_predicateObjectList_1],
246
- },
247
- :_predicateObjectList_4 => {
248
- "." => [],
249
- ";" => [],
250
- :IRIREF => [:_predicateObjectList_5],
251
- :PNAME_LN => [:_predicateObjectList_5],
252
- :PNAME_NS => [:_predicateObjectList_5],
253
- "]" => [],
254
- "a" => [:_predicateObjectList_5],
255
- "}" => [],
256
- },
257
- :_predicateObjectList_5 => {
258
- :IRIREF => [:verb, :objectList],
259
- :PNAME_LN => [:verb, :objectList],
260
- :PNAME_NS => [:verb, :objectList],
261
- "a" => [:verb, :objectList],
262
- },
263
- :prefixID => {
264
- :PREFIX => [:PREFIX, :PNAME_NS, :IRIREF, :_prefixID_1],
265
- },
266
- :_prefixID_1 => {
267
- "(" => [],
268
- "." => ["."],
269
- :ANON => [],
270
- :BASE => [],
271
- :BLANK_NODE_LABEL => [],
272
- :GRAPH => [],
273
- :IRIREF => [],
274
- :PNAME_LN => [],
275
- :PNAME_NS => [],
276
- :PREFIX => [],
277
- "[" => [],
278
- "{" => [],
279
- },
280
- :subject => {
281
- "(" => [:blank],
282
- :ANON => [:blank],
283
- :BLANK_NODE_LABEL => [:blank],
284
- :IRIREF => [:iri],
285
- :PNAME_LN => [:iri],
286
- :PNAME_NS => [:iri],
287
- },
288
- :trigDoc => {
289
- "(" => [:_trigDoc_2],
290
- :ANON => [:_trigDoc_2],
291
- :BASE => [:_trigDoc_2],
292
- :BLANK_NODE_LABEL => [:_trigDoc_2],
293
- :GRAPH => [:_trigDoc_2],
294
- :IRIREF => [:_trigDoc_2],
295
- :PNAME_LN => [:_trigDoc_2],
296
- :PNAME_NS => [:_trigDoc_2],
297
- :PREFIX => [:_trigDoc_2],
298
- "[" => [:_trigDoc_2],
299
- "{" => [:_trigDoc_2],
300
- },
301
- :_trigDoc_1 => {
302
- "(" => [:block],
303
- :ANON => [:block],
304
- :BASE => [:directive],
305
- :BLANK_NODE_LABEL => [:block],
306
- :GRAPH => [:block],
307
- :IRIREF => [:block],
308
- :PNAME_LN => [:block],
309
- :PNAME_NS => [:block],
310
- :PREFIX => [:directive],
311
- "[" => [:block],
312
- "{" => [:block],
313
- },
314
- :_trigDoc_2 => {
315
- "(" => [:_trigDoc_1, :trigDoc],
316
- :ANON => [:_trigDoc_1, :trigDoc],
317
- :BASE => [:_trigDoc_1, :trigDoc],
318
- :BLANK_NODE_LABEL => [:_trigDoc_1, :trigDoc],
319
- :GRAPH => [:_trigDoc_1, :trigDoc],
320
- :IRIREF => [:_trigDoc_1, :trigDoc],
321
- :PNAME_LN => [:_trigDoc_1, :trigDoc],
322
- :PNAME_NS => [:_trigDoc_1, :trigDoc],
323
- :PREFIX => [:_trigDoc_1, :trigDoc],
324
- "[" => [:_trigDoc_1, :trigDoc],
325
- "{" => [:_trigDoc_1, :trigDoc],
326
- },
327
- :triples => {
328
- "(" => [:_triples_1],
329
- :ANON => [:_triples_1],
330
- :BLANK_NODE_LABEL => [:_triples_1],
331
- :IRIREF => [:_triples_1],
332
- :PNAME_LN => [:_triples_1],
333
- :PNAME_NS => [:_triples_1],
334
- "[" => [:_triples_2],
335
- },
336
- :triples2 => {
337
- "(" => [:_triples2_2],
338
- "[" => [:_triples2_1],
339
- },
340
- :_triples2_1 => {
341
- "[" => [:blankNodePropertyList, :_triples2_3, "."],
342
- },
343
- :_triples2_2 => {
344
- "(" => [:collection, :predicateObjectList, "."],
345
- },
346
- :_triples2_3 => {
347
- "." => [],
348
- :IRIREF => [:predicateObjectList],
349
- :PNAME_LN => [:predicateObjectList],
350
- :PNAME_NS => [:predicateObjectList],
351
- "a" => [:predicateObjectList],
352
- },
353
- :triplesBlock => {
354
- "(" => [:triples, :_triplesBlock_1],
355
- :ANON => [:triples, :_triplesBlock_1],
356
- :BLANK_NODE_LABEL => [:triples, :_triplesBlock_1],
357
- :IRIREF => [:triples, :_triplesBlock_1],
358
- :PNAME_LN => [:triples, :_triplesBlock_1],
359
- :PNAME_NS => [:triples, :_triplesBlock_1],
360
- "[" => [:triples, :_triplesBlock_1],
361
- },
362
- :_triplesBlock_1 => {
363
- "." => [:_triplesBlock_2],
364
- "}" => [],
365
- },
366
- :_triplesBlock_2 => {
367
- "." => [".", :_triplesBlock_3],
368
- },
369
- :_triplesBlock_3 => {
370
- "(" => [:triplesBlock],
371
- :ANON => [:triplesBlock],
372
- :BLANK_NODE_LABEL => [:triplesBlock],
373
- :IRIREF => [:triplesBlock],
374
- :PNAME_LN => [:triplesBlock],
375
- :PNAME_NS => [:triplesBlock],
376
- "[" => [:triplesBlock],
377
- "}" => [],
378
- },
379
- :triplesOrGraph => {
380
- :ANON => [:labelOrSubject, :_triplesOrGraph_1],
381
- :BLANK_NODE_LABEL => [:labelOrSubject, :_triplesOrGraph_1],
382
- :IRIREF => [:labelOrSubject, :_triplesOrGraph_1],
383
- :PNAME_LN => [:labelOrSubject, :_triplesOrGraph_1],
384
- :PNAME_NS => [:labelOrSubject, :_triplesOrGraph_1],
385
- },
386
- :_triplesOrGraph_1 => {
387
- :IRIREF => [:_triplesOrGraph_2],
388
- :PNAME_LN => [:_triplesOrGraph_2],
389
- :PNAME_NS => [:_triplesOrGraph_2],
390
- "a" => [:_triplesOrGraph_2],
391
- "{" => [:wrappedGraph],
392
- },
393
- :_triplesOrGraph_2 => {
394
- :IRIREF => [:predicateObjectList, "."],
395
- :PNAME_LN => [:predicateObjectList, "."],
396
- :PNAME_NS => [:predicateObjectList, "."],
397
- "a" => [:predicateObjectList, "."],
398
- },
399
- :_triples_1 => {
400
- "(" => [:subject, :predicateObjectList],
401
- :ANON => [:subject, :predicateObjectList],
402
- :BLANK_NODE_LABEL => [:subject, :predicateObjectList],
403
- :IRIREF => [:subject, :predicateObjectList],
404
- :PNAME_LN => [:subject, :predicateObjectList],
405
- :PNAME_NS => [:subject, :predicateObjectList],
406
- },
407
- :_triples_2 => {
408
- "[" => [:blankNodePropertyList, :_triples_3],
409
- },
410
- :_triples_3 => {
411
- "." => [],
412
- :IRIREF => [:predicateObjectList],
413
- :PNAME_LN => [:predicateObjectList],
414
- :PNAME_NS => [:predicateObjectList],
415
- "a" => [:predicateObjectList],
416
- "}" => [],
417
- },
418
- :verb => {
419
- :IRIREF => [:predicate],
420
- :PNAME_LN => [:predicate],
421
- :PNAME_NS => [:predicate],
422
- "a" => ["a"],
423
- },
424
- :wrappedGraph => {
425
- "{" => ["{", :_wrappedGraph_1, "}"],
426
- },
427
- :_wrappedGraph_1 => {
428
- "(" => [:triplesBlock],
429
- :ANON => [:triplesBlock],
430
- :BLANK_NODE_LABEL => [:triplesBlock],
431
- :IRIREF => [:triplesBlock],
432
- :PNAME_LN => [:triplesBlock],
433
- :PNAME_NS => [:triplesBlock],
434
- "[" => [:triplesBlock],
435
- "}" => [],
436
- },
437
- }.freeze
438
- TERMINALS = [
439
- "(",
440
- ")",
441
- ",",
442
- ".",
443
- ";",
444
- :ANON,
445
- :BASE,
446
- :BLANK_NODE_LABEL,
447
- :DECIMAL,
448
- :DOUBLE,
449
- :GRAPH,
450
- :INTEGER,
451
- :IRIREF,
452
- :LANGTAG,
453
- :PNAME_LN,
454
- :PNAME_NS,
455
- :PREFIX,
456
- :STRING_LITERAL_LONG_QUOTE,
457
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
458
- :STRING_LITERAL_QUOTE,
459
- :STRING_LITERAL_SINGLE_QUOTE,
460
- "[",
461
- "]",
462
- "^^",
463
- "a",
464
- "false",
465
- "true",
466
- "{",
467
- "}"
468
- ].freeze
469
- FIRST = {
470
- :BlankNode => [
471
- :BLANK_NODE_LABEL,
472
- :ANON],
473
- :BooleanLiteral => [
474
- "true",
475
- "false"],
476
- :NumericLiteral => [
477
- :INTEGER,
478
- :DECIMAL,
479
- :DOUBLE],
480
- :PrefixedName => [
481
- :PNAME_LN,
482
- :PNAME_NS],
483
- :RDFLiteral => [
484
- :STRING_LITERAL_QUOTE,
485
- :STRING_LITERAL_SINGLE_QUOTE,
486
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
487
- :STRING_LITERAL_LONG_QUOTE],
488
- :_RDFLiteral_1 => [
489
- :_eps,
490
- :LANGTAG,
491
- "^^"],
492
- :_RDFLiteral_2 => [
493
- :LANGTAG,
494
- "^^"],
495
- :_RDFLiteral_3 => [
496
- "^^"],
497
- :_RDFLiteral_4 => [
498
- :LANGTAG,
499
- :_eps,
500
- "^^"],
501
- :String => [
502
- :STRING_LITERAL_QUOTE,
503
- :STRING_LITERAL_SINGLE_QUOTE,
504
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
505
- :STRING_LITERAL_LONG_QUOTE],
506
- :base => [
507
- :BASE],
508
- :_base_1 => [
509
- ".",
510
- :_eps],
511
- :_base_2 => [
512
- :IRIREF],
513
- :_base_3 => [
514
- ".",
515
- :_eps],
516
- :blank => [
517
- :BLANK_NODE_LABEL,
518
- :ANON,
519
- "("],
520
- :blankNodePropertyList => [
521
- "["],
522
- :_blankNodePropertyList_1 => [
523
- "a",
524
- :IRIREF,
525
- :PNAME_LN,
526
- :PNAME_NS],
527
- :_blankNodePropertyList_2 => [
528
- "]"],
529
- :block => [
530
- "{",
531
- :GRAPH,
532
- :IRIREF,
533
- :BLANK_NODE_LABEL,
534
- :ANON,
535
- "[",
536
- "(",
537
- :PNAME_LN,
538
- :PNAME_NS],
539
- :_block_1 => [
540
- :GRAPH],
541
- :_block_2 => [
542
- :IRIREF,
543
- :BLANK_NODE_LABEL,
544
- :ANON,
545
- :PNAME_LN,
546
- :PNAME_NS],
547
- :_block_3 => [
548
- "{"],
549
- :collection => [
550
- "("],
551
- :_collection_1 => [
552
- :_eps,
553
- :IRIREF,
554
- "[",
555
- :PNAME_LN,
556
- :PNAME_NS,
557
- :BLANK_NODE_LABEL,
558
- :ANON,
559
- "(",
560
- :INTEGER,
561
- :DECIMAL,
562
- :DOUBLE,
563
- "true",
564
- "false",
565
- :STRING_LITERAL_QUOTE,
566
- :STRING_LITERAL_SINGLE_QUOTE,
567
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
568
- :STRING_LITERAL_LONG_QUOTE],
569
- :_collection_2 => [
570
- :IRIREF,
571
- "[",
572
- :PNAME_LN,
573
- :PNAME_NS,
574
- :BLANK_NODE_LABEL,
575
- :ANON,
576
- "(",
577
- :INTEGER,
578
- :DECIMAL,
579
- :DOUBLE,
580
- "true",
581
- "false",
582
- :STRING_LITERAL_QUOTE,
583
- :STRING_LITERAL_SINGLE_QUOTE,
584
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
585
- :STRING_LITERAL_LONG_QUOTE],
586
- :_collection_3 => [
587
- ")",
588
- :IRIREF,
589
- "[",
590
- :PNAME_LN,
591
- :PNAME_NS,
592
- :BLANK_NODE_LABEL,
593
- :ANON,
594
- "(",
595
- :INTEGER,
596
- :DECIMAL,
597
- :DOUBLE,
598
- "true",
599
- "false",
600
- :STRING_LITERAL_QUOTE,
601
- :STRING_LITERAL_SINGLE_QUOTE,
602
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
603
- :STRING_LITERAL_LONG_QUOTE],
604
- :_collection_4 => [
605
- :_eps,
606
- :IRIREF,
607
- "[",
608
- :PNAME_LN,
609
- :PNAME_NS,
610
- :BLANK_NODE_LABEL,
611
- :ANON,
612
- "(",
613
- :INTEGER,
614
- :DECIMAL,
615
- :DOUBLE,
616
- "true",
617
- "false",
618
- :STRING_LITERAL_QUOTE,
619
- :STRING_LITERAL_SINGLE_QUOTE,
620
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
621
- :STRING_LITERAL_LONG_QUOTE],
622
- :_collection_5 => [
623
- ")"],
624
- :directive => [
625
- :PREFIX,
626
- :BASE],
627
- :_empty => [
628
- :_eps],
629
- :iri => [
630
- :IRIREF,
631
- :PNAME_LN,
632
- :PNAME_NS],
633
- :labelOrSubject => [
634
- :IRIREF,
635
- :BLANK_NODE_LABEL,
636
- :ANON,
637
- :PNAME_LN,
638
- :PNAME_NS],
639
- :literal => [
640
- :INTEGER,
641
- :DECIMAL,
642
- :DOUBLE,
643
- "true",
644
- "false",
645
- :STRING_LITERAL_QUOTE,
646
- :STRING_LITERAL_SINGLE_QUOTE,
647
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
648
- :STRING_LITERAL_LONG_QUOTE],
649
- :object => [
650
- :IRIREF,
651
- "[",
652
- :PNAME_LN,
653
- :PNAME_NS,
654
- :BLANK_NODE_LABEL,
655
- :ANON,
656
- "(",
657
- :INTEGER,
658
- :DECIMAL,
659
- :DOUBLE,
660
- "true",
661
- "false",
662
- :STRING_LITERAL_QUOTE,
663
- :STRING_LITERAL_SINGLE_QUOTE,
664
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
665
- :STRING_LITERAL_LONG_QUOTE],
666
- :objectList => [
667
- :IRIREF,
668
- "[",
669
- :PNAME_LN,
670
- :PNAME_NS,
671
- :BLANK_NODE_LABEL,
672
- :ANON,
673
- "(",
674
- :INTEGER,
675
- :DECIMAL,
676
- :DOUBLE,
677
- "true",
678
- "false",
679
- :STRING_LITERAL_QUOTE,
680
- :STRING_LITERAL_SINGLE_QUOTE,
681
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
682
- :STRING_LITERAL_LONG_QUOTE],
683
- :_objectList_1 => [
684
- :_eps,
685
- ","],
686
- :_objectList_2 => [
687
- ","],
688
- :_objectList_3 => [
689
- ","],
690
- :_objectList_4 => [
691
- :_eps,
692
- ","],
693
- :_objectList_5 => [
694
- :_eps,
695
- ","],
696
- :_objectList_6 => [
697
- :IRIREF,
698
- "[",
699
- :PNAME_LN,
700
- :PNAME_NS,
701
- :BLANK_NODE_LABEL,
702
- :ANON,
703
- "(",
704
- :INTEGER,
705
- :DECIMAL,
706
- :DOUBLE,
707
- "true",
708
- "false",
709
- :STRING_LITERAL_QUOTE,
710
- :STRING_LITERAL_SINGLE_QUOTE,
711
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
712
- :STRING_LITERAL_LONG_QUOTE],
713
- :predicate => [
714
- :IRIREF,
715
- :PNAME_LN,
716
- :PNAME_NS],
717
- :predicateObjectList => [
718
- "a",
719
- :IRIREF,
720
- :PNAME_LN,
721
- :PNAME_NS],
722
- :_predicateObjectList_1 => [
723
- :_eps,
724
- ";"],
725
- :_predicateObjectList_2 => [
726
- ";"],
727
- :_predicateObjectList_3 => [
728
- ";"],
729
- :_predicateObjectList_4 => [
730
- :_eps,
731
- "a",
732
- :IRIREF,
733
- :PNAME_LN,
734
- :PNAME_NS],
735
- :_predicateObjectList_5 => [
736
- "a",
737
- :IRIREF,
738
- :PNAME_LN,
739
- :PNAME_NS],
740
- :_predicateObjectList_6 => [
741
- :IRIREF,
742
- "[",
743
- :PNAME_LN,
744
- :PNAME_NS,
745
- :BLANK_NODE_LABEL,
746
- :ANON,
747
- "(",
748
- :INTEGER,
749
- :DECIMAL,
750
- :DOUBLE,
751
- "true",
752
- "false",
753
- :STRING_LITERAL_QUOTE,
754
- :STRING_LITERAL_SINGLE_QUOTE,
755
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
756
- :STRING_LITERAL_LONG_QUOTE],
757
- :_predicateObjectList_7 => [
758
- :_eps,
759
- ";"],
760
- :_predicateObjectList_8 => [
761
- :_eps,
762
- "a",
763
- :IRIREF,
764
- :PNAME_LN,
765
- :PNAME_NS],
766
- :_predicateObjectList_9 => [
767
- :IRIREF,
768
- "[",
769
- :PNAME_LN,
770
- :PNAME_NS,
771
- :BLANK_NODE_LABEL,
772
- :ANON,
773
- "(",
774
- :INTEGER,
775
- :DECIMAL,
776
- :DOUBLE,
777
- "true",
778
- "false",
779
- :STRING_LITERAL_QUOTE,
780
- :STRING_LITERAL_SINGLE_QUOTE,
781
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
782
- :STRING_LITERAL_LONG_QUOTE],
783
- :prefixID => [
784
- :PREFIX],
785
- :_prefixID_1 => [
786
- ".",
787
- :_eps],
788
- :_prefixID_2 => [
789
- :PNAME_NS],
790
- :_prefixID_3 => [
791
- :IRIREF],
792
- :_prefixID_4 => [
793
- ".",
794
- :_eps],
795
- :subject => [
796
- :IRIREF,
797
- :PNAME_LN,
798
- :PNAME_NS,
799
- :BLANK_NODE_LABEL,
800
- :ANON,
801
- "("],
802
- :trigDoc => [
803
- :_eps,
804
- :PREFIX,
805
- :BASE,
806
- "{",
807
- :GRAPH,
808
- :IRIREF,
809
- :BLANK_NODE_LABEL,
810
- :ANON,
811
- "[",
812
- "(",
813
- :PNAME_LN,
814
- :PNAME_NS],
815
- :_trigDoc_1 => [
816
- :PREFIX,
817
- :BASE,
818
- "{",
819
- :GRAPH,
820
- :IRIREF,
821
- :BLANK_NODE_LABEL,
822
- :ANON,
823
- "[",
824
- "(",
825
- :PNAME_LN,
826
- :PNAME_NS],
827
- :_trigDoc_2 => [
828
- :PREFIX,
829
- :BASE,
830
- "{",
831
- :GRAPH,
832
- :IRIREF,
833
- :BLANK_NODE_LABEL,
834
- :ANON,
835
- "[",
836
- "(",
837
- :PNAME_LN,
838
- :PNAME_NS],
839
- :_trigDoc_3 => [
840
- :_eps,
841
- :PREFIX,
842
- :BASE,
843
- "{",
844
- :GRAPH,
845
- :IRIREF,
846
- :BLANK_NODE_LABEL,
847
- :ANON,
848
- "[",
849
- "(",
850
- :PNAME_LN,
851
- :PNAME_NS],
852
- :triples => [
853
- "[",
854
- :IRIREF,
855
- :PNAME_LN,
856
- :PNAME_NS,
857
- :BLANK_NODE_LABEL,
858
- :ANON,
859
- "("],
860
- :triples2 => [
861
- "[",
862
- "("],
863
- :_triples2_1 => [
864
- "["],
865
- :_triples2_2 => [
866
- "("],
867
- :_triples2_3 => [
868
- :_eps,
869
- "a",
870
- :IRIREF,
871
- :PNAME_LN,
872
- :PNAME_NS],
873
- :_triples2_4 => [
874
- ".",
875
- "a",
876
- :IRIREF,
877
- :PNAME_LN,
878
- :PNAME_NS],
879
- :triplesBlock => [
880
- "[",
881
- :IRIREF,
882
- :PNAME_LN,
883
- :PNAME_NS,
884
- :BLANK_NODE_LABEL,
885
- :ANON,
886
- "("],
887
- :_triplesBlock_1 => [
888
- :_eps,
889
- "."],
890
- :_triplesBlock_2 => [
891
- "."],
892
- :_triplesBlock_3 => [
893
- :_eps,
894
- "[",
895
- :IRIREF,
896
- :PNAME_LN,
897
- :PNAME_NS,
898
- :BLANK_NODE_LABEL,
899
- :ANON,
900
- "("],
901
- :_triplesBlock_4 => [
902
- ".",
903
- :_eps],
904
- :_triplesBlock_5 => [
905
- :_eps,
906
- "[",
907
- :IRIREF,
908
- :PNAME_LN,
909
- :PNAME_NS,
910
- :BLANK_NODE_LABEL,
911
- :ANON,
912
- "("],
913
- :triplesOrGraph => [
914
- :IRIREF,
915
- :BLANK_NODE_LABEL,
916
- :ANON,
917
- :PNAME_LN,
918
- :PNAME_NS],
919
- :_triplesOrGraph_1 => [
920
- "{",
921
- "a",
922
- :IRIREF,
923
- :PNAME_LN,
924
- :PNAME_NS],
925
- :_triplesOrGraph_2 => [
926
- "a",
927
- :IRIREF,
928
- :PNAME_LN,
929
- :PNAME_NS],
930
- :_triplesOrGraph_3 => [
931
- "{",
932
- "a",
933
- :IRIREF,
934
- :PNAME_LN,
935
- :PNAME_NS],
936
- :_triplesOrGraph_4 => [
937
- "."],
938
- :_triples_1 => [
939
- :IRIREF,
940
- :PNAME_LN,
941
- :PNAME_NS,
942
- :BLANK_NODE_LABEL,
943
- :ANON,
944
- "("],
945
- :_triples_2 => [
946
- "["],
947
- :_triples_3 => [
948
- :_eps,
949
- "a",
950
- :IRIREF,
951
- :PNAME_LN,
952
- :PNAME_NS],
953
- :_triples_4 => [
954
- "a",
955
- :IRIREF,
956
- :PNAME_LN,
957
- :PNAME_NS],
958
- :_triples_5 => [
959
- :_eps,
960
- "a",
961
- :IRIREF,
962
- :PNAME_LN,
963
- :PNAME_NS],
964
- :verb => [
965
- "a",
966
- :IRIREF,
967
- :PNAME_LN,
968
- :PNAME_NS],
969
- :wrappedGraph => [
970
- "{"],
971
- :_wrappedGraph_1 => [
972
- :_eps,
973
- "[",
974
- :IRIREF,
975
- :PNAME_LN,
976
- :PNAME_NS,
977
- :BLANK_NODE_LABEL,
978
- :ANON,
979
- "("],
980
- :_wrappedGraph_2 => [
981
- "}",
982
- "[",
983
- :IRIREF,
984
- :PNAME_LN,
985
- :PNAME_NS,
986
- :BLANK_NODE_LABEL,
987
- :ANON,
988
- "("],
989
- :_wrappedGraph_3 => [
990
- "}"],
991
- }.freeze
992
- FOLLOW = {
993
- :BlankNode => [
994
- "{",
995
- "a",
996
- ")",
997
- ",",
998
- ".",
999
- "]",
1000
- :IRIREF,
1001
- "[",
1002
- ";",
1003
- "}",
1004
- :PNAME_LN,
1005
- :PNAME_NS,
1006
- :BLANK_NODE_LABEL,
1007
- :ANON,
1008
- "(",
1009
- :INTEGER,
1010
- :DECIMAL,
1011
- :DOUBLE,
1012
- "true",
1013
- "false",
1014
- :STRING_LITERAL_QUOTE,
1015
- :STRING_LITERAL_SINGLE_QUOTE,
1016
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1017
- :STRING_LITERAL_LONG_QUOTE],
1018
- :BooleanLiteral => [
1019
- ")",
1020
- ",",
1021
- ".",
1022
- "]",
1023
- :IRIREF,
1024
- "[",
1025
- ";",
1026
- "}",
1027
- :PNAME_LN,
1028
- :PNAME_NS,
1029
- :BLANK_NODE_LABEL,
1030
- :ANON,
1031
- "(",
1032
- :INTEGER,
1033
- :DECIMAL,
1034
- :DOUBLE,
1035
- "true",
1036
- "false",
1037
- :STRING_LITERAL_QUOTE,
1038
- :STRING_LITERAL_SINGLE_QUOTE,
1039
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1040
- :STRING_LITERAL_LONG_QUOTE],
1041
- :NumericLiteral => [
1042
- ")",
1043
- ",",
1044
- ".",
1045
- "]",
1046
- :IRIREF,
1047
- "[",
1048
- ";",
1049
- "}",
1050
- :PNAME_LN,
1051
- :PNAME_NS,
1052
- :BLANK_NODE_LABEL,
1053
- :ANON,
1054
- "(",
1055
- :INTEGER,
1056
- :DECIMAL,
1057
- :DOUBLE,
1058
- "true",
1059
- "false",
1060
- :STRING_LITERAL_QUOTE,
1061
- :STRING_LITERAL_SINGLE_QUOTE,
1062
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1063
- :STRING_LITERAL_LONG_QUOTE],
1064
- :PrefixedName => [
1065
- "{",
1066
- "a",
1067
- :IRIREF,
1068
- "[",
1069
- ")",
1070
- ",",
1071
- ".",
1072
- "]",
1073
- :PNAME_LN,
1074
- :PNAME_NS,
1075
- :BLANK_NODE_LABEL,
1076
- :ANON,
1077
- "(",
1078
- :INTEGER,
1079
- :DECIMAL,
1080
- :DOUBLE,
1081
- "true",
1082
- "false",
1083
- ";",
1084
- "}",
1085
- :STRING_LITERAL_QUOTE,
1086
- :STRING_LITERAL_SINGLE_QUOTE,
1087
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1088
- :STRING_LITERAL_LONG_QUOTE],
1089
- :RDFLiteral => [
1090
- ")",
1091
- ",",
1092
- ".",
1093
- "]",
1094
- :IRIREF,
1095
- "[",
1096
- ";",
1097
- "}",
1098
- :PNAME_LN,
1099
- :PNAME_NS,
1100
- :BLANK_NODE_LABEL,
1101
- :ANON,
1102
- "(",
1103
- :INTEGER,
1104
- :DECIMAL,
1105
- :DOUBLE,
1106
- "true",
1107
- "false",
1108
- :STRING_LITERAL_QUOTE,
1109
- :STRING_LITERAL_SINGLE_QUOTE,
1110
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1111
- :STRING_LITERAL_LONG_QUOTE],
1112
- :_RDFLiteral_1 => [
1113
- ")",
1114
- ",",
1115
- ".",
1116
- "]",
1117
- :IRIREF,
1118
- "[",
1119
- ";",
1120
- "}",
1121
- :PNAME_LN,
1122
- :PNAME_NS,
1123
- :BLANK_NODE_LABEL,
1124
- :ANON,
1125
- "(",
1126
- :INTEGER,
1127
- :DECIMAL,
1128
- :DOUBLE,
1129
- "true",
1130
- "false",
1131
- :STRING_LITERAL_QUOTE,
1132
- :STRING_LITERAL_SINGLE_QUOTE,
1133
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1134
- :STRING_LITERAL_LONG_QUOTE],
1135
- :_RDFLiteral_2 => [
1136
- ")",
1137
- ",",
1138
- ".",
1139
- "]",
1140
- :IRIREF,
1141
- "[",
1142
- ";",
1143
- "}",
1144
- :PNAME_LN,
1145
- :PNAME_NS,
1146
- :BLANK_NODE_LABEL,
1147
- :ANON,
1148
- "(",
1149
- :INTEGER,
1150
- :DECIMAL,
1151
- :DOUBLE,
1152
- "true",
1153
- "false",
1154
- :STRING_LITERAL_QUOTE,
1155
- :STRING_LITERAL_SINGLE_QUOTE,
1156
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1157
- :STRING_LITERAL_LONG_QUOTE],
1158
- :_RDFLiteral_3 => [
1159
- ")",
1160
- ",",
1161
- ".",
1162
- "]",
1163
- :IRIREF,
1164
- "[",
1165
- ";",
1166
- "}",
1167
- :PNAME_LN,
1168
- :PNAME_NS,
1169
- :BLANK_NODE_LABEL,
1170
- :ANON,
1171
- "(",
1172
- :INTEGER,
1173
- :DECIMAL,
1174
- :DOUBLE,
1175
- "true",
1176
- "false",
1177
- :STRING_LITERAL_QUOTE,
1178
- :STRING_LITERAL_SINGLE_QUOTE,
1179
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1180
- :STRING_LITERAL_LONG_QUOTE],
1181
- :_RDFLiteral_4 => [
1182
- ")",
1183
- ",",
1184
- ".",
1185
- "]",
1186
- :IRIREF,
1187
- "[",
1188
- ";",
1189
- "}",
1190
- :PNAME_LN,
1191
- :PNAME_NS,
1192
- :BLANK_NODE_LABEL,
1193
- :ANON,
1194
- "(",
1195
- :INTEGER,
1196
- :DECIMAL,
1197
- :DOUBLE,
1198
- "true",
1199
- "false",
1200
- :STRING_LITERAL_QUOTE,
1201
- :STRING_LITERAL_SINGLE_QUOTE,
1202
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1203
- :STRING_LITERAL_LONG_QUOTE],
1204
- :String => [
1205
- :LANGTAG,
1206
- "^^",
1207
- ")",
1208
- ",",
1209
- ".",
1210
- "]",
1211
- :IRIREF,
1212
- "[",
1213
- ";",
1214
- "}",
1215
- :PNAME_LN,
1216
- :PNAME_NS,
1217
- :BLANK_NODE_LABEL,
1218
- :ANON,
1219
- "(",
1220
- :INTEGER,
1221
- :DECIMAL,
1222
- :DOUBLE,
1223
- "true",
1224
- "false",
1225
- :STRING_LITERAL_QUOTE,
1226
- :STRING_LITERAL_SINGLE_QUOTE,
1227
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1228
- :STRING_LITERAL_LONG_QUOTE],
1229
- :base => [
1230
- :_eof,
1231
- :PREFIX,
1232
- :BASE,
1233
- "{",
1234
- :GRAPH,
1235
- :IRIREF,
1236
- :BLANK_NODE_LABEL,
1237
- :ANON,
1238
- "[",
1239
- "(",
1240
- :PNAME_LN,
1241
- :PNAME_NS],
1242
- :_base_1 => [
1243
- :_eof,
1244
- :PREFIX,
1245
- :BASE,
1246
- "{",
1247
- :GRAPH,
1248
- :IRIREF,
1249
- :BLANK_NODE_LABEL,
1250
- :ANON,
1251
- "[",
1252
- "(",
1253
- :PNAME_LN,
1254
- :PNAME_NS],
1255
- :_base_2 => [
1256
- :_eof,
1257
- :PREFIX,
1258
- :BASE,
1259
- "{",
1260
- :GRAPH,
1261
- :IRIREF,
1262
- :BLANK_NODE_LABEL,
1263
- :ANON,
1264
- "[",
1265
- "(",
1266
- :PNAME_LN,
1267
- :PNAME_NS],
1268
- :_base_3 => [
1269
- :_eof,
1270
- :PREFIX,
1271
- :BASE,
1272
- "{",
1273
- :GRAPH,
1274
- :IRIREF,
1275
- :BLANK_NODE_LABEL,
1276
- :ANON,
1277
- "[",
1278
- "(",
1279
- :PNAME_LN,
1280
- :PNAME_NS],
1281
- :blank => [
1282
- "a",
1283
- ")",
1284
- ",",
1285
- ".",
1286
- "]",
1287
- :IRIREF,
1288
- "[",
1289
- ";",
1290
- "}",
1291
- :PNAME_LN,
1292
- :PNAME_NS,
1293
- :BLANK_NODE_LABEL,
1294
- :ANON,
1295
- "(",
1296
- :INTEGER,
1297
- :DECIMAL,
1298
- :DOUBLE,
1299
- "true",
1300
- "false",
1301
- :STRING_LITERAL_QUOTE,
1302
- :STRING_LITERAL_SINGLE_QUOTE,
1303
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1304
- :STRING_LITERAL_LONG_QUOTE],
1305
- :blankNodePropertyList => [
1306
- ".",
1307
- "}",
1308
- "a",
1309
- ")",
1310
- ",",
1311
- "]",
1312
- :IRIREF,
1313
- "[",
1314
- ";",
1315
- :PNAME_LN,
1316
- :PNAME_NS,
1317
- :BLANK_NODE_LABEL,
1318
- :ANON,
1319
- "(",
1320
- :INTEGER,
1321
- :DECIMAL,
1322
- :DOUBLE,
1323
- "true",
1324
- "false",
1325
- :STRING_LITERAL_QUOTE,
1326
- :STRING_LITERAL_SINGLE_QUOTE,
1327
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1328
- :STRING_LITERAL_LONG_QUOTE],
1329
- :_blankNodePropertyList_1 => [
1330
- ".",
1331
- "}",
1332
- "a",
1333
- ")",
1334
- ",",
1335
- "]",
1336
- :IRIREF,
1337
- "[",
1338
- ";",
1339
- :PNAME_LN,
1340
- :PNAME_NS,
1341
- :BLANK_NODE_LABEL,
1342
- :ANON,
1343
- "(",
1344
- :INTEGER,
1345
- :DECIMAL,
1346
- :DOUBLE,
1347
- "true",
1348
- "false",
1349
- :STRING_LITERAL_QUOTE,
1350
- :STRING_LITERAL_SINGLE_QUOTE,
1351
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1352
- :STRING_LITERAL_LONG_QUOTE],
1353
- :_blankNodePropertyList_2 => [
1354
- ".",
1355
- "}",
1356
- "a",
1357
- ")",
1358
- ",",
1359
- "]",
1360
- :IRIREF,
1361
- "[",
1362
- ";",
1363
- :PNAME_LN,
1364
- :PNAME_NS,
1365
- :BLANK_NODE_LABEL,
1366
- :ANON,
1367
- "(",
1368
- :INTEGER,
1369
- :DECIMAL,
1370
- :DOUBLE,
1371
- "true",
1372
- "false",
1373
- :STRING_LITERAL_QUOTE,
1374
- :STRING_LITERAL_SINGLE_QUOTE,
1375
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1376
- :STRING_LITERAL_LONG_QUOTE],
1377
- :block => [
1378
- :_eof,
1379
- :PREFIX,
1380
- :BASE,
1381
- "{",
1382
- :GRAPH,
1383
- :IRIREF,
1384
- :BLANK_NODE_LABEL,
1385
- :ANON,
1386
- "[",
1387
- "(",
1388
- :PNAME_LN,
1389
- :PNAME_NS],
1390
- :_block_1 => [
1391
- :_eof,
1392
- :PREFIX,
1393
- :BASE,
1394
- "{",
1395
- :GRAPH,
1396
- :IRIREF,
1397
- :BLANK_NODE_LABEL,
1398
- :ANON,
1399
- "[",
1400
- "(",
1401
- :PNAME_LN,
1402
- :PNAME_NS],
1403
- :_block_2 => [
1404
- :_eof,
1405
- :PREFIX,
1406
- :BASE,
1407
- "{",
1408
- :GRAPH,
1409
- :IRIREF,
1410
- :BLANK_NODE_LABEL,
1411
- :ANON,
1412
- "[",
1413
- "(",
1414
- :PNAME_LN,
1415
- :PNAME_NS],
1416
- :_block_3 => [
1417
- :_eof,
1418
- :PREFIX,
1419
- :BASE,
1420
- "{",
1421
- :GRAPH,
1422
- :IRIREF,
1423
- :BLANK_NODE_LABEL,
1424
- :ANON,
1425
- "[",
1426
- "(",
1427
- :PNAME_LN,
1428
- :PNAME_NS],
1429
- :collection => [
1430
- "a",
1431
- ")",
1432
- ",",
1433
- ".",
1434
- "]",
1435
- :IRIREF,
1436
- "[",
1437
- ";",
1438
- "}",
1439
- :PNAME_LN,
1440
- :PNAME_NS,
1441
- :BLANK_NODE_LABEL,
1442
- :ANON,
1443
- "(",
1444
- :INTEGER,
1445
- :DECIMAL,
1446
- :DOUBLE,
1447
- "true",
1448
- "false",
1449
- :STRING_LITERAL_QUOTE,
1450
- :STRING_LITERAL_SINGLE_QUOTE,
1451
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1452
- :STRING_LITERAL_LONG_QUOTE],
1453
- :_collection_1 => [
1454
- ")"],
1455
- :_collection_2 => [
1456
- ")"],
1457
- :_collection_3 => [
1458
- "a",
1459
- ")",
1460
- ",",
1461
- ".",
1462
- "]",
1463
- :IRIREF,
1464
- "[",
1465
- ";",
1466
- "}",
1467
- :PNAME_LN,
1468
- :PNAME_NS,
1469
- :BLANK_NODE_LABEL,
1470
- :ANON,
1471
- "(",
1472
- :INTEGER,
1473
- :DECIMAL,
1474
- :DOUBLE,
1475
- "true",
1476
- "false",
1477
- :STRING_LITERAL_QUOTE,
1478
- :STRING_LITERAL_SINGLE_QUOTE,
1479
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1480
- :STRING_LITERAL_LONG_QUOTE],
1481
- :_collection_4 => [
1482
- ")"],
1483
- :_collection_5 => [
1484
- "a",
1485
- ")",
1486
- ",",
1487
- ".",
1488
- "]",
1489
- :IRIREF,
1490
- "[",
1491
- ";",
1492
- "}",
1493
- :PNAME_LN,
1494
- :PNAME_NS,
1495
- :BLANK_NODE_LABEL,
1496
- :ANON,
1497
- "(",
1498
- :INTEGER,
1499
- :DECIMAL,
1500
- :DOUBLE,
1501
- "true",
1502
- "false",
1503
- :STRING_LITERAL_QUOTE,
1504
- :STRING_LITERAL_SINGLE_QUOTE,
1505
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1506
- :STRING_LITERAL_LONG_QUOTE],
1507
- :directive => [
1508
- :_eof,
1509
- :PREFIX,
1510
- :BASE,
1511
- "{",
1512
- :GRAPH,
1513
- :IRIREF,
1514
- :BLANK_NODE_LABEL,
1515
- :ANON,
1516
- "[",
1517
- "(",
1518
- :PNAME_LN,
1519
- :PNAME_NS],
1520
- :iri => [
1521
- "{",
1522
- "a",
1523
- :IRIREF,
1524
- "[",
1525
- ")",
1526
- ",",
1527
- ".",
1528
- "]",
1529
- :PNAME_LN,
1530
- :PNAME_NS,
1531
- :BLANK_NODE_LABEL,
1532
- :ANON,
1533
- "(",
1534
- :INTEGER,
1535
- :DECIMAL,
1536
- :DOUBLE,
1537
- "true",
1538
- "false",
1539
- ";",
1540
- "}",
1541
- :STRING_LITERAL_QUOTE,
1542
- :STRING_LITERAL_SINGLE_QUOTE,
1543
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1544
- :STRING_LITERAL_LONG_QUOTE],
1545
- :labelOrSubject => [
1546
- "{",
1547
- "a",
1548
- :IRIREF,
1549
- :PNAME_LN,
1550
- :PNAME_NS],
1551
- :literal => [
1552
- ")",
1553
- ",",
1554
- ".",
1555
- "]",
1556
- :IRIREF,
1557
- "[",
1558
- ";",
1559
- "}",
1560
- :PNAME_LN,
1561
- :PNAME_NS,
1562
- :BLANK_NODE_LABEL,
1563
- :ANON,
1564
- "(",
1565
- :INTEGER,
1566
- :DECIMAL,
1567
- :DOUBLE,
1568
- "true",
1569
- "false",
1570
- :STRING_LITERAL_QUOTE,
1571
- :STRING_LITERAL_SINGLE_QUOTE,
1572
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1573
- :STRING_LITERAL_LONG_QUOTE],
1574
- :object => [
1575
- ")",
1576
- ",",
1577
- ".",
1578
- "]",
1579
- :IRIREF,
1580
- "[",
1581
- ";",
1582
- "}",
1583
- :PNAME_LN,
1584
- :PNAME_NS,
1585
- :BLANK_NODE_LABEL,
1586
- :ANON,
1587
- "(",
1588
- :INTEGER,
1589
- :DECIMAL,
1590
- :DOUBLE,
1591
- "true",
1592
- "false",
1593
- :STRING_LITERAL_QUOTE,
1594
- :STRING_LITERAL_SINGLE_QUOTE,
1595
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1596
- :STRING_LITERAL_LONG_QUOTE],
1597
- :objectList => [
1598
- ".",
1599
- "]",
1600
- ";",
1601
- "}"],
1602
- :_objectList_1 => [
1603
- ".",
1604
- "]",
1605
- ";",
1606
- "}"],
1607
- :_objectList_2 => [
1608
- ",",
1609
- ".",
1610
- "]",
1611
- ";",
1612
- "}"],
1613
- :_objectList_3 => [
1614
- ".",
1615
- "]",
1616
- ";",
1617
- "}"],
1618
- :_objectList_4 => [
1619
- ".",
1620
- "]",
1621
- ";",
1622
- "}"],
1623
- :_objectList_5 => [
1624
- ".",
1625
- "]",
1626
- ";",
1627
- "}"],
1628
- :_objectList_6 => [
1629
- ",",
1630
- ".",
1631
- "]",
1632
- ";",
1633
- "}"],
1634
- :predicate => [
1635
- :IRIREF,
1636
- "[",
1637
- :PNAME_LN,
1638
- :PNAME_NS,
1639
- :BLANK_NODE_LABEL,
1640
- :ANON,
1641
- "(",
1642
- :INTEGER,
1643
- :DECIMAL,
1644
- :DOUBLE,
1645
- "true",
1646
- "false",
1647
- ")",
1648
- ",",
1649
- ".",
1650
- "]",
1651
- :STRING_LITERAL_QUOTE,
1652
- :STRING_LITERAL_SINGLE_QUOTE,
1653
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1654
- :STRING_LITERAL_LONG_QUOTE,
1655
- ";",
1656
- "}"],
1657
- :predicateObjectList => [
1658
- ".",
1659
- "]",
1660
- "}"],
1661
- :_predicateObjectList_1 => [
1662
- ".",
1663
- "]",
1664
- "}"],
1665
- :_predicateObjectList_2 => [
1666
- ".",
1667
- ";",
1668
- "]",
1669
- "}"],
1670
- :_predicateObjectList_3 => [
1671
- ".",
1672
- "]",
1673
- "}"],
1674
- :_predicateObjectList_4 => [
1675
- ".",
1676
- ";",
1677
- "]",
1678
- "}"],
1679
- :_predicateObjectList_5 => [
1680
- ".",
1681
- ";",
1682
- "]",
1683
- "}"],
1684
- :_predicateObjectList_6 => [
1685
- ".",
1686
- "]",
1687
- "}"],
1688
- :_predicateObjectList_7 => [
1689
- ".",
1690
- "]",
1691
- "}"],
1692
- :_predicateObjectList_8 => [
1693
- ".",
1694
- ";",
1695
- "]",
1696
- "}"],
1697
- :_predicateObjectList_9 => [
1698
- ".",
1699
- ";",
1700
- "]",
1701
- "}"],
1702
- :prefixID => [
1703
- :_eof,
1704
- :PREFIX,
1705
- :BASE,
1706
- "{",
1707
- :GRAPH,
1708
- :IRIREF,
1709
- :BLANK_NODE_LABEL,
1710
- :ANON,
1711
- "[",
1712
- "(",
1713
- :PNAME_LN,
1714
- :PNAME_NS],
1715
- :_prefixID_1 => [
1716
- :_eof,
1717
- :PREFIX,
1718
- :BASE,
1719
- "{",
1720
- :GRAPH,
1721
- :IRIREF,
1722
- :BLANK_NODE_LABEL,
1723
- :ANON,
1724
- "[",
1725
- "(",
1726
- :PNAME_LN,
1727
- :PNAME_NS],
1728
- :_prefixID_2 => [
1729
- :_eof,
1730
- :PREFIX,
1731
- :BASE,
1732
- "{",
1733
- :GRAPH,
1734
- :IRIREF,
1735
- :BLANK_NODE_LABEL,
1736
- :ANON,
1737
- "[",
1738
- "(",
1739
- :PNAME_LN,
1740
- :PNAME_NS],
1741
- :_prefixID_3 => [
1742
- :_eof,
1743
- :PREFIX,
1744
- :BASE,
1745
- "{",
1746
- :GRAPH,
1747
- :IRIREF,
1748
- :BLANK_NODE_LABEL,
1749
- :ANON,
1750
- "[",
1751
- "(",
1752
- :PNAME_LN,
1753
- :PNAME_NS],
1754
- :_prefixID_4 => [
1755
- :_eof,
1756
- :PREFIX,
1757
- :BASE,
1758
- "{",
1759
- :GRAPH,
1760
- :IRIREF,
1761
- :BLANK_NODE_LABEL,
1762
- :ANON,
1763
- "[",
1764
- "(",
1765
- :PNAME_LN,
1766
- :PNAME_NS],
1767
- :subject => [
1768
- "a",
1769
- :IRIREF,
1770
- :PNAME_LN,
1771
- :PNAME_NS],
1772
- :trigDoc => [
1773
- :_eof],
1774
- :_trigDoc_1 => [
1775
- :_eof,
1776
- :PREFIX,
1777
- :BASE,
1778
- "{",
1779
- :GRAPH,
1780
- :IRIREF,
1781
- :BLANK_NODE_LABEL,
1782
- :ANON,
1783
- "[",
1784
- "(",
1785
- :PNAME_LN,
1786
- :PNAME_NS],
1787
- :_trigDoc_2 => [
1788
- :_eof],
1789
- :_trigDoc_3 => [
1790
- :_eof],
1791
- :triples => [
1792
- ".",
1793
- "}"],
1794
- :triples2 => [
1795
- :_eof,
1796
- :PREFIX,
1797
- :BASE,
1798
- "{",
1799
- :GRAPH,
1800
- :IRIREF,
1801
- :BLANK_NODE_LABEL,
1802
- :ANON,
1803
- "[",
1804
- "(",
1805
- :PNAME_LN,
1806
- :PNAME_NS],
1807
- :_triples2_1 => [
1808
- :_eof,
1809
- :PREFIX,
1810
- :BASE,
1811
- "{",
1812
- :GRAPH,
1813
- :IRIREF,
1814
- :BLANK_NODE_LABEL,
1815
- :ANON,
1816
- "[",
1817
- "(",
1818
- :PNAME_LN,
1819
- :PNAME_NS],
1820
- :_triples2_2 => [
1821
- :_eof,
1822
- :PREFIX,
1823
- :BASE,
1824
- "{",
1825
- :GRAPH,
1826
- :IRIREF,
1827
- :BLANK_NODE_LABEL,
1828
- :ANON,
1829
- "[",
1830
- "(",
1831
- :PNAME_LN,
1832
- :PNAME_NS],
1833
- :_triples2_3 => [
1834
- "."],
1835
- :_triples2_4 => [
1836
- :_eof,
1837
- :PREFIX,
1838
- :BASE,
1839
- "{",
1840
- :GRAPH,
1841
- :IRIREF,
1842
- :BLANK_NODE_LABEL,
1843
- :ANON,
1844
- "[",
1845
- "(",
1846
- :PNAME_LN,
1847
- :PNAME_NS],
1848
- :triplesBlock => [
1849
- "}"],
1850
- :_triplesBlock_1 => [
1851
- "}"],
1852
- :_triplesBlock_2 => [
1853
- "}"],
1854
- :_triplesBlock_3 => [
1855
- "}"],
1856
- :_triplesBlock_4 => [
1857
- "}"],
1858
- :_triplesBlock_5 => [
1859
- "}"],
1860
- :triplesOrGraph => [
1861
- :_eof,
1862
- :PREFIX,
1863
- :BASE,
1864
- "{",
1865
- :GRAPH,
1866
- :IRIREF,
1867
- :BLANK_NODE_LABEL,
1868
- :ANON,
1869
- "[",
1870
- "(",
1871
- :PNAME_LN,
1872
- :PNAME_NS],
1873
- :_triplesOrGraph_1 => [
1874
- :_eof,
1875
- :PREFIX,
1876
- :BASE,
1877
- "{",
1878
- :GRAPH,
1879
- :IRIREF,
1880
- :BLANK_NODE_LABEL,
1881
- :ANON,
1882
- "[",
1883
- "(",
1884
- :PNAME_LN,
1885
- :PNAME_NS],
1886
- :_triplesOrGraph_2 => [
1887
- :_eof,
1888
- :PREFIX,
1889
- :BASE,
1890
- "{",
1891
- :GRAPH,
1892
- :IRIREF,
1893
- :BLANK_NODE_LABEL,
1894
- :ANON,
1895
- "[",
1896
- "(",
1897
- :PNAME_LN,
1898
- :PNAME_NS],
1899
- :_triplesOrGraph_3 => [
1900
- :_eof,
1901
- :PREFIX,
1902
- :BASE,
1903
- "{",
1904
- :GRAPH,
1905
- :IRIREF,
1906
- :BLANK_NODE_LABEL,
1907
- :ANON,
1908
- "[",
1909
- "(",
1910
- :PNAME_LN,
1911
- :PNAME_NS],
1912
- :_triplesOrGraph_4 => [
1913
- :_eof,
1914
- :PREFIX,
1915
- :BASE,
1916
- "{",
1917
- :GRAPH,
1918
- :IRIREF,
1919
- :BLANK_NODE_LABEL,
1920
- :ANON,
1921
- "[",
1922
- "(",
1923
- :PNAME_LN,
1924
- :PNAME_NS],
1925
- :_triples_1 => [
1926
- ".",
1927
- "}"],
1928
- :_triples_2 => [
1929
- ".",
1930
- "}"],
1931
- :_triples_3 => [
1932
- ".",
1933
- "}"],
1934
- :_triples_4 => [
1935
- ".",
1936
- "}"],
1937
- :_triples_5 => [
1938
- ".",
1939
- "}"],
1940
- :verb => [
1941
- :IRIREF,
1942
- "[",
1943
- :PNAME_LN,
1944
- :PNAME_NS,
1945
- :BLANK_NODE_LABEL,
1946
- :ANON,
1947
- "(",
1948
- :INTEGER,
1949
- :DECIMAL,
1950
- :DOUBLE,
1951
- "true",
1952
- "false",
1953
- :STRING_LITERAL_QUOTE,
1954
- :STRING_LITERAL_SINGLE_QUOTE,
1955
- :STRING_LITERAL_LONG_SINGLE_QUOTE,
1956
- :STRING_LITERAL_LONG_QUOTE],
1957
- :wrappedGraph => [
1958
- :_eof,
1959
- :PREFIX,
1960
- :BASE,
1961
- "{",
1962
- :GRAPH,
1963
- :IRIREF,
1964
- :BLANK_NODE_LABEL,
1965
- :ANON,
1966
- "[",
1967
- "(",
1968
- :PNAME_LN,
1969
- :PNAME_NS],
1970
- :_wrappedGraph_1 => [
1971
- "}"],
1972
- :_wrappedGraph_2 => [
1973
- :_eof,
1974
- :PREFIX,
1975
- :BASE,
1976
- "{",
1977
- :GRAPH,
1978
- :IRIREF,
1979
- :BLANK_NODE_LABEL,
1980
- :ANON,
1981
- "[",
1982
- "(",
1983
- :PNAME_LN,
1984
- :PNAME_NS],
1985
- :_wrappedGraph_3 => [
1986
- :_eof,
1987
- :PREFIX,
1988
- :BASE,
1989
- "{",
1990
- :GRAPH,
1991
- :IRIREF,
1992
- :BLANK_NODE_LABEL,
1993
- :ANON,
1994
- "[",
1995
- "(",
1996
- :PNAME_LN,
1997
- :PNAME_NS],
1998
- }.freeze
1999
- end
2000
-