ebnf 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +160 -185
- data/UNLICENSE +1 -1
- data/VERSION +1 -1
- data/bin/ebnf +6 -3
- data/etc/doap.ttl +13 -12
- data/etc/ebnf.ebnf +13 -19
- data/etc/ebnf.html +205 -239
- data/etc/{ebnf.rb → ebnf.ll1.rb} +3 -4
- data/etc/ebnf.ll1.sxp +179 -183
- data/etc/ebnf.peg.rb +98 -0
- data/etc/ebnf.peg.sxp +93 -0
- data/etc/ebnf.sxp +37 -41
- data/etc/sparql.html +1603 -1751
- data/etc/sparql.ll1.sxp +7372 -7372
- data/etc/sparql.peg.rb +532 -0
- data/etc/sparql.peg.sxp +597 -0
- data/etc/sparql.sxp +362 -362
- data/etc/turtle.html +465 -517
- data/etc/{turtle.rb → turtle.ll1.rb} +3 -4
- data/etc/turtle.ll1.sxp +425 -425
- data/etc/turtle.peg.rb +182 -0
- data/etc/turtle.peg.sxp +199 -0
- data/etc/turtle.sxp +101 -101
- data/lib/ebnf.rb +3 -1
- data/lib/ebnf/base.rb +30 -29
- data/lib/ebnf/bnf.rb +1 -26
- data/lib/ebnf/ll1.rb +132 -1
- data/lib/ebnf/ll1/lexer.rb +20 -22
- data/lib/ebnf/ll1/parser.rb +86 -61
- data/lib/ebnf/ll1/scanner.rb +83 -50
- data/lib/ebnf/peg.rb +39 -0
- data/lib/ebnf/peg/parser.rb +535 -0
- data/lib/ebnf/peg/rule.rb +222 -0
- data/lib/ebnf/rule.rb +118 -55
- data/lib/ebnf/terminals.rb +18 -0
- data/lib/ebnf/writer.rb +3 -2
- metadata +29 -6
- data/etc/sparql.rb +0 -45773
data/etc/turtle.html
CHANGED
@@ -1,519 +1,467 @@
|
|
1
1
|
<table class='grammar'>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
<a href="#grammar-production-PN_CHARS_BASE">PN_CHARS_BASE</a>
|
468
|
-
(<a href="#grammar-production-PN_CHARS">PN_CHARS</a> <code>|</code> "<code class="grammar-literal">.</code>")<code>*</code> <a href="#grammar-production-PN_CHARS">PN_CHARS</a><code>?</code>
|
469
|
-
</td>
|
470
|
-
</tr>
|
471
|
-
<tr id='grammar-production-PN_LOCAL'>
|
472
|
-
<td>[168s]</td>
|
473
|
-
<td><code>PN_LOCAL</code></td>
|
474
|
-
<td>::=</td>
|
475
|
-
<td>
|
476
|
-
<code>(</code> <a href="#grammar-production-PN_CHARS_U">PN_CHARS_U</a> <code>|</code> "<code class="grammar-literal">:</code>" <code>|</code> <code>[</code> <code class="grammar-literal">0-9</code><code>]</code> <code>|</code> <a href="#grammar-production-PLX">PLX</a><code>)</code>
|
477
|
-
(<a href="#grammar-production-PN_CHARS">PN_CHARS</a> <code>|</code> "<code class="grammar-literal">.</code>" <code>|</code> "<code class="grammar-literal">:</code>" <code>|</code> <a href="#grammar-production-PLX">PLX</a>)<code>*</code> <code>(</code> <a href="#grammar-production-PN_CHARS">PN_CHARS</a> <code>|</code> "<code class="grammar-literal">:</code>" <code>|</code> <a href="#grammar-production-PLX">PLX</a><code>)</code> <code>?</code>
|
478
|
-
</td>
|
479
|
-
</tr>
|
480
|
-
<tr id='grammar-production-PLX'>
|
481
|
-
<td>[169s]</td>
|
482
|
-
<td><code>PLX</code></td>
|
483
|
-
<td>::=</td>
|
484
|
-
<td>
|
485
|
-
<a href="#grammar-production-PERCENT">PERCENT</a>
|
486
|
-
<code>|</code> <a href="#grammar-production-PN_LOCAL_ESC">PN_LOCAL_ESC</a>
|
487
|
-
</td>
|
488
|
-
</tr>
|
489
|
-
<tr id='grammar-production-PERCENT'>
|
490
|
-
<td>[170s]</td>
|
491
|
-
<td><code>PERCENT</code></td>
|
492
|
-
<td>::=</td>
|
493
|
-
<td>
|
494
|
-
"<code class="grammar-literal">%</code>"
|
495
|
-
<a href="#grammar-production-HEX">HEX</a>
|
496
|
-
<a href="#grammar-production-HEX">HEX</a>
|
497
|
-
</td>
|
498
|
-
</tr>
|
499
|
-
<tr id='grammar-production-HEX'>
|
500
|
-
<td>[171s]</td>
|
501
|
-
<td><code>HEX</code></td>
|
502
|
-
<td>::=</td>
|
503
|
-
<td>
|
504
|
-
<code>[</code> <code class="grammar-literal">0-9</code><code>]</code>
|
505
|
-
<code>|</code> <code>[</code> <code class="grammar-literal">A-F</code><code>]</code>
|
506
|
-
<code>|</code> <code>[</code> <code class="grammar-literal">a-f</code><code>]</code>
|
507
|
-
</td>
|
508
|
-
</tr>
|
509
|
-
<tr id='grammar-production-PN_LOCAL_ESC'>
|
510
|
-
<td>[172s]</td>
|
511
|
-
<td><code>PN_LOCAL_ESC</code></td>
|
512
|
-
<td>::=</td>
|
513
|
-
<td>
|
514
|
-
"<code class="grammar-literal">\</code>"
|
515
|
-
<code>(</code> "<code class="grammar-literal">_</code>" <code>|</code> "<code class="grammar-literal">~</code>" <code>|</code> "<code class="grammar-literal">.</code>" <code>|</code> "<code class="grammar-literal">-</code>" <code>|</code> <code class="grammar-char-escape">#x21</code> <code>|</code> "<code class="grammar-literal">$</code>" <code>|</code> "<code class="grammar-literal">&</code>" <code>|</code> "<code class="grammar-literal">'</code>" <code>|</code> "<code class="grammar-literal">(</code>" <code>|</code> "<code class="grammar-literal">)</code>" <code>|</code> "<code class="grammar-literal">*</code>" <code>|</code> "<code class="grammar-literal">+</code>" <code>|</code> "<code class="grammar-literal">,</code>" <code>|</code> "<code class="grammar-literal">;</code>" <code>|</code> "<code class="grammar-literal">=</code>" <code>|</code> "<code class="grammar-literal">/</code>" <code>|</code> "<code class="grammar-literal">?</code>" <code>|</code> "<code class="grammar-literal">#</code>" <code>|</code> "<code class="grammar-literal">@</code>" <code>|</code> "<code class="grammar-literal">%</code>"<code>)</code>
|
516
|
-
</td>
|
517
|
-
</tr>
|
518
|
-
</tbody>
|
2
|
+
<tbody id='grammar-productions'>
|
3
|
+
<tr id='grammar-production-turtleDoc'>
|
4
|
+
<td>[1]</td>
|
5
|
+
<td><code>turtleDoc</code></td>
|
6
|
+
<td>::=</td>
|
7
|
+
<td>
|
8
|
+
statement*
|
9
|
+
</td>
|
10
|
+
</tr>
|
11
|
+
<tr id='grammar-production-statement'>
|
12
|
+
<td>[2]</td>
|
13
|
+
<td><code>statement</code></td>
|
14
|
+
<td>::=</td>
|
15
|
+
<td>
|
16
|
+
directive | triples "."
|
17
|
+
</td>
|
18
|
+
</tr>
|
19
|
+
<tr id='grammar-production-directive'>
|
20
|
+
<td>[3]</td>
|
21
|
+
<td><code>directive</code></td>
|
22
|
+
<td>::=</td>
|
23
|
+
<td>
|
24
|
+
prefixID
|
25
|
+
| base
|
26
|
+
| sparqlPrefix
|
27
|
+
| sparqlBase
|
28
|
+
</td>
|
29
|
+
</tr>
|
30
|
+
<tr id='grammar-production-prefixID'>
|
31
|
+
<td>[4]</td>
|
32
|
+
<td><code>prefixID</code></td>
|
33
|
+
<td>::=</td>
|
34
|
+
<td>
|
35
|
+
"@prefix" PNAME_NS IRIREF "."
|
36
|
+
</td>
|
37
|
+
</tr>
|
38
|
+
<tr id='grammar-production-base'>
|
39
|
+
<td>[5]</td>
|
40
|
+
<td><code>base</code></td>
|
41
|
+
<td>::=</td>
|
42
|
+
<td>
|
43
|
+
"@base" IRIREF "."
|
44
|
+
</td>
|
45
|
+
</tr>
|
46
|
+
<tr id='grammar-production-sparqlPrefix'>
|
47
|
+
<td>[28s]</td>
|
48
|
+
<td><code>sparqlPrefix</code></td>
|
49
|
+
<td>::=</td>
|
50
|
+
<td>
|
51
|
+
SPARQL_PREFIX PNAME_NS IRIREF
|
52
|
+
</td>
|
53
|
+
</tr>
|
54
|
+
<tr id='grammar-production-sparqlBase'>
|
55
|
+
<td>[29s]</td>
|
56
|
+
<td><code>sparqlBase</code></td>
|
57
|
+
<td>::=</td>
|
58
|
+
<td>
|
59
|
+
SPARQL_BASE IRIREF
|
60
|
+
</td>
|
61
|
+
</tr>
|
62
|
+
<tr id='grammar-production-triples'>
|
63
|
+
<td>[6]</td>
|
64
|
+
<td><code>triples</code></td>
|
65
|
+
<td>::=</td>
|
66
|
+
<td>
|
67
|
+
subject predicateObjectList
|
68
|
+
| blankNodePropertyList predicateObjectList?
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
<tr id='grammar-production-predicateObjectList'>
|
72
|
+
<td>[7]</td>
|
73
|
+
<td><code>predicateObjectList</code></td>
|
74
|
+
<td>::=</td>
|
75
|
+
<td>
|
76
|
+
verb
|
77
|
+
objectList
|
78
|
+
(";" (verb objectList)?)*
|
79
|
+
</td>
|
80
|
+
</tr>
|
81
|
+
<tr id='grammar-production-objectList'>
|
82
|
+
<td>[8]</td>
|
83
|
+
<td><code>objectList</code></td>
|
84
|
+
<td>::=</td>
|
85
|
+
<td>
|
86
|
+
object ("," object)*
|
87
|
+
</td>
|
88
|
+
</tr>
|
89
|
+
<tr id='grammar-production-verb'>
|
90
|
+
<td>[9]</td>
|
91
|
+
<td><code>verb</code></td>
|
92
|
+
<td>::=</td>
|
93
|
+
<td>
|
94
|
+
predicate | "a"
|
95
|
+
</td>
|
96
|
+
</tr>
|
97
|
+
<tr id='grammar-production-subject'>
|
98
|
+
<td>[10]</td>
|
99
|
+
<td><code>subject</code></td>
|
100
|
+
<td>::=</td>
|
101
|
+
<td>
|
102
|
+
iri | BlankNode | collection
|
103
|
+
</td>
|
104
|
+
</tr>
|
105
|
+
<tr id='grammar-production-predicate'>
|
106
|
+
<td>[11]</td>
|
107
|
+
<td><code>predicate</code></td>
|
108
|
+
<td>::=</td>
|
109
|
+
<td>
|
110
|
+
iri
|
111
|
+
</td>
|
112
|
+
</tr>
|
113
|
+
<tr id='grammar-production-object'>
|
114
|
+
<td>[12]</td>
|
115
|
+
<td><code>object</code></td>
|
116
|
+
<td>::=</td>
|
117
|
+
<td>
|
118
|
+
iri
|
119
|
+
| BlankNode
|
120
|
+
| collection
|
121
|
+
| blankNodePropertyList
|
122
|
+
| literal
|
123
|
+
</td>
|
124
|
+
</tr>
|
125
|
+
<tr id='grammar-production-literal'>
|
126
|
+
<td>[13]</td>
|
127
|
+
<td><code>literal</code></td>
|
128
|
+
<td>::=</td>
|
129
|
+
<td>
|
130
|
+
RDFLiteral
|
131
|
+
| NumericLiteral
|
132
|
+
| BooleanLiteral
|
133
|
+
</td>
|
134
|
+
</tr>
|
135
|
+
<tr id='grammar-production-blankNodePropertyList'>
|
136
|
+
<td>[14]</td>
|
137
|
+
<td><code>blankNodePropertyList</code></td>
|
138
|
+
<td>::=</td>
|
139
|
+
<td>
|
140
|
+
"[" predicateObjectList "]"
|
141
|
+
</td>
|
142
|
+
</tr>
|
143
|
+
<tr id='grammar-production-collection'>
|
144
|
+
<td>[15]</td>
|
145
|
+
<td><code>collection</code></td>
|
146
|
+
<td>::=</td>
|
147
|
+
<td>
|
148
|
+
"(" object* ")"
|
149
|
+
</td>
|
150
|
+
</tr>
|
151
|
+
<tr id='grammar-production-NumericLiteral'>
|
152
|
+
<td>[16]</td>
|
153
|
+
<td><code>NumericLiteral</code></td>
|
154
|
+
<td>::=</td>
|
155
|
+
<td>
|
156
|
+
INTEGER | DECIMAL | DOUBLE
|
157
|
+
</td>
|
158
|
+
</tr>
|
159
|
+
<tr id='grammar-production-RDFLiteral'>
|
160
|
+
<td>[128s]</td>
|
161
|
+
<td><code>RDFLiteral</code></td>
|
162
|
+
<td>::=</td>
|
163
|
+
<td>
|
164
|
+
String (LANGTAG | "^^" iri)?
|
165
|
+
</td>
|
166
|
+
</tr>
|
167
|
+
<tr id='grammar-production-BooleanLiteral'>
|
168
|
+
<td>[133s]</td>
|
169
|
+
<td><code>BooleanLiteral</code></td>
|
170
|
+
<td>::=</td>
|
171
|
+
<td>
|
172
|
+
"true" | "false"
|
173
|
+
</td>
|
174
|
+
</tr>
|
175
|
+
<tr id='grammar-production-String'>
|
176
|
+
<td>[17]</td>
|
177
|
+
<td><code>String</code></td>
|
178
|
+
<td>::=</td>
|
179
|
+
<td>
|
180
|
+
STRING_LITERAL_QUOTE
|
181
|
+
| STRING_LITERAL_SINGLE_QUOTE
|
182
|
+
| STRING_LITERAL_LONG_SINGLE_QUOTE
|
183
|
+
| STRING_LITERAL_LONG_QUOTE
|
184
|
+
</td>
|
185
|
+
</tr>
|
186
|
+
<tr id='grammar-production-iri'>
|
187
|
+
<td>[135s]</td>
|
188
|
+
<td><code>iri</code></td>
|
189
|
+
<td>::=</td>
|
190
|
+
<td>
|
191
|
+
IRIREF | PrefixedName
|
192
|
+
</td>
|
193
|
+
</tr>
|
194
|
+
<tr id='grammar-production-PrefixedName'>
|
195
|
+
<td>[136s]</td>
|
196
|
+
<td><code>PrefixedName</code></td>
|
197
|
+
<td>::=</td>
|
198
|
+
<td>
|
199
|
+
PNAME_LN | PNAME_NS
|
200
|
+
</td>
|
201
|
+
</tr>
|
202
|
+
<tr id='grammar-production-BlankNode'>
|
203
|
+
<td>[137s]</td>
|
204
|
+
<td><code>BlankNode</code></td>
|
205
|
+
<td>::=</td>
|
206
|
+
<td>
|
207
|
+
BLANK_NODE_LABEL | ANON
|
208
|
+
</td>
|
209
|
+
</tr>
|
210
|
+
<tr id='grammar-production-IRIREF'>
|
211
|
+
<td>[18]</td>
|
212
|
+
<td><code>IRIREF</code></td>
|
213
|
+
<td>::=</td>
|
214
|
+
<td>
|
215
|
+
"<"
|
216
|
+
[^#x00-#x20<>"{}|^`]#x20|#x20UCHAR)*#x20'>']
|
217
|
+
</td>
|
218
|
+
</tr>
|
219
|
+
<tr id='grammar-production-PNAME_NS'>
|
220
|
+
<td>[139s]</td>
|
221
|
+
<td><code>PNAME_NS</code></td>
|
222
|
+
<td>::=</td>
|
223
|
+
<td>
|
224
|
+
PN_PREFIX? ":"
|
225
|
+
</td>
|
226
|
+
</tr>
|
227
|
+
<tr id='grammar-production-PNAME_LN'>
|
228
|
+
<td>[140s]</td>
|
229
|
+
<td><code>PNAME_LN</code></td>
|
230
|
+
<td>::=</td>
|
231
|
+
<td>
|
232
|
+
PNAME_NS PN_LOCAL
|
233
|
+
</td>
|
234
|
+
</tr>
|
235
|
+
<tr id='grammar-production-BLANK_NODE_LABEL'>
|
236
|
+
<td>[141s]</td>
|
237
|
+
<td><code>BLANK_NODE_LABEL</code></td>
|
238
|
+
<td>::=</td>
|
239
|
+
<td>
|
240
|
+
"_:"
|
241
|
+
(PN_CHARS_U | [0-9])
|
242
|
+
(PN_CHARS | ".")* PN_CHARS?
|
243
|
+
</td>
|
244
|
+
</tr>
|
245
|
+
<tr id='grammar-production-LANGTAG'>
|
246
|
+
<td>[144s]</td>
|
247
|
+
<td><code>LANGTAG</code></td>
|
248
|
+
<td>::=</td>
|
249
|
+
<td>
|
250
|
+
"@" ([a-zA-Z])+ ("-" ([a-zA-Z0-9])+)*
|
251
|
+
</td>
|
252
|
+
</tr>
|
253
|
+
<tr id='grammar-production-INTEGER'>
|
254
|
+
<td>[19]</td>
|
255
|
+
<td><code>INTEGER</code></td>
|
256
|
+
<td>::=</td>
|
257
|
+
<td>
|
258
|
+
([+-])? ([0-9])+
|
259
|
+
</td>
|
260
|
+
</tr>
|
261
|
+
<tr id='grammar-production-DECIMAL'>
|
262
|
+
<td>[20]</td>
|
263
|
+
<td><code>DECIMAL</code></td>
|
264
|
+
<td>::=</td>
|
265
|
+
<td>
|
266
|
+
([+-])? (([0-9])* "." ([0-9])+)
|
267
|
+
</td>
|
268
|
+
</tr>
|
269
|
+
<tr id='grammar-production-DOUBLE'>
|
270
|
+
<td>[21]</td>
|
271
|
+
<td><code>DOUBLE</code></td>
|
272
|
+
<td>::=</td>
|
273
|
+
<td>
|
274
|
+
([+-])?
|
275
|
+
(([0-9])+ "." ([0-9])* EXPONENT | "." ([0-9])+ EXPONENT | ([0-9])+ EXPONENT)
|
276
|
+
</td>
|
277
|
+
</tr>
|
278
|
+
<tr id='grammar-production-EXPONENT'>
|
279
|
+
<td>[154s]</td>
|
280
|
+
<td><code>EXPONENT</code></td>
|
281
|
+
<td>::=</td>
|
282
|
+
<td>
|
283
|
+
[eE] ([+-])? ([0-9])+
|
284
|
+
</td>
|
285
|
+
</tr>
|
286
|
+
<tr id='grammar-production-STRING_LITERAL_QUOTE'>
|
287
|
+
<td>[22]</td>
|
288
|
+
<td><code>STRING_LITERAL_QUOTE</code></td>
|
289
|
+
<td>::=</td>
|
290
|
+
<td>
|
291
|
+
'"'
|
292
|
+
([^#x22#x5C#xA#xD] | ECHAR | UCHAR)*
|
293
|
+
'"'
|
294
|
+
</td>
|
295
|
+
</tr>
|
296
|
+
<tr id='grammar-production-STRING_LITERAL_SINGLE_QUOTE'>
|
297
|
+
<td>[23]</td>
|
298
|
+
<td><code>STRING_LITERAL_SINGLE_QUOTE</code></td>
|
299
|
+
<td>::=</td>
|
300
|
+
<td>
|
301
|
+
"'"
|
302
|
+
([^#x27#x5C#xA#xD] | ECHAR | UCHAR)*
|
303
|
+
"'"
|
304
|
+
</td>
|
305
|
+
</tr>
|
306
|
+
<tr id='grammar-production-STRING_LITERAL_LONG_SINGLE_QUOTE'>
|
307
|
+
<td>[24]</td>
|
308
|
+
<td><code>STRING_LITERAL_LONG_SINGLE_QUOTE</code></td>
|
309
|
+
<td>::=</td>
|
310
|
+
<td>
|
311
|
+
"'''"
|
312
|
+
(("'" | "''")? [^']#x20|#x20ECHAR#x20|#x20UCHAR#x20)#x20)*#x20"'''"])
|
313
|
+
</td>
|
314
|
+
</tr>
|
315
|
+
<tr id='grammar-production-STRING_LITERAL_LONG_QUOTE'>
|
316
|
+
<td>[25]</td>
|
317
|
+
<td><code>STRING_LITERAL_LONG_QUOTE</code></td>
|
318
|
+
<td>::=</td>
|
319
|
+
<td>
|
320
|
+
'"""'
|
321
|
+
(('"' | '""')? [^"]#x20|#x20ECHAR#x20|#x20UCHAR#x20)#x20)*#x20'"""'])
|
322
|
+
</td>
|
323
|
+
</tr>
|
324
|
+
<tr id='grammar-production-UCHAR'>
|
325
|
+
<td>[26]</td>
|
326
|
+
<td><code>UCHAR</code></td>
|
327
|
+
<td>::=</td>
|
328
|
+
<td>
|
329
|
+
"u" HEX HEX HEX HEX
|
330
|
+
| "U" HEX HEX HEX HEX HEX HEX HEX HEX
|
331
|
+
</td>
|
332
|
+
</tr>
|
333
|
+
<tr id='grammar-production-ECHAR'>
|
334
|
+
<td>[159s]</td>
|
335
|
+
<td><code>ECHAR</code></td>
|
336
|
+
<td>::=</td>
|
337
|
+
<td>
|
338
|
+
"\" [tbnrf"']
|
339
|
+
</td>
|
340
|
+
</tr>
|
341
|
+
<tr id='grammar-production-SPARQL_PREFIX'>
|
342
|
+
<td>[28t]</td>
|
343
|
+
<td><code>SPARQL_PREFIX</code></td>
|
344
|
+
<td>::=</td>
|
345
|
+
<td>
|
346
|
+
[Pp] [Rr] [Ee] [Ff] [Ii] [Xx]
|
347
|
+
</td>
|
348
|
+
</tr>
|
349
|
+
<tr id='grammar-production-SPARQL_BASE'>
|
350
|
+
<td>[29t]</td>
|
351
|
+
<td><code>SPARQL_BASE</code></td>
|
352
|
+
<td>::=</td>
|
353
|
+
<td>
|
354
|
+
[Bb] [Aa] [Ss] [Ee]
|
355
|
+
</td>
|
356
|
+
</tr>
|
357
|
+
<tr id='grammar-production-WS'>
|
358
|
+
<td>[161s]</td>
|
359
|
+
<td><code>WS</code></td>
|
360
|
+
<td>::=</td>
|
361
|
+
<td>
|
362
|
+
#x20 | #x9 | #xD | #xA
|
363
|
+
</td>
|
364
|
+
</tr>
|
365
|
+
<tr id='grammar-production-ANON'>
|
366
|
+
<td>[162s]</td>
|
367
|
+
<td><code>ANON</code></td>
|
368
|
+
<td>::=</td>
|
369
|
+
<td>
|
370
|
+
"[" WS* "]"
|
371
|
+
</td>
|
372
|
+
</tr>
|
373
|
+
<tr id='grammar-production-PN_CHARS_BASE'>
|
374
|
+
<td>[163s]</td>
|
375
|
+
<td><code>PN_CHARS_BASE</code></td>
|
376
|
+
<td>::=</td>
|
377
|
+
<td>
|
378
|
+
[A-Z]
|
379
|
+
| [a-z]
|
380
|
+
| [#x00C0-#x00D6]
|
381
|
+
| [#x00D8-#x00F6]
|
382
|
+
| [#x00F8-#x02FF]
|
383
|
+
| [#x0370-#x037D]
|
384
|
+
| [#x037F-#x1FFF]
|
385
|
+
| [#x200C-#x200D]
|
386
|
+
| [#x2070-#x218F]
|
387
|
+
| [#x2C00-#x2FEF]
|
388
|
+
| [#x3001-#xD7FF]
|
389
|
+
| [#xF900-#xFDCF]
|
390
|
+
| [#xFDF0-#xFFFD]
|
391
|
+
| [#x10000-#xEFFFF]
|
392
|
+
</td>
|
393
|
+
</tr>
|
394
|
+
<tr id='grammar-production-PN_CHARS_U'>
|
395
|
+
<td>[164s]</td>
|
396
|
+
<td><code>PN_CHARS_U</code></td>
|
397
|
+
<td>::=</td>
|
398
|
+
<td>
|
399
|
+
PN_CHARS_BASE | "_"
|
400
|
+
</td>
|
401
|
+
</tr>
|
402
|
+
<tr id='grammar-production-PN_CHARS'>
|
403
|
+
<td>[166s]</td>
|
404
|
+
<td><code>PN_CHARS</code></td>
|
405
|
+
<td>::=</td>
|
406
|
+
<td>
|
407
|
+
PN_CHARS_U
|
408
|
+
| "-"
|
409
|
+
| [0-9]
|
410
|
+
| #x00B7
|
411
|
+
| [#x0300-#x036F]
|
412
|
+
| [#x203F-#x2040]
|
413
|
+
</td>
|
414
|
+
</tr>
|
415
|
+
<tr id='grammar-production-PN_PREFIX'>
|
416
|
+
<td>[167s]</td>
|
417
|
+
<td><code>PN_PREFIX</code></td>
|
418
|
+
<td>::=</td>
|
419
|
+
<td>
|
420
|
+
PN_CHARS_BASE
|
421
|
+
(PN_CHARS | ".")* PN_CHARS?
|
422
|
+
</td>
|
423
|
+
</tr>
|
424
|
+
<tr id='grammar-production-PN_LOCAL'>
|
425
|
+
<td>[168s]</td>
|
426
|
+
<td><code>PN_LOCAL</code></td>
|
427
|
+
<td>::=</td>
|
428
|
+
<td>
|
429
|
+
(PN_CHARS_U | ":" | [0-9] | PLX)
|
430
|
+
(PN_CHARS | "." | ":" | PLX)* (PN_CHARS | ":" | PLX)?
|
431
|
+
</td>
|
432
|
+
</tr>
|
433
|
+
<tr id='grammar-production-PLX'>
|
434
|
+
<td>[169s]</td>
|
435
|
+
<td><code>PLX</code></td>
|
436
|
+
<td>::=</td>
|
437
|
+
<td>
|
438
|
+
PERCENT | PN_LOCAL_ESC
|
439
|
+
</td>
|
440
|
+
</tr>
|
441
|
+
<tr id='grammar-production-PERCENT'>
|
442
|
+
<td>[170s]</td>
|
443
|
+
<td><code>PERCENT</code></td>
|
444
|
+
<td>::=</td>
|
445
|
+
<td>
|
446
|
+
"%" HEX HEX
|
447
|
+
</td>
|
448
|
+
</tr>
|
449
|
+
<tr id='grammar-production-HEX'>
|
450
|
+
<td>[171s]</td>
|
451
|
+
<td><code>HEX</code></td>
|
452
|
+
<td>::=</td>
|
453
|
+
<td>
|
454
|
+
[0-9] | [A-F] | [a-f]
|
455
|
+
</td>
|
456
|
+
</tr>
|
457
|
+
<tr id='grammar-production-PN_LOCAL_ESC'>
|
458
|
+
<td>[172s]</td>
|
459
|
+
<td><code>PN_LOCAL_ESC</code></td>
|
460
|
+
<td>::=</td>
|
461
|
+
<td>
|
462
|
+
"\"
|
463
|
+
("_" | "~" | "." | "-" | #x21 | "$" | "&" | "'" | "(" | ")" | "*" | "+" | "," | ";" | "=" | "/" | "?" | "#" | "@" | "%")
|
464
|
+
</td>
|
465
|
+
</tr>
|
466
|
+
</tbody>
|
519
467
|
</table>
|