rdf-turtle 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,100 @@
1
+ require 'strscan' unless defined?(StringScanner)
2
+
3
+ module RDF::LL1
4
+ ##
5
+ # Overload StringScanner with file operations
6
+ #
7
+ # FIXME: Only implements the subset required by the Lexer for now.
8
+ #
9
+ # Reloads scanner as required until EOF.
10
+ # * Loads to a high-water and reloads when remaining size reaches a low-water.
11
+ class Scanner < StringScanner
12
+ HIGH_WATER = 10240
13
+ LOW_WATER = 2048 # Hopefully large enough to deal with long multi-line comments
14
+
15
+ ##
16
+ # @attr [IO, StringIO]
17
+ attr_reader :input
18
+
19
+ ##
20
+ # Create a scanner, from an IO or String
21
+ #
22
+ # @param [String, IO, #read] file
23
+ # @param [Hash{Symbol => Object}] options
24
+ # @option options[Integer] :high_water (HIGH_WATER)
25
+ # @option options[Integer] :low_water (LOW_WATER)
26
+ # @yield [string]
27
+ # @yieldparam [String] string data read from input file
28
+ # @yieldreturn [String] replacement read data, useful for decoding escapes.
29
+ # @return [Scanner]
30
+ def initialize(input, options = {}, &block)
31
+ @block = block
32
+ @options = options.merge(:high_water => HIGH_WATER, :low_water => LOW_WATER)
33
+
34
+ if input.respond_to?(:read)
35
+ @input = input
36
+ super("")
37
+ feed_me
38
+ else
39
+ super(input.to_s)
40
+ end
41
+ end
42
+
43
+ ##
44
+ # Returns the "rest" of the line, or the next line if at EOL (i.e. everything after the scan pointer).
45
+ # If there is no more data (eos? = true), it returns "".
46
+ #
47
+ # @return [String]
48
+ def rest
49
+ feed_me
50
+ super
51
+ end
52
+
53
+ ##
54
+ # Attempts to skip over the given `pattern` beginning with the scan pointer.
55
+ # If it matches, the scan pointer is advanced to the end of the match,
56
+ # and the length of the match is returned. Otherwise, `nil` is returned.
57
+ #
58
+ # similar to `scan`, but without returning the matched string.
59
+ # @param [Regexp] pattern
60
+ def skip(pattern)
61
+ feed_me
62
+ super
63
+ end
64
+
65
+ ##
66
+ # Tries to match with `pattern` at the current position.
67
+ #
68
+ # If there is a match, the scanner advances the "scan pointer" and returns the matched string.
69
+ # Otherwise, the scanner returns nil.
70
+ #
71
+ # If the scanner begins with the multi-line start expression
72
+ # @example
73
+ # s = StringScanner.new('test string')
74
+ # p s.scan(/\w+/) # -> "test"
75
+ # p s.scan(/\w+/) # -> nil
76
+ # p s.scan(/\s+/) # -> " "
77
+ # p s.scan(/\w+/) # -> "string"
78
+ # p s.scan(/./) # -> nil
79
+ #
80
+ # @param [Regexp] pattern
81
+ # @return [String]
82
+ def scan(pattern)
83
+ feed_me
84
+ super
85
+ end
86
+
87
+ private
88
+ # Maintain low-water mark
89
+ def feed_me
90
+ if rest_size < @options[:low_water] && @input && !@input.eof?
91
+ # Read up to high-water mark ensuring we're at an end of line
92
+ diff = @options[:high_water] - rest_size
93
+ string = @input.read(diff)
94
+ string << @input.gets unless @input.eof?
95
+ string = @block.call(string) if @block
96
+ self << string if string
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,35 @@
1
+ require 'rdf'
2
+
3
+ module RDF
4
+ ##
5
+ # **`RDF::Turtle`** is an Turtle plugin for RDF.rb.
6
+ #
7
+ # @example Requiring the `RDF::Turtle` module
8
+ # require 'rdf/turtle'
9
+ #
10
+ # @example Parsing RDF statements from an N3 file
11
+ # RDF::Turtle::Reader.open("etc/foaf.ttl") do |reader|
12
+ # reader.each_statement do |statement|
13
+ # puts statement.inspect
14
+ # end
15
+ # end
16
+ #
17
+ # @see http://rdf.rubyforge.org/
18
+ # @see http://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html
19
+ #
20
+ # @author [Gregg Kellogg](http://kellogg-assoc.com/)
21
+ module Turtle
22
+ require 'rdf/turtle/format'
23
+ require 'rdf/turtle/patches'
24
+ autoload :Lexer, 'rdf/turtle/lexer'
25
+ autoload :Reader, 'rdf/turtle/reader'
26
+ autoload :Terminals, 'rdf/turtle/terminals'
27
+ autoload :VERSION, 'rdf/turtle/version'
28
+ autoload :Writer, 'rdf/turtle/writer'
29
+
30
+ KEYWORDS = %w(@base @prefix).map(&:to_sym)
31
+
32
+ def self.debug?; @debug; end
33
+ def self.debug=(value); @debug = value; end
34
+ end
35
+ end
@@ -0,0 +1,41 @@
1
+ module RDF::Turtle
2
+ ##
3
+ # RDFa format specification.
4
+ #
5
+ # @example Obtaining an Notation3 format class
6
+ # RDF::Format.for("etc/foaf.ttl")
7
+ # RDF::Format.for(:file_name => "etc/foaf.ttl")
8
+ # RDF::Format.for(:file_extension => "ttl")
9
+ # RDF::Format.for(:content_type => "text/turtle")
10
+ #
11
+ # @example Obtaining serialization format MIME types
12
+ # RDF::Format.content_types #=> {"text/turtle" => [RDF::N3::Format]}
13
+ #
14
+ # @example Obtaining serialization format file extension mappings
15
+ # RDF::Format.file_extensions #=> {:ttl => "text/turtle"}
16
+ #
17
+ # @see http://www.w3.org/TR/rdf-testcases/#ntriples
18
+ class Format < RDF::Format
19
+ content_type 'text/turtle', :extension => :ttl
20
+ content_type 'text/rdf+turtle'
21
+ content_type 'application/turtle'
22
+ content_type 'application/x-turtle'
23
+ content_encoding 'utf-8'
24
+
25
+ reader { RDF::Turtle::Reader }
26
+ writer { RDF::Turtle::Writer }
27
+ end
28
+
29
+ # Alias for TTL format
30
+ #
31
+ # This allows the following:
32
+ #
33
+ # @example Obtaining an TTL format class
34
+ # RDF::Format.for(:ttl) # RDF::N3::TTL
35
+ # RDF::Format.for(:ttl).reader # RDF::N3::Reader
36
+ # RDF::Format.for(:ttl).writer # RDF::N3::Writer
37
+ class TTL < RDF::Format
38
+ reader { RDF::Turtle::Reader }
39
+ writer { RDF::Turtle::Writer }
40
+ end
41
+ end
@@ -0,0 +1,1748 @@
1
+ # This file is automatically generated by script/gramLL1
2
+ # BRANCH derived from etc/turtle-ll1.n3
3
+ module RDF::Turtle::Meta
4
+ START = :turtleDoc
5
+
6
+ BRANCH = {
7
+ :"_:_g0" => {
8
+ ";" => [:"_:g2164861540"],
9
+ :"ebnf:empty" => [],
10
+ },
11
+ :"_:_g1" => {
12
+ ";" => [";", :"_:_g2"],
13
+ },
14
+ :"_:_g2" => {
15
+ ";" => [],
16
+ "a" => [:"_:_g3"],
17
+ :"ebnf:empty" => [],
18
+ :IRI_REF => [:"_:_g3"],
19
+ :PNAME_LN => [:"_:_g3"],
20
+ :PNAME_NS => [:"_:_g3"],
21
+ },
22
+ :"_:_g3" => {
23
+ ";" => [],
24
+ "a" => [:verb, :objectList],
25
+ :IRI_REF => [:verb, :objectList],
26
+ :PNAME_LN => [:verb, :objectList],
27
+ :PNAME_NS => [:verb, :objectList],
28
+ },
29
+ :"_:_g4" => {
30
+ "," => [:"_:g2152509620"],
31
+ ";" => [],
32
+ :"ebnf:empty" => [],
33
+ },
34
+ :"_:_g5" => {
35
+ "," => [",", :object],
36
+ },
37
+ :"_:_g6" => {
38
+ "(" => [:"_:g2169738260"],
39
+ "[" => [:"_:g2169738260"],
40
+ "false" => [:"_:g2169738260"],
41
+ :"ebnf:empty" => [],
42
+ :ANON => [:"_:g2169738260"],
43
+ :BLANK_NODE_LABEL => [:"_:g2169738260"],
44
+ :DECIMAL => [:"_:g2169738260"],
45
+ :DECIMAL_NEGATIVE => [:"_:g2169738260"],
46
+ :DECIMAL_POSITIVE => [:"_:g2169738260"],
47
+ :DOUBLE => [:"_:g2169738260"],
48
+ :DOUBLE_NEGATIVE => [:"_:g2169738260"],
49
+ :DOUBLE_POSITIVE => [:"_:g2169738260"],
50
+ :INTEGER => [:"_:g2169738260"],
51
+ :INTEGER_NEGATIVE => [:"_:g2169738260"],
52
+ :INTEGER_POSITIVE => [:"_:g2169738260"],
53
+ :IRI_REF => [:"_:g2169738260"],
54
+ :PNAME_LN => [:"_:g2169738260"],
55
+ :PNAME_NS => [:"_:g2169738260"],
56
+ :STRING_LITERAL1 => [:"_:g2169738260"],
57
+ :STRING_LITERAL2 => [:"_:g2169738260"],
58
+ :STRING_LITERAL_LONG1 => [:"_:g2169738260"],
59
+ :STRING_LITERAL_LONG2 => [:"_:g2169738260"],
60
+ "true" => [:"_:g2169738260"],
61
+ },
62
+ :"_:_g7" => {
63
+ "(" => [],
64
+ "," => [],
65
+ "[" => [],
66
+ "^^" => [:"_:_g8"],
67
+ "false" => [],
68
+ :"ebnf:empty" => [],
69
+ :ANON => [],
70
+ :BLANK_NODE_LABEL => [],
71
+ :DECIMAL => [],
72
+ :DECIMAL_NEGATIVE => [],
73
+ :DECIMAL_POSITIVE => [],
74
+ :DOUBLE => [],
75
+ :DOUBLE_NEGATIVE => [],
76
+ :DOUBLE_POSITIVE => [],
77
+ :INTEGER => [],
78
+ :INTEGER_NEGATIVE => [],
79
+ :INTEGER_POSITIVE => [],
80
+ :IRI_REF => [],
81
+ :LANGTAG => [:"_:_g8"],
82
+ :PNAME_LN => [],
83
+ :PNAME_NS => [],
84
+ :STRING_LITERAL1 => [],
85
+ :STRING_LITERAL2 => [],
86
+ :STRING_LITERAL_LONG1 => [],
87
+ :STRING_LITERAL_LONG2 => [],
88
+ "true" => [],
89
+ },
90
+ :"_:_g8" => {
91
+ "(" => [],
92
+ "," => [],
93
+ "[" => [],
94
+ "^^" => [:"_:g2153021180"],
95
+ "false" => [],
96
+ :ANON => [],
97
+ :BLANK_NODE_LABEL => [],
98
+ :DECIMAL => [],
99
+ :DECIMAL_NEGATIVE => [],
100
+ :DECIMAL_POSITIVE => [],
101
+ :DOUBLE => [],
102
+ :DOUBLE_NEGATIVE => [],
103
+ :DOUBLE_POSITIVE => [],
104
+ :INTEGER => [],
105
+ :INTEGER_NEGATIVE => [],
106
+ :INTEGER_POSITIVE => [],
107
+ :IRI_REF => [],
108
+ :LANGTAG => [:LANGTAG],
109
+ :PNAME_LN => [],
110
+ :PNAME_NS => [],
111
+ :STRING_LITERAL1 => [],
112
+ :STRING_LITERAL2 => [],
113
+ :STRING_LITERAL_LONG1 => [],
114
+ :STRING_LITERAL_LONG2 => [],
115
+ "true" => [],
116
+ },
117
+ :"_:g2152509620" => {
118
+ "," => [:"_:_g5", :"_:_g4"],
119
+ ";" => [],
120
+ },
121
+ :"_:g2153021180" => {
122
+ "(" => [],
123
+ "," => [],
124
+ "[" => [],
125
+ "^^" => ["^^", :IRIref],
126
+ "false" => [],
127
+ :ANON => [],
128
+ :BLANK_NODE_LABEL => [],
129
+ :DECIMAL => [],
130
+ :DECIMAL_NEGATIVE => [],
131
+ :DECIMAL_POSITIVE => [],
132
+ :DOUBLE => [],
133
+ :DOUBLE_NEGATIVE => [],
134
+ :DOUBLE_POSITIVE => [],
135
+ :INTEGER => [],
136
+ :INTEGER_NEGATIVE => [],
137
+ :INTEGER_POSITIVE => [],
138
+ :IRI_REF => [],
139
+ :PNAME_LN => [],
140
+ :PNAME_NS => [],
141
+ :STRING_LITERAL1 => [],
142
+ :STRING_LITERAL2 => [],
143
+ :STRING_LITERAL_LONG1 => [],
144
+ :STRING_LITERAL_LONG2 => [],
145
+ "true" => [],
146
+ },
147
+ :"_:g2156281440" => {
148
+ "(" => [:triples, "."],
149
+ "@base" => [],
150
+ "@prefix" => [],
151
+ "[" => [:triples, "."],
152
+ :ANON => [:triples, "."],
153
+ :BLANK_NODE_LABEL => [:triples, "."],
154
+ :IRI_REF => [:triples, "."],
155
+ :PNAME_LN => [:triples, "."],
156
+ :PNAME_NS => [:triples, "."],
157
+ },
158
+ :"_:g2164861540" => {
159
+ ";" => [:"_:_g1", :"_:_g0"],
160
+ },
161
+ :"_:g2165342840" => {
162
+ "(" => [],
163
+ "@base" => [:directive, "."],
164
+ "@prefix" => [:directive, "."],
165
+ "[" => [],
166
+ :ANON => [],
167
+ :BLANK_NODE_LABEL => [],
168
+ :IRI_REF => [],
169
+ :PNAME_LN => [],
170
+ :PNAME_NS => [],
171
+ },
172
+ :"_:g2169711200" => {
173
+ "(" => [:statement, :turtleDoc],
174
+ "@base" => [:statement, :turtleDoc],
175
+ "@prefix" => [:statement, :turtleDoc],
176
+ "[" => [:statement, :turtleDoc],
177
+ :"ebnf:eof" => [],
178
+ :ANON => [:statement, :turtleDoc],
179
+ :BLANK_NODE_LABEL => [:statement, :turtleDoc],
180
+ :IRI_REF => [:statement, :turtleDoc],
181
+ :PNAME_LN => [:statement, :turtleDoc],
182
+ :PNAME_NS => [:statement, :turtleDoc],
183
+ },
184
+ :"_:g2169738260" => {
185
+ "(" => [:object, :"_:_g6"],
186
+ "[" => [:object, :"_:_g6"],
187
+ "false" => [:object, :"_:_g6"],
188
+ :ANON => [:object, :"_:_g6"],
189
+ :BLANK_NODE_LABEL => [:object, :"_:_g6"],
190
+ :DECIMAL => [:object, :"_:_g6"],
191
+ :DECIMAL_NEGATIVE => [:object, :"_:_g6"],
192
+ :DECIMAL_POSITIVE => [:object, :"_:_g6"],
193
+ :DOUBLE => [:object, :"_:_g6"],
194
+ :DOUBLE_NEGATIVE => [:object, :"_:_g6"],
195
+ :DOUBLE_POSITIVE => [:object, :"_:_g6"],
196
+ :INTEGER => [:object, :"_:_g6"],
197
+ :INTEGER_NEGATIVE => [:object, :"_:_g6"],
198
+ :INTEGER_POSITIVE => [:object, :"_:_g6"],
199
+ :IRI_REF => [:object, :"_:_g6"],
200
+ :PNAME_LN => [:object, :"_:_g6"],
201
+ :PNAME_NS => [:object, :"_:_g6"],
202
+ :STRING_LITERAL1 => [:object, :"_:_g6"],
203
+ :STRING_LITERAL2 => [:object, :"_:_g6"],
204
+ :STRING_LITERAL_LONG1 => [:object, :"_:_g6"],
205
+ :STRING_LITERAL_LONG2 => [:object, :"_:_g6"],
206
+ "true" => [:object, :"_:_g6"],
207
+ },
208
+ :BASE => {
209
+ "@base" => ["@base"],
210
+ },
211
+ :BlankNode => {
212
+ "(" => [],
213
+ "," => [],
214
+ "[" => [],
215
+ "a" => [],
216
+ "false" => [],
217
+ :ANON => [:ANON],
218
+ :BLANK_NODE_LABEL => [:BLANK_NODE_LABEL],
219
+ :DECIMAL => [],
220
+ :DECIMAL_NEGATIVE => [],
221
+ :DECIMAL_POSITIVE => [],
222
+ :DOUBLE => [],
223
+ :DOUBLE_NEGATIVE => [],
224
+ :DOUBLE_POSITIVE => [],
225
+ :INTEGER => [],
226
+ :INTEGER_NEGATIVE => [],
227
+ :INTEGER_POSITIVE => [],
228
+ :IRI_REF => [],
229
+ :PNAME_LN => [],
230
+ :PNAME_NS => [],
231
+ :STRING_LITERAL1 => [],
232
+ :STRING_LITERAL2 => [],
233
+ :STRING_LITERAL_LONG1 => [],
234
+ :STRING_LITERAL_LONG2 => [],
235
+ "true" => [],
236
+ },
237
+ :BooleanLiteral => {
238
+ "(" => [],
239
+ "," => [],
240
+ "[" => [],
241
+ "false" => ["false"],
242
+ :ANON => [],
243
+ :BLANK_NODE_LABEL => [],
244
+ :DECIMAL => [],
245
+ :DECIMAL_NEGATIVE => [],
246
+ :DECIMAL_POSITIVE => [],
247
+ :DOUBLE => [],
248
+ :DOUBLE_NEGATIVE => [],
249
+ :DOUBLE_POSITIVE => [],
250
+ :INTEGER => [],
251
+ :INTEGER_NEGATIVE => [],
252
+ :INTEGER_POSITIVE => [],
253
+ :IRI_REF => [],
254
+ :PNAME_LN => [],
255
+ :PNAME_NS => [],
256
+ :STRING_LITERAL1 => [],
257
+ :STRING_LITERAL2 => [],
258
+ :STRING_LITERAL_LONG1 => [],
259
+ :STRING_LITERAL_LONG2 => [],
260
+ "true" => ["true"],
261
+ },
262
+ :IRIref => {
263
+ "(" => [],
264
+ "," => [],
265
+ "[" => [],
266
+ "a" => [],
267
+ "false" => [],
268
+ :ANON => [],
269
+ :BLANK_NODE_LABEL => [],
270
+ :DECIMAL => [],
271
+ :DECIMAL_NEGATIVE => [],
272
+ :DECIMAL_POSITIVE => [],
273
+ :DOUBLE => [],
274
+ :DOUBLE_NEGATIVE => [],
275
+ :DOUBLE_POSITIVE => [],
276
+ :INTEGER => [],
277
+ :INTEGER_NEGATIVE => [],
278
+ :INTEGER_POSITIVE => [],
279
+ :IRI_REF => [:IRI_REF],
280
+ :PNAME_LN => [:PrefixedName],
281
+ :PNAME_NS => [:PrefixedName],
282
+ :STRING_LITERAL1 => [],
283
+ :STRING_LITERAL2 => [],
284
+ :STRING_LITERAL_LONG1 => [],
285
+ :STRING_LITERAL_LONG2 => [],
286
+ "true" => [],
287
+ },
288
+ :NumericLiteral => {
289
+ "(" => [],
290
+ "," => [],
291
+ "[" => [],
292
+ "false" => [],
293
+ :ANON => [],
294
+ :BLANK_NODE_LABEL => [],
295
+ :DECIMAL => [:NumericLiteralUnsigned],
296
+ :DECIMAL_NEGATIVE => [:NumericLiteralNegative],
297
+ :DECIMAL_POSITIVE => [:NumericLiteralPositive],
298
+ :DOUBLE => [:NumericLiteralUnsigned],
299
+ :DOUBLE_NEGATIVE => [:NumericLiteralNegative],
300
+ :DOUBLE_POSITIVE => [:NumericLiteralPositive],
301
+ :INTEGER => [:NumericLiteralUnsigned],
302
+ :INTEGER_NEGATIVE => [:NumericLiteralNegative],
303
+ :INTEGER_POSITIVE => [:NumericLiteralPositive],
304
+ :IRI_REF => [],
305
+ :PNAME_LN => [],
306
+ :PNAME_NS => [],
307
+ :STRING_LITERAL1 => [],
308
+ :STRING_LITERAL2 => [],
309
+ :STRING_LITERAL_LONG1 => [],
310
+ :STRING_LITERAL_LONG2 => [],
311
+ "true" => [],
312
+ },
313
+ :NumericLiteralNegative => {
314
+ "(" => [],
315
+ "," => [],
316
+ "[" => [],
317
+ "false" => [],
318
+ :ANON => [],
319
+ :BLANK_NODE_LABEL => [],
320
+ :DECIMAL => [],
321
+ :DECIMAL_NEGATIVE => [:DECIMAL_NEGATIVE],
322
+ :DECIMAL_POSITIVE => [],
323
+ :DOUBLE => [],
324
+ :DOUBLE_NEGATIVE => [:DOUBLE_NEGATIVE],
325
+ :DOUBLE_POSITIVE => [],
326
+ :INTEGER => [],
327
+ :INTEGER_NEGATIVE => [:INTEGER_NEGATIVE],
328
+ :INTEGER_POSITIVE => [],
329
+ :IRI_REF => [],
330
+ :PNAME_LN => [],
331
+ :PNAME_NS => [],
332
+ :STRING_LITERAL1 => [],
333
+ :STRING_LITERAL2 => [],
334
+ :STRING_LITERAL_LONG1 => [],
335
+ :STRING_LITERAL_LONG2 => [],
336
+ "true" => [],
337
+ },
338
+ :NumericLiteralPositive => {
339
+ "(" => [],
340
+ "," => [],
341
+ "[" => [],
342
+ "false" => [],
343
+ :ANON => [],
344
+ :BLANK_NODE_LABEL => [],
345
+ :DECIMAL => [],
346
+ :DECIMAL_NEGATIVE => [],
347
+ :DECIMAL_POSITIVE => [:DECIMAL_POSITIVE],
348
+ :DOUBLE => [],
349
+ :DOUBLE_NEGATIVE => [],
350
+ :DOUBLE_POSITIVE => [:DOUBLE_POSITIVE],
351
+ :INTEGER => [],
352
+ :INTEGER_NEGATIVE => [],
353
+ :INTEGER_POSITIVE => [:INTEGER_POSITIVE],
354
+ :IRI_REF => [],
355
+ :PNAME_LN => [],
356
+ :PNAME_NS => [],
357
+ :STRING_LITERAL1 => [],
358
+ :STRING_LITERAL2 => [],
359
+ :STRING_LITERAL_LONG1 => [],
360
+ :STRING_LITERAL_LONG2 => [],
361
+ "true" => [],
362
+ },
363
+ :NumericLiteralUnsigned => {
364
+ "(" => [],
365
+ "," => [],
366
+ "[" => [],
367
+ "false" => [],
368
+ :ANON => [],
369
+ :BLANK_NODE_LABEL => [],
370
+ :DECIMAL => [:DECIMAL],
371
+ :DECIMAL_NEGATIVE => [],
372
+ :DECIMAL_POSITIVE => [],
373
+ :DOUBLE => [:DOUBLE],
374
+ :DOUBLE_NEGATIVE => [],
375
+ :DOUBLE_POSITIVE => [],
376
+ :INTEGER => [:INTEGER],
377
+ :INTEGER_NEGATIVE => [],
378
+ :INTEGER_POSITIVE => [],
379
+ :IRI_REF => [],
380
+ :PNAME_LN => [],
381
+ :PNAME_NS => [],
382
+ :STRING_LITERAL1 => [],
383
+ :STRING_LITERAL2 => [],
384
+ :STRING_LITERAL_LONG1 => [],
385
+ :STRING_LITERAL_LONG2 => [],
386
+ "true" => [],
387
+ },
388
+ :PREFIX => {
389
+ "@prefix" => ["@prefix"],
390
+ },
391
+ :PrefixedName => {
392
+ "(" => [],
393
+ "," => [],
394
+ "[" => [],
395
+ "a" => [],
396
+ "false" => [],
397
+ :ANON => [],
398
+ :BLANK_NODE_LABEL => [],
399
+ :DECIMAL => [],
400
+ :DECIMAL_NEGATIVE => [],
401
+ :DECIMAL_POSITIVE => [],
402
+ :DOUBLE => [],
403
+ :DOUBLE_NEGATIVE => [],
404
+ :DOUBLE_POSITIVE => [],
405
+ :INTEGER => [],
406
+ :INTEGER_NEGATIVE => [],
407
+ :INTEGER_POSITIVE => [],
408
+ :IRI_REF => [],
409
+ :PNAME_LN => [:PNAME_LN],
410
+ :PNAME_NS => [:PNAME_NS],
411
+ :STRING_LITERAL1 => [],
412
+ :STRING_LITERAL2 => [],
413
+ :STRING_LITERAL_LONG1 => [],
414
+ :STRING_LITERAL_LONG2 => [],
415
+ "true" => [],
416
+ },
417
+ :RDFLiteral => {
418
+ "(" => [],
419
+ "," => [],
420
+ "[" => [],
421
+ "false" => [],
422
+ :ANON => [],
423
+ :BLANK_NODE_LABEL => [],
424
+ :DECIMAL => [],
425
+ :DECIMAL_NEGATIVE => [],
426
+ :DECIMAL_POSITIVE => [],
427
+ :DOUBLE => [],
428
+ :DOUBLE_NEGATIVE => [],
429
+ :DOUBLE_POSITIVE => [],
430
+ :INTEGER => [],
431
+ :INTEGER_NEGATIVE => [],
432
+ :INTEGER_POSITIVE => [],
433
+ :IRI_REF => [],
434
+ :PNAME_LN => [],
435
+ :PNAME_NS => [],
436
+ :STRING_LITERAL1 => [:String, :"_:_g7"],
437
+ :STRING_LITERAL2 => [:String, :"_:_g7"],
438
+ :STRING_LITERAL_LONG1 => [:String, :"_:_g7"],
439
+ :STRING_LITERAL_LONG2 => [:String, :"_:_g7"],
440
+ "true" => [],
441
+ },
442
+ :String => {
443
+ "^^" => [],
444
+ :LANGTAG => [],
445
+ :STRING_LITERAL1 => [:STRING_LITERAL1],
446
+ :STRING_LITERAL2 => [:STRING_LITERAL2],
447
+ :STRING_LITERAL_LONG1 => [:STRING_LITERAL_LONG1],
448
+ :STRING_LITERAL_LONG2 => [:STRING_LITERAL_LONG2],
449
+ },
450
+ :base => {
451
+ "@base" => [:BASE, :IRI_REF],
452
+ },
453
+ :blank => {
454
+ "(" => [:collection],
455
+ "," => [],
456
+ "[" => [:blankNodePropertyList],
457
+ "a" => [],
458
+ "false" => [],
459
+ :ANON => [:BlankNode],
460
+ :BLANK_NODE_LABEL => [:BlankNode],
461
+ :DECIMAL => [],
462
+ :DECIMAL_NEGATIVE => [],
463
+ :DECIMAL_POSITIVE => [],
464
+ :DOUBLE => [],
465
+ :DOUBLE_NEGATIVE => [],
466
+ :DOUBLE_POSITIVE => [],
467
+ :INTEGER => [],
468
+ :INTEGER_NEGATIVE => [],
469
+ :INTEGER_POSITIVE => [],
470
+ :IRI_REF => [],
471
+ :PNAME_LN => [],
472
+ :PNAME_NS => [],
473
+ :STRING_LITERAL1 => [],
474
+ :STRING_LITERAL2 => [],
475
+ :STRING_LITERAL_LONG1 => [],
476
+ :STRING_LITERAL_LONG2 => [],
477
+ "true" => [],
478
+ },
479
+ :blankNodePropertyList => {
480
+ "(" => [],
481
+ "," => [],
482
+ "[" => ["[", :predicateObjectList, "]"],
483
+ "a" => [],
484
+ "false" => [],
485
+ :ANON => [],
486
+ :BLANK_NODE_LABEL => [],
487
+ :DECIMAL => [],
488
+ :DECIMAL_NEGATIVE => [],
489
+ :DECIMAL_POSITIVE => [],
490
+ :DOUBLE => [],
491
+ :DOUBLE_NEGATIVE => [],
492
+ :DOUBLE_POSITIVE => [],
493
+ :INTEGER => [],
494
+ :INTEGER_NEGATIVE => [],
495
+ :INTEGER_POSITIVE => [],
496
+ :IRI_REF => [],
497
+ :PNAME_LN => [],
498
+ :PNAME_NS => [],
499
+ :STRING_LITERAL1 => [],
500
+ :STRING_LITERAL2 => [],
501
+ :STRING_LITERAL_LONG1 => [],
502
+ :STRING_LITERAL_LONG2 => [],
503
+ "true" => [],
504
+ },
505
+ :collection => {
506
+ "(" => ["(", :"_:_g6", ")"],
507
+ "," => [],
508
+ "[" => [],
509
+ "a" => [],
510
+ "false" => [],
511
+ :ANON => [],
512
+ :BLANK_NODE_LABEL => [],
513
+ :DECIMAL => [],
514
+ :DECIMAL_NEGATIVE => [],
515
+ :DECIMAL_POSITIVE => [],
516
+ :DOUBLE => [],
517
+ :DOUBLE_NEGATIVE => [],
518
+ :DOUBLE_POSITIVE => [],
519
+ :INTEGER => [],
520
+ :INTEGER_NEGATIVE => [],
521
+ :INTEGER_POSITIVE => [],
522
+ :IRI_REF => [],
523
+ :PNAME_LN => [],
524
+ :PNAME_NS => [],
525
+ :STRING_LITERAL1 => [],
526
+ :STRING_LITERAL2 => [],
527
+ :STRING_LITERAL_LONG1 => [],
528
+ :STRING_LITERAL_LONG2 => [],
529
+ "true" => [],
530
+ },
531
+ :directive => {
532
+ "@base" => [:base],
533
+ "@prefix" => [:prefixID],
534
+ },
535
+ :literal => {
536
+ "(" => [],
537
+ "," => [],
538
+ "[" => [],
539
+ "false" => [:BooleanLiteral],
540
+ :ANON => [],
541
+ :BLANK_NODE_LABEL => [],
542
+ :DECIMAL => [:NumericLiteral],
543
+ :DECIMAL_NEGATIVE => [:NumericLiteral],
544
+ :DECIMAL_POSITIVE => [:NumericLiteral],
545
+ :DOUBLE => [:NumericLiteral],
546
+ :DOUBLE_NEGATIVE => [:NumericLiteral],
547
+ :DOUBLE_POSITIVE => [:NumericLiteral],
548
+ :INTEGER => [:NumericLiteral],
549
+ :INTEGER_NEGATIVE => [:NumericLiteral],
550
+ :INTEGER_POSITIVE => [:NumericLiteral],
551
+ :IRI_REF => [],
552
+ :PNAME_LN => [],
553
+ :PNAME_NS => [],
554
+ :STRING_LITERAL1 => [:RDFLiteral],
555
+ :STRING_LITERAL2 => [:RDFLiteral],
556
+ :STRING_LITERAL_LONG1 => [:RDFLiteral],
557
+ :STRING_LITERAL_LONG2 => [:RDFLiteral],
558
+ "true" => [:BooleanLiteral],
559
+ },
560
+ :object => {
561
+ "(" => [:blank],
562
+ "," => [],
563
+ "[" => [:blank],
564
+ "false" => [:literal],
565
+ :ANON => [:blank],
566
+ :BLANK_NODE_LABEL => [:blank],
567
+ :DECIMAL => [:literal],
568
+ :DECIMAL_NEGATIVE => [:literal],
569
+ :DECIMAL_POSITIVE => [:literal],
570
+ :DOUBLE => [:literal],
571
+ :DOUBLE_NEGATIVE => [:literal],
572
+ :DOUBLE_POSITIVE => [:literal],
573
+ :INTEGER => [:literal],
574
+ :INTEGER_NEGATIVE => [:literal],
575
+ :INTEGER_POSITIVE => [:literal],
576
+ :IRI_REF => [:IRIref],
577
+ :PNAME_LN => [:IRIref],
578
+ :PNAME_NS => [:IRIref],
579
+ :STRING_LITERAL1 => [:literal],
580
+ :STRING_LITERAL2 => [:literal],
581
+ :STRING_LITERAL_LONG1 => [:literal],
582
+ :STRING_LITERAL_LONG2 => [:literal],
583
+ "true" => [:literal],
584
+ },
585
+ :objectList => {
586
+ "(" => [:object, :"_:_g4"],
587
+ ";" => [],
588
+ "[" => [:object, :"_:_g4"],
589
+ "false" => [:object, :"_:_g4"],
590
+ :ANON => [:object, :"_:_g4"],
591
+ :BLANK_NODE_LABEL => [:object, :"_:_g4"],
592
+ :DECIMAL => [:object, :"_:_g4"],
593
+ :DECIMAL_NEGATIVE => [:object, :"_:_g4"],
594
+ :DECIMAL_POSITIVE => [:object, :"_:_g4"],
595
+ :DOUBLE => [:object, :"_:_g4"],
596
+ :DOUBLE_NEGATIVE => [:object, :"_:_g4"],
597
+ :DOUBLE_POSITIVE => [:object, :"_:_g4"],
598
+ :INTEGER => [:object, :"_:_g4"],
599
+ :INTEGER_NEGATIVE => [:object, :"_:_g4"],
600
+ :INTEGER_POSITIVE => [:object, :"_:_g4"],
601
+ :IRI_REF => [:object, :"_:_g4"],
602
+ :PNAME_LN => [:object, :"_:_g4"],
603
+ :PNAME_NS => [:object, :"_:_g4"],
604
+ :STRING_LITERAL1 => [:object, :"_:_g4"],
605
+ :STRING_LITERAL2 => [:object, :"_:_g4"],
606
+ :STRING_LITERAL_LONG1 => [:object, :"_:_g4"],
607
+ :STRING_LITERAL_LONG2 => [:object, :"_:_g4"],
608
+ "true" => [:object, :"_:_g4"],
609
+ },
610
+ :predicate => {
611
+ "(" => [],
612
+ "[" => [],
613
+ "false" => [],
614
+ :ANON => [],
615
+ :BLANK_NODE_LABEL => [],
616
+ :DECIMAL => [],
617
+ :DECIMAL_NEGATIVE => [],
618
+ :DECIMAL_POSITIVE => [],
619
+ :DOUBLE => [],
620
+ :DOUBLE_NEGATIVE => [],
621
+ :DOUBLE_POSITIVE => [],
622
+ :INTEGER => [],
623
+ :INTEGER_NEGATIVE => [],
624
+ :INTEGER_POSITIVE => [],
625
+ :IRI_REF => [:IRIref],
626
+ :PNAME_LN => [:IRIref],
627
+ :PNAME_NS => [:IRIref],
628
+ :STRING_LITERAL1 => [],
629
+ :STRING_LITERAL2 => [],
630
+ :STRING_LITERAL_LONG1 => [],
631
+ :STRING_LITERAL_LONG2 => [],
632
+ "true" => [],
633
+ },
634
+ :predicateObjectList => {
635
+ "a" => [:verb, :objectList, :"_:_g0"],
636
+ :IRI_REF => [:verb, :objectList, :"_:_g0"],
637
+ :PNAME_LN => [:verb, :objectList, :"_:_g0"],
638
+ :PNAME_NS => [:verb, :objectList, :"_:_g0"],
639
+ },
640
+ :prefixID => {
641
+ "@prefix" => [:PREFIX, :PNAME_NS, :IRI_REF],
642
+ },
643
+ :statement => {
644
+ "(" => [:"_:g2156281440"],
645
+ "@base" => [:"_:g2165342840"],
646
+ "@prefix" => [:"_:g2165342840"],
647
+ "[" => [:"_:g2156281440"],
648
+ :ANON => [:"_:g2156281440"],
649
+ :BLANK_NODE_LABEL => [:"_:g2156281440"],
650
+ :IRI_REF => [:"_:g2156281440"],
651
+ :PNAME_LN => [:"_:g2156281440"],
652
+ :PNAME_NS => [:"_:g2156281440"],
653
+ },
654
+ :subject => {
655
+ "(" => [:blank],
656
+ "[" => [:blank],
657
+ "a" => [],
658
+ :ANON => [:blank],
659
+ :BLANK_NODE_LABEL => [:blank],
660
+ :IRI_REF => [:IRIref],
661
+ :PNAME_LN => [:IRIref],
662
+ :PNAME_NS => [:IRIref],
663
+ },
664
+ :triples => {
665
+ "(" => [:subject, :predicateObjectList],
666
+ "[" => [:subject, :predicateObjectList],
667
+ :ANON => [:subject, :predicateObjectList],
668
+ :BLANK_NODE_LABEL => [:subject, :predicateObjectList],
669
+ :IRI_REF => [:subject, :predicateObjectList],
670
+ :PNAME_LN => [:subject, :predicateObjectList],
671
+ :PNAME_NS => [:subject, :predicateObjectList],
672
+ },
673
+ :turtleDoc => {
674
+ "(" => [:"_:g2169711200"],
675
+ "@base" => [:"_:g2169711200"],
676
+ "@prefix" => [:"_:g2169711200"],
677
+ "[" => [:"_:g2169711200"],
678
+ :"ebnf:empty" => [],
679
+ :"ebnf:eof" => [],
680
+ :ANON => [:"_:g2169711200"],
681
+ :BLANK_NODE_LABEL => [:"_:g2169711200"],
682
+ :IRI_REF => [:"_:g2169711200"],
683
+ :PNAME_LN => [:"_:g2169711200"],
684
+ :PNAME_NS => [:"_:g2169711200"],
685
+ },
686
+ :verb => {
687
+ "(" => [],
688
+ "[" => [],
689
+ "a" => ["a"],
690
+ "false" => [],
691
+ :ANON => [],
692
+ :BLANK_NODE_LABEL => [],
693
+ :DECIMAL => [],
694
+ :DECIMAL_NEGATIVE => [],
695
+ :DECIMAL_POSITIVE => [],
696
+ :DOUBLE => [],
697
+ :DOUBLE_NEGATIVE => [],
698
+ :DOUBLE_POSITIVE => [],
699
+ :INTEGER => [],
700
+ :INTEGER_NEGATIVE => [],
701
+ :INTEGER_POSITIVE => [],
702
+ :IRI_REF => [:predicate],
703
+ :PNAME_LN => [:predicate],
704
+ :PNAME_NS => [:predicate],
705
+ :STRING_LITERAL1 => [],
706
+ :STRING_LITERAL2 => [],
707
+ :STRING_LITERAL_LONG1 => [],
708
+ :STRING_LITERAL_LONG2 => [],
709
+ "true" => [],
710
+ },
711
+ }.freeze
712
+ TERMINALS = [
713
+ "(",
714
+ ")",
715
+ ",",
716
+ ".",
717
+ ";",
718
+ "@base",
719
+ "@prefix",
720
+ "[",
721
+ "]",
722
+ "^^",
723
+ "a",
724
+ "false",
725
+ :ANON,
726
+ :BLANK_NODE_LABEL,
727
+ :DECIMAL,
728
+ :DECIMAL_NEGATIVE,
729
+ :DECIMAL_POSITIVE,
730
+ :DOUBLE,
731
+ :DOUBLE_NEGATIVE,
732
+ :DOUBLE_POSITIVE,
733
+ :INTEGER,
734
+ :INTEGER_NEGATIVE,
735
+ :INTEGER_POSITIVE,
736
+ :IRI_REF,
737
+ :LANGTAG,
738
+ :PNAME_LN,
739
+ :PNAME_NS,
740
+ :STRING_LITERAL1,
741
+ :STRING_LITERAL2,
742
+ :STRING_LITERAL_LONG1,
743
+ :STRING_LITERAL_LONG2,
744
+ "true"
745
+ ].freeze
746
+ FOLLOW = {
747
+ "." => [
748
+ "(",
749
+ "@base",
750
+ "@prefix",
751
+ "[",
752
+ :ANON,
753
+ :BLANK_NODE_LABEL,
754
+ :IRI_REF,
755
+ :PNAME_LN,
756
+ :PNAME_NS],
757
+ :"_:_g1" => [
758
+ ";"],
759
+ :"_:_g2" => [
760
+ ";"],
761
+ :"_:_g3" => [
762
+ ";"],
763
+ :"_:_g4" => [
764
+ ";"],
765
+ :"_:_g5" => [
766
+ ","],
767
+ :"_:_g7" => [
768
+ "(",
769
+ ",",
770
+ "[",
771
+ "false",
772
+ "true",
773
+ :ANON,
774
+ :BLANK_NODE_LABEL,
775
+ :DECIMAL,
776
+ :DECIMAL_NEGATIVE,
777
+ :DECIMAL_POSITIVE,
778
+ :DOUBLE,
779
+ :DOUBLE_NEGATIVE,
780
+ :DOUBLE_POSITIVE,
781
+ :INTEGER,
782
+ :INTEGER_NEGATIVE,
783
+ :INTEGER_POSITIVE,
784
+ :IRI_REF,
785
+ :PNAME_LN,
786
+ :PNAME_NS,
787
+ :STRING_LITERAL1,
788
+ :STRING_LITERAL2,
789
+ :STRING_LITERAL_LONG1,
790
+ :STRING_LITERAL_LONG2],
791
+ :"_:_g8" => [
792
+ "(",
793
+ ",",
794
+ "[",
795
+ "false",
796
+ "true",
797
+ :ANON,
798
+ :BLANK_NODE_LABEL,
799
+ :DECIMAL,
800
+ :DECIMAL_NEGATIVE,
801
+ :DECIMAL_POSITIVE,
802
+ :DOUBLE,
803
+ :DOUBLE_NEGATIVE,
804
+ :DOUBLE_POSITIVE,
805
+ :INTEGER,
806
+ :INTEGER_NEGATIVE,
807
+ :INTEGER_POSITIVE,
808
+ :IRI_REF,
809
+ :PNAME_LN,
810
+ :PNAME_NS,
811
+ :STRING_LITERAL1,
812
+ :STRING_LITERAL2,
813
+ :STRING_LITERAL_LONG1,
814
+ :STRING_LITERAL_LONG2],
815
+ :"_:g2152509620" => [
816
+ ";"],
817
+ :"_:g2153021180" => [
818
+ "(",
819
+ ",",
820
+ "[",
821
+ "false",
822
+ "true",
823
+ :ANON,
824
+ :BLANK_NODE_LABEL,
825
+ :DECIMAL,
826
+ :DECIMAL_NEGATIVE,
827
+ :DECIMAL_POSITIVE,
828
+ :DOUBLE,
829
+ :DOUBLE_NEGATIVE,
830
+ :DOUBLE_POSITIVE,
831
+ :INTEGER,
832
+ :INTEGER_NEGATIVE,
833
+ :INTEGER_POSITIVE,
834
+ :IRI_REF,
835
+ :PNAME_LN,
836
+ :PNAME_NS,
837
+ :STRING_LITERAL1,
838
+ :STRING_LITERAL2,
839
+ :STRING_LITERAL_LONG1,
840
+ :STRING_LITERAL_LONG2],
841
+ :"_:g2156281440" => [
842
+ "(",
843
+ "@base",
844
+ "@prefix",
845
+ "[",
846
+ :ANON,
847
+ :BLANK_NODE_LABEL,
848
+ :IRI_REF,
849
+ :PNAME_LN,
850
+ :PNAME_NS],
851
+ :"_:g2165342840" => [
852
+ "(",
853
+ "@base",
854
+ "@prefix",
855
+ "[",
856
+ :ANON,
857
+ :BLANK_NODE_LABEL,
858
+ :IRI_REF,
859
+ :PNAME_LN,
860
+ :PNAME_NS],
861
+ :"_:g2169711200" => [
862
+ :"ebnf:eof"],
863
+ "a" => [
864
+ "(",
865
+ "[",
866
+ "false",
867
+ "true",
868
+ :ANON,
869
+ :BLANK_NODE_LABEL,
870
+ :DECIMAL,
871
+ :DECIMAL_NEGATIVE,
872
+ :DECIMAL_POSITIVE,
873
+ :DOUBLE,
874
+ :DOUBLE_NEGATIVE,
875
+ :DOUBLE_POSITIVE,
876
+ :INTEGER,
877
+ :INTEGER_NEGATIVE,
878
+ :INTEGER_POSITIVE,
879
+ :IRI_REF,
880
+ :PNAME_LN,
881
+ :PNAME_NS,
882
+ :STRING_LITERAL1,
883
+ :STRING_LITERAL2,
884
+ :STRING_LITERAL_LONG1,
885
+ :STRING_LITERAL_LONG2],
886
+ "false" => [
887
+ "(",
888
+ ",",
889
+ "[",
890
+ "false",
891
+ "true",
892
+ :ANON,
893
+ :BLANK_NODE_LABEL,
894
+ :DECIMAL,
895
+ :DECIMAL_NEGATIVE,
896
+ :DECIMAL_POSITIVE,
897
+ :DOUBLE,
898
+ :DOUBLE_NEGATIVE,
899
+ :DOUBLE_POSITIVE,
900
+ :INTEGER,
901
+ :INTEGER_NEGATIVE,
902
+ :INTEGER_POSITIVE,
903
+ :IRI_REF,
904
+ :PNAME_LN,
905
+ :PNAME_NS,
906
+ :STRING_LITERAL1,
907
+ :STRING_LITERAL2,
908
+ :STRING_LITERAL_LONG1,
909
+ :STRING_LITERAL_LONG2],
910
+ :"ebnf:empty" => [
911
+ "(",
912
+ ",",
913
+ ";",
914
+ "[",
915
+ "false",
916
+ "true",
917
+ :"ebnf:eof",
918
+ :ANON,
919
+ :BLANK_NODE_LABEL,
920
+ :DECIMAL,
921
+ :DECIMAL_NEGATIVE,
922
+ :DECIMAL_POSITIVE,
923
+ :DOUBLE,
924
+ :DOUBLE_NEGATIVE,
925
+ :DOUBLE_POSITIVE,
926
+ :INTEGER,
927
+ :INTEGER_NEGATIVE,
928
+ :INTEGER_POSITIVE,
929
+ :IRI_REF,
930
+ :PNAME_LN,
931
+ :PNAME_NS,
932
+ :STRING_LITERAL1,
933
+ :STRING_LITERAL2,
934
+ :STRING_LITERAL_LONG1,
935
+ :STRING_LITERAL_LONG2],
936
+ :ANON => [
937
+ "(",
938
+ ",",
939
+ "[",
940
+ "a",
941
+ "false",
942
+ "true",
943
+ :ANON,
944
+ :BLANK_NODE_LABEL,
945
+ :DECIMAL,
946
+ :DECIMAL_NEGATIVE,
947
+ :DECIMAL_POSITIVE,
948
+ :DOUBLE,
949
+ :DOUBLE_NEGATIVE,
950
+ :DOUBLE_POSITIVE,
951
+ :INTEGER,
952
+ :INTEGER_NEGATIVE,
953
+ :INTEGER_POSITIVE,
954
+ :IRI_REF,
955
+ :PNAME_LN,
956
+ :PNAME_NS,
957
+ :STRING_LITERAL1,
958
+ :STRING_LITERAL2,
959
+ :STRING_LITERAL_LONG1,
960
+ :STRING_LITERAL_LONG2],
961
+ :BLANK_NODE_LABEL => [
962
+ "(",
963
+ ",",
964
+ "[",
965
+ "a",
966
+ "false",
967
+ "true",
968
+ :ANON,
969
+ :BLANK_NODE_LABEL,
970
+ :DECIMAL,
971
+ :DECIMAL_NEGATIVE,
972
+ :DECIMAL_POSITIVE,
973
+ :DOUBLE,
974
+ :DOUBLE_NEGATIVE,
975
+ :DOUBLE_POSITIVE,
976
+ :INTEGER,
977
+ :INTEGER_NEGATIVE,
978
+ :INTEGER_POSITIVE,
979
+ :IRI_REF,
980
+ :PNAME_LN,
981
+ :PNAME_NS,
982
+ :STRING_LITERAL1,
983
+ :STRING_LITERAL2,
984
+ :STRING_LITERAL_LONG1,
985
+ :STRING_LITERAL_LONG2],
986
+ :BlankNode => [
987
+ "(",
988
+ ",",
989
+ "[",
990
+ "a",
991
+ "false",
992
+ "true",
993
+ :ANON,
994
+ :BLANK_NODE_LABEL,
995
+ :DECIMAL,
996
+ :DECIMAL_NEGATIVE,
997
+ :DECIMAL_POSITIVE,
998
+ :DOUBLE,
999
+ :DOUBLE_NEGATIVE,
1000
+ :DOUBLE_POSITIVE,
1001
+ :INTEGER,
1002
+ :INTEGER_NEGATIVE,
1003
+ :INTEGER_POSITIVE,
1004
+ :IRI_REF,
1005
+ :PNAME_LN,
1006
+ :PNAME_NS,
1007
+ :STRING_LITERAL1,
1008
+ :STRING_LITERAL2,
1009
+ :STRING_LITERAL_LONG1,
1010
+ :STRING_LITERAL_LONG2],
1011
+ :BooleanLiteral => [
1012
+ "(",
1013
+ ",",
1014
+ "[",
1015
+ "false",
1016
+ "true",
1017
+ :ANON,
1018
+ :BLANK_NODE_LABEL,
1019
+ :DECIMAL,
1020
+ :DECIMAL_NEGATIVE,
1021
+ :DECIMAL_POSITIVE,
1022
+ :DOUBLE,
1023
+ :DOUBLE_NEGATIVE,
1024
+ :DOUBLE_POSITIVE,
1025
+ :INTEGER,
1026
+ :INTEGER_NEGATIVE,
1027
+ :INTEGER_POSITIVE,
1028
+ :IRI_REF,
1029
+ :PNAME_LN,
1030
+ :PNAME_NS,
1031
+ :STRING_LITERAL1,
1032
+ :STRING_LITERAL2,
1033
+ :STRING_LITERAL_LONG1,
1034
+ :STRING_LITERAL_LONG2],
1035
+ :DECIMAL => [
1036
+ "(",
1037
+ ",",
1038
+ "[",
1039
+ "false",
1040
+ "true",
1041
+ :ANON,
1042
+ :BLANK_NODE_LABEL,
1043
+ :DECIMAL,
1044
+ :DECIMAL_NEGATIVE,
1045
+ :DECIMAL_POSITIVE,
1046
+ :DOUBLE,
1047
+ :DOUBLE_NEGATIVE,
1048
+ :DOUBLE_POSITIVE,
1049
+ :INTEGER,
1050
+ :INTEGER_NEGATIVE,
1051
+ :INTEGER_POSITIVE,
1052
+ :IRI_REF,
1053
+ :PNAME_LN,
1054
+ :PNAME_NS,
1055
+ :STRING_LITERAL1,
1056
+ :STRING_LITERAL2,
1057
+ :STRING_LITERAL_LONG1,
1058
+ :STRING_LITERAL_LONG2],
1059
+ :DECIMAL_NEGATIVE => [
1060
+ "(",
1061
+ ",",
1062
+ "[",
1063
+ "false",
1064
+ "true",
1065
+ :ANON,
1066
+ :BLANK_NODE_LABEL,
1067
+ :DECIMAL,
1068
+ :DECIMAL_NEGATIVE,
1069
+ :DECIMAL_POSITIVE,
1070
+ :DOUBLE,
1071
+ :DOUBLE_NEGATIVE,
1072
+ :DOUBLE_POSITIVE,
1073
+ :INTEGER,
1074
+ :INTEGER_NEGATIVE,
1075
+ :INTEGER_POSITIVE,
1076
+ :IRI_REF,
1077
+ :PNAME_LN,
1078
+ :PNAME_NS,
1079
+ :STRING_LITERAL1,
1080
+ :STRING_LITERAL2,
1081
+ :STRING_LITERAL_LONG1,
1082
+ :STRING_LITERAL_LONG2],
1083
+ :DECIMAL_POSITIVE => [
1084
+ "(",
1085
+ ",",
1086
+ "[",
1087
+ "false",
1088
+ "true",
1089
+ :ANON,
1090
+ :BLANK_NODE_LABEL,
1091
+ :DECIMAL,
1092
+ :DECIMAL_NEGATIVE,
1093
+ :DECIMAL_POSITIVE,
1094
+ :DOUBLE,
1095
+ :DOUBLE_NEGATIVE,
1096
+ :DOUBLE_POSITIVE,
1097
+ :INTEGER,
1098
+ :INTEGER_NEGATIVE,
1099
+ :INTEGER_POSITIVE,
1100
+ :IRI_REF,
1101
+ :PNAME_LN,
1102
+ :PNAME_NS,
1103
+ :STRING_LITERAL1,
1104
+ :STRING_LITERAL2,
1105
+ :STRING_LITERAL_LONG1,
1106
+ :STRING_LITERAL_LONG2],
1107
+ :DOUBLE => [
1108
+ "(",
1109
+ ",",
1110
+ "[",
1111
+ "false",
1112
+ "true",
1113
+ :ANON,
1114
+ :BLANK_NODE_LABEL,
1115
+ :DECIMAL,
1116
+ :DECIMAL_NEGATIVE,
1117
+ :DECIMAL_POSITIVE,
1118
+ :DOUBLE,
1119
+ :DOUBLE_NEGATIVE,
1120
+ :DOUBLE_POSITIVE,
1121
+ :INTEGER,
1122
+ :INTEGER_NEGATIVE,
1123
+ :INTEGER_POSITIVE,
1124
+ :IRI_REF,
1125
+ :PNAME_LN,
1126
+ :PNAME_NS,
1127
+ :STRING_LITERAL1,
1128
+ :STRING_LITERAL2,
1129
+ :STRING_LITERAL_LONG1,
1130
+ :STRING_LITERAL_LONG2],
1131
+ :DOUBLE_NEGATIVE => [
1132
+ "(",
1133
+ ",",
1134
+ "[",
1135
+ "false",
1136
+ "true",
1137
+ :ANON,
1138
+ :BLANK_NODE_LABEL,
1139
+ :DECIMAL,
1140
+ :DECIMAL_NEGATIVE,
1141
+ :DECIMAL_POSITIVE,
1142
+ :DOUBLE,
1143
+ :DOUBLE_NEGATIVE,
1144
+ :DOUBLE_POSITIVE,
1145
+ :INTEGER,
1146
+ :INTEGER_NEGATIVE,
1147
+ :INTEGER_POSITIVE,
1148
+ :IRI_REF,
1149
+ :PNAME_LN,
1150
+ :PNAME_NS,
1151
+ :STRING_LITERAL1,
1152
+ :STRING_LITERAL2,
1153
+ :STRING_LITERAL_LONG1,
1154
+ :STRING_LITERAL_LONG2],
1155
+ :DOUBLE_POSITIVE => [
1156
+ "(",
1157
+ ",",
1158
+ "[",
1159
+ "false",
1160
+ "true",
1161
+ :ANON,
1162
+ :BLANK_NODE_LABEL,
1163
+ :DECIMAL,
1164
+ :DECIMAL_NEGATIVE,
1165
+ :DECIMAL_POSITIVE,
1166
+ :DOUBLE,
1167
+ :DOUBLE_NEGATIVE,
1168
+ :DOUBLE_POSITIVE,
1169
+ :INTEGER,
1170
+ :INTEGER_NEGATIVE,
1171
+ :INTEGER_POSITIVE,
1172
+ :IRI_REF,
1173
+ :PNAME_LN,
1174
+ :PNAME_NS,
1175
+ :STRING_LITERAL1,
1176
+ :STRING_LITERAL2,
1177
+ :STRING_LITERAL_LONG1,
1178
+ :STRING_LITERAL_LONG2],
1179
+ :INTEGER => [
1180
+ "(",
1181
+ ",",
1182
+ "[",
1183
+ "false",
1184
+ "true",
1185
+ :ANON,
1186
+ :BLANK_NODE_LABEL,
1187
+ :DECIMAL,
1188
+ :DECIMAL_NEGATIVE,
1189
+ :DECIMAL_POSITIVE,
1190
+ :DOUBLE,
1191
+ :DOUBLE_NEGATIVE,
1192
+ :DOUBLE_POSITIVE,
1193
+ :INTEGER,
1194
+ :INTEGER_NEGATIVE,
1195
+ :INTEGER_POSITIVE,
1196
+ :IRI_REF,
1197
+ :PNAME_LN,
1198
+ :PNAME_NS,
1199
+ :STRING_LITERAL1,
1200
+ :STRING_LITERAL2,
1201
+ :STRING_LITERAL_LONG1,
1202
+ :STRING_LITERAL_LONG2],
1203
+ :INTEGER_NEGATIVE => [
1204
+ "(",
1205
+ ",",
1206
+ "[",
1207
+ "false",
1208
+ "true",
1209
+ :ANON,
1210
+ :BLANK_NODE_LABEL,
1211
+ :DECIMAL,
1212
+ :DECIMAL_NEGATIVE,
1213
+ :DECIMAL_POSITIVE,
1214
+ :DOUBLE,
1215
+ :DOUBLE_NEGATIVE,
1216
+ :DOUBLE_POSITIVE,
1217
+ :INTEGER,
1218
+ :INTEGER_NEGATIVE,
1219
+ :INTEGER_POSITIVE,
1220
+ :IRI_REF,
1221
+ :PNAME_LN,
1222
+ :PNAME_NS,
1223
+ :STRING_LITERAL1,
1224
+ :STRING_LITERAL2,
1225
+ :STRING_LITERAL_LONG1,
1226
+ :STRING_LITERAL_LONG2],
1227
+ :INTEGER_POSITIVE => [
1228
+ "(",
1229
+ ",",
1230
+ "[",
1231
+ "false",
1232
+ "true",
1233
+ :ANON,
1234
+ :BLANK_NODE_LABEL,
1235
+ :DECIMAL,
1236
+ :DECIMAL_NEGATIVE,
1237
+ :DECIMAL_POSITIVE,
1238
+ :DOUBLE,
1239
+ :DOUBLE_NEGATIVE,
1240
+ :DOUBLE_POSITIVE,
1241
+ :INTEGER,
1242
+ :INTEGER_NEGATIVE,
1243
+ :INTEGER_POSITIVE,
1244
+ :IRI_REF,
1245
+ :PNAME_LN,
1246
+ :PNAME_NS,
1247
+ :STRING_LITERAL1,
1248
+ :STRING_LITERAL2,
1249
+ :STRING_LITERAL_LONG1,
1250
+ :STRING_LITERAL_LONG2],
1251
+ :IRI_REF => [
1252
+ "(",
1253
+ ",",
1254
+ "[",
1255
+ "a",
1256
+ "false",
1257
+ "true",
1258
+ :ANON,
1259
+ :BLANK_NODE_LABEL,
1260
+ :DECIMAL,
1261
+ :DECIMAL_NEGATIVE,
1262
+ :DECIMAL_POSITIVE,
1263
+ :DOUBLE,
1264
+ :DOUBLE_NEGATIVE,
1265
+ :DOUBLE_POSITIVE,
1266
+ :INTEGER,
1267
+ :INTEGER_NEGATIVE,
1268
+ :INTEGER_POSITIVE,
1269
+ :IRI_REF,
1270
+ :PNAME_LN,
1271
+ :PNAME_NS,
1272
+ :STRING_LITERAL1,
1273
+ :STRING_LITERAL2,
1274
+ :STRING_LITERAL_LONG1,
1275
+ :STRING_LITERAL_LONG2],
1276
+ :IRIref => [
1277
+ "(",
1278
+ ",",
1279
+ "[",
1280
+ "a",
1281
+ "false",
1282
+ "true",
1283
+ :ANON,
1284
+ :BLANK_NODE_LABEL,
1285
+ :DECIMAL,
1286
+ :DECIMAL_NEGATIVE,
1287
+ :DECIMAL_POSITIVE,
1288
+ :DOUBLE,
1289
+ :DOUBLE_NEGATIVE,
1290
+ :DOUBLE_POSITIVE,
1291
+ :INTEGER,
1292
+ :INTEGER_NEGATIVE,
1293
+ :INTEGER_POSITIVE,
1294
+ :IRI_REF,
1295
+ :PNAME_LN,
1296
+ :PNAME_NS,
1297
+ :STRING_LITERAL1,
1298
+ :STRING_LITERAL2,
1299
+ :STRING_LITERAL_LONG1,
1300
+ :STRING_LITERAL_LONG2],
1301
+ :LANGTAG => [
1302
+ "(",
1303
+ ",",
1304
+ "[",
1305
+ "false",
1306
+ "true",
1307
+ :ANON,
1308
+ :BLANK_NODE_LABEL,
1309
+ :DECIMAL,
1310
+ :DECIMAL_NEGATIVE,
1311
+ :DECIMAL_POSITIVE,
1312
+ :DOUBLE,
1313
+ :DOUBLE_NEGATIVE,
1314
+ :DOUBLE_POSITIVE,
1315
+ :INTEGER,
1316
+ :INTEGER_NEGATIVE,
1317
+ :INTEGER_POSITIVE,
1318
+ :IRI_REF,
1319
+ :PNAME_LN,
1320
+ :PNAME_NS,
1321
+ :STRING_LITERAL1,
1322
+ :STRING_LITERAL2,
1323
+ :STRING_LITERAL_LONG1,
1324
+ :STRING_LITERAL_LONG2],
1325
+ :NumericLiteral => [
1326
+ "(",
1327
+ ",",
1328
+ "[",
1329
+ "false",
1330
+ "true",
1331
+ :ANON,
1332
+ :BLANK_NODE_LABEL,
1333
+ :DECIMAL,
1334
+ :DECIMAL_NEGATIVE,
1335
+ :DECIMAL_POSITIVE,
1336
+ :DOUBLE,
1337
+ :DOUBLE_NEGATIVE,
1338
+ :DOUBLE_POSITIVE,
1339
+ :INTEGER,
1340
+ :INTEGER_NEGATIVE,
1341
+ :INTEGER_POSITIVE,
1342
+ :IRI_REF,
1343
+ :PNAME_LN,
1344
+ :PNAME_NS,
1345
+ :STRING_LITERAL1,
1346
+ :STRING_LITERAL2,
1347
+ :STRING_LITERAL_LONG1,
1348
+ :STRING_LITERAL_LONG2],
1349
+ :NumericLiteralNegative => [
1350
+ "(",
1351
+ ",",
1352
+ "[",
1353
+ "false",
1354
+ "true",
1355
+ :ANON,
1356
+ :BLANK_NODE_LABEL,
1357
+ :DECIMAL,
1358
+ :DECIMAL_NEGATIVE,
1359
+ :DECIMAL_POSITIVE,
1360
+ :DOUBLE,
1361
+ :DOUBLE_NEGATIVE,
1362
+ :DOUBLE_POSITIVE,
1363
+ :INTEGER,
1364
+ :INTEGER_NEGATIVE,
1365
+ :INTEGER_POSITIVE,
1366
+ :IRI_REF,
1367
+ :PNAME_LN,
1368
+ :PNAME_NS,
1369
+ :STRING_LITERAL1,
1370
+ :STRING_LITERAL2,
1371
+ :STRING_LITERAL_LONG1,
1372
+ :STRING_LITERAL_LONG2],
1373
+ :NumericLiteralPositive => [
1374
+ "(",
1375
+ ",",
1376
+ "[",
1377
+ "false",
1378
+ "true",
1379
+ :ANON,
1380
+ :BLANK_NODE_LABEL,
1381
+ :DECIMAL,
1382
+ :DECIMAL_NEGATIVE,
1383
+ :DECIMAL_POSITIVE,
1384
+ :DOUBLE,
1385
+ :DOUBLE_NEGATIVE,
1386
+ :DOUBLE_POSITIVE,
1387
+ :INTEGER,
1388
+ :INTEGER_NEGATIVE,
1389
+ :INTEGER_POSITIVE,
1390
+ :IRI_REF,
1391
+ :PNAME_LN,
1392
+ :PNAME_NS,
1393
+ :STRING_LITERAL1,
1394
+ :STRING_LITERAL2,
1395
+ :STRING_LITERAL_LONG1,
1396
+ :STRING_LITERAL_LONG2],
1397
+ :NumericLiteralUnsigned => [
1398
+ "(",
1399
+ ",",
1400
+ "[",
1401
+ "false",
1402
+ "true",
1403
+ :ANON,
1404
+ :BLANK_NODE_LABEL,
1405
+ :DECIMAL,
1406
+ :DECIMAL_NEGATIVE,
1407
+ :DECIMAL_POSITIVE,
1408
+ :DOUBLE,
1409
+ :DOUBLE_NEGATIVE,
1410
+ :DOUBLE_POSITIVE,
1411
+ :INTEGER,
1412
+ :INTEGER_NEGATIVE,
1413
+ :INTEGER_POSITIVE,
1414
+ :IRI_REF,
1415
+ :PNAME_LN,
1416
+ :PNAME_NS,
1417
+ :STRING_LITERAL1,
1418
+ :STRING_LITERAL2,
1419
+ :STRING_LITERAL_LONG1,
1420
+ :STRING_LITERAL_LONG2],
1421
+ :PNAME_LN => [
1422
+ "(",
1423
+ ",",
1424
+ "[",
1425
+ "a",
1426
+ "false",
1427
+ "true",
1428
+ :ANON,
1429
+ :BLANK_NODE_LABEL,
1430
+ :DECIMAL,
1431
+ :DECIMAL_NEGATIVE,
1432
+ :DECIMAL_POSITIVE,
1433
+ :DOUBLE,
1434
+ :DOUBLE_NEGATIVE,
1435
+ :DOUBLE_POSITIVE,
1436
+ :INTEGER,
1437
+ :INTEGER_NEGATIVE,
1438
+ :INTEGER_POSITIVE,
1439
+ :IRI_REF,
1440
+ :PNAME_LN,
1441
+ :PNAME_NS,
1442
+ :STRING_LITERAL1,
1443
+ :STRING_LITERAL2,
1444
+ :STRING_LITERAL_LONG1,
1445
+ :STRING_LITERAL_LONG2],
1446
+ :PNAME_NS => [
1447
+ "(",
1448
+ ",",
1449
+ "[",
1450
+ "a",
1451
+ "false",
1452
+ "true",
1453
+ :ANON,
1454
+ :BLANK_NODE_LABEL,
1455
+ :DECIMAL,
1456
+ :DECIMAL_NEGATIVE,
1457
+ :DECIMAL_POSITIVE,
1458
+ :DOUBLE,
1459
+ :DOUBLE_NEGATIVE,
1460
+ :DOUBLE_POSITIVE,
1461
+ :INTEGER,
1462
+ :INTEGER_NEGATIVE,
1463
+ :INTEGER_POSITIVE,
1464
+ :IRI_REF,
1465
+ :PNAME_LN,
1466
+ :PNAME_NS,
1467
+ :STRING_LITERAL1,
1468
+ :STRING_LITERAL2,
1469
+ :STRING_LITERAL_LONG1,
1470
+ :STRING_LITERAL_LONG2],
1471
+ :PrefixedName => [
1472
+ "(",
1473
+ ",",
1474
+ "[",
1475
+ "a",
1476
+ "false",
1477
+ "true",
1478
+ :ANON,
1479
+ :BLANK_NODE_LABEL,
1480
+ :DECIMAL,
1481
+ :DECIMAL_NEGATIVE,
1482
+ :DECIMAL_POSITIVE,
1483
+ :DOUBLE,
1484
+ :DOUBLE_NEGATIVE,
1485
+ :DOUBLE_POSITIVE,
1486
+ :INTEGER,
1487
+ :INTEGER_NEGATIVE,
1488
+ :INTEGER_POSITIVE,
1489
+ :IRI_REF,
1490
+ :PNAME_LN,
1491
+ :PNAME_NS,
1492
+ :STRING_LITERAL1,
1493
+ :STRING_LITERAL2,
1494
+ :STRING_LITERAL_LONG1,
1495
+ :STRING_LITERAL_LONG2],
1496
+ :RDFLiteral => [
1497
+ "(",
1498
+ ",",
1499
+ "[",
1500
+ "false",
1501
+ "true",
1502
+ :ANON,
1503
+ :BLANK_NODE_LABEL,
1504
+ :DECIMAL,
1505
+ :DECIMAL_NEGATIVE,
1506
+ :DECIMAL_POSITIVE,
1507
+ :DOUBLE,
1508
+ :DOUBLE_NEGATIVE,
1509
+ :DOUBLE_POSITIVE,
1510
+ :INTEGER,
1511
+ :INTEGER_NEGATIVE,
1512
+ :INTEGER_POSITIVE,
1513
+ :IRI_REF,
1514
+ :PNAME_LN,
1515
+ :PNAME_NS,
1516
+ :STRING_LITERAL1,
1517
+ :STRING_LITERAL2,
1518
+ :STRING_LITERAL_LONG1,
1519
+ :STRING_LITERAL_LONG2],
1520
+ :STRING_LITERAL1 => [
1521
+ "^^",
1522
+ :LANGTAG],
1523
+ :STRING_LITERAL2 => [
1524
+ "^^",
1525
+ :LANGTAG],
1526
+ :STRING_LITERAL_LONG1 => [
1527
+ "^^",
1528
+ :LANGTAG],
1529
+ :STRING_LITERAL_LONG2 => [
1530
+ "^^",
1531
+ :LANGTAG],
1532
+ :String => [
1533
+ "^^",
1534
+ :LANGTAG],
1535
+ :blank => [
1536
+ "(",
1537
+ ",",
1538
+ "[",
1539
+ "a",
1540
+ "false",
1541
+ "true",
1542
+ :ANON,
1543
+ :BLANK_NODE_LABEL,
1544
+ :DECIMAL,
1545
+ :DECIMAL_NEGATIVE,
1546
+ :DECIMAL_POSITIVE,
1547
+ :DOUBLE,
1548
+ :DOUBLE_NEGATIVE,
1549
+ :DOUBLE_POSITIVE,
1550
+ :INTEGER,
1551
+ :INTEGER_NEGATIVE,
1552
+ :INTEGER_POSITIVE,
1553
+ :IRI_REF,
1554
+ :PNAME_LN,
1555
+ :PNAME_NS,
1556
+ :STRING_LITERAL1,
1557
+ :STRING_LITERAL2,
1558
+ :STRING_LITERAL_LONG1,
1559
+ :STRING_LITERAL_LONG2],
1560
+ :blankNodePropertyList => [
1561
+ "(",
1562
+ ",",
1563
+ "[",
1564
+ "a",
1565
+ "false",
1566
+ "true",
1567
+ :ANON,
1568
+ :BLANK_NODE_LABEL,
1569
+ :DECIMAL,
1570
+ :DECIMAL_NEGATIVE,
1571
+ :DECIMAL_POSITIVE,
1572
+ :DOUBLE,
1573
+ :DOUBLE_NEGATIVE,
1574
+ :DOUBLE_POSITIVE,
1575
+ :INTEGER,
1576
+ :INTEGER_NEGATIVE,
1577
+ :INTEGER_POSITIVE,
1578
+ :IRI_REF,
1579
+ :PNAME_LN,
1580
+ :PNAME_NS,
1581
+ :STRING_LITERAL1,
1582
+ :STRING_LITERAL2,
1583
+ :STRING_LITERAL_LONG1,
1584
+ :STRING_LITERAL_LONG2],
1585
+ :collection => [
1586
+ "(",
1587
+ ",",
1588
+ "[",
1589
+ "a",
1590
+ "false",
1591
+ "true",
1592
+ :ANON,
1593
+ :BLANK_NODE_LABEL,
1594
+ :DECIMAL,
1595
+ :DECIMAL_NEGATIVE,
1596
+ :DECIMAL_POSITIVE,
1597
+ :DOUBLE,
1598
+ :DOUBLE_NEGATIVE,
1599
+ :DOUBLE_POSITIVE,
1600
+ :INTEGER,
1601
+ :INTEGER_NEGATIVE,
1602
+ :INTEGER_POSITIVE,
1603
+ :IRI_REF,
1604
+ :PNAME_LN,
1605
+ :PNAME_NS,
1606
+ :STRING_LITERAL1,
1607
+ :STRING_LITERAL2,
1608
+ :STRING_LITERAL_LONG1,
1609
+ :STRING_LITERAL_LONG2],
1610
+ :literal => [
1611
+ "(",
1612
+ ",",
1613
+ "[",
1614
+ "false",
1615
+ "true",
1616
+ :ANON,
1617
+ :BLANK_NODE_LABEL,
1618
+ :DECIMAL,
1619
+ :DECIMAL_NEGATIVE,
1620
+ :DECIMAL_POSITIVE,
1621
+ :DOUBLE,
1622
+ :DOUBLE_NEGATIVE,
1623
+ :DOUBLE_POSITIVE,
1624
+ :INTEGER,
1625
+ :INTEGER_NEGATIVE,
1626
+ :INTEGER_POSITIVE,
1627
+ :IRI_REF,
1628
+ :PNAME_LN,
1629
+ :PNAME_NS,
1630
+ :STRING_LITERAL1,
1631
+ :STRING_LITERAL2,
1632
+ :STRING_LITERAL_LONG1,
1633
+ :STRING_LITERAL_LONG2],
1634
+ :object => [
1635
+ "(",
1636
+ ",",
1637
+ "[",
1638
+ "false",
1639
+ "true",
1640
+ :ANON,
1641
+ :BLANK_NODE_LABEL,
1642
+ :DECIMAL,
1643
+ :DECIMAL_NEGATIVE,
1644
+ :DECIMAL_POSITIVE,
1645
+ :DOUBLE,
1646
+ :DOUBLE_NEGATIVE,
1647
+ :DOUBLE_POSITIVE,
1648
+ :INTEGER,
1649
+ :INTEGER_NEGATIVE,
1650
+ :INTEGER_POSITIVE,
1651
+ :IRI_REF,
1652
+ :PNAME_LN,
1653
+ :PNAME_NS,
1654
+ :STRING_LITERAL1,
1655
+ :STRING_LITERAL2,
1656
+ :STRING_LITERAL_LONG1,
1657
+ :STRING_LITERAL_LONG2],
1658
+ :objectList => [
1659
+ ";"],
1660
+ :predicate => [
1661
+ "(",
1662
+ "[",
1663
+ "false",
1664
+ "true",
1665
+ :ANON,
1666
+ :BLANK_NODE_LABEL,
1667
+ :DECIMAL,
1668
+ :DECIMAL_NEGATIVE,
1669
+ :DECIMAL_POSITIVE,
1670
+ :DOUBLE,
1671
+ :DOUBLE_NEGATIVE,
1672
+ :DOUBLE_POSITIVE,
1673
+ :INTEGER,
1674
+ :INTEGER_NEGATIVE,
1675
+ :INTEGER_POSITIVE,
1676
+ :IRI_REF,
1677
+ :PNAME_LN,
1678
+ :PNAME_NS,
1679
+ :STRING_LITERAL1,
1680
+ :STRING_LITERAL2,
1681
+ :STRING_LITERAL_LONG1,
1682
+ :STRING_LITERAL_LONG2],
1683
+ :statement => [
1684
+ "(",
1685
+ "@base",
1686
+ "@prefix",
1687
+ "[",
1688
+ :ANON,
1689
+ :BLANK_NODE_LABEL,
1690
+ :IRI_REF,
1691
+ :PNAME_LN,
1692
+ :PNAME_NS],
1693
+ :subject => [
1694
+ "a",
1695
+ :IRI_REF,
1696
+ :PNAME_LN,
1697
+ :PNAME_NS],
1698
+ :turtleDoc => [
1699
+ :"ebnf:eof"],
1700
+ :verb => [
1701
+ "(",
1702
+ "[",
1703
+ "false",
1704
+ "true",
1705
+ :ANON,
1706
+ :BLANK_NODE_LABEL,
1707
+ :DECIMAL,
1708
+ :DECIMAL_NEGATIVE,
1709
+ :DECIMAL_POSITIVE,
1710
+ :DOUBLE,
1711
+ :DOUBLE_NEGATIVE,
1712
+ :DOUBLE_POSITIVE,
1713
+ :INTEGER,
1714
+ :INTEGER_NEGATIVE,
1715
+ :INTEGER_POSITIVE,
1716
+ :IRI_REF,
1717
+ :PNAME_LN,
1718
+ :PNAME_NS,
1719
+ :STRING_LITERAL1,
1720
+ :STRING_LITERAL2,
1721
+ :STRING_LITERAL_LONG1,
1722
+ :STRING_LITERAL_LONG2],
1723
+ "true" => [
1724
+ "(",
1725
+ ",",
1726
+ "[",
1727
+ "false",
1728
+ "true",
1729
+ :ANON,
1730
+ :BLANK_NODE_LABEL,
1731
+ :DECIMAL,
1732
+ :DECIMAL_NEGATIVE,
1733
+ :DECIMAL_POSITIVE,
1734
+ :DOUBLE,
1735
+ :DOUBLE_NEGATIVE,
1736
+ :DOUBLE_POSITIVE,
1737
+ :INTEGER,
1738
+ :INTEGER_NEGATIVE,
1739
+ :INTEGER_POSITIVE,
1740
+ :IRI_REF,
1741
+ :PNAME_LN,
1742
+ :PNAME_NS,
1743
+ :STRING_LITERAL1,
1744
+ :STRING_LITERAL2,
1745
+ :STRING_LITERAL_LONG1,
1746
+ :STRING_LITERAL_LONG2],
1747
+ }.freeze
1748
+ end