rdf-trig 1.0.0.beta1 → 1.0.0.beta3

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