rdf-trig 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.markdown +5 -5
  2. data/VERSION +1 -1
  3. data/lib/rdf/trig.rb +2 -2
  4. data/lib/rdf/trig/meta.rb +806 -1422
  5. metadata +196 -74
data/README.markdown CHANGED
@@ -1,4 +1,4 @@
1
- # RDF::TriG reader/writer
1
+ # RDF::TriG reader/writer [![Build Status](https://secure.travis-ci.org/ruby-rdf/rdf-trig.png?branch=master)](http://travis-ci.org/ruby-rdf/rdf-trig)
2
2
  [TriG][] reader/writer for [RDF.rb][RDF.rb] .
3
3
 
4
4
  ## Description
@@ -57,8 +57,8 @@ The writer also is based on the Turtle writer.
57
57
  ## Dependencies
58
58
 
59
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)
60
+ * [RDF.rb](http://rubygems.org/gems/rdf) (>= 0.3.9)
61
+ * [rdf-turtle](http://rubygems.org/gems/rdf-turtle) (>= 0.3.0)
62
62
 
63
63
  ## Installation
64
64
 
@@ -95,9 +95,9 @@ see <http://unlicense.org/> or the accompanying {file:UNLICENSE} file.
95
95
  [YARD]: http://yardoc.org/
96
96
  [YARD-GS]: http://rubydoc.info/docs/yard/file/docs/GettingStarted.md
97
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
98
+ [RDF.rb]: http://rubydoc.info/github/ruby-rdf/rdf/master/frames
99
99
  [Backports]: http://rubygems.org/gems/backports
100
100
  [TriG]: http://dvcs.w3.org/hg/rdf/raw-file/default/trig/index.html
101
- [TriG doc]: http://rubydoc.info/github/gkellogg/rdf-trig/master/file/README.markdown
101
+ [TriG doc]: http://rubydoc.info/github/ruby-rdf/rdf-trig/master/file/README.markdown
102
102
  [TriG EBNF]: http://dvcs.w3.org/hg/rdf/raw-file/default/trig/trig.bnf
103
103
  [Turtle doc]: http://rubydoc.info/github/ruby-rdf/rdf-turtle/master/file/README.markdown
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/lib/rdf/trig.rb CHANGED
@@ -14,8 +14,8 @@ module RDF
14
14
  # end
15
15
  # end
16
16
  #
17
- # @see http://rubydoc.info/github/gkellogg/rdf-turtle/master/frames
18
- # @see http://rubydoc.info/github/gkellogg/rdf/master/frames
17
+ # @see http://rubydoc.info/github/ruby-rdf/rdf-turtle/
18
+ # @see http://rubydoc.info/github/ruby-rdf/rdf/master/
19
19
  # @see http://dvcs.w3.org/hg/rdf/raw-file/default/trig/index.html
20
20
  #
21
21
  # @author [Gregg Kellogg](http://greggkellogg.net/)
data/lib/rdf/trig/meta.rb CHANGED
@@ -5,292 +5,246 @@ module RDF::TriG::Meta
5
5
 
6
6
  BRANCH = {
7
7
  :"_:_g0" => {
8
- "(" => [:"_:g2170907080"],
9
- "[" => [:"_:g2170907080"],
8
+ "(" => [:"_:g70347551680760"],
9
+ "[" => [:"_:g70347551680760"],
10
10
  :"ebnf:empty" => [],
11
- :ANON => [:"_:g2170907080"],
12
- :BLANK_NODE_LABEL => [:"_:g2170907080"],
13
- :IRI_REF => [:"_:g2170907080"],
14
- :PNAME_LN => [:"_:g2170907080"],
15
- :PNAME_NS => [:"_:g2170907080"],
11
+ :ANON => [:"_:g70347551680760"],
12
+ :BLANK_NODE_LABEL => [:"_:g70347551680760"],
13
+ :IRIREF => [:"_:g70347551680760"],
14
+ :PNAME_LN => [:"_:g70347551680760"],
15
+ :PNAME_NS => [:"_:g70347551680760"],
16
16
  },
17
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"],
18
+ "(" => [:triples, "."],
19
+ "[" => [:triples, "."],
20
+ :ANON => [:triples, "."],
21
+ :BLANK_NODE_LABEL => [:triples, "."],
22
+ :IRIREF => [:triples, "."],
23
+ :PNAME_LN => [:triples, "."],
24
+ :PNAME_NS => [:triples, "."],
26
25
  },
27
26
  :"_:_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
27
  "," => [",", :object],
42
28
  },
43
- :"_:_g12" => {
44
- "(" => [:"_:g2171192900"],
45
- "[" => [:"_:g2171192900"],
46
- "false" => [:"_:g2171192900"],
29
+ :"_:_g11" => {
30
+ "(" => [:"_:g70347548543500"],
31
+ "[" => [:"_:g70347548543500"],
32
+ "false" => [:"_:g70347548543500"],
47
33
  :"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"],
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"],
67
47
  },
68
- :"_:_g13" => {
48
+ :"_:_g12" => {
69
49
  "(" => [],
70
50
  "," => [],
71
51
  "[" => [],
72
- "^^" => [:"_:_g14"],
52
+ "^^" => [:"_:_g13"],
73
53
  "false" => [],
74
54
  :"ebnf:empty" => [],
75
55
  :ANON => [],
76
56
  :BLANK_NODE_LABEL => [],
77
57
  :DECIMAL => [],
78
- :DECIMAL_NEGATIVE => [],
79
- :DECIMAL_POSITIVE => [],
80
58
  :DOUBLE => [],
81
- :DOUBLE_NEGATIVE => [],
82
- :DOUBLE_POSITIVE => [],
83
59
  :INTEGER => [],
84
- :INTEGER_NEGATIVE => [],
85
- :INTEGER_POSITIVE => [],
86
- :IRI_REF => [],
87
- :LANGTAG => [:"_:_g14"],
60
+ :IRIREF => [],
61
+ :LANGTAG => [:"_:_g13"],
88
62
  :PNAME_LN => [],
89
63
  :PNAME_NS => [],
90
- :STRING_LITERAL1 => [],
91
- :STRING_LITERAL2 => [],
92
- :STRING_LITERAL_LONG1 => [],
93
- :STRING_LITERAL_LONG2 => [],
64
+ :STRING_LITERAL_LONG_QUOTE => [],
65
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
66
+ :STRING_LITERAL_QUOTE => [],
67
+ :STRING_LITERAL_SINGLE_QUOTE => [],
94
68
  "true" => [],
95
69
  },
96
- :"_:_g14" => {
70
+ :"_:_g13" => {
97
71
  "(" => [],
98
72
  "," => [],
99
73
  "[" => [],
100
- "^^" => [:"_:g2170080060"],
74
+ "^^" => [:"_:g70347551515760"],
101
75
  "false" => [],
102
76
  :ANON => [],
103
77
  :BLANK_NODE_LABEL => [],
104
78
  :DECIMAL => [],
105
- :DECIMAL_NEGATIVE => [],
106
- :DECIMAL_POSITIVE => [],
107
79
  :DOUBLE => [],
108
- :DOUBLE_NEGATIVE => [],
109
- :DOUBLE_POSITIVE => [],
110
80
  :INTEGER => [],
111
- :INTEGER_NEGATIVE => [],
112
- :INTEGER_POSITIVE => [],
113
- :IRI_REF => [],
81
+ :IRIREF => [],
114
82
  :LANGTAG => [:LANGTAG],
115
83
  :PNAME_LN => [],
116
84
  :PNAME_NS => [],
117
- :STRING_LITERAL1 => [],
118
- :STRING_LITERAL2 => [],
119
- :STRING_LITERAL_LONG1 => [],
120
- :STRING_LITERAL_LONG2 => [],
85
+ :STRING_LITERAL_LONG_QUOTE => [],
86
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
87
+ :STRING_LITERAL_QUOTE => [],
88
+ :STRING_LITERAL_SINGLE_QUOTE => [],
121
89
  "true" => [],
122
90
  },
123
91
  :"_:_g2" => {
124
- "." => [:"_:g2170210900"],
92
+ "(" => [:"_:g70347547555420"],
93
+ "[" => [:"_:g70347547555420"],
125
94
  :"ebnf:empty" => [],
95
+ :ANON => [:"_:g70347547555420"],
96
+ :BLANK_NODE_LABEL => [:"_:g70347547555420"],
97
+ :IRIREF => [:"_:g70347547555420"],
98
+ :PNAME_LN => [:"_:g70347547555420"],
99
+ :PNAME_NS => [:"_:g70347547555420"],
126
100
  },
127
101
  :"_:_g3" => {
128
- "." => [".", :"_:_g4"],
102
+ "(" => [:triples, "."],
103
+ "[" => [:triples, "."],
104
+ :ANON => [:triples, "."],
105
+ :BLANK_NODE_LABEL => [:triples, "."],
106
+ :IRIREF => [:triples, "."],
107
+ :PNAME_LN => [:triples, "."],
108
+ :PNAME_NS => [:triples, "."],
129
109
  },
130
110
  :"_:_g4" => {
131
- "(" => [:"_:_g5"],
132
- "." => [],
133
- "[" => [:"_:_g5"],
111
+ "a" => [:predicateObjectList],
134
112
  :"ebnf:empty" => [],
135
- :ANON => [:"_:_g5"],
136
- :BLANK_NODE_LABEL => [:"_:_g5"],
137
- :IRI_REF => [:"_:_g5"],
138
- :PNAME_LN => [:"_:_g5"],
139
- :PNAME_NS => [:"_:_g5"],
113
+ :IRIREF => [:predicateObjectList],
114
+ :PNAME_LN => [:predicateObjectList],
115
+ :PNAME_NS => [:predicateObjectList],
140
116
  },
141
117
  :"_:_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],
118
+ ";" => [:"_:g70347550698800"],
119
+ :"ebnf:empty" => [],
150
120
  },
151
121
  :"_:_g6" => {
152
- ";" => [:"_:g2173623960"],
153
- :"ebnf:empty" => [],
122
+ ";" => [";", :"_:_g7"],
154
123
  },
155
124
  :"_:_g7" => {
156
- ";" => [";", :"_:_g8"],
157
- },
158
- :"_:_g8" => {
159
125
  ";" => [],
160
- "a" => [:"_:_g9"],
126
+ "a" => [:"_:_g8"],
161
127
  :"ebnf:empty" => [],
162
- :IRI_REF => [:"_:_g9"],
163
- :PNAME_LN => [:"_:_g9"],
164
- :PNAME_NS => [:"_:_g9"],
128
+ :IRIREF => [:"_:_g8"],
129
+ :PNAME_LN => [:"_:_g8"],
130
+ :PNAME_NS => [:"_:_g8"],
165
131
  },
166
- :"_:_g9" => {
132
+ :"_:_g8" => {
167
133
  ";" => [],
168
134
  "a" => [:verb, :objectList],
169
- :IRI_REF => [:verb, :objectList],
135
+ :IRIREF => [:verb, :objectList],
170
136
  :PNAME_LN => [:verb, :objectList],
171
137
  :PNAME_NS => [:verb, :objectList],
172
138
  },
173
- :"_:g2169276360" => {
139
+ :"_:_g9" => {
140
+ "," => [:"_:g70347567288360"],
141
+ ";" => [],
142
+ :"ebnf:empty" => [],
143
+ },
144
+ :"_:g70347547459240" => {
174
145
  "@base" => [],
175
146
  "@prefix" => [],
176
- :IRI_REF => [],
147
+ :IRIREF => [],
177
148
  :PNAME_LN => [],
178
149
  :PNAME_NS => [],
179
- "{" => ["{", :"_:_g1", "}"],
150
+ :SPARQL_BASE => [],
151
+ :SPARQL_PREFIX => [],
152
+ "{" => ["{", :"_:_g2", "}"],
153
+ },
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"],
162
+ },
163
+ :"_:g70347547857440" => {
164
+ "@base" => [:graph_statement, :trigDoc],
165
+ "@prefix" => [:graph_statement, :trigDoc],
166
+ :"ebnf:eof" => [],
167
+ :IRIREF => [:graph_statement, :trigDoc],
168
+ :PNAME_LN => [:graph_statement, :trigDoc],
169
+ :PNAME_NS => [:graph_statement, :trigDoc],
170
+ :SPARQL_BASE => [:graph_statement, :trigDoc],
171
+ :SPARQL_PREFIX => [:graph_statement, :trigDoc],
172
+ "{" => [:graph_statement, :trigDoc],
173
+ },
174
+ :"_:g70347548060440" => {
175
+ "[" => [:blankNodePropertyList, :"_:_g4"],
180
176
  },
181
- :"_:g2169796440" => {
177
+ :"_:g70347548100000" => {
182
178
  "@base" => [],
183
179
  "@prefix" => [],
184
- :IRI_REF => [:graphIri, "{", :"_:_g0", "}"],
180
+ :IRIREF => [:graphIri, "{", :"_:_g0", "}"],
185
181
  :PNAME_LN => [:graphIri, "{", :"_:_g0", "}"],
186
182
  :PNAME_NS => [:graphIri, "{", :"_:_g0", "}"],
183
+ :SPARQL_BASE => [],
184
+ :SPARQL_PREFIX => [],
187
185
  "{" => [],
188
186
  },
189
- :"_:g2170080060" => {
187
+ :"_:g70347548184380" => {
188
+ "(" => [:subject, :predicateObjectList],
189
+ :ANON => [:subject, :predicateObjectList],
190
+ :BLANK_NODE_LABEL => [:subject, :predicateObjectList],
191
+ :IRIREF => [:subject, :predicateObjectList],
192
+ :PNAME_LN => [:subject, :predicateObjectList],
193
+ :PNAME_NS => [:subject, :predicateObjectList],
194
+ },
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" => {
190
217
  "(" => [],
191
218
  "," => [],
192
219
  "[" => [],
193
- "^^" => ["^^", :IRIref],
220
+ "^^" => ["^^", :iri],
194
221
  "false" => [],
195
222
  :ANON => [],
196
223
  :BLANK_NODE_LABEL => [],
197
224
  :DECIMAL => [],
198
- :DECIMAL_NEGATIVE => [],
199
- :DECIMAL_POSITIVE => [],
200
225
  :DOUBLE => [],
201
- :DOUBLE_NEGATIVE => [],
202
- :DOUBLE_POSITIVE => [],
203
226
  :INTEGER => [],
204
- :INTEGER_NEGATIVE => [],
205
- :INTEGER_POSITIVE => [],
206
- :IRI_REF => [],
227
+ :IRIREF => [],
207
228
  :PNAME_LN => [],
208
229
  :PNAME_NS => [],
209
- :STRING_LITERAL1 => [],
210
- :STRING_LITERAL2 => [],
211
- :STRING_LITERAL_LONG1 => [],
212
- :STRING_LITERAL_LONG2 => [],
230
+ :STRING_LITERAL_LONG_QUOTE => [],
231
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
232
+ :STRING_LITERAL_QUOTE => [],
233
+ :STRING_LITERAL_SINGLE_QUOTE => [],
213
234
  "true" => [],
214
235
  },
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"],
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"],
226
244
  },
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
- "." => [],
245
+ :"_:g70347567288360" => {
246
+ "," => [:"_:_g10", :"_:_g9"],
264
247
  ";" => [],
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
248
  },
295
249
  :BlankNode => {
296
250
  "(" => [],
@@ -301,21 +255,15 @@ module RDF::TriG::Meta
301
255
  :ANON => [:ANON],
302
256
  :BLANK_NODE_LABEL => [:BLANK_NODE_LABEL],
303
257
  :DECIMAL => [],
304
- :DECIMAL_NEGATIVE => [],
305
- :DECIMAL_POSITIVE => [],
306
258
  :DOUBLE => [],
307
- :DOUBLE_NEGATIVE => [],
308
- :DOUBLE_POSITIVE => [],
309
259
  :INTEGER => [],
310
- :INTEGER_NEGATIVE => [],
311
- :INTEGER_POSITIVE => [],
312
- :IRI_REF => [],
260
+ :IRIREF => [],
313
261
  :PNAME_LN => [],
314
262
  :PNAME_NS => [],
315
- :STRING_LITERAL1 => [],
316
- :STRING_LITERAL2 => [],
317
- :STRING_LITERAL_LONG1 => [],
318
- :STRING_LITERAL_LONG2 => [],
263
+ :STRING_LITERAL_LONG_QUOTE => [],
264
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
265
+ :STRING_LITERAL_QUOTE => [],
266
+ :STRING_LITERAL_SINGLE_QUOTE => [],
319
267
  "true" => [],
320
268
  },
321
269
  :BooleanLiteral => {
@@ -326,125 +274,18 @@ module RDF::TriG::Meta
326
274
  :ANON => [],
327
275
  :BLANK_NODE_LABEL => [],
328
276
  :DECIMAL => [],
329
- :DECIMAL_NEGATIVE => [],
330
- :DECIMAL_POSITIVE => [],
331
277
  :DOUBLE => [],
332
- :DOUBLE_NEGATIVE => [],
333
- :DOUBLE_POSITIVE => [],
334
278
  :INTEGER => [],
335
- :INTEGER_NEGATIVE => [],
336
- :INTEGER_POSITIVE => [],
337
- :IRI_REF => [],
279
+ :IRIREF => [],
338
280
  :PNAME_LN => [],
339
281
  :PNAME_NS => [],
340
- :STRING_LITERAL1 => [],
341
- :STRING_LITERAL2 => [],
342
- :STRING_LITERAL_LONG1 => [],
343
- :STRING_LITERAL_LONG2 => [],
282
+ :STRING_LITERAL_LONG_QUOTE => [],
283
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
284
+ :STRING_LITERAL_QUOTE => [],
285
+ :STRING_LITERAL_SINGLE_QUOTE => [],
344
286
  "true" => ["true"],
345
287
  },
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
288
  :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
289
  "(" => [],
449
290
  "," => [],
450
291
  "[" => [],
@@ -452,26 +293,17 @@ module RDF::TriG::Meta
452
293
  :ANON => [],
453
294
  :BLANK_NODE_LABEL => [],
454
295
  :DECIMAL => [:DECIMAL],
455
- :DECIMAL_NEGATIVE => [],
456
- :DECIMAL_POSITIVE => [],
457
296
  :DOUBLE => [:DOUBLE],
458
- :DOUBLE_NEGATIVE => [],
459
- :DOUBLE_POSITIVE => [],
460
297
  :INTEGER => [:INTEGER],
461
- :INTEGER_NEGATIVE => [],
462
- :INTEGER_POSITIVE => [],
463
- :IRI_REF => [],
298
+ :IRIREF => [],
464
299
  :PNAME_LN => [],
465
300
  :PNAME_NS => [],
466
- :STRING_LITERAL1 => [],
467
- :STRING_LITERAL2 => [],
468
- :STRING_LITERAL_LONG1 => [],
469
- :STRING_LITERAL_LONG2 => [],
301
+ :STRING_LITERAL_LONG_QUOTE => [],
302
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
303
+ :STRING_LITERAL_QUOTE => [],
304
+ :STRING_LITERAL_SINGLE_QUOTE => [],
470
305
  "true" => [],
471
306
  },
472
- :PREFIX => {
473
- "@prefix" => ["@prefix"],
474
- },
475
307
  :PrefixedName => {
476
308
  "(" => [],
477
309
  "," => [],
@@ -481,21 +313,15 @@ module RDF::TriG::Meta
481
313
  :ANON => [],
482
314
  :BLANK_NODE_LABEL => [],
483
315
  :DECIMAL => [],
484
- :DECIMAL_NEGATIVE => [],
485
- :DECIMAL_POSITIVE => [],
486
316
  :DOUBLE => [],
487
- :DOUBLE_NEGATIVE => [],
488
- :DOUBLE_POSITIVE => [],
489
317
  :INTEGER => [],
490
- :INTEGER_NEGATIVE => [],
491
- :INTEGER_POSITIVE => [],
492
- :IRI_REF => [],
318
+ :IRIREF => [],
493
319
  :PNAME_LN => [:PNAME_LN],
494
320
  :PNAME_NS => [:PNAME_NS],
495
- :STRING_LITERAL1 => [],
496
- :STRING_LITERAL2 => [],
497
- :STRING_LITERAL_LONG1 => [],
498
- :STRING_LITERAL_LONG2 => [],
321
+ :STRING_LITERAL_LONG_QUOTE => [],
322
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
323
+ :STRING_LITERAL_QUOTE => [],
324
+ :STRING_LITERAL_SINGLE_QUOTE => [],
499
325
  "true" => [],
500
326
  },
501
327
  :RDFLiteral => {
@@ -506,58 +332,53 @@ module RDF::TriG::Meta
506
332
  :ANON => [],
507
333
  :BLANK_NODE_LABEL => [],
508
334
  :DECIMAL => [],
509
- :DECIMAL_NEGATIVE => [],
510
- :DECIMAL_POSITIVE => [],
511
335
  :DOUBLE => [],
512
- :DOUBLE_NEGATIVE => [],
513
- :DOUBLE_POSITIVE => [],
514
336
  :INTEGER => [],
515
- :INTEGER_NEGATIVE => [],
516
- :INTEGER_POSITIVE => [],
517
- :IRI_REF => [],
337
+ :IRIREF => [],
518
338
  :PNAME_LN => [],
519
339
  :PNAME_NS => [],
520
- :STRING_LITERAL1 => [:String, :"_:_g13"],
521
- :STRING_LITERAL2 => [:String, :"_:_g13"],
522
- :STRING_LITERAL_LONG1 => [:String, :"_:_g13"],
523
- :STRING_LITERAL_LONG2 => [:String, :"_:_g13"],
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"],
524
344
  "true" => [],
525
345
  },
526
346
  :String => {
527
347
  "^^" => [],
528
348
  :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],
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],
533
353
  },
534
354
  :base => {
535
- "@base" => [:BASE, :IRI_REF],
355
+ "@base" => ["@base", :IRIREF, "."],
356
+ "@prefix" => [],
357
+ :IRIREF => [],
358
+ :PNAME_LN => [],
359
+ :PNAME_NS => [],
360
+ :SPARQL_BASE => [],
361
+ :SPARQL_PREFIX => [],
362
+ "{" => [],
536
363
  },
537
364
  :blank => {
538
365
  "(" => [:collection],
539
366
  "," => [],
540
- "[" => [:blankNodePropertyList],
367
+ "[" => [],
541
368
  "a" => [],
542
369
  "false" => [],
543
370
  :ANON => [:BlankNode],
544
371
  :BLANK_NODE_LABEL => [:BlankNode],
545
372
  :DECIMAL => [],
546
- :DECIMAL_NEGATIVE => [],
547
- :DECIMAL_POSITIVE => [],
548
373
  :DOUBLE => [],
549
- :DOUBLE_NEGATIVE => [],
550
- :DOUBLE_POSITIVE => [],
551
374
  :INTEGER => [],
552
- :INTEGER_NEGATIVE => [],
553
- :INTEGER_POSITIVE => [],
554
- :IRI_REF => [],
375
+ :IRIREF => [],
555
376
  :PNAME_LN => [],
556
377
  :PNAME_NS => [],
557
- :STRING_LITERAL1 => [],
558
- :STRING_LITERAL2 => [],
559
- :STRING_LITERAL_LONG1 => [],
560
- :STRING_LITERAL_LONG2 => [],
378
+ :STRING_LITERAL_LONG_QUOTE => [],
379
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
380
+ :STRING_LITERAL_QUOTE => [],
381
+ :STRING_LITERAL_SINGLE_QUOTE => [],
561
382
  "true" => [],
562
383
  },
563
384
  :blankNodePropertyList => {
@@ -569,25 +390,19 @@ module RDF::TriG::Meta
569
390
  :ANON => [],
570
391
  :BLANK_NODE_LABEL => [],
571
392
  :DECIMAL => [],
572
- :DECIMAL_NEGATIVE => [],
573
- :DECIMAL_POSITIVE => [],
574
393
  :DOUBLE => [],
575
- :DOUBLE_NEGATIVE => [],
576
- :DOUBLE_POSITIVE => [],
577
394
  :INTEGER => [],
578
- :INTEGER_NEGATIVE => [],
579
- :INTEGER_POSITIVE => [],
580
- :IRI_REF => [],
395
+ :IRIREF => [],
581
396
  :PNAME_LN => [],
582
397
  :PNAME_NS => [],
583
- :STRING_LITERAL1 => [],
584
- :STRING_LITERAL2 => [],
585
- :STRING_LITERAL_LONG1 => [],
586
- :STRING_LITERAL_LONG2 => [],
398
+ :STRING_LITERAL_LONG_QUOTE => [],
399
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
400
+ :STRING_LITERAL_QUOTE => [],
401
+ :STRING_LITERAL_SINGLE_QUOTE => [],
587
402
  "true" => [],
588
403
  },
589
404
  :collection => {
590
- "(" => ["(", :"_:_g12", ")"],
405
+ "(" => ["(", :"_:_g11", ")"],
591
406
  "," => [],
592
407
  "[" => [],
593
408
  "a" => [],
@@ -595,48 +410,72 @@ module RDF::TriG::Meta
595
410
  :ANON => [],
596
411
  :BLANK_NODE_LABEL => [],
597
412
  :DECIMAL => [],
598
- :DECIMAL_NEGATIVE => [],
599
- :DECIMAL_POSITIVE => [],
600
413
  :DOUBLE => [],
601
- :DOUBLE_NEGATIVE => [],
602
- :DOUBLE_POSITIVE => [],
603
414
  :INTEGER => [],
604
- :INTEGER_NEGATIVE => [],
605
- :INTEGER_POSITIVE => [],
606
- :IRI_REF => [],
415
+ :IRIREF => [],
607
416
  :PNAME_LN => [],
608
417
  :PNAME_NS => [],
609
- :STRING_LITERAL1 => [],
610
- :STRING_LITERAL2 => [],
611
- :STRING_LITERAL_LONG1 => [],
612
- :STRING_LITERAL_LONG2 => [],
418
+ :STRING_LITERAL_LONG_QUOTE => [],
419
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
420
+ :STRING_LITERAL_QUOTE => [],
421
+ :STRING_LITERAL_SINGLE_QUOTE => [],
613
422
  "true" => [],
614
423
  },
615
424
  :directive => {
616
425
  "@base" => [:base],
617
426
  "@prefix" => [:prefixID],
427
+ :IRIREF => [],
428
+ :PNAME_LN => [],
429
+ :PNAME_NS => [],
430
+ :SPARQL_BASE => [:sparqlBase],
431
+ :SPARQL_PREFIX => [:sparqlPrefix],
432
+ "{" => [],
618
433
  },
619
434
  :graph => {
620
435
  "@base" => [],
621
436
  "@prefix" => [],
622
- :IRI_REF => [:"_:g2169796440"],
623
- :PNAME_LN => [:"_:g2169796440"],
624
- :PNAME_NS => [:"_:g2169796440"],
625
- "{" => [:"_:g2169276360"],
437
+ :IRIREF => [:"_:g70347548100000"],
438
+ :PNAME_LN => [:"_:g70347548100000"],
439
+ :PNAME_NS => [:"_:g70347548100000"],
440
+ :SPARQL_BASE => [],
441
+ :SPARQL_PREFIX => [],
442
+ "{" => [:"_:g70347547459240"],
626
443
  },
627
444
  :graphIri => {
628
- :IRI_REF => [:IRIref],
629
- :PNAME_LN => [:IRIref],
630
- :PNAME_NS => [:IRIref],
445
+ :IRIREF => [:iri],
446
+ :PNAME_LN => [:iri],
447
+ :PNAME_NS => [:iri],
631
448
  },
632
449
  :graph_statement => {
633
- "@base" => [:"_:g2173024260"],
634
- "@prefix" => [:"_:g2173024260"],
635
- :IRI_REF => [:graph],
450
+ "@base" => [:directive],
451
+ "@prefix" => [:directive],
452
+ :IRIREF => [:graph],
636
453
  :PNAME_LN => [:graph],
637
454
  :PNAME_NS => [:graph],
455
+ :SPARQL_BASE => [:directive],
456
+ :SPARQL_PREFIX => [:directive],
638
457
  "{" => [:graph],
639
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
+ },
640
479
  :literal => {
641
480
  "(" => [],
642
481
  "," => [],
@@ -645,73 +484,54 @@ module RDF::TriG::Meta
645
484
  :ANON => [],
646
485
  :BLANK_NODE_LABEL => [],
647
486
  :DECIMAL => [:NumericLiteral],
648
- :DECIMAL_NEGATIVE => [:NumericLiteral],
649
- :DECIMAL_POSITIVE => [:NumericLiteral],
650
487
  :DOUBLE => [:NumericLiteral],
651
- :DOUBLE_NEGATIVE => [:NumericLiteral],
652
- :DOUBLE_POSITIVE => [:NumericLiteral],
653
488
  :INTEGER => [:NumericLiteral],
654
- :INTEGER_NEGATIVE => [:NumericLiteral],
655
- :INTEGER_POSITIVE => [:NumericLiteral],
656
- :IRI_REF => [],
489
+ :IRIREF => [],
657
490
  :PNAME_LN => [],
658
491
  :PNAME_NS => [],
659
- :STRING_LITERAL1 => [:RDFLiteral],
660
- :STRING_LITERAL2 => [:RDFLiteral],
661
- :STRING_LITERAL_LONG1 => [:RDFLiteral],
662
- :STRING_LITERAL_LONG2 => [:RDFLiteral],
492
+ :STRING_LITERAL_LONG_QUOTE => [:RDFLiteral],
493
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [:RDFLiteral],
494
+ :STRING_LITERAL_QUOTE => [:RDFLiteral],
495
+ :STRING_LITERAL_SINGLE_QUOTE => [:RDFLiteral],
663
496
  "true" => [:BooleanLiteral],
664
497
  },
665
498
  :object => {
666
499
  "(" => [:blank],
667
500
  "," => [],
668
- "[" => [:blank],
501
+ "[" => [:blankNodePropertyList],
669
502
  "false" => [:literal],
670
503
  :ANON => [:blank],
671
504
  :BLANK_NODE_LABEL => [:blank],
672
505
  :DECIMAL => [:literal],
673
- :DECIMAL_NEGATIVE => [:literal],
674
- :DECIMAL_POSITIVE => [:literal],
675
506
  :DOUBLE => [:literal],
676
- :DOUBLE_NEGATIVE => [:literal],
677
- :DOUBLE_POSITIVE => [:literal],
678
507
  :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],
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],
688
515
  "true" => [:literal],
689
516
  },
690
517
  :objectList => {
691
- "(" => [:object, :"_:_g10"],
692
- "." => [],
518
+ "(" => [:object, :"_:_g9"],
693
519
  ";" => [],
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"],
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"],
715
535
  },
716
536
  :predicate => {
717
537
  "(" => [],
@@ -720,65 +540,82 @@ module RDF::TriG::Meta
720
540
  :ANON => [],
721
541
  :BLANK_NODE_LABEL => [],
722
542
  :DECIMAL => [],
723
- :DECIMAL_NEGATIVE => [],
724
- :DECIMAL_POSITIVE => [],
725
543
  :DOUBLE => [],
726
- :DOUBLE_NEGATIVE => [],
727
- :DOUBLE_POSITIVE => [],
728
544
  :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 => [],
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 => [],
738
552
  "true" => [],
739
553
  },
740
554
  :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"],
555
+ "a" => [:verb, :objectList, :"_:_g5"],
556
+ :IRIREF => [:verb, :objectList, :"_:_g5"],
557
+ :PNAME_LN => [:verb, :objectList, :"_:_g5"],
558
+ :PNAME_NS => [:verb, :objectList, :"_:_g5"],
750
559
  },
751
560
  :prefixID => {
752
- "@prefix" => [:PREFIX, :PNAME_NS, :IRI_REF],
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
+ "{" => [],
753
589
  },
754
590
  :subject => {
755
591
  "(" => [:blank],
756
- "[" => [:blank],
757
592
  "a" => [],
758
593
  :ANON => [:blank],
759
594
  :BLANK_NODE_LABEL => [:blank],
760
- :IRI_REF => [:IRIref],
761
- :PNAME_LN => [:IRIref],
762
- :PNAME_NS => [:IRIref],
595
+ :IRIREF => [:iri],
596
+ :PNAME_LN => [:iri],
597
+ :PNAME_NS => [:iri],
763
598
  },
764
599
  :trigDoc => {
765
- "@base" => [:"_:g2172268480"],
766
- "@prefix" => [:"_:g2172268480"],
600
+ "@base" => [:"_:g70347547857440"],
601
+ "@prefix" => [:"_:g70347547857440"],
767
602
  :"ebnf:empty" => [],
768
603
  :"ebnf:eof" => [],
769
- :IRI_REF => [:"_:g2172268480"],
770
- :PNAME_LN => [:"_:g2172268480"],
771
- :PNAME_NS => [:"_:g2172268480"],
772
- "{" => [:"_:g2172268480"],
604
+ :IRIREF => [:"_:g70347547857440"],
605
+ :PNAME_LN => [:"_:g70347547857440"],
606
+ :PNAME_NS => [:"_:g70347547857440"],
607
+ :SPARQL_BASE => [:"_:g70347547857440"],
608
+ :SPARQL_PREFIX => [:"_:g70347547857440"],
609
+ "{" => [:"_:g70347547857440"],
773
610
  },
774
611
  :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"],
612
+ "(" => [:"_:g70347548184380"],
613
+ "[" => [:"_:g70347548060440"],
614
+ :ANON => [:"_:g70347548184380"],
615
+ :BLANK_NODE_LABEL => [:"_:g70347548184380"],
616
+ :IRIREF => [:"_:g70347548184380"],
617
+ :PNAME_LN => [:"_:g70347548184380"],
618
+ :PNAME_NS => [:"_:g70347548184380"],
782
619
  },
783
620
  :verb => {
784
621
  "(" => [],
@@ -788,21 +625,15 @@ module RDF::TriG::Meta
788
625
  :ANON => [],
789
626
  :BLANK_NODE_LABEL => [],
790
627
  :DECIMAL => [],
791
- :DECIMAL_NEGATIVE => [],
792
- :DECIMAL_POSITIVE => [],
793
628
  :DOUBLE => [],
794
- :DOUBLE_NEGATIVE => [],
795
- :DOUBLE_POSITIVE => [],
796
629
  :INTEGER => [],
797
- :INTEGER_NEGATIVE => [],
798
- :INTEGER_POSITIVE => [],
799
- :IRI_REF => [:predicate],
630
+ :IRIREF => [:predicate],
800
631
  :PNAME_LN => [:predicate],
801
632
  :PNAME_NS => [:predicate],
802
- :STRING_LITERAL1 => [],
803
- :STRING_LITERAL2 => [],
804
- :STRING_LITERAL_LONG1 => [],
805
- :STRING_LITERAL_LONG2 => [],
633
+ :STRING_LITERAL_LONG_QUOTE => [],
634
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [],
635
+ :STRING_LITERAL_QUOTE => [],
636
+ :STRING_LITERAL_SINGLE_QUOTE => [],
806
637
  "true" => [],
807
638
  },
808
639
  }.freeze
@@ -822,22 +653,18 @@ module RDF::TriG::Meta
822
653
  :ANON,
823
654
  :BLANK_NODE_LABEL,
824
655
  :DECIMAL,
825
- :DECIMAL_NEGATIVE,
826
- :DECIMAL_POSITIVE,
827
656
  :DOUBLE,
828
- :DOUBLE_NEGATIVE,
829
- :DOUBLE_POSITIVE,
830
657
  :INTEGER,
831
- :INTEGER_NEGATIVE,
832
- :INTEGER_POSITIVE,
833
- :IRI_REF,
658
+ :IRIREF,
834
659
  :LANGTAG,
835
660
  :PNAME_LN,
836
661
  :PNAME_NS,
837
- :STRING_LITERAL1,
838
- :STRING_LITERAL2,
839
- :STRING_LITERAL_LONG1,
840
- :STRING_LITERAL_LONG2,
662
+ :SPARQL_BASE,
663
+ :SPARQL_PREFIX,
664
+ :STRING_LITERAL_LONG_QUOTE,
665
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
666
+ :STRING_LITERAL_QUOTE,
667
+ :STRING_LITERAL_SINGLE_QUOTE,
841
668
  "true",
842
669
  "{",
843
670
  "}"
@@ -848,7 +675,7 @@ module RDF::TriG::Meta
848
675
  "[",
849
676
  :ANON,
850
677
  :BLANK_NODE_LABEL,
851
- :IRI_REF,
678
+ :IRIREF,
852
679
  :PNAME_LN,
853
680
  :PNAME_NS],
854
681
  :"_:_g1" => [
@@ -856,14 +683,12 @@ module RDF::TriG::Meta
856
683
  "[",
857
684
  :ANON,
858
685
  :BLANK_NODE_LABEL,
859
- :IRI_REF,
686
+ :IRIREF,
860
687
  :PNAME_LN,
861
688
  :PNAME_NS],
862
689
  :"_:_g10" => [
863
690
  ","],
864
691
  :"_:_g11" => [
865
- ","],
866
- :"_:_g12" => [
867
692
  "(",
868
693
  "[",
869
694
  "false",
@@ -871,149 +696,163 @@ module RDF::TriG::Meta
871
696
  :ANON,
872
697
  :BLANK_NODE_LABEL,
873
698
  :DECIMAL,
874
- :DECIMAL_NEGATIVE,
875
- :DECIMAL_POSITIVE,
876
699
  :DOUBLE,
877
- :DOUBLE_NEGATIVE,
878
- :DOUBLE_POSITIVE,
879
700
  :INTEGER,
880
- :INTEGER_NEGATIVE,
881
- :INTEGER_POSITIVE,
882
- :IRI_REF,
701
+ :IRIREF,
883
702
  :PNAME_LN,
884
703
  :PNAME_NS,
885
- :STRING_LITERAL1,
886
- :STRING_LITERAL2,
887
- :STRING_LITERAL_LONG1,
888
- :STRING_LITERAL_LONG2],
889
- :"_:_g13" => [
704
+ :STRING_LITERAL_LONG_QUOTE,
705
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
706
+ :STRING_LITERAL_QUOTE,
707
+ :STRING_LITERAL_SINGLE_QUOTE],
708
+ :"_:_g12" => [
890
709
  "^^",
891
710
  :LANGTAG],
892
- :"_:_g14" => [
711
+ :"_:_g13" => [
893
712
  "^^",
894
713
  :LANGTAG],
895
714
  :"_:_g2" => [
896
- "."],
897
- :"_:_g3" => [
898
- "."],
899
- :"_:_g4" => [
900
715
  "(",
901
716
  "[",
902
717
  :ANON,
903
718
  :BLANK_NODE_LABEL,
904
- :IRI_REF,
719
+ :IRIREF,
905
720
  :PNAME_LN,
906
721
  :PNAME_NS],
907
- :"_:_g5" => [
722
+ :"_:_g3" => [
908
723
  "(",
909
724
  "[",
910
725
  :ANON,
911
726
  :BLANK_NODE_LABEL,
912
- :IRI_REF,
727
+ :IRIREF,
913
728
  :PNAME_LN,
914
729
  :PNAME_NS],
730
+ :"_:_g4" => [
731
+ "a",
732
+ :IRIREF,
733
+ :PNAME_LN,
734
+ :PNAME_NS],
735
+ :"_:_g5" => [
736
+ ";"],
915
737
  :"_:_g6" => [
916
738
  ";"],
917
739
  :"_:_g7" => [
918
- ";"],
919
- :"_:_g8" => [
920
740
  "a",
921
- :IRI_REF,
741
+ :IRIREF,
922
742
  :PNAME_LN,
923
743
  :PNAME_NS],
924
- :"_:_g9" => [
744
+ :"_:_g8" => [
925
745
  "a",
926
- :IRI_REF,
746
+ :IRIREF,
927
747
  :PNAME_LN,
928
748
  :PNAME_NS],
929
- :"_:g2168548200" => [
749
+ :"_:_g9" => [
750
+ ","],
751
+ :"_:g70347546233680" => [
930
752
  "(",
931
753
  "[",
754
+ "false",
755
+ "true",
932
756
  :ANON,
933
757
  :BLANK_NODE_LABEL,
934
- :IRI_REF,
758
+ :DECIMAL,
759
+ :DOUBLE,
760
+ :INTEGER,
761
+ :IRIREF,
935
762
  :PNAME_LN,
936
- :PNAME_NS],
937
- :"_:g2169101800" => [
938
- "@base",
939
- "@prefix",
940
- "{",
941
- :IRI_REF,
763
+ :PNAME_NS,
764
+ :STRING_LITERAL_LONG_QUOTE,
765
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
766
+ :STRING_LITERAL_QUOTE,
767
+ :STRING_LITERAL_SINGLE_QUOTE],
768
+ :"_:g70347546620220" => [
769
+ "a",
770
+ :IRIREF,
942
771
  :PNAME_LN,
943
772
  :PNAME_NS],
944
- :"_:g2169276360" => [
945
- "{"],
946
- :"_:g2169420840" => [
773
+ :"_:g70347546812680" => [
774
+ ";"],
775
+ :"_:g70347547007040" => [
947
776
  "(",
948
777
  "[",
778
+ "false",
779
+ "true",
949
780
  :ANON,
950
781
  :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,
782
+ :DECIMAL,
783
+ :DOUBLE,
784
+ :INTEGER,
785
+ :IRIREF,
961
786
  :PNAME_LN,
962
- :PNAME_NS],
963
- :"_:g2170080060" => [
964
- "^^"],
965
- :"_:g2170169580" => [
787
+ :PNAME_NS,
788
+ :STRING_LITERAL_LONG_QUOTE,
789
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
790
+ :STRING_LITERAL_QUOTE,
791
+ :STRING_LITERAL_SINGLE_QUOTE],
792
+ :"_:g70347547288940" => [
966
793
  "(",
967
794
  "[",
968
795
  :ANON,
969
796
  :BLANK_NODE_LABEL,
970
- :IRI_REF,
797
+ :IRIREF,
971
798
  :PNAME_LN,
972
799
  :PNAME_NS],
973
- :"_:g2170210900" => [
974
- "."],
975
- :"_:g2170372120" => [
976
- "a",
977
- :IRI_REF,
800
+ :"_:g70347547459240" => [
801
+ "{"],
802
+ :"_:g70347547539000" => [
803
+ "(",
804
+ "[",
805
+ :ANON,
806
+ :BLANK_NODE_LABEL,
807
+ :IRIREF,
978
808
  :PNAME_LN,
979
809
  :PNAME_NS],
980
- :"_:g2170529060" => [
810
+ :"_:g70347547555420" => [
981
811
  "(",
982
812
  "[",
983
- "false",
984
- "true",
985
813
  :ANON,
986
814
  :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,
815
+ :IRIREF,
997
816
  :PNAME_LN,
998
- :PNAME_NS,
999
- :STRING_LITERAL1,
1000
- :STRING_LITERAL2,
1001
- :STRING_LITERAL_LONG1,
1002
- :STRING_LITERAL_LONG2],
1003
- :"_:g2170566380" => [
817
+ :PNAME_NS],
818
+ :"_:g70347547833160" => [
1004
819
  "(",
1005
820
  "[",
1006
821
  :ANON,
1007
822
  :BLANK_NODE_LABEL,
1008
- :IRI_REF,
823
+ :IRIREF,
1009
824
  :PNAME_LN,
1010
825
  :PNAME_NS],
1011
- :"_:g2170789280" => [
826
+ :"_:g70347547857440" => [
827
+ "@base",
828
+ "@prefix",
829
+ "{",
830
+ :IRIREF,
831
+ :PNAME_LN,
832
+ :PNAME_NS,
833
+ :SPARQL_BASE,
834
+ :SPARQL_PREFIX],
835
+ :"_:g70347547884260" => [
1012
836
  "a",
1013
- :IRI_REF,
837
+ :IRIREF,
1014
838
  :PNAME_LN,
1015
839
  :PNAME_NS],
1016
- :"_:g2170901680" => [
840
+ :"_:g70347548060440" => [
841
+ "["],
842
+ :"_:g70347548100000" => [
843
+ :IRIREF,
844
+ :PNAME_LN,
845
+ :PNAME_NS],
846
+ :"_:g70347548107700" => [
847
+ "@base",
848
+ "@prefix",
849
+ "{",
850
+ :IRIREF,
851
+ :PNAME_LN,
852
+ :PNAME_NS,
853
+ :SPARQL_BASE,
854
+ :SPARQL_PREFIX],
855
+ :"_:g70347548180700" => [
1017
856
  "(",
1018
857
  "[",
1019
858
  "false",
@@ -1021,53 +860,31 @@ module RDF::TriG::Meta
1021
860
  :ANON,
1022
861
  :BLANK_NODE_LABEL,
1023
862
  :DECIMAL,
1024
- :DECIMAL_NEGATIVE,
1025
- :DECIMAL_POSITIVE,
1026
863
  :DOUBLE,
1027
- :DOUBLE_NEGATIVE,
1028
- :DOUBLE_POSITIVE,
1029
864
  :INTEGER,
1030
- :INTEGER_NEGATIVE,
1031
- :INTEGER_POSITIVE,
1032
- :IRI_REF,
865
+ :IRIREF,
1033
866
  :PNAME_LN,
1034
867
  :PNAME_NS,
1035
- :STRING_LITERAL1,
1036
- :STRING_LITERAL2,
1037
- :STRING_LITERAL_LONG1,
1038
- :STRING_LITERAL_LONG2],
1039
- :"_:g2170907080" => [
868
+ :STRING_LITERAL_LONG_QUOTE,
869
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
870
+ :STRING_LITERAL_QUOTE,
871
+ :STRING_LITERAL_SINGLE_QUOTE],
872
+ :"_:g70347548184380" => [
1040
873
  "(",
1041
- "[",
1042
874
  :ANON,
1043
875
  :BLANK_NODE_LABEL,
1044
- :IRI_REF,
876
+ :IRIREF,
1045
877
  :PNAME_LN,
1046
878
  :PNAME_NS],
1047
- :"_:g2171174520" => [
879
+ :"_:g70347548194020" => [
1048
880
  "(",
1049
881
  "[",
1050
- "false",
1051
- "true",
1052
882
  :ANON,
1053
883
  :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,
884
+ :IRIREF,
1064
885
  :PNAME_LN,
1065
- :PNAME_NS,
1066
- :STRING_LITERAL1,
1067
- :STRING_LITERAL2,
1068
- :STRING_LITERAL_LONG1,
1069
- :STRING_LITERAL_LONG2],
1070
- :"_:g2171192900" => [
886
+ :PNAME_NS],
887
+ :"_:g70347548543500" => [
1071
888
  "(",
1072
889
  "[",
1073
890
  "false",
@@ -1075,66 +892,37 @@ module RDF::TriG::Meta
1075
892
  :ANON,
1076
893
  :BLANK_NODE_LABEL,
1077
894
  :DECIMAL,
1078
- :DECIMAL_NEGATIVE,
1079
- :DECIMAL_POSITIVE,
1080
895
  :DOUBLE,
1081
- :DOUBLE_NEGATIVE,
1082
- :DOUBLE_POSITIVE,
1083
896
  :INTEGER,
1084
- :INTEGER_NEGATIVE,
1085
- :INTEGER_POSITIVE,
1086
- :IRI_REF,
897
+ :IRIREF,
1087
898
  :PNAME_LN,
1088
899
  :PNAME_NS,
1089
- :STRING_LITERAL1,
1090
- :STRING_LITERAL2,
1091
- :STRING_LITERAL_LONG1,
1092
- :STRING_LITERAL_LONG2],
1093
- :"_:g2171484060" => [
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" => [
1094
911
  "a",
1095
- :IRI_REF,
912
+ :IRIREF,
1096
913
  :PNAME_LN,
1097
914
  :PNAME_NS],
1098
- :"_:g2171672640" => [
915
+ :"_:g70347551515760" => [
916
+ "^^"],
917
+ :"_:g70347551680760" => [
1099
918
  "(",
1100
919
  "[",
1101
- "false",
1102
- "true",
1103
920
  :ANON,
1104
921
  :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,
922
+ :IRIREF,
1135
923
  :PNAME_LN,
1136
924
  :PNAME_NS],
1137
- :"_:g2172347140" => [
925
+ :"_:g70347552134960" => [
1138
926
  "(",
1139
927
  "[",
1140
928
  "false",
@@ -1142,102 +930,71 @@ module RDF::TriG::Meta
1142
930
  :ANON,
1143
931
  :BLANK_NODE_LABEL,
1144
932
  :DECIMAL,
1145
- :DECIMAL_NEGATIVE,
1146
- :DECIMAL_POSITIVE,
1147
933
  :DOUBLE,
1148
- :DOUBLE_NEGATIVE,
1149
- :DOUBLE_POSITIVE,
1150
934
  :INTEGER,
1151
- :INTEGER_NEGATIVE,
1152
- :INTEGER_POSITIVE,
1153
- :IRI_REF,
935
+ :IRIREF,
1154
936
  :PNAME_LN,
1155
937
  :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" => [
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" => [
1178
946
  "(",
1179
947
  "[",
948
+ "false",
949
+ "true",
1180
950
  :ANON,
1181
951
  :BLANK_NODE_LABEL,
1182
- :IRI_REF,
952
+ :DECIMAL,
953
+ :DOUBLE,
954
+ :INTEGER,
955
+ :IRIREF,
956
+ :PNAME_LN,
957
+ :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",
964
+ :IRIREF,
1183
965
  :PNAME_LN,
1184
966
  :PNAME_NS],
1185
- :"_:g2173623960" => [
1186
- ";"],
1187
- :BASE => [
1188
- "@base"],
967
+ :"_:g70347567288360" => [
968
+ ","],
969
+ :"_:g70347567327800" => [
970
+ ","],
1189
971
  :BlankNode => [
1190
972
  :ANON,
1191
973
  :BLANK_NODE_LABEL],
1192
974
  :BooleanLiteral => [
1193
975
  "false",
1194
976
  "true"],
1195
- :IRIref => [
1196
- :IRI_REF,
1197
- :PNAME_LN,
1198
- :PNAME_NS],
1199
977
  :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
978
  :DECIMAL,
1219
979
  :DOUBLE,
1220
980
  :INTEGER],
1221
- :PREFIX => [
1222
- "@prefix"],
1223
981
  :PrefixedName => [
1224
982
  :PNAME_LN,
1225
983
  :PNAME_NS],
1226
984
  :RDFLiteral => [
1227
- :STRING_LITERAL1,
1228
- :STRING_LITERAL2,
1229
- :STRING_LITERAL_LONG1,
1230
- :STRING_LITERAL_LONG2],
985
+ :STRING_LITERAL_LONG_QUOTE,
986
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
987
+ :STRING_LITERAL_QUOTE,
988
+ :STRING_LITERAL_SINGLE_QUOTE],
1231
989
  :String => [
1232
- :STRING_LITERAL1,
1233
- :STRING_LITERAL2,
1234
- :STRING_LITERAL_LONG1,
1235
- :STRING_LITERAL_LONG2],
990
+ :STRING_LITERAL_LONG_QUOTE,
991
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
992
+ :STRING_LITERAL_QUOTE,
993
+ :STRING_LITERAL_SINGLE_QUOTE],
1236
994
  :base => [
1237
995
  "@base"],
1238
996
  :blank => [
1239
997
  "(",
1240
- "[",
1241
998
  :ANON,
1242
999
  :BLANK_NODE_LABEL],
1243
1000
  :blankNodePropertyList => [
@@ -1246,39 +1003,41 @@ module RDF::TriG::Meta
1246
1003
  "("],
1247
1004
  :directive => [
1248
1005
  "@base",
1249
- "@prefix"],
1006
+ "@prefix",
1007
+ :SPARQL_BASE,
1008
+ :SPARQL_PREFIX],
1250
1009
  :graph => [
1251
1010
  "{",
1252
- :IRI_REF,
1011
+ :IRIREF,
1253
1012
  :PNAME_LN,
1254
1013
  :PNAME_NS],
1255
1014
  :graphIri => [
1256
- :IRI_REF,
1015
+ :IRIREF,
1257
1016
  :PNAME_LN,
1258
1017
  :PNAME_NS],
1259
1018
  :graph_statement => [
1260
1019
  "@base",
1261
1020
  "@prefix",
1262
1021
  "{",
1263
- :IRI_REF,
1022
+ :IRIREF,
1023
+ :PNAME_LN,
1024
+ :PNAME_NS,
1025
+ :SPARQL_BASE,
1026
+ :SPARQL_PREFIX],
1027
+ :iri => [
1028
+ :IRIREF,
1264
1029
  :PNAME_LN,
1265
1030
  :PNAME_NS],
1266
1031
  :literal => [
1267
1032
  "false",
1268
1033
  "true",
1269
1034
  :DECIMAL,
1270
- :DECIMAL_NEGATIVE,
1271
- :DECIMAL_POSITIVE,
1272
1035
  :DOUBLE,
1273
- :DOUBLE_NEGATIVE,
1274
- :DOUBLE_POSITIVE,
1275
1036
  :INTEGER,
1276
- :INTEGER_NEGATIVE,
1277
- :INTEGER_POSITIVE,
1278
- :STRING_LITERAL1,
1279
- :STRING_LITERAL2,
1280
- :STRING_LITERAL_LONG1,
1281
- :STRING_LITERAL_LONG2],
1037
+ :STRING_LITERAL_LONG_QUOTE,
1038
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1039
+ :STRING_LITERAL_QUOTE,
1040
+ :STRING_LITERAL_SINGLE_QUOTE],
1282
1041
  :object => [
1283
1042
  "(",
1284
1043
  "[",
@@ -1287,21 +1046,15 @@ module RDF::TriG::Meta
1287
1046
  :ANON,
1288
1047
  :BLANK_NODE_LABEL,
1289
1048
  :DECIMAL,
1290
- :DECIMAL_NEGATIVE,
1291
- :DECIMAL_POSITIVE,
1292
1049
  :DOUBLE,
1293
- :DOUBLE_NEGATIVE,
1294
- :DOUBLE_POSITIVE,
1295
1050
  :INTEGER,
1296
- :INTEGER_NEGATIVE,
1297
- :INTEGER_POSITIVE,
1298
- :IRI_REF,
1051
+ :IRIREF,
1299
1052
  :PNAME_LN,
1300
1053
  :PNAME_NS,
1301
- :STRING_LITERAL1,
1302
- :STRING_LITERAL2,
1303
- :STRING_LITERAL_LONG1,
1304
- :STRING_LITERAL_LONG2],
1054
+ :STRING_LITERAL_LONG_QUOTE,
1055
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1056
+ :STRING_LITERAL_QUOTE,
1057
+ :STRING_LITERAL_SINGLE_QUOTE],
1305
1058
  :objectList => [
1306
1059
  "(",
1307
1060
  "[",
@@ -1310,82 +1063,80 @@ module RDF::TriG::Meta
1310
1063
  :ANON,
1311
1064
  :BLANK_NODE_LABEL,
1312
1065
  :DECIMAL,
1313
- :DECIMAL_NEGATIVE,
1314
- :DECIMAL_POSITIVE,
1315
1066
  :DOUBLE,
1316
- :DOUBLE_NEGATIVE,
1317
- :DOUBLE_POSITIVE,
1318
1067
  :INTEGER,
1319
- :INTEGER_NEGATIVE,
1320
- :INTEGER_POSITIVE,
1321
- :IRI_REF,
1068
+ :IRIREF,
1322
1069
  :PNAME_LN,
1323
1070
  :PNAME_NS,
1324
- :STRING_LITERAL1,
1325
- :STRING_LITERAL2,
1326
- :STRING_LITERAL_LONG1,
1327
- :STRING_LITERAL_LONG2],
1071
+ :STRING_LITERAL_LONG_QUOTE,
1072
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1073
+ :STRING_LITERAL_QUOTE,
1074
+ :STRING_LITERAL_SINGLE_QUOTE],
1328
1075
  :predicate => [
1329
- :IRI_REF,
1076
+ :IRIREF,
1330
1077
  :PNAME_LN,
1331
1078
  :PNAME_NS],
1332
1079
  :predicateObjectList => [
1333
1080
  "a",
1334
- :IRI_REF,
1081
+ :IRIREF,
1335
1082
  :PNAME_LN,
1336
1083
  :PNAME_NS],
1337
1084
  :prefixID => [
1338
1085
  "@prefix"],
1086
+ :sparqlBase => [
1087
+ :SPARQL_BASE],
1088
+ :sparqlPrefix => [
1089
+ :SPARQL_PREFIX],
1339
1090
  :subject => [
1340
1091
  "(",
1341
- "[",
1342
1092
  :ANON,
1343
1093
  :BLANK_NODE_LABEL,
1344
- :IRI_REF,
1094
+ :IRIREF,
1345
1095
  :PNAME_LN,
1346
1096
  :PNAME_NS],
1347
1097
  :trigDoc => [
1348
1098
  "@base",
1349
1099
  "@prefix",
1350
1100
  "{",
1351
- :IRI_REF,
1101
+ :IRIREF,
1352
1102
  :PNAME_LN,
1353
- :PNAME_NS],
1103
+ :PNAME_NS,
1104
+ :SPARQL_BASE,
1105
+ :SPARQL_PREFIX],
1354
1106
  :triples => [
1355
1107
  "(",
1356
1108
  "[",
1357
1109
  :ANON,
1358
1110
  :BLANK_NODE_LABEL,
1359
- :IRI_REF,
1111
+ :IRIREF,
1360
1112
  :PNAME_LN,
1361
1113
  :PNAME_NS],
1362
1114
  :verb => [
1363
1115
  "a",
1364
- :IRI_REF,
1116
+ :IRIREF,
1365
1117
  :PNAME_LN,
1366
1118
  :PNAME_NS],
1367
1119
  }.freeze
1368
1120
  FOLLOW = {
1369
1121
  "." => [
1370
- "@base",
1371
- "@prefix",
1372
- "{",
1373
- :IRI_REF,
1122
+ "(",
1123
+ "[",
1124
+ :ANON,
1125
+ :BLANK_NODE_LABEL,
1126
+ :IRIREF,
1374
1127
  :PNAME_LN,
1375
1128
  :PNAME_NS],
1376
- :"_:_g10" => [
1129
+ :"_:_g1" => [
1377
1130
  "(",
1378
- ".",
1379
- ";",
1380
1131
  "[",
1381
1132
  :ANON,
1382
1133
  :BLANK_NODE_LABEL,
1383
- :IRI_REF,
1134
+ :IRIREF,
1384
1135
  :PNAME_LN,
1385
1136
  :PNAME_NS],
1386
- :"_:_g11" => [
1137
+ :"_:_g10" => [
1387
1138
  ","],
1388
- :"_:_g13" => [
1139
+ :"_:_g12" => [
1389
1140
  "(",
1390
1141
  ",",
1391
1142
  "[",
@@ -1394,22 +1145,16 @@ module RDF::TriG::Meta
1394
1145
  :ANON,
1395
1146
  :BLANK_NODE_LABEL,
1396
1147
  :DECIMAL,
1397
- :DECIMAL_NEGATIVE,
1398
- :DECIMAL_POSITIVE,
1399
1148
  :DOUBLE,
1400
- :DOUBLE_NEGATIVE,
1401
- :DOUBLE_POSITIVE,
1402
1149
  :INTEGER,
1403
- :INTEGER_NEGATIVE,
1404
- :INTEGER_POSITIVE,
1405
- :IRI_REF,
1150
+ :IRIREF,
1406
1151
  :PNAME_LN,
1407
1152
  :PNAME_NS,
1408
- :STRING_LITERAL1,
1409
- :STRING_LITERAL2,
1410
- :STRING_LITERAL_LONG1,
1411
- :STRING_LITERAL_LONG2],
1412
- :"_:_g14" => [
1153
+ :STRING_LITERAL_LONG_QUOTE,
1154
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1155
+ :STRING_LITERAL_QUOTE,
1156
+ :STRING_LITERAL_SINGLE_QUOTE],
1157
+ :"_:_g13" => [
1413
1158
  "(",
1414
1159
  ",",
1415
1160
  "[",
@@ -1418,48 +1163,52 @@ module RDF::TriG::Meta
1418
1163
  :ANON,
1419
1164
  :BLANK_NODE_LABEL,
1420
1165
  :DECIMAL,
1421
- :DECIMAL_NEGATIVE,
1422
- :DECIMAL_POSITIVE,
1423
1166
  :DOUBLE,
1424
- :DOUBLE_NEGATIVE,
1425
- :DOUBLE_POSITIVE,
1426
1167
  :INTEGER,
1427
- :INTEGER_NEGATIVE,
1428
- :INTEGER_POSITIVE,
1429
- :IRI_REF,
1168
+ :IRIREF,
1430
1169
  :PNAME_LN,
1431
1170
  :PNAME_NS,
1432
- :STRING_LITERAL1,
1433
- :STRING_LITERAL2,
1434
- :STRING_LITERAL_LONG1,
1435
- :STRING_LITERAL_LONG2],
1171
+ :STRING_LITERAL_LONG_QUOTE,
1172
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1173
+ :STRING_LITERAL_QUOTE,
1174
+ :STRING_LITERAL_SINGLE_QUOTE],
1436
1175
  :"_:_g3" => [
1437
- "."],
1438
- :"_:_g4" => [
1439
- "."],
1440
- :"_:_g5" => [
1441
- "."],
1176
+ "(",
1177
+ "[",
1178
+ :ANON,
1179
+ :BLANK_NODE_LABEL,
1180
+ :IRIREF,
1181
+ :PNAME_LN,
1182
+ :PNAME_NS],
1183
+ :"_:_g6" => [
1184
+ ";"],
1442
1185
  :"_:_g7" => [
1443
1186
  ";"],
1444
1187
  :"_:_g8" => [
1445
1188
  ";"],
1446
1189
  :"_:_g9" => [
1447
1190
  ";"],
1448
- :"_:g2169276360" => [
1191
+ :"_:g70347547459240" => [
1449
1192
  "@base",
1450
1193
  "@prefix",
1451
1194
  "{",
1452
- :IRI_REF,
1195
+ :IRIREF,
1453
1196
  :PNAME_LN,
1454
- :PNAME_NS],
1455
- :"_:g2169796440" => [
1197
+ :PNAME_NS,
1198
+ :SPARQL_BASE,
1199
+ :SPARQL_PREFIX],
1200
+ :"_:g70347547857440" => [
1201
+ :"ebnf:eof"],
1202
+ :"_:g70347548100000" => [
1456
1203
  "@base",
1457
1204
  "@prefix",
1458
1205
  "{",
1459
- :IRI_REF,
1206
+ :IRIREF,
1460
1207
  :PNAME_LN,
1461
- :PNAME_NS],
1462
- :"_:g2170080060" => [
1208
+ :PNAME_NS,
1209
+ :SPARQL_BASE,
1210
+ :SPARQL_PREFIX],
1211
+ :"_:g70347551515760" => [
1463
1212
  "(",
1464
1213
  ",",
1465
1214
  "[",
@@ -1468,40 +1217,17 @@ module RDF::TriG::Meta
1468
1217
  :ANON,
1469
1218
  :BLANK_NODE_LABEL,
1470
1219
  :DECIMAL,
1471
- :DECIMAL_NEGATIVE,
1472
- :DECIMAL_POSITIVE,
1473
1220
  :DOUBLE,
1474
- :DOUBLE_NEGATIVE,
1475
- :DOUBLE_POSITIVE,
1476
1221
  :INTEGER,
1477
- :INTEGER_NEGATIVE,
1478
- :INTEGER_POSITIVE,
1479
- :IRI_REF,
1222
+ :IRIREF,
1480
1223
  :PNAME_LN,
1481
1224
  :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],
1225
+ :STRING_LITERAL_LONG_QUOTE,
1226
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1227
+ :STRING_LITERAL_QUOTE,
1228
+ :STRING_LITERAL_SINGLE_QUOTE],
1229
+ :"_:g70347567288360" => [
1230
+ ";"],
1505
1231
  "a" => [
1506
1232
  "(",
1507
1233
  "[",
@@ -1510,21 +1236,15 @@ module RDF::TriG::Meta
1510
1236
  :ANON,
1511
1237
  :BLANK_NODE_LABEL,
1512
1238
  :DECIMAL,
1513
- :DECIMAL_NEGATIVE,
1514
- :DECIMAL_POSITIVE,
1515
1239
  :DOUBLE,
1516
- :DOUBLE_NEGATIVE,
1517
- :DOUBLE_POSITIVE,
1518
1240
  :INTEGER,
1519
- :INTEGER_NEGATIVE,
1520
- :INTEGER_POSITIVE,
1521
- :IRI_REF,
1241
+ :IRIREF,
1522
1242
  :PNAME_LN,
1523
1243
  :PNAME_NS,
1524
- :STRING_LITERAL1,
1525
- :STRING_LITERAL2,
1526
- :STRING_LITERAL_LONG1,
1527
- :STRING_LITERAL_LONG2],
1244
+ :STRING_LITERAL_LONG_QUOTE,
1245
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1246
+ :STRING_LITERAL_QUOTE,
1247
+ :STRING_LITERAL_SINGLE_QUOTE],
1528
1248
  "false" => [
1529
1249
  "(",
1530
1250
  ",",
@@ -1534,25 +1254,18 @@ module RDF::TriG::Meta
1534
1254
  :ANON,
1535
1255
  :BLANK_NODE_LABEL,
1536
1256
  :DECIMAL,
1537
- :DECIMAL_NEGATIVE,
1538
- :DECIMAL_POSITIVE,
1539
1257
  :DOUBLE,
1540
- :DOUBLE_NEGATIVE,
1541
- :DOUBLE_POSITIVE,
1542
1258
  :INTEGER,
1543
- :INTEGER_NEGATIVE,
1544
- :INTEGER_POSITIVE,
1545
- :IRI_REF,
1259
+ :IRIREF,
1546
1260
  :PNAME_LN,
1547
1261
  :PNAME_NS,
1548
- :STRING_LITERAL1,
1549
- :STRING_LITERAL2,
1550
- :STRING_LITERAL_LONG1,
1551
- :STRING_LITERAL_LONG2],
1262
+ :STRING_LITERAL_LONG_QUOTE,
1263
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1264
+ :STRING_LITERAL_QUOTE,
1265
+ :STRING_LITERAL_SINGLE_QUOTE],
1552
1266
  :"ebnf:empty" => [
1553
1267
  "(",
1554
1268
  ",",
1555
- ".",
1556
1269
  ";",
1557
1270
  "[",
1558
1271
  "false",
@@ -1561,21 +1274,15 @@ module RDF::TriG::Meta
1561
1274
  :ANON,
1562
1275
  :BLANK_NODE_LABEL,
1563
1276
  :DECIMAL,
1564
- :DECIMAL_NEGATIVE,
1565
- :DECIMAL_POSITIVE,
1566
1277
  :DOUBLE,
1567
- :DOUBLE_NEGATIVE,
1568
- :DOUBLE_POSITIVE,
1569
1278
  :INTEGER,
1570
- :INTEGER_NEGATIVE,
1571
- :INTEGER_POSITIVE,
1572
- :IRI_REF,
1279
+ :IRIREF,
1573
1280
  :PNAME_LN,
1574
1281
  :PNAME_NS,
1575
- :STRING_LITERAL1,
1576
- :STRING_LITERAL2,
1577
- :STRING_LITERAL_LONG1,
1578
- :STRING_LITERAL_LONG2],
1282
+ :STRING_LITERAL_LONG_QUOTE,
1283
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1284
+ :STRING_LITERAL_QUOTE,
1285
+ :STRING_LITERAL_SINGLE_QUOTE],
1579
1286
  :ANON => [
1580
1287
  "(",
1581
1288
  ",",
@@ -1586,21 +1293,15 @@ module RDF::TriG::Meta
1586
1293
  :ANON,
1587
1294
  :BLANK_NODE_LABEL,
1588
1295
  :DECIMAL,
1589
- :DECIMAL_NEGATIVE,
1590
- :DECIMAL_POSITIVE,
1591
1296
  :DOUBLE,
1592
- :DOUBLE_NEGATIVE,
1593
- :DOUBLE_POSITIVE,
1594
1297
  :INTEGER,
1595
- :INTEGER_NEGATIVE,
1596
- :INTEGER_POSITIVE,
1597
- :IRI_REF,
1298
+ :IRIREF,
1598
1299
  :PNAME_LN,
1599
1300
  :PNAME_NS,
1600
- :STRING_LITERAL1,
1601
- :STRING_LITERAL2,
1602
- :STRING_LITERAL_LONG1,
1603
- :STRING_LITERAL_LONG2],
1301
+ :STRING_LITERAL_LONG_QUOTE,
1302
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1303
+ :STRING_LITERAL_QUOTE,
1304
+ :STRING_LITERAL_SINGLE_QUOTE],
1604
1305
  :BLANK_NODE_LABEL => [
1605
1306
  "(",
1606
1307
  ",",
@@ -1611,21 +1312,15 @@ module RDF::TriG::Meta
1611
1312
  :ANON,
1612
1313
  :BLANK_NODE_LABEL,
1613
1314
  :DECIMAL,
1614
- :DECIMAL_NEGATIVE,
1615
- :DECIMAL_POSITIVE,
1616
1315
  :DOUBLE,
1617
- :DOUBLE_NEGATIVE,
1618
- :DOUBLE_POSITIVE,
1619
1316
  :INTEGER,
1620
- :INTEGER_NEGATIVE,
1621
- :INTEGER_POSITIVE,
1622
- :IRI_REF,
1317
+ :IRIREF,
1623
1318
  :PNAME_LN,
1624
1319
  :PNAME_NS,
1625
- :STRING_LITERAL1,
1626
- :STRING_LITERAL2,
1627
- :STRING_LITERAL_LONG1,
1628
- :STRING_LITERAL_LONG2],
1320
+ :STRING_LITERAL_LONG_QUOTE,
1321
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1322
+ :STRING_LITERAL_QUOTE,
1323
+ :STRING_LITERAL_SINGLE_QUOTE],
1629
1324
  :BlankNode => [
1630
1325
  "(",
1631
1326
  ",",
@@ -1636,21 +1331,15 @@ module RDF::TriG::Meta
1636
1331
  :ANON,
1637
1332
  :BLANK_NODE_LABEL,
1638
1333
  :DECIMAL,
1639
- :DECIMAL_NEGATIVE,
1640
- :DECIMAL_POSITIVE,
1641
1334
  :DOUBLE,
1642
- :DOUBLE_NEGATIVE,
1643
- :DOUBLE_POSITIVE,
1644
1335
  :INTEGER,
1645
- :INTEGER_NEGATIVE,
1646
- :INTEGER_POSITIVE,
1647
- :IRI_REF,
1336
+ :IRIREF,
1648
1337
  :PNAME_LN,
1649
1338
  :PNAME_NS,
1650
- :STRING_LITERAL1,
1651
- :STRING_LITERAL2,
1652
- :STRING_LITERAL_LONG1,
1653
- :STRING_LITERAL_LONG2],
1339
+ :STRING_LITERAL_LONG_QUOTE,
1340
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1341
+ :STRING_LITERAL_QUOTE,
1342
+ :STRING_LITERAL_SINGLE_QUOTE],
1654
1343
  :BooleanLiteral => [
1655
1344
  "(",
1656
1345
  ",",
@@ -1660,21 +1349,15 @@ module RDF::TriG::Meta
1660
1349
  :ANON,
1661
1350
  :BLANK_NODE_LABEL,
1662
1351
  :DECIMAL,
1663
- :DECIMAL_NEGATIVE,
1664
- :DECIMAL_POSITIVE,
1665
1352
  :DOUBLE,
1666
- :DOUBLE_NEGATIVE,
1667
- :DOUBLE_POSITIVE,
1668
1353
  :INTEGER,
1669
- :INTEGER_NEGATIVE,
1670
- :INTEGER_POSITIVE,
1671
- :IRI_REF,
1354
+ :IRIREF,
1672
1355
  :PNAME_LN,
1673
1356
  :PNAME_NS,
1674
- :STRING_LITERAL1,
1675
- :STRING_LITERAL2,
1676
- :STRING_LITERAL_LONG1,
1677
- :STRING_LITERAL_LONG2],
1357
+ :STRING_LITERAL_LONG_QUOTE,
1358
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1359
+ :STRING_LITERAL_QUOTE,
1360
+ :STRING_LITERAL_SINGLE_QUOTE],
1678
1361
  :DECIMAL => [
1679
1362
  "(",
1680
1363
  ",",
@@ -1684,69 +1367,15 @@ module RDF::TriG::Meta
1684
1367
  :ANON,
1685
1368
  :BLANK_NODE_LABEL,
1686
1369
  :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
1370
  :DOUBLE,
1738
- :DOUBLE_NEGATIVE,
1739
- :DOUBLE_POSITIVE,
1740
1371
  :INTEGER,
1741
- :INTEGER_NEGATIVE,
1742
- :INTEGER_POSITIVE,
1743
- :IRI_REF,
1372
+ :IRIREF,
1744
1373
  :PNAME_LN,
1745
1374
  :PNAME_NS,
1746
- :STRING_LITERAL1,
1747
- :STRING_LITERAL2,
1748
- :STRING_LITERAL_LONG1,
1749
- :STRING_LITERAL_LONG2],
1375
+ :STRING_LITERAL_LONG_QUOTE,
1376
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1377
+ :STRING_LITERAL_QUOTE,
1378
+ :STRING_LITERAL_SINGLE_QUOTE],
1750
1379
  :DOUBLE => [
1751
1380
  "(",
1752
1381
  ",",
@@ -1756,69 +1385,15 @@ module RDF::TriG::Meta
1756
1385
  :ANON,
1757
1386
  :BLANK_NODE_LABEL,
1758
1387
  :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
1388
  :DOUBLE,
1810
- :DOUBLE_NEGATIVE,
1811
- :DOUBLE_POSITIVE,
1812
1389
  :INTEGER,
1813
- :INTEGER_NEGATIVE,
1814
- :INTEGER_POSITIVE,
1815
- :IRI_REF,
1390
+ :IRIREF,
1816
1391
  :PNAME_LN,
1817
1392
  :PNAME_NS,
1818
- :STRING_LITERAL1,
1819
- :STRING_LITERAL2,
1820
- :STRING_LITERAL_LONG1,
1821
- :STRING_LITERAL_LONG2],
1393
+ :STRING_LITERAL_LONG_QUOTE,
1394
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1395
+ :STRING_LITERAL_QUOTE,
1396
+ :STRING_LITERAL_SINGLE_QUOTE],
1822
1397
  :INTEGER => [
1823
1398
  "(",
1824
1399
  ",",
@@ -1828,119 +1403,39 @@ module RDF::TriG::Meta
1828
1403
  :ANON,
1829
1404
  :BLANK_NODE_LABEL,
1830
1405
  :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
1406
  :DOUBLE,
1907
- :DOUBLE_NEGATIVE,
1908
- :DOUBLE_POSITIVE,
1909
1407
  :INTEGER,
1910
- :INTEGER_NEGATIVE,
1911
- :INTEGER_POSITIVE,
1912
- :IRI_REF,
1408
+ :IRIREF,
1913
1409
  :PNAME_LN,
1914
1410
  :PNAME_NS,
1915
- :STRING_LITERAL1,
1916
- :STRING_LITERAL2,
1917
- :STRING_LITERAL_LONG1,
1918
- :STRING_LITERAL_LONG2],
1919
- :IRIref => [
1411
+ :STRING_LITERAL_LONG_QUOTE,
1412
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1413
+ :STRING_LITERAL_QUOTE,
1414
+ :STRING_LITERAL_SINGLE_QUOTE],
1415
+ :IRIREF => [
1920
1416
  "(",
1921
1417
  ",",
1418
+ "@base",
1419
+ "@prefix",
1922
1420
  "[",
1923
1421
  "a",
1924
1422
  "false",
1925
1423
  "true",
1424
+ "{",
1926
1425
  :ANON,
1927
1426
  :BLANK_NODE_LABEL,
1928
1427
  :DECIMAL,
1929
- :DECIMAL_NEGATIVE,
1930
- :DECIMAL_POSITIVE,
1931
1428
  :DOUBLE,
1932
- :DOUBLE_NEGATIVE,
1933
- :DOUBLE_POSITIVE,
1934
1429
  :INTEGER,
1935
- :INTEGER_NEGATIVE,
1936
- :INTEGER_POSITIVE,
1937
- :IRI_REF,
1430
+ :IRIREF,
1938
1431
  :PNAME_LN,
1939
1432
  :PNAME_NS,
1940
- :STRING_LITERAL1,
1941
- :STRING_LITERAL2,
1942
- :STRING_LITERAL_LONG1,
1943
- :STRING_LITERAL_LONG2],
1433
+ :SPARQL_BASE,
1434
+ :SPARQL_PREFIX,
1435
+ :STRING_LITERAL_LONG_QUOTE,
1436
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1437
+ :STRING_LITERAL_QUOTE,
1438
+ :STRING_LITERAL_SINGLE_QUOTE],
1944
1439
  :LANGTAG => [
1945
1440
  "(",
1946
1441
  ",",
@@ -1950,21 +1445,15 @@ module RDF::TriG::Meta
1950
1445
  :ANON,
1951
1446
  :BLANK_NODE_LABEL,
1952
1447
  :DECIMAL,
1953
- :DECIMAL_NEGATIVE,
1954
- :DECIMAL_POSITIVE,
1955
1448
  :DOUBLE,
1956
- :DOUBLE_NEGATIVE,
1957
- :DOUBLE_POSITIVE,
1958
1449
  :INTEGER,
1959
- :INTEGER_NEGATIVE,
1960
- :INTEGER_POSITIVE,
1961
- :IRI_REF,
1450
+ :IRIREF,
1962
1451
  :PNAME_LN,
1963
1452
  :PNAME_NS,
1964
- :STRING_LITERAL1,
1965
- :STRING_LITERAL2,
1966
- :STRING_LITERAL_LONG1,
1967
- :STRING_LITERAL_LONG2],
1453
+ :STRING_LITERAL_LONG_QUOTE,
1454
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1455
+ :STRING_LITERAL_QUOTE,
1456
+ :STRING_LITERAL_SINGLE_QUOTE],
1968
1457
  :NumericLiteral => [
1969
1458
  "(",
1970
1459
  ",",
@@ -1974,93 +1463,15 @@ module RDF::TriG::Meta
1974
1463
  :ANON,
1975
1464
  :BLANK_NODE_LABEL,
1976
1465
  :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
1466
  :DOUBLE,
2052
- :DOUBLE_NEGATIVE,
2053
- :DOUBLE_POSITIVE,
2054
1467
  :INTEGER,
2055
- :INTEGER_NEGATIVE,
2056
- :INTEGER_POSITIVE,
2057
- :IRI_REF,
1468
+ :IRIREF,
2058
1469
  :PNAME_LN,
2059
1470
  :PNAME_NS,
2060
- :STRING_LITERAL1,
2061
- :STRING_LITERAL2,
2062
- :STRING_LITERAL_LONG1,
2063
- :STRING_LITERAL_LONG2],
1471
+ :STRING_LITERAL_LONG_QUOTE,
1472
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1473
+ :STRING_LITERAL_QUOTE,
1474
+ :STRING_LITERAL_SINGLE_QUOTE],
2064
1475
  :PNAME_LN => [
2065
1476
  "(",
2066
1477
  ",",
@@ -2071,21 +1482,15 @@ module RDF::TriG::Meta
2071
1482
  :ANON,
2072
1483
  :BLANK_NODE_LABEL,
2073
1484
  :DECIMAL,
2074
- :DECIMAL_NEGATIVE,
2075
- :DECIMAL_POSITIVE,
2076
1485
  :DOUBLE,
2077
- :DOUBLE_NEGATIVE,
2078
- :DOUBLE_POSITIVE,
2079
1486
  :INTEGER,
2080
- :INTEGER_NEGATIVE,
2081
- :INTEGER_POSITIVE,
2082
- :IRI_REF,
1487
+ :IRIREF,
2083
1488
  :PNAME_LN,
2084
1489
  :PNAME_NS,
2085
- :STRING_LITERAL1,
2086
- :STRING_LITERAL2,
2087
- :STRING_LITERAL_LONG1,
2088
- :STRING_LITERAL_LONG2],
1490
+ :STRING_LITERAL_LONG_QUOTE,
1491
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1492
+ :STRING_LITERAL_QUOTE,
1493
+ :STRING_LITERAL_SINGLE_QUOTE],
2089
1494
  :PNAME_NS => [
2090
1495
  "(",
2091
1496
  ",",
@@ -2096,21 +1501,15 @@ module RDF::TriG::Meta
2096
1501
  :ANON,
2097
1502
  :BLANK_NODE_LABEL,
2098
1503
  :DECIMAL,
2099
- :DECIMAL_NEGATIVE,
2100
- :DECIMAL_POSITIVE,
2101
1504
  :DOUBLE,
2102
- :DOUBLE_NEGATIVE,
2103
- :DOUBLE_POSITIVE,
2104
1505
  :INTEGER,
2105
- :INTEGER_NEGATIVE,
2106
- :INTEGER_POSITIVE,
2107
- :IRI_REF,
1506
+ :IRIREF,
2108
1507
  :PNAME_LN,
2109
1508
  :PNAME_NS,
2110
- :STRING_LITERAL1,
2111
- :STRING_LITERAL2,
2112
- :STRING_LITERAL_LONG1,
2113
- :STRING_LITERAL_LONG2],
1509
+ :STRING_LITERAL_LONG_QUOTE,
1510
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1511
+ :STRING_LITERAL_QUOTE,
1512
+ :STRING_LITERAL_SINGLE_QUOTE],
2114
1513
  :PrefixedName => [
2115
1514
  "(",
2116
1515
  ",",
@@ -2121,21 +1520,15 @@ module RDF::TriG::Meta
2121
1520
  :ANON,
2122
1521
  :BLANK_NODE_LABEL,
2123
1522
  :DECIMAL,
2124
- :DECIMAL_NEGATIVE,
2125
- :DECIMAL_POSITIVE,
2126
1523
  :DOUBLE,
2127
- :DOUBLE_NEGATIVE,
2128
- :DOUBLE_POSITIVE,
2129
1524
  :INTEGER,
2130
- :INTEGER_NEGATIVE,
2131
- :INTEGER_POSITIVE,
2132
- :IRI_REF,
1525
+ :IRIREF,
2133
1526
  :PNAME_LN,
2134
1527
  :PNAME_NS,
2135
- :STRING_LITERAL1,
2136
- :STRING_LITERAL2,
2137
- :STRING_LITERAL_LONG1,
2138
- :STRING_LITERAL_LONG2],
1528
+ :STRING_LITERAL_LONG_QUOTE,
1529
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1530
+ :STRING_LITERAL_QUOTE,
1531
+ :STRING_LITERAL_SINGLE_QUOTE],
2139
1532
  :RDFLiteral => [
2140
1533
  "(",
2141
1534
  ",",
@@ -2145,36 +1538,39 @@ module RDF::TriG::Meta
2145
1538
  :ANON,
2146
1539
  :BLANK_NODE_LABEL,
2147
1540
  :DECIMAL,
2148
- :DECIMAL_NEGATIVE,
2149
- :DECIMAL_POSITIVE,
2150
1541
  :DOUBLE,
2151
- :DOUBLE_NEGATIVE,
2152
- :DOUBLE_POSITIVE,
2153
1542
  :INTEGER,
2154
- :INTEGER_NEGATIVE,
2155
- :INTEGER_POSITIVE,
2156
- :IRI_REF,
1543
+ :IRIREF,
2157
1544
  :PNAME_LN,
2158
1545
  :PNAME_NS,
2159
- :STRING_LITERAL1,
2160
- :STRING_LITERAL2,
2161
- :STRING_LITERAL_LONG1,
2162
- :STRING_LITERAL_LONG2],
2163
- :STRING_LITERAL1 => [
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 => [
2164
1551
  "^^",
2165
1552
  :LANGTAG],
2166
- :STRING_LITERAL2 => [
1553
+ :STRING_LITERAL_LONG_SINGLE_QUOTE => [
2167
1554
  "^^",
2168
1555
  :LANGTAG],
2169
- :STRING_LITERAL_LONG1 => [
1556
+ :STRING_LITERAL_QUOTE => [
2170
1557
  "^^",
2171
1558
  :LANGTAG],
2172
- :STRING_LITERAL_LONG2 => [
1559
+ :STRING_LITERAL_SINGLE_QUOTE => [
2173
1560
  "^^",
2174
1561
  :LANGTAG],
2175
1562
  :String => [
2176
1563
  "^^",
2177
1564
  :LANGTAG],
1565
+ :base => [
1566
+ "@base",
1567
+ "@prefix",
1568
+ "{",
1569
+ :IRIREF,
1570
+ :PNAME_LN,
1571
+ :PNAME_NS,
1572
+ :SPARQL_BASE,
1573
+ :SPARQL_PREFIX],
2178
1574
  :blank => [
2179
1575
  "(",
2180
1576
  ",",
@@ -2185,21 +1581,15 @@ module RDF::TriG::Meta
2185
1581
  :ANON,
2186
1582
  :BLANK_NODE_LABEL,
2187
1583
  :DECIMAL,
2188
- :DECIMAL_NEGATIVE,
2189
- :DECIMAL_POSITIVE,
2190
1584
  :DOUBLE,
2191
- :DOUBLE_NEGATIVE,
2192
- :DOUBLE_POSITIVE,
2193
1585
  :INTEGER,
2194
- :INTEGER_NEGATIVE,
2195
- :INTEGER_POSITIVE,
2196
- :IRI_REF,
1586
+ :IRIREF,
2197
1587
  :PNAME_LN,
2198
1588
  :PNAME_NS,
2199
- :STRING_LITERAL1,
2200
- :STRING_LITERAL2,
2201
- :STRING_LITERAL_LONG1,
2202
- :STRING_LITERAL_LONG2],
1589
+ :STRING_LITERAL_LONG_QUOTE,
1590
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1591
+ :STRING_LITERAL_QUOTE,
1592
+ :STRING_LITERAL_SINGLE_QUOTE],
2203
1593
  :blankNodePropertyList => [
2204
1594
  "(",
2205
1595
  ",",
@@ -2210,21 +1600,15 @@ module RDF::TriG::Meta
2210
1600
  :ANON,
2211
1601
  :BLANK_NODE_LABEL,
2212
1602
  :DECIMAL,
2213
- :DECIMAL_NEGATIVE,
2214
- :DECIMAL_POSITIVE,
2215
1603
  :DOUBLE,
2216
- :DOUBLE_NEGATIVE,
2217
- :DOUBLE_POSITIVE,
2218
1604
  :INTEGER,
2219
- :INTEGER_NEGATIVE,
2220
- :INTEGER_POSITIVE,
2221
- :IRI_REF,
1605
+ :IRIREF,
2222
1606
  :PNAME_LN,
2223
1607
  :PNAME_NS,
2224
- :STRING_LITERAL1,
2225
- :STRING_LITERAL2,
2226
- :STRING_LITERAL_LONG1,
2227
- :STRING_LITERAL_LONG2],
1608
+ :STRING_LITERAL_LONG_QUOTE,
1609
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1610
+ :STRING_LITERAL_QUOTE,
1611
+ :STRING_LITERAL_SINGLE_QUOTE],
2228
1612
  :collection => [
2229
1613
  "(",
2230
1614
  ",",
@@ -2235,60 +1619,62 @@ module RDF::TriG::Meta
2235
1619
  :ANON,
2236
1620
  :BLANK_NODE_LABEL,
2237
1621
  :DECIMAL,
2238
- :DECIMAL_NEGATIVE,
2239
- :DECIMAL_POSITIVE,
2240
1622
  :DOUBLE,
2241
- :DOUBLE_NEGATIVE,
2242
- :DOUBLE_POSITIVE,
2243
1623
  :INTEGER,
2244
- :INTEGER_NEGATIVE,
2245
- :INTEGER_POSITIVE,
2246
- :IRI_REF,
1624
+ :IRIREF,
1625
+ :PNAME_LN,
1626
+ :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",
1633
+ "@prefix",
1634
+ "{",
1635
+ :IRIREF,
2247
1636
  :PNAME_LN,
2248
1637
  :PNAME_NS,
2249
- :STRING_LITERAL1,
2250
- :STRING_LITERAL2,
2251
- :STRING_LITERAL_LONG1,
2252
- :STRING_LITERAL_LONG2],
1638
+ :SPARQL_BASE,
1639
+ :SPARQL_PREFIX],
2253
1640
  :graph => [
2254
1641
  "@base",
2255
1642
  "@prefix",
2256
1643
  "{",
2257
- :IRI_REF,
1644
+ :IRIREF,
2258
1645
  :PNAME_LN,
2259
- :PNAME_NS],
1646
+ :PNAME_NS,
1647
+ :SPARQL_BASE,
1648
+ :SPARQL_PREFIX],
2260
1649
  :graph_statement => [
2261
1650
  "@base",
2262
1651
  "@prefix",
2263
1652
  "{",
2264
- :IRI_REF,
1653
+ :IRIREF,
2265
1654
  :PNAME_LN,
2266
- :PNAME_NS],
2267
- :literal => [
1655
+ :PNAME_NS,
1656
+ :SPARQL_BASE,
1657
+ :SPARQL_PREFIX],
1658
+ :iri => [
2268
1659
  "(",
2269
1660
  ",",
2270
1661
  "[",
1662
+ "a",
2271
1663
  "false",
2272
1664
  "true",
2273
1665
  :ANON,
2274
1666
  :BLANK_NODE_LABEL,
2275
1667
  :DECIMAL,
2276
- :DECIMAL_NEGATIVE,
2277
- :DECIMAL_POSITIVE,
2278
1668
  :DOUBLE,
2279
- :DOUBLE_NEGATIVE,
2280
- :DOUBLE_POSITIVE,
2281
1669
  :INTEGER,
2282
- :INTEGER_NEGATIVE,
2283
- :INTEGER_POSITIVE,
2284
- :IRI_REF,
1670
+ :IRIREF,
2285
1671
  :PNAME_LN,
2286
1672
  :PNAME_NS,
2287
- :STRING_LITERAL1,
2288
- :STRING_LITERAL2,
2289
- :STRING_LITERAL_LONG1,
2290
- :STRING_LITERAL_LONG2],
2291
- :object => [
1673
+ :STRING_LITERAL_LONG_QUOTE,
1674
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1675
+ :STRING_LITERAL_QUOTE,
1676
+ :STRING_LITERAL_SINGLE_QUOTE],
1677
+ :literal => [
2292
1678
  "(",
2293
1679
  ",",
2294
1680
  "[",
@@ -2297,31 +1683,35 @@ module RDF::TriG::Meta
2297
1683
  :ANON,
2298
1684
  :BLANK_NODE_LABEL,
2299
1685
  :DECIMAL,
2300
- :DECIMAL_NEGATIVE,
2301
- :DECIMAL_POSITIVE,
2302
1686
  :DOUBLE,
2303
- :DOUBLE_NEGATIVE,
2304
- :DOUBLE_POSITIVE,
2305
1687
  :INTEGER,
2306
- :INTEGER_NEGATIVE,
2307
- :INTEGER_POSITIVE,
2308
- :IRI_REF,
1688
+ :IRIREF,
2309
1689
  :PNAME_LN,
2310
1690
  :PNAME_NS,
2311
- :STRING_LITERAL1,
2312
- :STRING_LITERAL2,
2313
- :STRING_LITERAL_LONG1,
2314
- :STRING_LITERAL_LONG2],
2315
- :objectList => [
1691
+ :STRING_LITERAL_LONG_QUOTE,
1692
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1693
+ :STRING_LITERAL_QUOTE,
1694
+ :STRING_LITERAL_SINGLE_QUOTE],
1695
+ :object => [
2316
1696
  "(",
2317
- ".",
2318
- ";",
1697
+ ",",
2319
1698
  "[",
1699
+ "false",
1700
+ "true",
2320
1701
  :ANON,
2321
1702
  :BLANK_NODE_LABEL,
2322
- :IRI_REF,
1703
+ :DECIMAL,
1704
+ :DOUBLE,
1705
+ :INTEGER,
1706
+ :IRIREF,
2323
1707
  :PNAME_LN,
2324
- :PNAME_NS],
1708
+ :PNAME_NS,
1709
+ :STRING_LITERAL_LONG_QUOTE,
1710
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1711
+ :STRING_LITERAL_QUOTE,
1712
+ :STRING_LITERAL_SINGLE_QUOTE],
1713
+ :objectList => [
1714
+ ";"],
2325
1715
  :predicate => [
2326
1716
  "(",
2327
1717
  "[",
@@ -2330,45 +1720,49 @@ module RDF::TriG::Meta
2330
1720
  :ANON,
2331
1721
  :BLANK_NODE_LABEL,
2332
1722
  :DECIMAL,
2333
- :DECIMAL_NEGATIVE,
2334
- :DECIMAL_POSITIVE,
2335
1723
  :DOUBLE,
2336
- :DOUBLE_NEGATIVE,
2337
- :DOUBLE_POSITIVE,
2338
1724
  :INTEGER,
2339
- :INTEGER_NEGATIVE,
2340
- :INTEGER_POSITIVE,
2341
- :IRI_REF,
1725
+ :IRIREF,
2342
1726
  :PNAME_LN,
2343
1727
  :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,
1728
+ :STRING_LITERAL_LONG_QUOTE,
1729
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1730
+ :STRING_LITERAL_QUOTE,
1731
+ :STRING_LITERAL_SINGLE_QUOTE],
1732
+ :prefixID => [
1733
+ "@base",
1734
+ "@prefix",
1735
+ "{",
1736
+ :IRIREF,
2355
1737
  :PNAME_LN,
2356
- :PNAME_NS],
1738
+ :PNAME_NS,
1739
+ :SPARQL_BASE,
1740
+ :SPARQL_PREFIX],
1741
+ :sparqlBase => [
1742
+ "@base",
1743
+ "@prefix",
1744
+ "{",
1745
+ :IRIREF,
1746
+ :PNAME_LN,
1747
+ :PNAME_NS,
1748
+ :SPARQL_BASE,
1749
+ :SPARQL_PREFIX],
1750
+ :sparqlPrefix => [
1751
+ "@base",
1752
+ "@prefix",
1753
+ "{",
1754
+ :IRIREF,
1755
+ :PNAME_LN,
1756
+ :PNAME_NS,
1757
+ :SPARQL_BASE,
1758
+ :SPARQL_PREFIX],
2357
1759
  :subject => [
2358
1760
  "a",
2359
- :IRI_REF,
1761
+ :IRIREF,
2360
1762
  :PNAME_LN,
2361
1763
  :PNAME_NS],
2362
1764
  :trigDoc => [
2363
1765
  :"ebnf:eof"],
2364
- :triples => [
2365
- "(",
2366
- "[",
2367
- :ANON,
2368
- :BLANK_NODE_LABEL,
2369
- :IRI_REF,
2370
- :PNAME_LN,
2371
- :PNAME_NS],
2372
1766
  :verb => [
2373
1767
  "(",
2374
1768
  "[",
@@ -2377,21 +1771,15 @@ module RDF::TriG::Meta
2377
1771
  :ANON,
2378
1772
  :BLANK_NODE_LABEL,
2379
1773
  :DECIMAL,
2380
- :DECIMAL_NEGATIVE,
2381
- :DECIMAL_POSITIVE,
2382
1774
  :DOUBLE,
2383
- :DOUBLE_NEGATIVE,
2384
- :DOUBLE_POSITIVE,
2385
1775
  :INTEGER,
2386
- :INTEGER_NEGATIVE,
2387
- :INTEGER_POSITIVE,
2388
- :IRI_REF,
1776
+ :IRIREF,
2389
1777
  :PNAME_LN,
2390
1778
  :PNAME_NS,
2391
- :STRING_LITERAL1,
2392
- :STRING_LITERAL2,
2393
- :STRING_LITERAL_LONG1,
2394
- :STRING_LITERAL_LONG2],
1779
+ :STRING_LITERAL_LONG_QUOTE,
1780
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1781
+ :STRING_LITERAL_QUOTE,
1782
+ :STRING_LITERAL_SINGLE_QUOTE],
2395
1783
  "true" => [
2396
1784
  "(",
2397
1785
  ",",
@@ -2401,27 +1789,23 @@ module RDF::TriG::Meta
2401
1789
  :ANON,
2402
1790
  :BLANK_NODE_LABEL,
2403
1791
  :DECIMAL,
2404
- :DECIMAL_NEGATIVE,
2405
- :DECIMAL_POSITIVE,
2406
1792
  :DOUBLE,
2407
- :DOUBLE_NEGATIVE,
2408
- :DOUBLE_POSITIVE,
2409
1793
  :INTEGER,
2410
- :INTEGER_NEGATIVE,
2411
- :INTEGER_POSITIVE,
2412
- :IRI_REF,
1794
+ :IRIREF,
2413
1795
  :PNAME_LN,
2414
1796
  :PNAME_NS,
2415
- :STRING_LITERAL1,
2416
- :STRING_LITERAL2,
2417
- :STRING_LITERAL_LONG1,
2418
- :STRING_LITERAL_LONG2],
1797
+ :STRING_LITERAL_LONG_QUOTE,
1798
+ :STRING_LITERAL_LONG_SINGLE_QUOTE,
1799
+ :STRING_LITERAL_QUOTE,
1800
+ :STRING_LITERAL_SINGLE_QUOTE],
2419
1801
  "{" => [
2420
1802
  "@base",
2421
1803
  "@prefix",
2422
1804
  "{",
2423
- :IRI_REF,
1805
+ :IRIREF,
2424
1806
  :PNAME_LN,
2425
- :PNAME_NS],
1807
+ :PNAME_NS,
1808
+ :SPARQL_BASE,
1809
+ :SPARQL_PREFIX],
2426
1810
  }.freeze
2427
1811
  end