rdf-trig 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/AUTHORS ADDED
@@ -0,0 +1 @@
1
+ * Gregg Kellogg <gregg@kellogg-assoc.com>
data/History ADDED
@@ -0,0 +1,2 @@
1
+ ### 0.1.0
2
+ * First release based on 02-Nov-2011 version of [TriG spec](http://dvcs.w3.org/hg/rdf/raw-file/default/trig/index.html)
data/README.markdown ADDED
@@ -0,0 +1,103 @@
1
+ # RDF::TriG reader/writer
2
+ [TriG][] reader/writer for [RDF.rb][RDF.rb] .
3
+
4
+ ## Description
5
+ This is a [Ruby][] implementation of a [TriG][] reader and writer for [RDF.rb][].
6
+
7
+ ## Features
8
+ RDF::TriG parses [TriG][Trig] into statements or quads. It also serializes to TriG.
9
+
10
+ Install with `gem install rdf-trig`
11
+
12
+ * 100% free and unencumbered [public domain](http://unlicense.org/) software.
13
+ * Implements a complete parser and serializer for [TriG][].
14
+ * Compatible with Ruby 1.8.7+, Ruby 1.9.x, and JRuby 1.4/1.5.
15
+
16
+ ## Usage
17
+ Instantiate a reader from a local file:
18
+
19
+ repo = RDF::Repository.load("etc/doap.trig", :format => :trig)
20
+
21
+ Define `@base` and `@prefix` definitions, and use for serialization using `:base_uri` an `:prefixes` options.
22
+
23
+ Canonicalize and validate using `:canonicalize` and `:validate` options.
24
+
25
+ Write a repository to a file:
26
+
27
+ RDF::TriG::Writer.open("etc/test.trig") do |writer|
28
+ writer << repo
29
+ end
30
+
31
+ Note that reading and writing of graphs is also possible, but as graphs have only a single context,
32
+ it is not particularly interesting for TriG.
33
+
34
+ ## Documentation
35
+ Full documentation available on [Rubydoc.info][TriG doc].
36
+
37
+ ### Principle Classes
38
+ * {RDF::TriG::Format}
39
+ * {RDF::TriG::Reader}
40
+ * {RDF::TriG::Writer}
41
+
42
+ ### Interpretations of the spec
43
+
44
+ It is still not defined what the interpretation of multiple uses of the same `graphIri` mean. This implementation takes
45
+ the use of multiple graphs having the same `graphIri` to be additive, meaning that the statements from each graph
46
+ are combined together to create a single graph.
47
+
48
+ Graphs are written with `context` set to the associated `graphIri`.
49
+
50
+ Although `RDF::Repository` allows any `RDF::Value`, such as a BNode, literal or variable to be used as a context, TriG
51
+ only allows the use of an IRI.
52
+
53
+ ## Implementation Notes
54
+ The reader uses the [Turtle][Turtle doc] parser, which is based on the LL1::Parser with minor updates for the TriG grammar.
55
+ The writer also is based on the Turtle writer.
56
+
57
+ ## Dependencies
58
+
59
+ * [Ruby](http://ruby-lang.org/) (>= 1.8.7) or (>= 1.8.1 with [Backports][])
60
+ * [RDF.rb](http://rubygems.org/gems/rdf) (>= 0.3.4)
61
+ * [rdf-turtle](http://rubygems.org/gems/rdf-turtle) (>= 0.1.1)
62
+
63
+ ## Installation
64
+
65
+ The recommended installation method is via [RubyGems](http://rubygems.org/).
66
+ To install the latest official release of the `RDF::TriG` gem, do:
67
+
68
+ % [sudo] gem install rdf-trig
69
+
70
+ ## Mailing List
71
+ * <http://lists.w3.org/Archives/Public/public-rdf-ruby/>
72
+
73
+ ## Author
74
+ * [Gregg Kellogg](http://github.com/gkellogg) - <http://kellogg-assoc.com/>
75
+
76
+ ## Contributing
77
+ * Do your best to adhere to the existing coding conventions and idioms.
78
+ * Don't use hard tabs, and don't leave trailing whitespace on any line.
79
+ * Do document every method you add using [YARD][] annotations. Read the
80
+ [tutorial][YARD-GS] or just look at the existing code for examples.
81
+ * Don't touch the `.gemspec`, `VERSION` or `AUTHORS` files. If you need to
82
+ change them, do so on your private branch only.
83
+ * Do feel free to add yourself to the `CREDITS` file and the corresponding
84
+ list in the the `README`. Alphabetical order applies.
85
+ * Do note that in order for us to merge any non-trivial changes (as a rule
86
+ of thumb, additions larger than about 15 lines of code), we need an
87
+ explicit [public domain dedication][PDD] on record from you.
88
+
89
+ ## License
90
+ This is free and unencumbered public domain software. For more information,
91
+ see <http://unlicense.org/> or the accompanying {file:UNLICENSE} file.
92
+
93
+ [Ruby]: http://ruby-lang.org/
94
+ [RDF]: http://www.w3.org/RDF/
95
+ [YARD]: http://yardoc.org/
96
+ [YARD-GS]: http://rubydoc.info/docs/yard/file/docs/GettingStarted.md
97
+ [PDD]: http://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
98
+ [RDF.rb]: http://rubydoc.info/github/gkellogg/rdf/master/frames
99
+ [Backports]: http://rubygems.org/gems/backports
100
+ [TriG]: http://dvcs.w3.org/hg/rdf/raw-file/default/trig/
101
+ [TriG doc]: http://rubydoc.info/github/gkellogg/rdf-trig/master/file/README.markdown
102
+ [TriG EBNF]: http://dvcs.w3.org/hg/rdf/raw-file/default/trig/trig.bnf
103
+ [Turtle doc]: http://rubydoc.info/github/gkellogg/rdf-turtle/master/file/README.markdown
data/UNLICENSE ADDED
@@ -0,0 +1,24 @@
1
+ This is free and unencumbered software released into the public domain.
2
+
3
+ Anyone is free to copy, modify, publish, use, compile, sell, or
4
+ distribute this software, either in source code form or as a compiled
5
+ binary, for any purpose, commercial or non-commercial, and by any
6
+ means.
7
+
8
+ In jurisdictions that recognize copyright laws, the author or authors
9
+ of this software dedicate any and all copyright interest in the
10
+ software to the public domain. We make this dedication for the benefit
11
+ of the public at large and to the detriment of our heirs and
12
+ successors. We intend this dedication to be an overt act of
13
+ relinquishment in perpetuity of all present and future rights to this
14
+ software under copyright law.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
23
+
24
+ For more information, please refer to <http://unlicense.org/>
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.1
data/lib/rdf/trig.rb ADDED
@@ -0,0 +1,33 @@
1
+ require 'rdf'
2
+
3
+ module RDF
4
+ ##
5
+ # **`RDF::TriG`** is an TriG plugin for RDF.rb.
6
+ #
7
+ # @example Requiring the `RDF::TriG` module
8
+ # require 'rdf/trig'
9
+ #
10
+ # @example Parsing RDF statements from an TriG file
11
+ # RDF::TriG::Reader.open("etc/foaf.trig") do |reader|
12
+ # reader.each_statement do |statement|
13
+ # puts statement.inspect
14
+ # end
15
+ # end
16
+ #
17
+ # @see http://rubydoc.info/github/gkellogg/rdf-turtle/master/frames
18
+ # @see http://rubydoc.info/github/gkellogg/rdf/master/frames
19
+ # @see http://dvcs.w3.org/hg/rdf/raw-file/default/trig/index.html
20
+ #
21
+ # @author [Gregg Kellogg](http://kellogg-assoc.com/)
22
+ module TriG
23
+ require 'rdf/trig/format'
24
+ autoload :Reader, 'rdf/trig/reader'
25
+ autoload :VERSION, 'rdf/trig/version'
26
+ autoload :Writer, 'rdf/trig/writer'
27
+
28
+ KEYWORDS = %w(@base @prefix).map(&:to_sym)
29
+
30
+ def self.debug?; @debug; end
31
+ def self.debug=(value); RDF::Turtle.debug = @debug = value; end
32
+ end
33
+ end
@@ -0,0 +1,53 @@
1
+ module RDF::TriG
2
+ ##
3
+ # TriG format specification.
4
+ #
5
+ # @example Obtaining an TriG format class
6
+ # RDF::Format.for("etc/foaf.trig")
7
+ # RDF::Format.for(:file_name => "etc/foaf.trig")
8
+ # RDF::Format.for(:file_extension => "trig")
9
+ # RDF::Format.for(:content_type => "application/trig")
10
+ #
11
+ # @example Obtaining serialization format MIME types
12
+ # RDF::Format.content_types #=> {"application/trig" => [RDF::TriG::Format]}
13
+ #
14
+ # @example Obtaining serialization format file extension mappings
15
+ # RDF::Format.file_extensions #=> {:trig => "application/trig"}
16
+ #
17
+ # @see http://www.w3.org/TR/rdf-testcases/#ntriples
18
+ class Format < RDF::Format
19
+ content_type 'application/trig', :extension => :trig
20
+ content_encoding 'utf-8'
21
+
22
+ reader { RDF::TriG::Reader }
23
+ writer { RDF::TriG::Writer }
24
+
25
+ ##
26
+ # Sample detection to see if it matches TriG
27
+ #
28
+ # Use a text sample to detect the format of an input file. Sub-classes implement
29
+ # a matcher sufficient to detect probably format matches, including disambiguating
30
+ # between other similar formats.
31
+ #
32
+ # @param [String] sample Beginning several bytes (~ 1K) of input.
33
+ # @return [Boolean]
34
+ def self.detect(sample)
35
+ !!sample.match(%r(
36
+ (?:
37
+ (?:\s*(?:(?:<[^>]*>) | (?:\w*:\w+) | (?:"[^"]*")))? # IRIref
38
+ \s*\{ # Graph Start
39
+ (?:
40
+ (?:\s*(?:(?:<[^>]*>) | (?:\w*:\w+) | (?:"[^"]*"))\s*[,;]) ||
41
+ (?:\s*(?:(?:<[^>]*>) | (?:\w*:\w+) | (?:["']+[^"']*["']+))){3}
42
+ )* # triples
43
+ [\s\.]*\}\s* # Graph end
44
+ )
45
+ )mx) && !(
46
+ sample.match(%r(@keywords|=)) || # N3
47
+ sample.match(%r(<(?:\/|html|rdf))i) || # HTML, RDF/XML
48
+ sample.match(%r(^(?:\s*<[^>]*>){4}.*\.\s*$)) || # N-Quads
49
+ sample.match(%r("@(context|subject|iri)")) # JSON-LD
50
+ )
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,2427 @@
1
+ # This file is automatically generated by script/gramLL1
2
+ # BRANCH derived from etc/trig-ll1.n3
3
+ module RDF::TriG::Meta
4
+ START = :trigDoc
5
+
6
+ BRANCH = {
7
+ :"_:_g0" => {
8
+ "(" => [:"_:g2170907080"],
9
+ "[" => [:"_:g2170907080"],
10
+ :"ebnf:empty" => [],
11
+ :ANON => [:"_:g2170907080"],
12
+ :BLANK_NODE_LABEL => [:"_:g2170907080"],
13
+ :IRI_REF => [:"_:g2170907080"],
14
+ :PNAME_LN => [:"_:g2170907080"],
15
+ :PNAME_NS => [:"_:g2170907080"],
16
+ },
17
+ :"_:_g1" => {
18
+ "(" => [:"_:g2170566380"],
19
+ "[" => [:"_:g2170566380"],
20
+ :"ebnf:empty" => [],
21
+ :ANON => [:"_:g2170566380"],
22
+ :BLANK_NODE_LABEL => [:"_:g2170566380"],
23
+ :IRI_REF => [:"_:g2170566380"],
24
+ :PNAME_LN => [:"_:g2170566380"],
25
+ :PNAME_NS => [:"_:g2170566380"],
26
+ },
27
+ :"_:_g10" => {
28
+ "(" => [],
29
+ "," => [:"_:g2171903040"],
30
+ "." => [],
31
+ ";" => [],
32
+ "[" => [],
33
+ :"ebnf:empty" => [],
34
+ :ANON => [],
35
+ :BLANK_NODE_LABEL => [],
36
+ :IRI_REF => [],
37
+ :PNAME_LN => [],
38
+ :PNAME_NS => [],
39
+ },
40
+ :"_:_g11" => {
41
+ "," => [",", :object],
42
+ },
43
+ :"_:_g12" => {
44
+ "(" => [:"_:g2171192900"],
45
+ "[" => [:"_:g2171192900"],
46
+ "false" => [:"_:g2171192900"],
47
+ :"ebnf:empty" => [],
48
+ :ANON => [:"_:g2171192900"],
49
+ :BLANK_NODE_LABEL => [:"_:g2171192900"],
50
+ :DECIMAL => [:"_:g2171192900"],
51
+ :DECIMAL_NEGATIVE => [:"_:g2171192900"],
52
+ :DECIMAL_POSITIVE => [:"_:g2171192900"],
53
+ :DOUBLE => [:"_:g2171192900"],
54
+ :DOUBLE_NEGATIVE => [:"_:g2171192900"],
55
+ :DOUBLE_POSITIVE => [:"_:g2171192900"],
56
+ :INTEGER => [:"_:g2171192900"],
57
+ :INTEGER_NEGATIVE => [:"_:g2171192900"],
58
+ :INTEGER_POSITIVE => [:"_:g2171192900"],
59
+ :IRI_REF => [:"_:g2171192900"],
60
+ :PNAME_LN => [:"_:g2171192900"],
61
+ :PNAME_NS => [:"_:g2171192900"],
62
+ :STRING_LITERAL1 => [:"_:g2171192900"],
63
+ :STRING_LITERAL2 => [:"_:g2171192900"],
64
+ :STRING_LITERAL_LONG1 => [:"_:g2171192900"],
65
+ :STRING_LITERAL_LONG2 => [:"_:g2171192900"],
66
+ "true" => [:"_:g2171192900"],
67
+ },
68
+ :"_:_g13" => {
69
+ "(" => [],
70
+ "," => [],
71
+ "[" => [],
72
+ "^^" => [:"_:_g14"],
73
+ "false" => [],
74
+ :"ebnf:empty" => [],
75
+ :ANON => [],
76
+ :BLANK_NODE_LABEL => [],
77
+ :DECIMAL => [],
78
+ :DECIMAL_NEGATIVE => [],
79
+ :DECIMAL_POSITIVE => [],
80
+ :DOUBLE => [],
81
+ :DOUBLE_NEGATIVE => [],
82
+ :DOUBLE_POSITIVE => [],
83
+ :INTEGER => [],
84
+ :INTEGER_NEGATIVE => [],
85
+ :INTEGER_POSITIVE => [],
86
+ :IRI_REF => [],
87
+ :LANGTAG => [:"_:_g14"],
88
+ :PNAME_LN => [],
89
+ :PNAME_NS => [],
90
+ :STRING_LITERAL1 => [],
91
+ :STRING_LITERAL2 => [],
92
+ :STRING_LITERAL_LONG1 => [],
93
+ :STRING_LITERAL_LONG2 => [],
94
+ "true" => [],
95
+ },
96
+ :"_:_g14" => {
97
+ "(" => [],
98
+ "," => [],
99
+ "[" => [],
100
+ "^^" => [:"_:g2170080060"],
101
+ "false" => [],
102
+ :ANON => [],
103
+ :BLANK_NODE_LABEL => [],
104
+ :DECIMAL => [],
105
+ :DECIMAL_NEGATIVE => [],
106
+ :DECIMAL_POSITIVE => [],
107
+ :DOUBLE => [],
108
+ :DOUBLE_NEGATIVE => [],
109
+ :DOUBLE_POSITIVE => [],
110
+ :INTEGER => [],
111
+ :INTEGER_NEGATIVE => [],
112
+ :INTEGER_POSITIVE => [],
113
+ :IRI_REF => [],
114
+ :LANGTAG => [:LANGTAG],
115
+ :PNAME_LN => [],
116
+ :PNAME_NS => [],
117
+ :STRING_LITERAL1 => [],
118
+ :STRING_LITERAL2 => [],
119
+ :STRING_LITERAL_LONG1 => [],
120
+ :STRING_LITERAL_LONG2 => [],
121
+ "true" => [],
122
+ },
123
+ :"_:_g2" => {
124
+ "." => [:"_:g2170210900"],
125
+ :"ebnf:empty" => [],
126
+ },
127
+ :"_:_g3" => {
128
+ "." => [".", :"_:_g4"],
129
+ },
130
+ :"_:_g4" => {
131
+ "(" => [:"_:_g5"],
132
+ "." => [],
133
+ "[" => [:"_:_g5"],
134
+ :"ebnf:empty" => [],
135
+ :ANON => [:"_:_g5"],
136
+ :BLANK_NODE_LABEL => [:"_:_g5"],
137
+ :IRI_REF => [:"_:_g5"],
138
+ :PNAME_LN => [:"_:_g5"],
139
+ :PNAME_NS => [:"_:_g5"],
140
+ },
141
+ :"_:_g5" => {
142
+ "(" => [:subject, :predicateObjectList],
143
+ "." => [],
144
+ "[" => [:subject, :predicateObjectList],
145
+ :ANON => [:subject, :predicateObjectList],
146
+ :BLANK_NODE_LABEL => [:subject, :predicateObjectList],
147
+ :IRI_REF => [:subject, :predicateObjectList],
148
+ :PNAME_LN => [:subject, :predicateObjectList],
149
+ :PNAME_NS => [:subject, :predicateObjectList],
150
+ },
151
+ :"_:_g6" => {
152
+ ";" => [:"_:g2173623960"],
153
+ :"ebnf:empty" => [],
154
+ },
155
+ :"_:_g7" => {
156
+ ";" => [";", :"_:_g8"],
157
+ },
158
+ :"_:_g8" => {
159
+ ";" => [],
160
+ "a" => [:"_:_g9"],
161
+ :"ebnf:empty" => [],
162
+ :IRI_REF => [:"_:_g9"],
163
+ :PNAME_LN => [:"_:_g9"],
164
+ :PNAME_NS => [:"_:_g9"],
165
+ },
166
+ :"_:_g9" => {
167
+ ";" => [],
168
+ "a" => [:verb, :objectList],
169
+ :IRI_REF => [:verb, :objectList],
170
+ :PNAME_LN => [:verb, :objectList],
171
+ :PNAME_NS => [:verb, :objectList],
172
+ },
173
+ :"_:g2169276360" => {
174
+ "@base" => [],
175
+ "@prefix" => [],
176
+ :IRI_REF => [],
177
+ :PNAME_LN => [],
178
+ :PNAME_NS => [],
179
+ "{" => ["{", :"_:_g1", "}"],
180
+ },
181
+ :"_:g2169796440" => {
182
+ "@base" => [],
183
+ "@prefix" => [],
184
+ :IRI_REF => [:graphIri, "{", :"_:_g0", "}"],
185
+ :PNAME_LN => [:graphIri, "{", :"_:_g0", "}"],
186
+ :PNAME_NS => [:graphIri, "{", :"_:_g0", "}"],
187
+ "{" => [],
188
+ },
189
+ :"_:g2170080060" => {
190
+ "(" => [],
191
+ "," => [],
192
+ "[" => [],
193
+ "^^" => ["^^", :IRIref],
194
+ "false" => [],
195
+ :ANON => [],
196
+ :BLANK_NODE_LABEL => [],
197
+ :DECIMAL => [],
198
+ :DECIMAL_NEGATIVE => [],
199
+ :DECIMAL_POSITIVE => [],
200
+ :DOUBLE => [],
201
+ :DOUBLE_NEGATIVE => [],
202
+ :DOUBLE_POSITIVE => [],
203
+ :INTEGER => [],
204
+ :INTEGER_NEGATIVE => [],
205
+ :INTEGER_POSITIVE => [],
206
+ :IRI_REF => [],
207
+ :PNAME_LN => [],
208
+ :PNAME_NS => [],
209
+ :STRING_LITERAL1 => [],
210
+ :STRING_LITERAL2 => [],
211
+ :STRING_LITERAL_LONG1 => [],
212
+ :STRING_LITERAL_LONG2 => [],
213
+ "true" => [],
214
+ },
215
+ :"_:g2170210900" => {
216
+ "." => [:"_:_g3", :"_:_g2"],
217
+ },
218
+ :"_:g2170566380" => {
219
+ "(" => [:triples, :"_:_g1"],
220
+ "[" => [:triples, :"_:_g1"],
221
+ :ANON => [:triples, :"_:_g1"],
222
+ :BLANK_NODE_LABEL => [:triples, :"_:_g1"],
223
+ :IRI_REF => [:triples, :"_:_g1"],
224
+ :PNAME_LN => [:triples, :"_:_g1"],
225
+ :PNAME_NS => [:triples, :"_:_g1"],
226
+ },
227
+ :"_:g2170907080" => {
228
+ "(" => [:triples, :"_:_g0"],
229
+ "[" => [:triples, :"_:_g0"],
230
+ :ANON => [:triples, :"_:_g0"],
231
+ :BLANK_NODE_LABEL => [:triples, :"_:_g0"],
232
+ :IRI_REF => [:triples, :"_:_g0"],
233
+ :PNAME_LN => [:triples, :"_:_g0"],
234
+ :PNAME_NS => [:triples, :"_:_g0"],
235
+ },
236
+ :"_:g2171192900" => {
237
+ "(" => [:object, :"_:_g12"],
238
+ "[" => [:object, :"_:_g12"],
239
+ "false" => [:object, :"_:_g12"],
240
+ :ANON => [:object, :"_:_g12"],
241
+ :BLANK_NODE_LABEL => [:object, :"_:_g12"],
242
+ :DECIMAL => [:object, :"_:_g12"],
243
+ :DECIMAL_NEGATIVE => [:object, :"_:_g12"],
244
+ :DECIMAL_POSITIVE => [:object, :"_:_g12"],
245
+ :DOUBLE => [:object, :"_:_g12"],
246
+ :DOUBLE_NEGATIVE => [:object, :"_:_g12"],
247
+ :DOUBLE_POSITIVE => [:object, :"_:_g12"],
248
+ :INTEGER => [:object, :"_:_g12"],
249
+ :INTEGER_NEGATIVE => [:object, :"_:_g12"],
250
+ :INTEGER_POSITIVE => [:object, :"_:_g12"],
251
+ :IRI_REF => [:object, :"_:_g12"],
252
+ :PNAME_LN => [:object, :"_:_g12"],
253
+ :PNAME_NS => [:object, :"_:_g12"],
254
+ :STRING_LITERAL1 => [:object, :"_:_g12"],
255
+ :STRING_LITERAL2 => [:object, :"_:_g12"],
256
+ :STRING_LITERAL_LONG1 => [:object, :"_:_g12"],
257
+ :STRING_LITERAL_LONG2 => [:object, :"_:_g12"],
258
+ "true" => [:object, :"_:_g12"],
259
+ },
260
+ :"_:g2171903040" => {
261
+ "(" => [],
262
+ "," => [:"_:_g11", :"_:_g10"],
263
+ "." => [],
264
+ ";" => [],
265
+ "[" => [],
266
+ :ANON => [],
267
+ :BLANK_NODE_LABEL => [],
268
+ :IRI_REF => [],
269
+ :PNAME_LN => [],
270
+ :PNAME_NS => [],
271
+ },
272
+ :"_:g2172268480" => {
273
+ "@base" => [:graph_statement, :trigDoc],
274
+ "@prefix" => [:graph_statement, :trigDoc],
275
+ :"ebnf:eof" => [],
276
+ :IRI_REF => [:graph_statement, :trigDoc],
277
+ :PNAME_LN => [:graph_statement, :trigDoc],
278
+ :PNAME_NS => [:graph_statement, :trigDoc],
279
+ "{" => [:graph_statement, :trigDoc],
280
+ },
281
+ :"_:g2173024260" => {
282
+ "@base" => [:directive, "."],
283
+ "@prefix" => [:directive, "."],
284
+ :IRI_REF => [],
285
+ :PNAME_LN => [],
286
+ :PNAME_NS => [],
287
+ "{" => [],
288
+ },
289
+ :"_:g2173623960" => {
290
+ ";" => [:"_:_g7", :"_:_g6"],
291
+ },
292
+ :BASE => {
293
+ "@base" => ["@base"],
294
+ },
295
+ :BlankNode => {
296
+ "(" => [],
297
+ "," => [],
298
+ "[" => [],
299
+ "a" => [],
300
+ "false" => [],
301
+ :ANON => [:ANON],
302
+ :BLANK_NODE_LABEL => [:BLANK_NODE_LABEL],
303
+ :DECIMAL => [],
304
+ :DECIMAL_NEGATIVE => [],
305
+ :DECIMAL_POSITIVE => [],
306
+ :DOUBLE => [],
307
+ :DOUBLE_NEGATIVE => [],
308
+ :DOUBLE_POSITIVE => [],
309
+ :INTEGER => [],
310
+ :INTEGER_NEGATIVE => [],
311
+ :INTEGER_POSITIVE => [],
312
+ :IRI_REF => [],
313
+ :PNAME_LN => [],
314
+ :PNAME_NS => [],
315
+ :STRING_LITERAL1 => [],
316
+ :STRING_LITERAL2 => [],
317
+ :STRING_LITERAL_LONG1 => [],
318
+ :STRING_LITERAL_LONG2 => [],
319
+ "true" => [],
320
+ },
321
+ :BooleanLiteral => {
322
+ "(" => [],
323
+ "," => [],
324
+ "[" => [],
325
+ "false" => ["false"],
326
+ :ANON => [],
327
+ :BLANK_NODE_LABEL => [],
328
+ :DECIMAL => [],
329
+ :DECIMAL_NEGATIVE => [],
330
+ :DECIMAL_POSITIVE => [],
331
+ :DOUBLE => [],
332
+ :DOUBLE_NEGATIVE => [],
333
+ :DOUBLE_POSITIVE => [],
334
+ :INTEGER => [],
335
+ :INTEGER_NEGATIVE => [],
336
+ :INTEGER_POSITIVE => [],
337
+ :IRI_REF => [],
338
+ :PNAME_LN => [],
339
+ :PNAME_NS => [],
340
+ :STRING_LITERAL1 => [],
341
+ :STRING_LITERAL2 => [],
342
+ :STRING_LITERAL_LONG1 => [],
343
+ :STRING_LITERAL_LONG2 => [],
344
+ "true" => ["true"],
345
+ },
346
+ :IRIref => {
347
+ "(" => [],
348
+ "," => [],
349
+ "[" => [],
350
+ "a" => [],
351
+ "false" => [],
352
+ :ANON => [],
353
+ :BLANK_NODE_LABEL => [],
354
+ :DECIMAL => [],
355
+ :DECIMAL_NEGATIVE => [],
356
+ :DECIMAL_POSITIVE => [],
357
+ :DOUBLE => [],
358
+ :DOUBLE_NEGATIVE => [],
359
+ :DOUBLE_POSITIVE => [],
360
+ :INTEGER => [],
361
+ :INTEGER_NEGATIVE => [],
362
+ :INTEGER_POSITIVE => [],
363
+ :IRI_REF => [:IRI_REF],
364
+ :PNAME_LN => [:PrefixedName],
365
+ :PNAME_NS => [:PrefixedName],
366
+ :STRING_LITERAL1 => [],
367
+ :STRING_LITERAL2 => [],
368
+ :STRING_LITERAL_LONG1 => [],
369
+ :STRING_LITERAL_LONG2 => [],
370
+ "true" => [],
371
+ },
372
+ :NumericLiteral => {
373
+ "(" => [],
374
+ "," => [],
375
+ "[" => [],
376
+ "false" => [],
377
+ :ANON => [],
378
+ :BLANK_NODE_LABEL => [],
379
+ :DECIMAL => [:NumericLiteralUnsigned],
380
+ :DECIMAL_NEGATIVE => [:NumericLiteralNegative],
381
+ :DECIMAL_POSITIVE => [:NumericLiteralPositive],
382
+ :DOUBLE => [:NumericLiteralUnsigned],
383
+ :DOUBLE_NEGATIVE => [:NumericLiteralNegative],
384
+ :DOUBLE_POSITIVE => [:NumericLiteralPositive],
385
+ :INTEGER => [:NumericLiteralUnsigned],
386
+ :INTEGER_NEGATIVE => [:NumericLiteralNegative],
387
+ :INTEGER_POSITIVE => [:NumericLiteralPositive],
388
+ :IRI_REF => [],
389
+ :PNAME_LN => [],
390
+ :PNAME_NS => [],
391
+ :STRING_LITERAL1 => [],
392
+ :STRING_LITERAL2 => [],
393
+ :STRING_LITERAL_LONG1 => [],
394
+ :STRING_LITERAL_LONG2 => [],
395
+ "true" => [],
396
+ },
397
+ :NumericLiteralNegative => {
398
+ "(" => [],
399
+ "," => [],
400
+ "[" => [],
401
+ "false" => [],
402
+ :ANON => [],
403
+ :BLANK_NODE_LABEL => [],
404
+ :DECIMAL => [],
405
+ :DECIMAL_NEGATIVE => [:DECIMAL_NEGATIVE],
406
+ :DECIMAL_POSITIVE => [],
407
+ :DOUBLE => [],
408
+ :DOUBLE_NEGATIVE => [:DOUBLE_NEGATIVE],
409
+ :DOUBLE_POSITIVE => [],
410
+ :INTEGER => [],
411
+ :INTEGER_NEGATIVE => [:INTEGER_NEGATIVE],
412
+ :INTEGER_POSITIVE => [],
413
+ :IRI_REF => [],
414
+ :PNAME_LN => [],
415
+ :PNAME_NS => [],
416
+ :STRING_LITERAL1 => [],
417
+ :STRING_LITERAL2 => [],
418
+ :STRING_LITERAL_LONG1 => [],
419
+ :STRING_LITERAL_LONG2 => [],
420
+ "true" => [],
421
+ },
422
+ :NumericLiteralPositive => {
423
+ "(" => [],
424
+ "," => [],
425
+ "[" => [],
426
+ "false" => [],
427
+ :ANON => [],
428
+ :BLANK_NODE_LABEL => [],
429
+ :DECIMAL => [],
430
+ :DECIMAL_NEGATIVE => [],
431
+ :DECIMAL_POSITIVE => [:DECIMAL_POSITIVE],
432
+ :DOUBLE => [],
433
+ :DOUBLE_NEGATIVE => [],
434
+ :DOUBLE_POSITIVE => [:DOUBLE_POSITIVE],
435
+ :INTEGER => [],
436
+ :INTEGER_NEGATIVE => [],
437
+ :INTEGER_POSITIVE => [:INTEGER_POSITIVE],
438
+ :IRI_REF => [],
439
+ :PNAME_LN => [],
440
+ :PNAME_NS => [],
441
+ :STRING_LITERAL1 => [],
442
+ :STRING_LITERAL2 => [],
443
+ :STRING_LITERAL_LONG1 => [],
444
+ :STRING_LITERAL_LONG2 => [],
445
+ "true" => [],
446
+ },
447
+ :NumericLiteralUnsigned => {
448
+ "(" => [],
449
+ "," => [],
450
+ "[" => [],
451
+ "false" => [],
452
+ :ANON => [],
453
+ :BLANK_NODE_LABEL => [],
454
+ :DECIMAL => [:DECIMAL],
455
+ :DECIMAL_NEGATIVE => [],
456
+ :DECIMAL_POSITIVE => [],
457
+ :DOUBLE => [:DOUBLE],
458
+ :DOUBLE_NEGATIVE => [],
459
+ :DOUBLE_POSITIVE => [],
460
+ :INTEGER => [:INTEGER],
461
+ :INTEGER_NEGATIVE => [],
462
+ :INTEGER_POSITIVE => [],
463
+ :IRI_REF => [],
464
+ :PNAME_LN => [],
465
+ :PNAME_NS => [],
466
+ :STRING_LITERAL1 => [],
467
+ :STRING_LITERAL2 => [],
468
+ :STRING_LITERAL_LONG1 => [],
469
+ :STRING_LITERAL_LONG2 => [],
470
+ "true" => [],
471
+ },
472
+ :PREFIX => {
473
+ "@prefix" => ["@prefix"],
474
+ },
475
+ :PrefixedName => {
476
+ "(" => [],
477
+ "," => [],
478
+ "[" => [],
479
+ "a" => [],
480
+ "false" => [],
481
+ :ANON => [],
482
+ :BLANK_NODE_LABEL => [],
483
+ :DECIMAL => [],
484
+ :DECIMAL_NEGATIVE => [],
485
+ :DECIMAL_POSITIVE => [],
486
+ :DOUBLE => [],
487
+ :DOUBLE_NEGATIVE => [],
488
+ :DOUBLE_POSITIVE => [],
489
+ :INTEGER => [],
490
+ :INTEGER_NEGATIVE => [],
491
+ :INTEGER_POSITIVE => [],
492
+ :IRI_REF => [],
493
+ :PNAME_LN => [:PNAME_LN],
494
+ :PNAME_NS => [:PNAME_NS],
495
+ :STRING_LITERAL1 => [],
496
+ :STRING_LITERAL2 => [],
497
+ :STRING_LITERAL_LONG1 => [],
498
+ :STRING_LITERAL_LONG2 => [],
499
+ "true" => [],
500
+ },
501
+ :RDFLiteral => {
502
+ "(" => [],
503
+ "," => [],
504
+ "[" => [],
505
+ "false" => [],
506
+ :ANON => [],
507
+ :BLANK_NODE_LABEL => [],
508
+ :DECIMAL => [],
509
+ :DECIMAL_NEGATIVE => [],
510
+ :DECIMAL_POSITIVE => [],
511
+ :DOUBLE => [],
512
+ :DOUBLE_NEGATIVE => [],
513
+ :DOUBLE_POSITIVE => [],
514
+ :INTEGER => [],
515
+ :INTEGER_NEGATIVE => [],
516
+ :INTEGER_POSITIVE => [],
517
+ :IRI_REF => [],
518
+ :PNAME_LN => [],
519
+ :PNAME_NS => [],
520
+ :STRING_LITERAL1 => [:String, :"_:_g13"],
521
+ :STRING_LITERAL2 => [:String, :"_:_g13"],
522
+ :STRING_LITERAL_LONG1 => [:String, :"_:_g13"],
523
+ :STRING_LITERAL_LONG2 => [:String, :"_:_g13"],
524
+ "true" => [],
525
+ },
526
+ :String => {
527
+ "^^" => [],
528
+ :LANGTAG => [],
529
+ :STRING_LITERAL1 => [:STRING_LITERAL1],
530
+ :STRING_LITERAL2 => [:STRING_LITERAL2],
531
+ :STRING_LITERAL_LONG1 => [:STRING_LITERAL_LONG1],
532
+ :STRING_LITERAL_LONG2 => [:STRING_LITERAL_LONG2],
533
+ },
534
+ :base => {
535
+ "@base" => [:BASE, :IRI_REF],
536
+ },
537
+ :blank => {
538
+ "(" => [:collection],
539
+ "," => [],
540
+ "[" => [:blankNodePropertyList],
541
+ "a" => [],
542
+ "false" => [],
543
+ :ANON => [:BlankNode],
544
+ :BLANK_NODE_LABEL => [:BlankNode],
545
+ :DECIMAL => [],
546
+ :DECIMAL_NEGATIVE => [],
547
+ :DECIMAL_POSITIVE => [],
548
+ :DOUBLE => [],
549
+ :DOUBLE_NEGATIVE => [],
550
+ :DOUBLE_POSITIVE => [],
551
+ :INTEGER => [],
552
+ :INTEGER_NEGATIVE => [],
553
+ :INTEGER_POSITIVE => [],
554
+ :IRI_REF => [],
555
+ :PNAME_LN => [],
556
+ :PNAME_NS => [],
557
+ :STRING_LITERAL1 => [],
558
+ :STRING_LITERAL2 => [],
559
+ :STRING_LITERAL_LONG1 => [],
560
+ :STRING_LITERAL_LONG2 => [],
561
+ "true" => [],
562
+ },
563
+ :blankNodePropertyList => {
564
+ "(" => [],
565
+ "," => [],
566
+ "[" => ["[", :predicateObjectList, "]"],
567
+ "a" => [],
568
+ "false" => [],
569
+ :ANON => [],
570
+ :BLANK_NODE_LABEL => [],
571
+ :DECIMAL => [],
572
+ :DECIMAL_NEGATIVE => [],
573
+ :DECIMAL_POSITIVE => [],
574
+ :DOUBLE => [],
575
+ :DOUBLE_NEGATIVE => [],
576
+ :DOUBLE_POSITIVE => [],
577
+ :INTEGER => [],
578
+ :INTEGER_NEGATIVE => [],
579
+ :INTEGER_POSITIVE => [],
580
+ :IRI_REF => [],
581
+ :PNAME_LN => [],
582
+ :PNAME_NS => [],
583
+ :STRING_LITERAL1 => [],
584
+ :STRING_LITERAL2 => [],
585
+ :STRING_LITERAL_LONG1 => [],
586
+ :STRING_LITERAL_LONG2 => [],
587
+ "true" => [],
588
+ },
589
+ :collection => {
590
+ "(" => ["(", :"_:_g12", ")"],
591
+ "," => [],
592
+ "[" => [],
593
+ "a" => [],
594
+ "false" => [],
595
+ :ANON => [],
596
+ :BLANK_NODE_LABEL => [],
597
+ :DECIMAL => [],
598
+ :DECIMAL_NEGATIVE => [],
599
+ :DECIMAL_POSITIVE => [],
600
+ :DOUBLE => [],
601
+ :DOUBLE_NEGATIVE => [],
602
+ :DOUBLE_POSITIVE => [],
603
+ :INTEGER => [],
604
+ :INTEGER_NEGATIVE => [],
605
+ :INTEGER_POSITIVE => [],
606
+ :IRI_REF => [],
607
+ :PNAME_LN => [],
608
+ :PNAME_NS => [],
609
+ :STRING_LITERAL1 => [],
610
+ :STRING_LITERAL2 => [],
611
+ :STRING_LITERAL_LONG1 => [],
612
+ :STRING_LITERAL_LONG2 => [],
613
+ "true" => [],
614
+ },
615
+ :directive => {
616
+ "@base" => [:base],
617
+ "@prefix" => [:prefixID],
618
+ },
619
+ :graph => {
620
+ "@base" => [],
621
+ "@prefix" => [],
622
+ :IRI_REF => [:"_:g2169796440"],
623
+ :PNAME_LN => [:"_:g2169796440"],
624
+ :PNAME_NS => [:"_:g2169796440"],
625
+ "{" => [:"_:g2169276360"],
626
+ },
627
+ :graphIri => {
628
+ :IRI_REF => [:IRIref],
629
+ :PNAME_LN => [:IRIref],
630
+ :PNAME_NS => [:IRIref],
631
+ },
632
+ :graph_statement => {
633
+ "@base" => [:"_:g2173024260"],
634
+ "@prefix" => [:"_:g2173024260"],
635
+ :IRI_REF => [:graph],
636
+ :PNAME_LN => [:graph],
637
+ :PNAME_NS => [:graph],
638
+ "{" => [:graph],
639
+ },
640
+ :literal => {
641
+ "(" => [],
642
+ "," => [],
643
+ "[" => [],
644
+ "false" => [:BooleanLiteral],
645
+ :ANON => [],
646
+ :BLANK_NODE_LABEL => [],
647
+ :DECIMAL => [:NumericLiteral],
648
+ :DECIMAL_NEGATIVE => [:NumericLiteral],
649
+ :DECIMAL_POSITIVE => [:NumericLiteral],
650
+ :DOUBLE => [:NumericLiteral],
651
+ :DOUBLE_NEGATIVE => [:NumericLiteral],
652
+ :DOUBLE_POSITIVE => [:NumericLiteral],
653
+ :INTEGER => [:NumericLiteral],
654
+ :INTEGER_NEGATIVE => [:NumericLiteral],
655
+ :INTEGER_POSITIVE => [:NumericLiteral],
656
+ :IRI_REF => [],
657
+ :PNAME_LN => [],
658
+ :PNAME_NS => [],
659
+ :STRING_LITERAL1 => [:RDFLiteral],
660
+ :STRING_LITERAL2 => [:RDFLiteral],
661
+ :STRING_LITERAL_LONG1 => [:RDFLiteral],
662
+ :STRING_LITERAL_LONG2 => [:RDFLiteral],
663
+ "true" => [:BooleanLiteral],
664
+ },
665
+ :object => {
666
+ "(" => [:blank],
667
+ "," => [],
668
+ "[" => [:blank],
669
+ "false" => [:literal],
670
+ :ANON => [:blank],
671
+ :BLANK_NODE_LABEL => [:blank],
672
+ :DECIMAL => [:literal],
673
+ :DECIMAL_NEGATIVE => [:literal],
674
+ :DECIMAL_POSITIVE => [:literal],
675
+ :DOUBLE => [:literal],
676
+ :DOUBLE_NEGATIVE => [:literal],
677
+ :DOUBLE_POSITIVE => [:literal],
678
+ :INTEGER => [:literal],
679
+ :INTEGER_NEGATIVE => [:literal],
680
+ :INTEGER_POSITIVE => [:literal],
681
+ :IRI_REF => [:IRIref],
682
+ :PNAME_LN => [:IRIref],
683
+ :PNAME_NS => [:IRIref],
684
+ :STRING_LITERAL1 => [:literal],
685
+ :STRING_LITERAL2 => [:literal],
686
+ :STRING_LITERAL_LONG1 => [:literal],
687
+ :STRING_LITERAL_LONG2 => [:literal],
688
+ "true" => [:literal],
689
+ },
690
+ :objectList => {
691
+ "(" => [:object, :"_:_g10"],
692
+ "." => [],
693
+ ";" => [],
694
+ "[" => [:object, :"_:_g10"],
695
+ "false" => [:object, :"_:_g10"],
696
+ :ANON => [:object, :"_:_g10"],
697
+ :BLANK_NODE_LABEL => [:object, :"_:_g10"],
698
+ :DECIMAL => [:object, :"_:_g10"],
699
+ :DECIMAL_NEGATIVE => [:object, :"_:_g10"],
700
+ :DECIMAL_POSITIVE => [:object, :"_:_g10"],
701
+ :DOUBLE => [:object, :"_:_g10"],
702
+ :DOUBLE_NEGATIVE => [:object, :"_:_g10"],
703
+ :DOUBLE_POSITIVE => [:object, :"_:_g10"],
704
+ :INTEGER => [:object, :"_:_g10"],
705
+ :INTEGER_NEGATIVE => [:object, :"_:_g10"],
706
+ :INTEGER_POSITIVE => [:object, :"_:_g10"],
707
+ :IRI_REF => [:object, :"_:_g10"],
708
+ :PNAME_LN => [:object, :"_:_g10"],
709
+ :PNAME_NS => [:object, :"_:_g10"],
710
+ :STRING_LITERAL1 => [:object, :"_:_g10"],
711
+ :STRING_LITERAL2 => [:object, :"_:_g10"],
712
+ :STRING_LITERAL_LONG1 => [:object, :"_:_g10"],
713
+ :STRING_LITERAL_LONG2 => [:object, :"_:_g10"],
714
+ "true" => [:object, :"_:_g10"],
715
+ },
716
+ :predicate => {
717
+ "(" => [],
718
+ "[" => [],
719
+ "false" => [],
720
+ :ANON => [],
721
+ :BLANK_NODE_LABEL => [],
722
+ :DECIMAL => [],
723
+ :DECIMAL_NEGATIVE => [],
724
+ :DECIMAL_POSITIVE => [],
725
+ :DOUBLE => [],
726
+ :DOUBLE_NEGATIVE => [],
727
+ :DOUBLE_POSITIVE => [],
728
+ :INTEGER => [],
729
+ :INTEGER_NEGATIVE => [],
730
+ :INTEGER_POSITIVE => [],
731
+ :IRI_REF => [:IRIref],
732
+ :PNAME_LN => [:IRIref],
733
+ :PNAME_NS => [:IRIref],
734
+ :STRING_LITERAL1 => [],
735
+ :STRING_LITERAL2 => [],
736
+ :STRING_LITERAL_LONG1 => [],
737
+ :STRING_LITERAL_LONG2 => [],
738
+ "true" => [],
739
+ },
740
+ :predicateObjectList => {
741
+ "(" => [],
742
+ "." => [],
743
+ "[" => [],
744
+ "a" => [:verb, :objectList, :"_:_g6"],
745
+ :ANON => [],
746
+ :BLANK_NODE_LABEL => [],
747
+ :IRI_REF => [:verb, :objectList, :"_:_g6"],
748
+ :PNAME_LN => [:verb, :objectList, :"_:_g6"],
749
+ :PNAME_NS => [:verb, :objectList, :"_:_g6"],
750
+ },
751
+ :prefixID => {
752
+ "@prefix" => [:PREFIX, :PNAME_NS, :IRI_REF],
753
+ },
754
+ :subject => {
755
+ "(" => [:blank],
756
+ "[" => [:blank],
757
+ "a" => [],
758
+ :ANON => [:blank],
759
+ :BLANK_NODE_LABEL => [:blank],
760
+ :IRI_REF => [:IRIref],
761
+ :PNAME_LN => [:IRIref],
762
+ :PNAME_NS => [:IRIref],
763
+ },
764
+ :trigDoc => {
765
+ "@base" => [:"_:g2172268480"],
766
+ "@prefix" => [:"_:g2172268480"],
767
+ :"ebnf:empty" => [],
768
+ :"ebnf:eof" => [],
769
+ :IRI_REF => [:"_:g2172268480"],
770
+ :PNAME_LN => [:"_:g2172268480"],
771
+ :PNAME_NS => [:"_:g2172268480"],
772
+ "{" => [:"_:g2172268480"],
773
+ },
774
+ :triples => {
775
+ "(" => [:subject, :predicateObjectList, :"_:_g2"],
776
+ "[" => [:subject, :predicateObjectList, :"_:_g2"],
777
+ :ANON => [:subject, :predicateObjectList, :"_:_g2"],
778
+ :BLANK_NODE_LABEL => [:subject, :predicateObjectList, :"_:_g2"],
779
+ :IRI_REF => [:subject, :predicateObjectList, :"_:_g2"],
780
+ :PNAME_LN => [:subject, :predicateObjectList, :"_:_g2"],
781
+ :PNAME_NS => [:subject, :predicateObjectList, :"_:_g2"],
782
+ },
783
+ :verb => {
784
+ "(" => [],
785
+ "[" => [],
786
+ "a" => ["a"],
787
+ "false" => [],
788
+ :ANON => [],
789
+ :BLANK_NODE_LABEL => [],
790
+ :DECIMAL => [],
791
+ :DECIMAL_NEGATIVE => [],
792
+ :DECIMAL_POSITIVE => [],
793
+ :DOUBLE => [],
794
+ :DOUBLE_NEGATIVE => [],
795
+ :DOUBLE_POSITIVE => [],
796
+ :INTEGER => [],
797
+ :INTEGER_NEGATIVE => [],
798
+ :INTEGER_POSITIVE => [],
799
+ :IRI_REF => [:predicate],
800
+ :PNAME_LN => [:predicate],
801
+ :PNAME_NS => [:predicate],
802
+ :STRING_LITERAL1 => [],
803
+ :STRING_LITERAL2 => [],
804
+ :STRING_LITERAL_LONG1 => [],
805
+ :STRING_LITERAL_LONG2 => [],
806
+ "true" => [],
807
+ },
808
+ }.freeze
809
+ TERMINALS = [
810
+ "(",
811
+ ")",
812
+ ",",
813
+ ".",
814
+ ";",
815
+ "@base",
816
+ "@prefix",
817
+ "[",
818
+ "]",
819
+ "^^",
820
+ "a",
821
+ "false",
822
+ :ANON,
823
+ :BLANK_NODE_LABEL,
824
+ :DECIMAL,
825
+ :DECIMAL_NEGATIVE,
826
+ :DECIMAL_POSITIVE,
827
+ :DOUBLE,
828
+ :DOUBLE_NEGATIVE,
829
+ :DOUBLE_POSITIVE,
830
+ :INTEGER,
831
+ :INTEGER_NEGATIVE,
832
+ :INTEGER_POSITIVE,
833
+ :IRI_REF,
834
+ :LANGTAG,
835
+ :PNAME_LN,
836
+ :PNAME_NS,
837
+ :STRING_LITERAL1,
838
+ :STRING_LITERAL2,
839
+ :STRING_LITERAL_LONG1,
840
+ :STRING_LITERAL_LONG2,
841
+ "true",
842
+ "{",
843
+ "}"
844
+ ].freeze
845
+ FIRST = {
846
+ :"_:_g0" => [
847
+ "(",
848
+ "[",
849
+ :ANON,
850
+ :BLANK_NODE_LABEL,
851
+ :IRI_REF,
852
+ :PNAME_LN,
853
+ :PNAME_NS],
854
+ :"_:_g1" => [
855
+ "(",
856
+ "[",
857
+ :ANON,
858
+ :BLANK_NODE_LABEL,
859
+ :IRI_REF,
860
+ :PNAME_LN,
861
+ :PNAME_NS],
862
+ :"_:_g10" => [
863
+ ","],
864
+ :"_:_g11" => [
865
+ ","],
866
+ :"_:_g12" => [
867
+ "(",
868
+ "[",
869
+ "false",
870
+ "true",
871
+ :ANON,
872
+ :BLANK_NODE_LABEL,
873
+ :DECIMAL,
874
+ :DECIMAL_NEGATIVE,
875
+ :DECIMAL_POSITIVE,
876
+ :DOUBLE,
877
+ :DOUBLE_NEGATIVE,
878
+ :DOUBLE_POSITIVE,
879
+ :INTEGER,
880
+ :INTEGER_NEGATIVE,
881
+ :INTEGER_POSITIVE,
882
+ :IRI_REF,
883
+ :PNAME_LN,
884
+ :PNAME_NS,
885
+ :STRING_LITERAL1,
886
+ :STRING_LITERAL2,
887
+ :STRING_LITERAL_LONG1,
888
+ :STRING_LITERAL_LONG2],
889
+ :"_:_g13" => [
890
+ "^^",
891
+ :LANGTAG],
892
+ :"_:_g14" => [
893
+ "^^",
894
+ :LANGTAG],
895
+ :"_:_g2" => [
896
+ "."],
897
+ :"_:_g3" => [
898
+ "."],
899
+ :"_:_g4" => [
900
+ "(",
901
+ "[",
902
+ :ANON,
903
+ :BLANK_NODE_LABEL,
904
+ :IRI_REF,
905
+ :PNAME_LN,
906
+ :PNAME_NS],
907
+ :"_:_g5" => [
908
+ "(",
909
+ "[",
910
+ :ANON,
911
+ :BLANK_NODE_LABEL,
912
+ :IRI_REF,
913
+ :PNAME_LN,
914
+ :PNAME_NS],
915
+ :"_:_g6" => [
916
+ ";"],
917
+ :"_:_g7" => [
918
+ ";"],
919
+ :"_:_g8" => [
920
+ "a",
921
+ :IRI_REF,
922
+ :PNAME_LN,
923
+ :PNAME_NS],
924
+ :"_:_g9" => [
925
+ "a",
926
+ :IRI_REF,
927
+ :PNAME_LN,
928
+ :PNAME_NS],
929
+ :"_:g2168548200" => [
930
+ "(",
931
+ "[",
932
+ :ANON,
933
+ :BLANK_NODE_LABEL,
934
+ :IRI_REF,
935
+ :PNAME_LN,
936
+ :PNAME_NS],
937
+ :"_:g2169101800" => [
938
+ "@base",
939
+ "@prefix",
940
+ "{",
941
+ :IRI_REF,
942
+ :PNAME_LN,
943
+ :PNAME_NS],
944
+ :"_:g2169276360" => [
945
+ "{"],
946
+ :"_:g2169420840" => [
947
+ "(",
948
+ "[",
949
+ :ANON,
950
+ :BLANK_NODE_LABEL,
951
+ :IRI_REF,
952
+ :PNAME_LN,
953
+ :PNAME_NS],
954
+ :"_:g2169796440" => [
955
+ :IRI_REF,
956
+ :PNAME_LN,
957
+ :PNAME_NS],
958
+ :"_:g2169998960" => [
959
+ "a",
960
+ :IRI_REF,
961
+ :PNAME_LN,
962
+ :PNAME_NS],
963
+ :"_:g2170080060" => [
964
+ "^^"],
965
+ :"_:g2170169580" => [
966
+ "(",
967
+ "[",
968
+ :ANON,
969
+ :BLANK_NODE_LABEL,
970
+ :IRI_REF,
971
+ :PNAME_LN,
972
+ :PNAME_NS],
973
+ :"_:g2170210900" => [
974
+ "."],
975
+ :"_:g2170372120" => [
976
+ "a",
977
+ :IRI_REF,
978
+ :PNAME_LN,
979
+ :PNAME_NS],
980
+ :"_:g2170529060" => [
981
+ "(",
982
+ "[",
983
+ "false",
984
+ "true",
985
+ :ANON,
986
+ :BLANK_NODE_LABEL,
987
+ :DECIMAL,
988
+ :DECIMAL_NEGATIVE,
989
+ :DECIMAL_POSITIVE,
990
+ :DOUBLE,
991
+ :DOUBLE_NEGATIVE,
992
+ :DOUBLE_POSITIVE,
993
+ :INTEGER,
994
+ :INTEGER_NEGATIVE,
995
+ :INTEGER_POSITIVE,
996
+ :IRI_REF,
997
+ :PNAME_LN,
998
+ :PNAME_NS,
999
+ :STRING_LITERAL1,
1000
+ :STRING_LITERAL2,
1001
+ :STRING_LITERAL_LONG1,
1002
+ :STRING_LITERAL_LONG2],
1003
+ :"_:g2170566380" => [
1004
+ "(",
1005
+ "[",
1006
+ :ANON,
1007
+ :BLANK_NODE_LABEL,
1008
+ :IRI_REF,
1009
+ :PNAME_LN,
1010
+ :PNAME_NS],
1011
+ :"_:g2170789280" => [
1012
+ "a",
1013
+ :IRI_REF,
1014
+ :PNAME_LN,
1015
+ :PNAME_NS],
1016
+ :"_:g2170901680" => [
1017
+ "(",
1018
+ "[",
1019
+ "false",
1020
+ "true",
1021
+ :ANON,
1022
+ :BLANK_NODE_LABEL,
1023
+ :DECIMAL,
1024
+ :DECIMAL_NEGATIVE,
1025
+ :DECIMAL_POSITIVE,
1026
+ :DOUBLE,
1027
+ :DOUBLE_NEGATIVE,
1028
+ :DOUBLE_POSITIVE,
1029
+ :INTEGER,
1030
+ :INTEGER_NEGATIVE,
1031
+ :INTEGER_POSITIVE,
1032
+ :IRI_REF,
1033
+ :PNAME_LN,
1034
+ :PNAME_NS,
1035
+ :STRING_LITERAL1,
1036
+ :STRING_LITERAL2,
1037
+ :STRING_LITERAL_LONG1,
1038
+ :STRING_LITERAL_LONG2],
1039
+ :"_:g2170907080" => [
1040
+ "(",
1041
+ "[",
1042
+ :ANON,
1043
+ :BLANK_NODE_LABEL,
1044
+ :IRI_REF,
1045
+ :PNAME_LN,
1046
+ :PNAME_NS],
1047
+ :"_:g2171174520" => [
1048
+ "(",
1049
+ "[",
1050
+ "false",
1051
+ "true",
1052
+ :ANON,
1053
+ :BLANK_NODE_LABEL,
1054
+ :DECIMAL,
1055
+ :DECIMAL_NEGATIVE,
1056
+ :DECIMAL_POSITIVE,
1057
+ :DOUBLE,
1058
+ :DOUBLE_NEGATIVE,
1059
+ :DOUBLE_POSITIVE,
1060
+ :INTEGER,
1061
+ :INTEGER_NEGATIVE,
1062
+ :INTEGER_POSITIVE,
1063
+ :IRI_REF,
1064
+ :PNAME_LN,
1065
+ :PNAME_NS,
1066
+ :STRING_LITERAL1,
1067
+ :STRING_LITERAL2,
1068
+ :STRING_LITERAL_LONG1,
1069
+ :STRING_LITERAL_LONG2],
1070
+ :"_:g2171192900" => [
1071
+ "(",
1072
+ "[",
1073
+ "false",
1074
+ "true",
1075
+ :ANON,
1076
+ :BLANK_NODE_LABEL,
1077
+ :DECIMAL,
1078
+ :DECIMAL_NEGATIVE,
1079
+ :DECIMAL_POSITIVE,
1080
+ :DOUBLE,
1081
+ :DOUBLE_NEGATIVE,
1082
+ :DOUBLE_POSITIVE,
1083
+ :INTEGER,
1084
+ :INTEGER_NEGATIVE,
1085
+ :INTEGER_POSITIVE,
1086
+ :IRI_REF,
1087
+ :PNAME_LN,
1088
+ :PNAME_NS,
1089
+ :STRING_LITERAL1,
1090
+ :STRING_LITERAL2,
1091
+ :STRING_LITERAL_LONG1,
1092
+ :STRING_LITERAL_LONG2],
1093
+ :"_:g2171484060" => [
1094
+ "a",
1095
+ :IRI_REF,
1096
+ :PNAME_LN,
1097
+ :PNAME_NS],
1098
+ :"_:g2171672640" => [
1099
+ "(",
1100
+ "[",
1101
+ "false",
1102
+ "true",
1103
+ :ANON,
1104
+ :BLANK_NODE_LABEL,
1105
+ :DECIMAL,
1106
+ :DECIMAL_NEGATIVE,
1107
+ :DECIMAL_POSITIVE,
1108
+ :DOUBLE,
1109
+ :DOUBLE_NEGATIVE,
1110
+ :DOUBLE_POSITIVE,
1111
+ :INTEGER,
1112
+ :INTEGER_NEGATIVE,
1113
+ :INTEGER_POSITIVE,
1114
+ :IRI_REF,
1115
+ :PNAME_LN,
1116
+ :PNAME_NS,
1117
+ :STRING_LITERAL1,
1118
+ :STRING_LITERAL2,
1119
+ :STRING_LITERAL_LONG1,
1120
+ :STRING_LITERAL_LONG2],
1121
+ :"_:g2171901220" => [
1122
+ :IRI_REF,
1123
+ :PNAME_LN,
1124
+ :PNAME_NS],
1125
+ :"_:g2171903040" => [
1126
+ ","],
1127
+ :"_:g2172201620" => [
1128
+ "^^",
1129
+ :LANGTAG],
1130
+ :"_:g2172268480" => [
1131
+ "@base",
1132
+ "@prefix",
1133
+ "{",
1134
+ :IRI_REF,
1135
+ :PNAME_LN,
1136
+ :PNAME_NS],
1137
+ :"_:g2172347140" => [
1138
+ "(",
1139
+ "[",
1140
+ "false",
1141
+ "true",
1142
+ :ANON,
1143
+ :BLANK_NODE_LABEL,
1144
+ :DECIMAL,
1145
+ :DECIMAL_NEGATIVE,
1146
+ :DECIMAL_POSITIVE,
1147
+ :DOUBLE,
1148
+ :DOUBLE_NEGATIVE,
1149
+ :DOUBLE_POSITIVE,
1150
+ :INTEGER,
1151
+ :INTEGER_NEGATIVE,
1152
+ :INTEGER_POSITIVE,
1153
+ :IRI_REF,
1154
+ :PNAME_LN,
1155
+ :PNAME_NS,
1156
+ :STRING_LITERAL1,
1157
+ :STRING_LITERAL2,
1158
+ :STRING_LITERAL_LONG1,
1159
+ :STRING_LITERAL_LONG2],
1160
+ :"_:g2172894000" => [
1161
+ ","],
1162
+ :"_:g2173024260" => [
1163
+ "@base",
1164
+ "@prefix"],
1165
+ :"_:g2173153460" => [
1166
+ ";"],
1167
+ :"_:g2173230100" => [
1168
+ "."],
1169
+ :"_:g2173304060" => [
1170
+ "(",
1171
+ "[",
1172
+ :ANON,
1173
+ :BLANK_NODE_LABEL,
1174
+ :IRI_REF,
1175
+ :PNAME_LN,
1176
+ :PNAME_NS],
1177
+ :"_:g2173609160" => [
1178
+ "(",
1179
+ "[",
1180
+ :ANON,
1181
+ :BLANK_NODE_LABEL,
1182
+ :IRI_REF,
1183
+ :PNAME_LN,
1184
+ :PNAME_NS],
1185
+ :"_:g2173623960" => [
1186
+ ";"],
1187
+ :BASE => [
1188
+ "@base"],
1189
+ :BlankNode => [
1190
+ :ANON,
1191
+ :BLANK_NODE_LABEL],
1192
+ :BooleanLiteral => [
1193
+ "false",
1194
+ "true"],
1195
+ :IRIref => [
1196
+ :IRI_REF,
1197
+ :PNAME_LN,
1198
+ :PNAME_NS],
1199
+ :NumericLiteral => [
1200
+ :DECIMAL,
1201
+ :DECIMAL_NEGATIVE,
1202
+ :DECIMAL_POSITIVE,
1203
+ :DOUBLE,
1204
+ :DOUBLE_NEGATIVE,
1205
+ :DOUBLE_POSITIVE,
1206
+ :INTEGER,
1207
+ :INTEGER_NEGATIVE,
1208
+ :INTEGER_POSITIVE],
1209
+ :NumericLiteralNegative => [
1210
+ :DECIMAL_NEGATIVE,
1211
+ :DOUBLE_NEGATIVE,
1212
+ :INTEGER_NEGATIVE],
1213
+ :NumericLiteralPositive => [
1214
+ :DECIMAL_POSITIVE,
1215
+ :DOUBLE_POSITIVE,
1216
+ :INTEGER_POSITIVE],
1217
+ :NumericLiteralUnsigned => [
1218
+ :DECIMAL,
1219
+ :DOUBLE,
1220
+ :INTEGER],
1221
+ :PREFIX => [
1222
+ "@prefix"],
1223
+ :PrefixedName => [
1224
+ :PNAME_LN,
1225
+ :PNAME_NS],
1226
+ :RDFLiteral => [
1227
+ :STRING_LITERAL1,
1228
+ :STRING_LITERAL2,
1229
+ :STRING_LITERAL_LONG1,
1230
+ :STRING_LITERAL_LONG2],
1231
+ :String => [
1232
+ :STRING_LITERAL1,
1233
+ :STRING_LITERAL2,
1234
+ :STRING_LITERAL_LONG1,
1235
+ :STRING_LITERAL_LONG2],
1236
+ :base => [
1237
+ "@base"],
1238
+ :blank => [
1239
+ "(",
1240
+ "[",
1241
+ :ANON,
1242
+ :BLANK_NODE_LABEL],
1243
+ :blankNodePropertyList => [
1244
+ "["],
1245
+ :collection => [
1246
+ "("],
1247
+ :directive => [
1248
+ "@base",
1249
+ "@prefix"],
1250
+ :graph => [
1251
+ "{",
1252
+ :IRI_REF,
1253
+ :PNAME_LN,
1254
+ :PNAME_NS],
1255
+ :graphIri => [
1256
+ :IRI_REF,
1257
+ :PNAME_LN,
1258
+ :PNAME_NS],
1259
+ :graph_statement => [
1260
+ "@base",
1261
+ "@prefix",
1262
+ "{",
1263
+ :IRI_REF,
1264
+ :PNAME_LN,
1265
+ :PNAME_NS],
1266
+ :literal => [
1267
+ "false",
1268
+ "true",
1269
+ :DECIMAL,
1270
+ :DECIMAL_NEGATIVE,
1271
+ :DECIMAL_POSITIVE,
1272
+ :DOUBLE,
1273
+ :DOUBLE_NEGATIVE,
1274
+ :DOUBLE_POSITIVE,
1275
+ :INTEGER,
1276
+ :INTEGER_NEGATIVE,
1277
+ :INTEGER_POSITIVE,
1278
+ :STRING_LITERAL1,
1279
+ :STRING_LITERAL2,
1280
+ :STRING_LITERAL_LONG1,
1281
+ :STRING_LITERAL_LONG2],
1282
+ :object => [
1283
+ "(",
1284
+ "[",
1285
+ "false",
1286
+ "true",
1287
+ :ANON,
1288
+ :BLANK_NODE_LABEL,
1289
+ :DECIMAL,
1290
+ :DECIMAL_NEGATIVE,
1291
+ :DECIMAL_POSITIVE,
1292
+ :DOUBLE,
1293
+ :DOUBLE_NEGATIVE,
1294
+ :DOUBLE_POSITIVE,
1295
+ :INTEGER,
1296
+ :INTEGER_NEGATIVE,
1297
+ :INTEGER_POSITIVE,
1298
+ :IRI_REF,
1299
+ :PNAME_LN,
1300
+ :PNAME_NS,
1301
+ :STRING_LITERAL1,
1302
+ :STRING_LITERAL2,
1303
+ :STRING_LITERAL_LONG1,
1304
+ :STRING_LITERAL_LONG2],
1305
+ :objectList => [
1306
+ "(",
1307
+ "[",
1308
+ "false",
1309
+ "true",
1310
+ :ANON,
1311
+ :BLANK_NODE_LABEL,
1312
+ :DECIMAL,
1313
+ :DECIMAL_NEGATIVE,
1314
+ :DECIMAL_POSITIVE,
1315
+ :DOUBLE,
1316
+ :DOUBLE_NEGATIVE,
1317
+ :DOUBLE_POSITIVE,
1318
+ :INTEGER,
1319
+ :INTEGER_NEGATIVE,
1320
+ :INTEGER_POSITIVE,
1321
+ :IRI_REF,
1322
+ :PNAME_LN,
1323
+ :PNAME_NS,
1324
+ :STRING_LITERAL1,
1325
+ :STRING_LITERAL2,
1326
+ :STRING_LITERAL_LONG1,
1327
+ :STRING_LITERAL_LONG2],
1328
+ :predicate => [
1329
+ :IRI_REF,
1330
+ :PNAME_LN,
1331
+ :PNAME_NS],
1332
+ :predicateObjectList => [
1333
+ "a",
1334
+ :IRI_REF,
1335
+ :PNAME_LN,
1336
+ :PNAME_NS],
1337
+ :prefixID => [
1338
+ "@prefix"],
1339
+ :subject => [
1340
+ "(",
1341
+ "[",
1342
+ :ANON,
1343
+ :BLANK_NODE_LABEL,
1344
+ :IRI_REF,
1345
+ :PNAME_LN,
1346
+ :PNAME_NS],
1347
+ :trigDoc => [
1348
+ "@base",
1349
+ "@prefix",
1350
+ "{",
1351
+ :IRI_REF,
1352
+ :PNAME_LN,
1353
+ :PNAME_NS],
1354
+ :triples => [
1355
+ "(",
1356
+ "[",
1357
+ :ANON,
1358
+ :BLANK_NODE_LABEL,
1359
+ :IRI_REF,
1360
+ :PNAME_LN,
1361
+ :PNAME_NS],
1362
+ :verb => [
1363
+ "a",
1364
+ :IRI_REF,
1365
+ :PNAME_LN,
1366
+ :PNAME_NS],
1367
+ }.freeze
1368
+ FOLLOW = {
1369
+ "." => [
1370
+ "@base",
1371
+ "@prefix",
1372
+ "{",
1373
+ :IRI_REF,
1374
+ :PNAME_LN,
1375
+ :PNAME_NS],
1376
+ :"_:_g10" => [
1377
+ "(",
1378
+ ".",
1379
+ ";",
1380
+ "[",
1381
+ :ANON,
1382
+ :BLANK_NODE_LABEL,
1383
+ :IRI_REF,
1384
+ :PNAME_LN,
1385
+ :PNAME_NS],
1386
+ :"_:_g11" => [
1387
+ ","],
1388
+ :"_:_g13" => [
1389
+ "(",
1390
+ ",",
1391
+ "[",
1392
+ "false",
1393
+ "true",
1394
+ :ANON,
1395
+ :BLANK_NODE_LABEL,
1396
+ :DECIMAL,
1397
+ :DECIMAL_NEGATIVE,
1398
+ :DECIMAL_POSITIVE,
1399
+ :DOUBLE,
1400
+ :DOUBLE_NEGATIVE,
1401
+ :DOUBLE_POSITIVE,
1402
+ :INTEGER,
1403
+ :INTEGER_NEGATIVE,
1404
+ :INTEGER_POSITIVE,
1405
+ :IRI_REF,
1406
+ :PNAME_LN,
1407
+ :PNAME_NS,
1408
+ :STRING_LITERAL1,
1409
+ :STRING_LITERAL2,
1410
+ :STRING_LITERAL_LONG1,
1411
+ :STRING_LITERAL_LONG2],
1412
+ :"_:_g14" => [
1413
+ "(",
1414
+ ",",
1415
+ "[",
1416
+ "false",
1417
+ "true",
1418
+ :ANON,
1419
+ :BLANK_NODE_LABEL,
1420
+ :DECIMAL,
1421
+ :DECIMAL_NEGATIVE,
1422
+ :DECIMAL_POSITIVE,
1423
+ :DOUBLE,
1424
+ :DOUBLE_NEGATIVE,
1425
+ :DOUBLE_POSITIVE,
1426
+ :INTEGER,
1427
+ :INTEGER_NEGATIVE,
1428
+ :INTEGER_POSITIVE,
1429
+ :IRI_REF,
1430
+ :PNAME_LN,
1431
+ :PNAME_NS,
1432
+ :STRING_LITERAL1,
1433
+ :STRING_LITERAL2,
1434
+ :STRING_LITERAL_LONG1,
1435
+ :STRING_LITERAL_LONG2],
1436
+ :"_:_g3" => [
1437
+ "."],
1438
+ :"_:_g4" => [
1439
+ "."],
1440
+ :"_:_g5" => [
1441
+ "."],
1442
+ :"_:_g7" => [
1443
+ ";"],
1444
+ :"_:_g8" => [
1445
+ ";"],
1446
+ :"_:_g9" => [
1447
+ ";"],
1448
+ :"_:g2169276360" => [
1449
+ "@base",
1450
+ "@prefix",
1451
+ "{",
1452
+ :IRI_REF,
1453
+ :PNAME_LN,
1454
+ :PNAME_NS],
1455
+ :"_:g2169796440" => [
1456
+ "@base",
1457
+ "@prefix",
1458
+ "{",
1459
+ :IRI_REF,
1460
+ :PNAME_LN,
1461
+ :PNAME_NS],
1462
+ :"_:g2170080060" => [
1463
+ "(",
1464
+ ",",
1465
+ "[",
1466
+ "false",
1467
+ "true",
1468
+ :ANON,
1469
+ :BLANK_NODE_LABEL,
1470
+ :DECIMAL,
1471
+ :DECIMAL_NEGATIVE,
1472
+ :DECIMAL_POSITIVE,
1473
+ :DOUBLE,
1474
+ :DOUBLE_NEGATIVE,
1475
+ :DOUBLE_POSITIVE,
1476
+ :INTEGER,
1477
+ :INTEGER_NEGATIVE,
1478
+ :INTEGER_POSITIVE,
1479
+ :IRI_REF,
1480
+ :PNAME_LN,
1481
+ :PNAME_NS,
1482
+ :STRING_LITERAL1,
1483
+ :STRING_LITERAL2,
1484
+ :STRING_LITERAL_LONG1,
1485
+ :STRING_LITERAL_LONG2],
1486
+ :"_:g2171903040" => [
1487
+ "(",
1488
+ ".",
1489
+ ";",
1490
+ "[",
1491
+ :ANON,
1492
+ :BLANK_NODE_LABEL,
1493
+ :IRI_REF,
1494
+ :PNAME_LN,
1495
+ :PNAME_NS],
1496
+ :"_:g2172268480" => [
1497
+ :"ebnf:eof"],
1498
+ :"_:g2173024260" => [
1499
+ "@base",
1500
+ "@prefix",
1501
+ "{",
1502
+ :IRI_REF,
1503
+ :PNAME_LN,
1504
+ :PNAME_NS],
1505
+ "a" => [
1506
+ "(",
1507
+ "[",
1508
+ "false",
1509
+ "true",
1510
+ :ANON,
1511
+ :BLANK_NODE_LABEL,
1512
+ :DECIMAL,
1513
+ :DECIMAL_NEGATIVE,
1514
+ :DECIMAL_POSITIVE,
1515
+ :DOUBLE,
1516
+ :DOUBLE_NEGATIVE,
1517
+ :DOUBLE_POSITIVE,
1518
+ :INTEGER,
1519
+ :INTEGER_NEGATIVE,
1520
+ :INTEGER_POSITIVE,
1521
+ :IRI_REF,
1522
+ :PNAME_LN,
1523
+ :PNAME_NS,
1524
+ :STRING_LITERAL1,
1525
+ :STRING_LITERAL2,
1526
+ :STRING_LITERAL_LONG1,
1527
+ :STRING_LITERAL_LONG2],
1528
+ "false" => [
1529
+ "(",
1530
+ ",",
1531
+ "[",
1532
+ "false",
1533
+ "true",
1534
+ :ANON,
1535
+ :BLANK_NODE_LABEL,
1536
+ :DECIMAL,
1537
+ :DECIMAL_NEGATIVE,
1538
+ :DECIMAL_POSITIVE,
1539
+ :DOUBLE,
1540
+ :DOUBLE_NEGATIVE,
1541
+ :DOUBLE_POSITIVE,
1542
+ :INTEGER,
1543
+ :INTEGER_NEGATIVE,
1544
+ :INTEGER_POSITIVE,
1545
+ :IRI_REF,
1546
+ :PNAME_LN,
1547
+ :PNAME_NS,
1548
+ :STRING_LITERAL1,
1549
+ :STRING_LITERAL2,
1550
+ :STRING_LITERAL_LONG1,
1551
+ :STRING_LITERAL_LONG2],
1552
+ :"ebnf:empty" => [
1553
+ "(",
1554
+ ",",
1555
+ ".",
1556
+ ";",
1557
+ "[",
1558
+ "false",
1559
+ "true",
1560
+ :"ebnf:eof",
1561
+ :ANON,
1562
+ :BLANK_NODE_LABEL,
1563
+ :DECIMAL,
1564
+ :DECIMAL_NEGATIVE,
1565
+ :DECIMAL_POSITIVE,
1566
+ :DOUBLE,
1567
+ :DOUBLE_NEGATIVE,
1568
+ :DOUBLE_POSITIVE,
1569
+ :INTEGER,
1570
+ :INTEGER_NEGATIVE,
1571
+ :INTEGER_POSITIVE,
1572
+ :IRI_REF,
1573
+ :PNAME_LN,
1574
+ :PNAME_NS,
1575
+ :STRING_LITERAL1,
1576
+ :STRING_LITERAL2,
1577
+ :STRING_LITERAL_LONG1,
1578
+ :STRING_LITERAL_LONG2],
1579
+ :ANON => [
1580
+ "(",
1581
+ ",",
1582
+ "[",
1583
+ "a",
1584
+ "false",
1585
+ "true",
1586
+ :ANON,
1587
+ :BLANK_NODE_LABEL,
1588
+ :DECIMAL,
1589
+ :DECIMAL_NEGATIVE,
1590
+ :DECIMAL_POSITIVE,
1591
+ :DOUBLE,
1592
+ :DOUBLE_NEGATIVE,
1593
+ :DOUBLE_POSITIVE,
1594
+ :INTEGER,
1595
+ :INTEGER_NEGATIVE,
1596
+ :INTEGER_POSITIVE,
1597
+ :IRI_REF,
1598
+ :PNAME_LN,
1599
+ :PNAME_NS,
1600
+ :STRING_LITERAL1,
1601
+ :STRING_LITERAL2,
1602
+ :STRING_LITERAL_LONG1,
1603
+ :STRING_LITERAL_LONG2],
1604
+ :BLANK_NODE_LABEL => [
1605
+ "(",
1606
+ ",",
1607
+ "[",
1608
+ "a",
1609
+ "false",
1610
+ "true",
1611
+ :ANON,
1612
+ :BLANK_NODE_LABEL,
1613
+ :DECIMAL,
1614
+ :DECIMAL_NEGATIVE,
1615
+ :DECIMAL_POSITIVE,
1616
+ :DOUBLE,
1617
+ :DOUBLE_NEGATIVE,
1618
+ :DOUBLE_POSITIVE,
1619
+ :INTEGER,
1620
+ :INTEGER_NEGATIVE,
1621
+ :INTEGER_POSITIVE,
1622
+ :IRI_REF,
1623
+ :PNAME_LN,
1624
+ :PNAME_NS,
1625
+ :STRING_LITERAL1,
1626
+ :STRING_LITERAL2,
1627
+ :STRING_LITERAL_LONG1,
1628
+ :STRING_LITERAL_LONG2],
1629
+ :BlankNode => [
1630
+ "(",
1631
+ ",",
1632
+ "[",
1633
+ "a",
1634
+ "false",
1635
+ "true",
1636
+ :ANON,
1637
+ :BLANK_NODE_LABEL,
1638
+ :DECIMAL,
1639
+ :DECIMAL_NEGATIVE,
1640
+ :DECIMAL_POSITIVE,
1641
+ :DOUBLE,
1642
+ :DOUBLE_NEGATIVE,
1643
+ :DOUBLE_POSITIVE,
1644
+ :INTEGER,
1645
+ :INTEGER_NEGATIVE,
1646
+ :INTEGER_POSITIVE,
1647
+ :IRI_REF,
1648
+ :PNAME_LN,
1649
+ :PNAME_NS,
1650
+ :STRING_LITERAL1,
1651
+ :STRING_LITERAL2,
1652
+ :STRING_LITERAL_LONG1,
1653
+ :STRING_LITERAL_LONG2],
1654
+ :BooleanLiteral => [
1655
+ "(",
1656
+ ",",
1657
+ "[",
1658
+ "false",
1659
+ "true",
1660
+ :ANON,
1661
+ :BLANK_NODE_LABEL,
1662
+ :DECIMAL,
1663
+ :DECIMAL_NEGATIVE,
1664
+ :DECIMAL_POSITIVE,
1665
+ :DOUBLE,
1666
+ :DOUBLE_NEGATIVE,
1667
+ :DOUBLE_POSITIVE,
1668
+ :INTEGER,
1669
+ :INTEGER_NEGATIVE,
1670
+ :INTEGER_POSITIVE,
1671
+ :IRI_REF,
1672
+ :PNAME_LN,
1673
+ :PNAME_NS,
1674
+ :STRING_LITERAL1,
1675
+ :STRING_LITERAL2,
1676
+ :STRING_LITERAL_LONG1,
1677
+ :STRING_LITERAL_LONG2],
1678
+ :DECIMAL => [
1679
+ "(",
1680
+ ",",
1681
+ "[",
1682
+ "false",
1683
+ "true",
1684
+ :ANON,
1685
+ :BLANK_NODE_LABEL,
1686
+ :DECIMAL,
1687
+ :DECIMAL_NEGATIVE,
1688
+ :DECIMAL_POSITIVE,
1689
+ :DOUBLE,
1690
+ :DOUBLE_NEGATIVE,
1691
+ :DOUBLE_POSITIVE,
1692
+ :INTEGER,
1693
+ :INTEGER_NEGATIVE,
1694
+ :INTEGER_POSITIVE,
1695
+ :IRI_REF,
1696
+ :PNAME_LN,
1697
+ :PNAME_NS,
1698
+ :STRING_LITERAL1,
1699
+ :STRING_LITERAL2,
1700
+ :STRING_LITERAL_LONG1,
1701
+ :STRING_LITERAL_LONG2],
1702
+ :DECIMAL_NEGATIVE => [
1703
+ "(",
1704
+ ",",
1705
+ "[",
1706
+ "false",
1707
+ "true",
1708
+ :ANON,
1709
+ :BLANK_NODE_LABEL,
1710
+ :DECIMAL,
1711
+ :DECIMAL_NEGATIVE,
1712
+ :DECIMAL_POSITIVE,
1713
+ :DOUBLE,
1714
+ :DOUBLE_NEGATIVE,
1715
+ :DOUBLE_POSITIVE,
1716
+ :INTEGER,
1717
+ :INTEGER_NEGATIVE,
1718
+ :INTEGER_POSITIVE,
1719
+ :IRI_REF,
1720
+ :PNAME_LN,
1721
+ :PNAME_NS,
1722
+ :STRING_LITERAL1,
1723
+ :STRING_LITERAL2,
1724
+ :STRING_LITERAL_LONG1,
1725
+ :STRING_LITERAL_LONG2],
1726
+ :DECIMAL_POSITIVE => [
1727
+ "(",
1728
+ ",",
1729
+ "[",
1730
+ "false",
1731
+ "true",
1732
+ :ANON,
1733
+ :BLANK_NODE_LABEL,
1734
+ :DECIMAL,
1735
+ :DECIMAL_NEGATIVE,
1736
+ :DECIMAL_POSITIVE,
1737
+ :DOUBLE,
1738
+ :DOUBLE_NEGATIVE,
1739
+ :DOUBLE_POSITIVE,
1740
+ :INTEGER,
1741
+ :INTEGER_NEGATIVE,
1742
+ :INTEGER_POSITIVE,
1743
+ :IRI_REF,
1744
+ :PNAME_LN,
1745
+ :PNAME_NS,
1746
+ :STRING_LITERAL1,
1747
+ :STRING_LITERAL2,
1748
+ :STRING_LITERAL_LONG1,
1749
+ :STRING_LITERAL_LONG2],
1750
+ :DOUBLE => [
1751
+ "(",
1752
+ ",",
1753
+ "[",
1754
+ "false",
1755
+ "true",
1756
+ :ANON,
1757
+ :BLANK_NODE_LABEL,
1758
+ :DECIMAL,
1759
+ :DECIMAL_NEGATIVE,
1760
+ :DECIMAL_POSITIVE,
1761
+ :DOUBLE,
1762
+ :DOUBLE_NEGATIVE,
1763
+ :DOUBLE_POSITIVE,
1764
+ :INTEGER,
1765
+ :INTEGER_NEGATIVE,
1766
+ :INTEGER_POSITIVE,
1767
+ :IRI_REF,
1768
+ :PNAME_LN,
1769
+ :PNAME_NS,
1770
+ :STRING_LITERAL1,
1771
+ :STRING_LITERAL2,
1772
+ :STRING_LITERAL_LONG1,
1773
+ :STRING_LITERAL_LONG2],
1774
+ :DOUBLE_NEGATIVE => [
1775
+ "(",
1776
+ ",",
1777
+ "[",
1778
+ "false",
1779
+ "true",
1780
+ :ANON,
1781
+ :BLANK_NODE_LABEL,
1782
+ :DECIMAL,
1783
+ :DECIMAL_NEGATIVE,
1784
+ :DECIMAL_POSITIVE,
1785
+ :DOUBLE,
1786
+ :DOUBLE_NEGATIVE,
1787
+ :DOUBLE_POSITIVE,
1788
+ :INTEGER,
1789
+ :INTEGER_NEGATIVE,
1790
+ :INTEGER_POSITIVE,
1791
+ :IRI_REF,
1792
+ :PNAME_LN,
1793
+ :PNAME_NS,
1794
+ :STRING_LITERAL1,
1795
+ :STRING_LITERAL2,
1796
+ :STRING_LITERAL_LONG1,
1797
+ :STRING_LITERAL_LONG2],
1798
+ :DOUBLE_POSITIVE => [
1799
+ "(",
1800
+ ",",
1801
+ "[",
1802
+ "false",
1803
+ "true",
1804
+ :ANON,
1805
+ :BLANK_NODE_LABEL,
1806
+ :DECIMAL,
1807
+ :DECIMAL_NEGATIVE,
1808
+ :DECIMAL_POSITIVE,
1809
+ :DOUBLE,
1810
+ :DOUBLE_NEGATIVE,
1811
+ :DOUBLE_POSITIVE,
1812
+ :INTEGER,
1813
+ :INTEGER_NEGATIVE,
1814
+ :INTEGER_POSITIVE,
1815
+ :IRI_REF,
1816
+ :PNAME_LN,
1817
+ :PNAME_NS,
1818
+ :STRING_LITERAL1,
1819
+ :STRING_LITERAL2,
1820
+ :STRING_LITERAL_LONG1,
1821
+ :STRING_LITERAL_LONG2],
1822
+ :INTEGER => [
1823
+ "(",
1824
+ ",",
1825
+ "[",
1826
+ "false",
1827
+ "true",
1828
+ :ANON,
1829
+ :BLANK_NODE_LABEL,
1830
+ :DECIMAL,
1831
+ :DECIMAL_NEGATIVE,
1832
+ :DECIMAL_POSITIVE,
1833
+ :DOUBLE,
1834
+ :DOUBLE_NEGATIVE,
1835
+ :DOUBLE_POSITIVE,
1836
+ :INTEGER,
1837
+ :INTEGER_NEGATIVE,
1838
+ :INTEGER_POSITIVE,
1839
+ :IRI_REF,
1840
+ :PNAME_LN,
1841
+ :PNAME_NS,
1842
+ :STRING_LITERAL1,
1843
+ :STRING_LITERAL2,
1844
+ :STRING_LITERAL_LONG1,
1845
+ :STRING_LITERAL_LONG2],
1846
+ :INTEGER_NEGATIVE => [
1847
+ "(",
1848
+ ",",
1849
+ "[",
1850
+ "false",
1851
+ "true",
1852
+ :ANON,
1853
+ :BLANK_NODE_LABEL,
1854
+ :DECIMAL,
1855
+ :DECIMAL_NEGATIVE,
1856
+ :DECIMAL_POSITIVE,
1857
+ :DOUBLE,
1858
+ :DOUBLE_NEGATIVE,
1859
+ :DOUBLE_POSITIVE,
1860
+ :INTEGER,
1861
+ :INTEGER_NEGATIVE,
1862
+ :INTEGER_POSITIVE,
1863
+ :IRI_REF,
1864
+ :PNAME_LN,
1865
+ :PNAME_NS,
1866
+ :STRING_LITERAL1,
1867
+ :STRING_LITERAL2,
1868
+ :STRING_LITERAL_LONG1,
1869
+ :STRING_LITERAL_LONG2],
1870
+ :INTEGER_POSITIVE => [
1871
+ "(",
1872
+ ",",
1873
+ "[",
1874
+ "false",
1875
+ "true",
1876
+ :ANON,
1877
+ :BLANK_NODE_LABEL,
1878
+ :DECIMAL,
1879
+ :DECIMAL_NEGATIVE,
1880
+ :DECIMAL_POSITIVE,
1881
+ :DOUBLE,
1882
+ :DOUBLE_NEGATIVE,
1883
+ :DOUBLE_POSITIVE,
1884
+ :INTEGER,
1885
+ :INTEGER_NEGATIVE,
1886
+ :INTEGER_POSITIVE,
1887
+ :IRI_REF,
1888
+ :PNAME_LN,
1889
+ :PNAME_NS,
1890
+ :STRING_LITERAL1,
1891
+ :STRING_LITERAL2,
1892
+ :STRING_LITERAL_LONG1,
1893
+ :STRING_LITERAL_LONG2],
1894
+ :IRI_REF => [
1895
+ "(",
1896
+ ",",
1897
+ "[",
1898
+ "a",
1899
+ "false",
1900
+ "true",
1901
+ :ANON,
1902
+ :BLANK_NODE_LABEL,
1903
+ :DECIMAL,
1904
+ :DECIMAL_NEGATIVE,
1905
+ :DECIMAL_POSITIVE,
1906
+ :DOUBLE,
1907
+ :DOUBLE_NEGATIVE,
1908
+ :DOUBLE_POSITIVE,
1909
+ :INTEGER,
1910
+ :INTEGER_NEGATIVE,
1911
+ :INTEGER_POSITIVE,
1912
+ :IRI_REF,
1913
+ :PNAME_LN,
1914
+ :PNAME_NS,
1915
+ :STRING_LITERAL1,
1916
+ :STRING_LITERAL2,
1917
+ :STRING_LITERAL_LONG1,
1918
+ :STRING_LITERAL_LONG2],
1919
+ :IRIref => [
1920
+ "(",
1921
+ ",",
1922
+ "[",
1923
+ "a",
1924
+ "false",
1925
+ "true",
1926
+ :ANON,
1927
+ :BLANK_NODE_LABEL,
1928
+ :DECIMAL,
1929
+ :DECIMAL_NEGATIVE,
1930
+ :DECIMAL_POSITIVE,
1931
+ :DOUBLE,
1932
+ :DOUBLE_NEGATIVE,
1933
+ :DOUBLE_POSITIVE,
1934
+ :INTEGER,
1935
+ :INTEGER_NEGATIVE,
1936
+ :INTEGER_POSITIVE,
1937
+ :IRI_REF,
1938
+ :PNAME_LN,
1939
+ :PNAME_NS,
1940
+ :STRING_LITERAL1,
1941
+ :STRING_LITERAL2,
1942
+ :STRING_LITERAL_LONG1,
1943
+ :STRING_LITERAL_LONG2],
1944
+ :LANGTAG => [
1945
+ "(",
1946
+ ",",
1947
+ "[",
1948
+ "false",
1949
+ "true",
1950
+ :ANON,
1951
+ :BLANK_NODE_LABEL,
1952
+ :DECIMAL,
1953
+ :DECIMAL_NEGATIVE,
1954
+ :DECIMAL_POSITIVE,
1955
+ :DOUBLE,
1956
+ :DOUBLE_NEGATIVE,
1957
+ :DOUBLE_POSITIVE,
1958
+ :INTEGER,
1959
+ :INTEGER_NEGATIVE,
1960
+ :INTEGER_POSITIVE,
1961
+ :IRI_REF,
1962
+ :PNAME_LN,
1963
+ :PNAME_NS,
1964
+ :STRING_LITERAL1,
1965
+ :STRING_LITERAL2,
1966
+ :STRING_LITERAL_LONG1,
1967
+ :STRING_LITERAL_LONG2],
1968
+ :NumericLiteral => [
1969
+ "(",
1970
+ ",",
1971
+ "[",
1972
+ "false",
1973
+ "true",
1974
+ :ANON,
1975
+ :BLANK_NODE_LABEL,
1976
+ :DECIMAL,
1977
+ :DECIMAL_NEGATIVE,
1978
+ :DECIMAL_POSITIVE,
1979
+ :DOUBLE,
1980
+ :DOUBLE_NEGATIVE,
1981
+ :DOUBLE_POSITIVE,
1982
+ :INTEGER,
1983
+ :INTEGER_NEGATIVE,
1984
+ :INTEGER_POSITIVE,
1985
+ :IRI_REF,
1986
+ :PNAME_LN,
1987
+ :PNAME_NS,
1988
+ :STRING_LITERAL1,
1989
+ :STRING_LITERAL2,
1990
+ :STRING_LITERAL_LONG1,
1991
+ :STRING_LITERAL_LONG2],
1992
+ :NumericLiteralNegative => [
1993
+ "(",
1994
+ ",",
1995
+ "[",
1996
+ "false",
1997
+ "true",
1998
+ :ANON,
1999
+ :BLANK_NODE_LABEL,
2000
+ :DECIMAL,
2001
+ :DECIMAL_NEGATIVE,
2002
+ :DECIMAL_POSITIVE,
2003
+ :DOUBLE,
2004
+ :DOUBLE_NEGATIVE,
2005
+ :DOUBLE_POSITIVE,
2006
+ :INTEGER,
2007
+ :INTEGER_NEGATIVE,
2008
+ :INTEGER_POSITIVE,
2009
+ :IRI_REF,
2010
+ :PNAME_LN,
2011
+ :PNAME_NS,
2012
+ :STRING_LITERAL1,
2013
+ :STRING_LITERAL2,
2014
+ :STRING_LITERAL_LONG1,
2015
+ :STRING_LITERAL_LONG2],
2016
+ :NumericLiteralPositive => [
2017
+ "(",
2018
+ ",",
2019
+ "[",
2020
+ "false",
2021
+ "true",
2022
+ :ANON,
2023
+ :BLANK_NODE_LABEL,
2024
+ :DECIMAL,
2025
+ :DECIMAL_NEGATIVE,
2026
+ :DECIMAL_POSITIVE,
2027
+ :DOUBLE,
2028
+ :DOUBLE_NEGATIVE,
2029
+ :DOUBLE_POSITIVE,
2030
+ :INTEGER,
2031
+ :INTEGER_NEGATIVE,
2032
+ :INTEGER_POSITIVE,
2033
+ :IRI_REF,
2034
+ :PNAME_LN,
2035
+ :PNAME_NS,
2036
+ :STRING_LITERAL1,
2037
+ :STRING_LITERAL2,
2038
+ :STRING_LITERAL_LONG1,
2039
+ :STRING_LITERAL_LONG2],
2040
+ :NumericLiteralUnsigned => [
2041
+ "(",
2042
+ ",",
2043
+ "[",
2044
+ "false",
2045
+ "true",
2046
+ :ANON,
2047
+ :BLANK_NODE_LABEL,
2048
+ :DECIMAL,
2049
+ :DECIMAL_NEGATIVE,
2050
+ :DECIMAL_POSITIVE,
2051
+ :DOUBLE,
2052
+ :DOUBLE_NEGATIVE,
2053
+ :DOUBLE_POSITIVE,
2054
+ :INTEGER,
2055
+ :INTEGER_NEGATIVE,
2056
+ :INTEGER_POSITIVE,
2057
+ :IRI_REF,
2058
+ :PNAME_LN,
2059
+ :PNAME_NS,
2060
+ :STRING_LITERAL1,
2061
+ :STRING_LITERAL2,
2062
+ :STRING_LITERAL_LONG1,
2063
+ :STRING_LITERAL_LONG2],
2064
+ :PNAME_LN => [
2065
+ "(",
2066
+ ",",
2067
+ "[",
2068
+ "a",
2069
+ "false",
2070
+ "true",
2071
+ :ANON,
2072
+ :BLANK_NODE_LABEL,
2073
+ :DECIMAL,
2074
+ :DECIMAL_NEGATIVE,
2075
+ :DECIMAL_POSITIVE,
2076
+ :DOUBLE,
2077
+ :DOUBLE_NEGATIVE,
2078
+ :DOUBLE_POSITIVE,
2079
+ :INTEGER,
2080
+ :INTEGER_NEGATIVE,
2081
+ :INTEGER_POSITIVE,
2082
+ :IRI_REF,
2083
+ :PNAME_LN,
2084
+ :PNAME_NS,
2085
+ :STRING_LITERAL1,
2086
+ :STRING_LITERAL2,
2087
+ :STRING_LITERAL_LONG1,
2088
+ :STRING_LITERAL_LONG2],
2089
+ :PNAME_NS => [
2090
+ "(",
2091
+ ",",
2092
+ "[",
2093
+ "a",
2094
+ "false",
2095
+ "true",
2096
+ :ANON,
2097
+ :BLANK_NODE_LABEL,
2098
+ :DECIMAL,
2099
+ :DECIMAL_NEGATIVE,
2100
+ :DECIMAL_POSITIVE,
2101
+ :DOUBLE,
2102
+ :DOUBLE_NEGATIVE,
2103
+ :DOUBLE_POSITIVE,
2104
+ :INTEGER,
2105
+ :INTEGER_NEGATIVE,
2106
+ :INTEGER_POSITIVE,
2107
+ :IRI_REF,
2108
+ :PNAME_LN,
2109
+ :PNAME_NS,
2110
+ :STRING_LITERAL1,
2111
+ :STRING_LITERAL2,
2112
+ :STRING_LITERAL_LONG1,
2113
+ :STRING_LITERAL_LONG2],
2114
+ :PrefixedName => [
2115
+ "(",
2116
+ ",",
2117
+ "[",
2118
+ "a",
2119
+ "false",
2120
+ "true",
2121
+ :ANON,
2122
+ :BLANK_NODE_LABEL,
2123
+ :DECIMAL,
2124
+ :DECIMAL_NEGATIVE,
2125
+ :DECIMAL_POSITIVE,
2126
+ :DOUBLE,
2127
+ :DOUBLE_NEGATIVE,
2128
+ :DOUBLE_POSITIVE,
2129
+ :INTEGER,
2130
+ :INTEGER_NEGATIVE,
2131
+ :INTEGER_POSITIVE,
2132
+ :IRI_REF,
2133
+ :PNAME_LN,
2134
+ :PNAME_NS,
2135
+ :STRING_LITERAL1,
2136
+ :STRING_LITERAL2,
2137
+ :STRING_LITERAL_LONG1,
2138
+ :STRING_LITERAL_LONG2],
2139
+ :RDFLiteral => [
2140
+ "(",
2141
+ ",",
2142
+ "[",
2143
+ "false",
2144
+ "true",
2145
+ :ANON,
2146
+ :BLANK_NODE_LABEL,
2147
+ :DECIMAL,
2148
+ :DECIMAL_NEGATIVE,
2149
+ :DECIMAL_POSITIVE,
2150
+ :DOUBLE,
2151
+ :DOUBLE_NEGATIVE,
2152
+ :DOUBLE_POSITIVE,
2153
+ :INTEGER,
2154
+ :INTEGER_NEGATIVE,
2155
+ :INTEGER_POSITIVE,
2156
+ :IRI_REF,
2157
+ :PNAME_LN,
2158
+ :PNAME_NS,
2159
+ :STRING_LITERAL1,
2160
+ :STRING_LITERAL2,
2161
+ :STRING_LITERAL_LONG1,
2162
+ :STRING_LITERAL_LONG2],
2163
+ :STRING_LITERAL1 => [
2164
+ "^^",
2165
+ :LANGTAG],
2166
+ :STRING_LITERAL2 => [
2167
+ "^^",
2168
+ :LANGTAG],
2169
+ :STRING_LITERAL_LONG1 => [
2170
+ "^^",
2171
+ :LANGTAG],
2172
+ :STRING_LITERAL_LONG2 => [
2173
+ "^^",
2174
+ :LANGTAG],
2175
+ :String => [
2176
+ "^^",
2177
+ :LANGTAG],
2178
+ :blank => [
2179
+ "(",
2180
+ ",",
2181
+ "[",
2182
+ "a",
2183
+ "false",
2184
+ "true",
2185
+ :ANON,
2186
+ :BLANK_NODE_LABEL,
2187
+ :DECIMAL,
2188
+ :DECIMAL_NEGATIVE,
2189
+ :DECIMAL_POSITIVE,
2190
+ :DOUBLE,
2191
+ :DOUBLE_NEGATIVE,
2192
+ :DOUBLE_POSITIVE,
2193
+ :INTEGER,
2194
+ :INTEGER_NEGATIVE,
2195
+ :INTEGER_POSITIVE,
2196
+ :IRI_REF,
2197
+ :PNAME_LN,
2198
+ :PNAME_NS,
2199
+ :STRING_LITERAL1,
2200
+ :STRING_LITERAL2,
2201
+ :STRING_LITERAL_LONG1,
2202
+ :STRING_LITERAL_LONG2],
2203
+ :blankNodePropertyList => [
2204
+ "(",
2205
+ ",",
2206
+ "[",
2207
+ "a",
2208
+ "false",
2209
+ "true",
2210
+ :ANON,
2211
+ :BLANK_NODE_LABEL,
2212
+ :DECIMAL,
2213
+ :DECIMAL_NEGATIVE,
2214
+ :DECIMAL_POSITIVE,
2215
+ :DOUBLE,
2216
+ :DOUBLE_NEGATIVE,
2217
+ :DOUBLE_POSITIVE,
2218
+ :INTEGER,
2219
+ :INTEGER_NEGATIVE,
2220
+ :INTEGER_POSITIVE,
2221
+ :IRI_REF,
2222
+ :PNAME_LN,
2223
+ :PNAME_NS,
2224
+ :STRING_LITERAL1,
2225
+ :STRING_LITERAL2,
2226
+ :STRING_LITERAL_LONG1,
2227
+ :STRING_LITERAL_LONG2],
2228
+ :collection => [
2229
+ "(",
2230
+ ",",
2231
+ "[",
2232
+ "a",
2233
+ "false",
2234
+ "true",
2235
+ :ANON,
2236
+ :BLANK_NODE_LABEL,
2237
+ :DECIMAL,
2238
+ :DECIMAL_NEGATIVE,
2239
+ :DECIMAL_POSITIVE,
2240
+ :DOUBLE,
2241
+ :DOUBLE_NEGATIVE,
2242
+ :DOUBLE_POSITIVE,
2243
+ :INTEGER,
2244
+ :INTEGER_NEGATIVE,
2245
+ :INTEGER_POSITIVE,
2246
+ :IRI_REF,
2247
+ :PNAME_LN,
2248
+ :PNAME_NS,
2249
+ :STRING_LITERAL1,
2250
+ :STRING_LITERAL2,
2251
+ :STRING_LITERAL_LONG1,
2252
+ :STRING_LITERAL_LONG2],
2253
+ :graph => [
2254
+ "@base",
2255
+ "@prefix",
2256
+ "{",
2257
+ :IRI_REF,
2258
+ :PNAME_LN,
2259
+ :PNAME_NS],
2260
+ :graph_statement => [
2261
+ "@base",
2262
+ "@prefix",
2263
+ "{",
2264
+ :IRI_REF,
2265
+ :PNAME_LN,
2266
+ :PNAME_NS],
2267
+ :literal => [
2268
+ "(",
2269
+ ",",
2270
+ "[",
2271
+ "false",
2272
+ "true",
2273
+ :ANON,
2274
+ :BLANK_NODE_LABEL,
2275
+ :DECIMAL,
2276
+ :DECIMAL_NEGATIVE,
2277
+ :DECIMAL_POSITIVE,
2278
+ :DOUBLE,
2279
+ :DOUBLE_NEGATIVE,
2280
+ :DOUBLE_POSITIVE,
2281
+ :INTEGER,
2282
+ :INTEGER_NEGATIVE,
2283
+ :INTEGER_POSITIVE,
2284
+ :IRI_REF,
2285
+ :PNAME_LN,
2286
+ :PNAME_NS,
2287
+ :STRING_LITERAL1,
2288
+ :STRING_LITERAL2,
2289
+ :STRING_LITERAL_LONG1,
2290
+ :STRING_LITERAL_LONG2],
2291
+ :object => [
2292
+ "(",
2293
+ ",",
2294
+ "[",
2295
+ "false",
2296
+ "true",
2297
+ :ANON,
2298
+ :BLANK_NODE_LABEL,
2299
+ :DECIMAL,
2300
+ :DECIMAL_NEGATIVE,
2301
+ :DECIMAL_POSITIVE,
2302
+ :DOUBLE,
2303
+ :DOUBLE_NEGATIVE,
2304
+ :DOUBLE_POSITIVE,
2305
+ :INTEGER,
2306
+ :INTEGER_NEGATIVE,
2307
+ :INTEGER_POSITIVE,
2308
+ :IRI_REF,
2309
+ :PNAME_LN,
2310
+ :PNAME_NS,
2311
+ :STRING_LITERAL1,
2312
+ :STRING_LITERAL2,
2313
+ :STRING_LITERAL_LONG1,
2314
+ :STRING_LITERAL_LONG2],
2315
+ :objectList => [
2316
+ "(",
2317
+ ".",
2318
+ ";",
2319
+ "[",
2320
+ :ANON,
2321
+ :BLANK_NODE_LABEL,
2322
+ :IRI_REF,
2323
+ :PNAME_LN,
2324
+ :PNAME_NS],
2325
+ :predicate => [
2326
+ "(",
2327
+ "[",
2328
+ "false",
2329
+ "true",
2330
+ :ANON,
2331
+ :BLANK_NODE_LABEL,
2332
+ :DECIMAL,
2333
+ :DECIMAL_NEGATIVE,
2334
+ :DECIMAL_POSITIVE,
2335
+ :DOUBLE,
2336
+ :DOUBLE_NEGATIVE,
2337
+ :DOUBLE_POSITIVE,
2338
+ :INTEGER,
2339
+ :INTEGER_NEGATIVE,
2340
+ :INTEGER_POSITIVE,
2341
+ :IRI_REF,
2342
+ :PNAME_LN,
2343
+ :PNAME_NS,
2344
+ :STRING_LITERAL1,
2345
+ :STRING_LITERAL2,
2346
+ :STRING_LITERAL_LONG1,
2347
+ :STRING_LITERAL_LONG2],
2348
+ :predicateObjectList => [
2349
+ "(",
2350
+ ".",
2351
+ "[",
2352
+ :ANON,
2353
+ :BLANK_NODE_LABEL,
2354
+ :IRI_REF,
2355
+ :PNAME_LN,
2356
+ :PNAME_NS],
2357
+ :subject => [
2358
+ "a",
2359
+ :IRI_REF,
2360
+ :PNAME_LN,
2361
+ :PNAME_NS],
2362
+ :trigDoc => [
2363
+ :"ebnf:eof"],
2364
+ :triples => [
2365
+ "(",
2366
+ "[",
2367
+ :ANON,
2368
+ :BLANK_NODE_LABEL,
2369
+ :IRI_REF,
2370
+ :PNAME_LN,
2371
+ :PNAME_NS],
2372
+ :verb => [
2373
+ "(",
2374
+ "[",
2375
+ "false",
2376
+ "true",
2377
+ :ANON,
2378
+ :BLANK_NODE_LABEL,
2379
+ :DECIMAL,
2380
+ :DECIMAL_NEGATIVE,
2381
+ :DECIMAL_POSITIVE,
2382
+ :DOUBLE,
2383
+ :DOUBLE_NEGATIVE,
2384
+ :DOUBLE_POSITIVE,
2385
+ :INTEGER,
2386
+ :INTEGER_NEGATIVE,
2387
+ :INTEGER_POSITIVE,
2388
+ :IRI_REF,
2389
+ :PNAME_LN,
2390
+ :PNAME_NS,
2391
+ :STRING_LITERAL1,
2392
+ :STRING_LITERAL2,
2393
+ :STRING_LITERAL_LONG1,
2394
+ :STRING_LITERAL_LONG2],
2395
+ "true" => [
2396
+ "(",
2397
+ ",",
2398
+ "[",
2399
+ "false",
2400
+ "true",
2401
+ :ANON,
2402
+ :BLANK_NODE_LABEL,
2403
+ :DECIMAL,
2404
+ :DECIMAL_NEGATIVE,
2405
+ :DECIMAL_POSITIVE,
2406
+ :DOUBLE,
2407
+ :DOUBLE_NEGATIVE,
2408
+ :DOUBLE_POSITIVE,
2409
+ :INTEGER,
2410
+ :INTEGER_NEGATIVE,
2411
+ :INTEGER_POSITIVE,
2412
+ :IRI_REF,
2413
+ :PNAME_LN,
2414
+ :PNAME_NS,
2415
+ :STRING_LITERAL1,
2416
+ :STRING_LITERAL2,
2417
+ :STRING_LITERAL_LONG1,
2418
+ :STRING_LITERAL_LONG2],
2419
+ "{" => [
2420
+ "@base",
2421
+ "@prefix",
2422
+ "{",
2423
+ :IRI_REF,
2424
+ :PNAME_LN,
2425
+ :PNAME_NS],
2426
+ }.freeze
2427
+ end