rdf-turtle 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -15
- data/VERSION +1 -1
- data/lib/rdf/turtle/reader.rb +502 -224
- data/lib/rdf/turtle/streaming_writer.rb +4 -4
- data/lib/rdf/turtle/writer.rb +4 -1
- metadata +4 -25
- data/lib/rdf/turtle/meta.rb +0 -1461
@@ -29,15 +29,15 @@ module RDF::Turtle
|
|
29
29
|
if statement.subject != @streaming_subject
|
30
30
|
@output.puts ' .' if @streaming_subject
|
31
31
|
@streaming_subject, @streaming_predicate = statement.subject, statement.predicate
|
32
|
-
@output.write "#{format_term(statement.subject)} "
|
33
|
-
@output.write "#{format_term(statement.predicate)} "
|
32
|
+
@output.write "#{format_term(statement.subject, options)} "
|
33
|
+
@output.write "#{format_term(statement.predicate, options)} "
|
34
34
|
elsif statement.predicate != @streaming_predicate
|
35
35
|
@streaming_predicate = statement.predicate
|
36
|
-
@output.write ";\n#{indent(1)}#{format_term(statement.predicate)} "
|
36
|
+
@output.write ";\n#{indent(1)}#{format_term(statement.predicate, options)} "
|
37
37
|
else
|
38
38
|
@output.write ",\n#{indent(2)}"
|
39
39
|
end
|
40
|
-
@output.write("#{format_term(statement.object)}")
|
40
|
+
@output.write("#{format_term(statement.object, options)}")
|
41
41
|
end
|
42
42
|
|
43
43
|
##
|
data/lib/rdf/turtle/writer.rb
CHANGED
@@ -87,6 +87,8 @@ module RDF::Turtle
|
|
87
87
|
# URI to use as default namespace, same as `prefixes[nil]`
|
88
88
|
# @option options [Boolean] :unique_bnodes (false)
|
89
89
|
# Use unique node identifiers, defaults to using the identifier which the node was originall initialized with (if any).
|
90
|
+
# @option options [Boolean] :literal_shorthand (true)
|
91
|
+
# Attempt to use Literal shorthands fo numbers and boolean values
|
90
92
|
# @yield [writer] `self`
|
91
93
|
# @yieldparam [RDF::Writer] writer
|
92
94
|
# @yieldreturn [void]
|
@@ -97,6 +99,7 @@ module RDF::Turtle
|
|
97
99
|
@graph = RDF::Graph.new
|
98
100
|
@uri_to_pname = {}
|
99
101
|
@uri_to_prefix = {}
|
102
|
+
options = {literal_shorthand: true}.merge(options)
|
100
103
|
super do
|
101
104
|
if block_given?
|
102
105
|
case block.arity
|
@@ -244,7 +247,7 @@ module RDF::Turtle
|
|
244
247
|
literal = literal.dup.canonicalize! if @options[:canonicalize]
|
245
248
|
case literal
|
246
249
|
when RDF::Literal
|
247
|
-
case literal.valid? ? literal.datatype : false
|
250
|
+
case @options[:literal_shorthand] && literal.valid? ? literal.datatype : false
|
248
251
|
when RDF::XSD.boolean, RDF::XSD.integer, RDF::XSD.decimal
|
249
252
|
literal.canonicalize.to_s
|
250
253
|
when RDF::XSD.double
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-turtle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdf
|
@@ -50,40 +50,20 @@ dependencies:
|
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 0.3.6
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: open-uri-cached
|
55
|
-
requirement: !ruby/object:Gem::Requirement
|
56
|
-
requirements:
|
57
|
-
- - "~>"
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '0.0'
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 0.0.5
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - "~>"
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0.0'
|
70
|
-
- - ">="
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: 0.0.5
|
73
53
|
- !ruby/object:Gem::Dependency
|
74
54
|
name: rspec
|
75
55
|
requirement: !ruby/object:Gem::Requirement
|
76
56
|
requirements:
|
77
57
|
- - "~>"
|
78
58
|
- !ruby/object:Gem::Version
|
79
|
-
version:
|
59
|
+
version: 3.0.0
|
80
60
|
type: :development
|
81
61
|
prerelease: false
|
82
62
|
version_requirements: !ruby/object:Gem::Requirement
|
83
63
|
requirements:
|
84
64
|
- - "~>"
|
85
65
|
- !ruby/object:Gem::Version
|
86
|
-
version:
|
66
|
+
version: 3.0.0
|
87
67
|
- !ruby/object:Gem::Dependency
|
88
68
|
name: rspec-its
|
89
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -182,7 +162,6 @@ files:
|
|
182
162
|
- lib/rdf/turtle.rb
|
183
163
|
- lib/rdf/turtle/format.rb
|
184
164
|
- lib/rdf/turtle/freebase_reader.rb
|
185
|
-
- lib/rdf/turtle/meta.rb
|
186
165
|
- lib/rdf/turtle/reader.rb
|
187
166
|
- lib/rdf/turtle/streaming_writer.rb
|
188
167
|
- lib/rdf/turtle/terminals.rb
|
data/lib/rdf/turtle/meta.rb
DELETED
@@ -1,1461 +0,0 @@
|
|
1
|
-
# This file is automatically generated by /Users/gregg/.rvm/gems/ruby-1.9.3-p429/bundler/gems/ebnf-3f823030418a/bin/ebnf
|
2
|
-
# BRANCH derived from etc/turtle.bnf
|
3
|
-
module RDF::Turtle::Meta
|
4
|
-
START = :turtleDoc
|
5
|
-
|
6
|
-
BRANCH = {
|
7
|
-
BlankNode: {
|
8
|
-
ANON: [:ANON],
|
9
|
-
BLANK_NODE_LABEL: [:BLANK_NODE_LABEL],
|
10
|
-
},
|
11
|
-
BooleanLiteral: {
|
12
|
-
"false" => ["false"],
|
13
|
-
"true" => ["true"],
|
14
|
-
},
|
15
|
-
NumericLiteral: {
|
16
|
-
DECIMAL: [:DECIMAL],
|
17
|
-
DOUBLE: [:DOUBLE],
|
18
|
-
INTEGER: [:INTEGER],
|
19
|
-
},
|
20
|
-
PrefixedName: {
|
21
|
-
PNAME_LN: [:PNAME_LN],
|
22
|
-
PNAME_NS: [:PNAME_NS],
|
23
|
-
},
|
24
|
-
RDFLiteral: {
|
25
|
-
STRING_LITERAL_LONG_QUOTE: [:String, :_RDFLiteral_1],
|
26
|
-
STRING_LITERAL_LONG_SINGLE_QUOTE: [:String, :_RDFLiteral_1],
|
27
|
-
STRING_LITERAL_QUOTE: [:String, :_RDFLiteral_1],
|
28
|
-
STRING_LITERAL_SINGLE_QUOTE: [:String, :_RDFLiteral_1],
|
29
|
-
},
|
30
|
-
_RDFLiteral_1: {
|
31
|
-
"(" => [],
|
32
|
-
")" => [],
|
33
|
-
"," => [],
|
34
|
-
"." => [],
|
35
|
-
";" => [],
|
36
|
-
ANON: [],
|
37
|
-
BLANK_NODE_LABEL: [],
|
38
|
-
DECIMAL: [],
|
39
|
-
DOUBLE: [],
|
40
|
-
INTEGER: [],
|
41
|
-
IRIREF: [],
|
42
|
-
LANGTAG: [:_RDFLiteral_2],
|
43
|
-
PNAME_LN: [],
|
44
|
-
PNAME_NS: [],
|
45
|
-
STRING_LITERAL_LONG_QUOTE: [],
|
46
|
-
STRING_LITERAL_LONG_SINGLE_QUOTE: [],
|
47
|
-
STRING_LITERAL_QUOTE: [],
|
48
|
-
STRING_LITERAL_SINGLE_QUOTE: [],
|
49
|
-
"[" => [],
|
50
|
-
"]" => [],
|
51
|
-
"^^" => [:_RDFLiteral_2],
|
52
|
-
"false" => [],
|
53
|
-
"true" => [],
|
54
|
-
},
|
55
|
-
_RDFLiteral_2: {
|
56
|
-
LANGTAG: [:LANGTAG],
|
57
|
-
"^^" => [:_RDFLiteral_3],
|
58
|
-
},
|
59
|
-
_RDFLiteral_3: {
|
60
|
-
"^^" => ["^^", :iri],
|
61
|
-
},
|
62
|
-
String: {
|
63
|
-
STRING_LITERAL_LONG_QUOTE: [:STRING_LITERAL_LONG_QUOTE],
|
64
|
-
STRING_LITERAL_LONG_SINGLE_QUOTE: [:STRING_LITERAL_LONG_SINGLE_QUOTE],
|
65
|
-
STRING_LITERAL_QUOTE: [:STRING_LITERAL_QUOTE],
|
66
|
-
STRING_LITERAL_SINGLE_QUOTE: [:STRING_LITERAL_SINGLE_QUOTE],
|
67
|
-
},
|
68
|
-
base: {
|
69
|
-
BASE: [:BASE, :IRIREF, :_base_1],
|
70
|
-
},
|
71
|
-
_base_1: {
|
72
|
-
"(" => [],
|
73
|
-
"." => ["."],
|
74
|
-
ANON: [],
|
75
|
-
BASE: [],
|
76
|
-
BLANK_NODE_LABEL: [],
|
77
|
-
IRIREF: [],
|
78
|
-
PNAME_LN: [],
|
79
|
-
PNAME_NS: [],
|
80
|
-
PREFIX: [],
|
81
|
-
"[" => [],
|
82
|
-
},
|
83
|
-
blankNodePropertyList: {
|
84
|
-
"[" => ["[", :predicateObjectList, "]"],
|
85
|
-
},
|
86
|
-
collection: {
|
87
|
-
"(" => ["(", :_collection_1, ")"],
|
88
|
-
},
|
89
|
-
_collection_1: {
|
90
|
-
"(" => [:_collection_2],
|
91
|
-
")" => [],
|
92
|
-
ANON: [:_collection_2],
|
93
|
-
BLANK_NODE_LABEL: [:_collection_2],
|
94
|
-
DECIMAL: [:_collection_2],
|
95
|
-
DOUBLE: [:_collection_2],
|
96
|
-
INTEGER: [:_collection_2],
|
97
|
-
IRIREF: [:_collection_2],
|
98
|
-
PNAME_LN: [:_collection_2],
|
99
|
-
PNAME_NS: [:_collection_2],
|
100
|
-
STRING_LITERAL_LONG_QUOTE: [:_collection_2],
|
101
|
-
STRING_LITERAL_LONG_SINGLE_QUOTE: [:_collection_2],
|
102
|
-
STRING_LITERAL_QUOTE: [:_collection_2],
|
103
|
-
STRING_LITERAL_SINGLE_QUOTE: [:_collection_2],
|
104
|
-
"[" => [:_collection_2],
|
105
|
-
"false" => [:_collection_2],
|
106
|
-
"true" => [:_collection_2],
|
107
|
-
},
|
108
|
-
_collection_2: {
|
109
|
-
"(" => [:object, :_collection_1],
|
110
|
-
ANON: [:object, :_collection_1],
|
111
|
-
BLANK_NODE_LABEL: [:object, :_collection_1],
|
112
|
-
DECIMAL: [:object, :_collection_1],
|
113
|
-
DOUBLE: [:object, :_collection_1],
|
114
|
-
INTEGER: [:object, :_collection_1],
|
115
|
-
IRIREF: [:object, :_collection_1],
|
116
|
-
PNAME_LN: [:object, :_collection_1],
|
117
|
-
PNAME_NS: [:object, :_collection_1],
|
118
|
-
STRING_LITERAL_LONG_QUOTE: [:object, :_collection_1],
|
119
|
-
STRING_LITERAL_LONG_SINGLE_QUOTE: [:object, :_collection_1],
|
120
|
-
STRING_LITERAL_QUOTE: [:object, :_collection_1],
|
121
|
-
STRING_LITERAL_SINGLE_QUOTE: [:object, :_collection_1],
|
122
|
-
"[" => [:object, :_collection_1],
|
123
|
-
"false" => [:object, :_collection_1],
|
124
|
-
"true" => [:object, :_collection_1],
|
125
|
-
},
|
126
|
-
directive: {
|
127
|
-
BASE: [:base],
|
128
|
-
PREFIX: [:prefixID],
|
129
|
-
},
|
130
|
-
iri: {
|
131
|
-
IRIREF: [:IRIREF],
|
132
|
-
PNAME_LN: [:PrefixedName],
|
133
|
-
PNAME_NS: [:PrefixedName],
|
134
|
-
},
|
135
|
-
literal: {
|
136
|
-
DECIMAL: [:NumericLiteral],
|
137
|
-
DOUBLE: [:NumericLiteral],
|
138
|
-
INTEGER: [:NumericLiteral],
|
139
|
-
STRING_LITERAL_LONG_QUOTE: [:RDFLiteral],
|
140
|
-
STRING_LITERAL_LONG_SINGLE_QUOTE: [:RDFLiteral],
|
141
|
-
STRING_LITERAL_QUOTE: [:RDFLiteral],
|
142
|
-
STRING_LITERAL_SINGLE_QUOTE: [:RDFLiteral],
|
143
|
-
"false" => [:BooleanLiteral],
|
144
|
-
"true" => [:BooleanLiteral],
|
145
|
-
},
|
146
|
-
object: {
|
147
|
-
"(" => [:collection],
|
148
|
-
ANON: [:BlankNode],
|
149
|
-
BLANK_NODE_LABEL: [:BlankNode],
|
150
|
-
DECIMAL: [:literal],
|
151
|
-
DOUBLE: [:literal],
|
152
|
-
INTEGER: [:literal],
|
153
|
-
IRIREF: [:iri],
|
154
|
-
PNAME_LN: [:iri],
|
155
|
-
PNAME_NS: [:iri],
|
156
|
-
STRING_LITERAL_LONG_QUOTE: [:literal],
|
157
|
-
STRING_LITERAL_LONG_SINGLE_QUOTE: [:literal],
|
158
|
-
STRING_LITERAL_QUOTE: [:literal],
|
159
|
-
STRING_LITERAL_SINGLE_QUOTE: [:literal],
|
160
|
-
"[" => [:blankNodePropertyList],
|
161
|
-
"false" => [:literal],
|
162
|
-
"true" => [:literal],
|
163
|
-
},
|
164
|
-
objectList: {
|
165
|
-
"(" => [:object, :_objectList_1],
|
166
|
-
ANON: [:object, :_objectList_1],
|
167
|
-
BLANK_NODE_LABEL: [:object, :_objectList_1],
|
168
|
-
DECIMAL: [:object, :_objectList_1],
|
169
|
-
DOUBLE: [:object, :_objectList_1],
|
170
|
-
INTEGER: [:object, :_objectList_1],
|
171
|
-
IRIREF: [:object, :_objectList_1],
|
172
|
-
PNAME_LN: [:object, :_objectList_1],
|
173
|
-
PNAME_NS: [:object, :_objectList_1],
|
174
|
-
STRING_LITERAL_LONG_QUOTE: [:object, :_objectList_1],
|
175
|
-
STRING_LITERAL_LONG_SINGLE_QUOTE: [:object, :_objectList_1],
|
176
|
-
STRING_LITERAL_QUOTE: [:object, :_objectList_1],
|
177
|
-
STRING_LITERAL_SINGLE_QUOTE: [:object, :_objectList_1],
|
178
|
-
"[" => [:object, :_objectList_1],
|
179
|
-
"false" => [:object, :_objectList_1],
|
180
|
-
"true" => [:object, :_objectList_1],
|
181
|
-
},
|
182
|
-
_objectList_1: {
|
183
|
-
"," => [:_objectList_3],
|
184
|
-
"." => [],
|
185
|
-
";" => [],
|
186
|
-
"]" => [],
|
187
|
-
},
|
188
|
-
_objectList_2: {
|
189
|
-
"," => [",", :object],
|
190
|
-
},
|
191
|
-
_objectList_3: {
|
192
|
-
"," => [:_objectList_2, :_objectList_1],
|
193
|
-
},
|
194
|
-
predicate: {
|
195
|
-
IRIREF: [:iri],
|
196
|
-
PNAME_LN: [:iri],
|
197
|
-
PNAME_NS: [:iri],
|
198
|
-
},
|
199
|
-
predicateObjectList: {
|
200
|
-
IRIREF: [:verb, :objectList, :_predicateObjectList_1],
|
201
|
-
PNAME_LN: [:verb, :objectList, :_predicateObjectList_1],
|
202
|
-
PNAME_NS: [:verb, :objectList, :_predicateObjectList_1],
|
203
|
-
"a" => [:verb, :objectList, :_predicateObjectList_1],
|
204
|
-
},
|
205
|
-
_predicateObjectList_1: {
|
206
|
-
"." => [],
|
207
|
-
";" => [:_predicateObjectList_3],
|
208
|
-
"]" => [],
|
209
|
-
},
|
210
|
-
_predicateObjectList_2: {
|
211
|
-
";" => [";", :_predicateObjectList_4],
|
212
|
-
},
|
213
|
-
_predicateObjectList_3: {
|
214
|
-
";" => [:_predicateObjectList_2, :_predicateObjectList_1],
|
215
|
-
},
|
216
|
-
_predicateObjectList_4: {
|
217
|
-
"." => [],
|
218
|
-
";" => [],
|
219
|
-
IRIREF: [:_predicateObjectList_5],
|
220
|
-
PNAME_LN: [:_predicateObjectList_5],
|
221
|
-
PNAME_NS: [:_predicateObjectList_5],
|
222
|
-
"]" => [],
|
223
|
-
"a" => [:_predicateObjectList_5],
|
224
|
-
},
|
225
|
-
_predicateObjectList_5: {
|
226
|
-
IRIREF: [:verb, :objectList],
|
227
|
-
PNAME_LN: [:verb, :objectList],
|
228
|
-
PNAME_NS: [:verb, :objectList],
|
229
|
-
"a" => [:verb, :objectList],
|
230
|
-
},
|
231
|
-
prefixID: {
|
232
|
-
PREFIX: [:PREFIX, :PNAME_NS, :IRIREF, :_prefixID_1],
|
233
|
-
},
|
234
|
-
_prefixID_1: {
|
235
|
-
"(" => [],
|
236
|
-
"." => ["."],
|
237
|
-
ANON: [],
|
238
|
-
BASE: [],
|
239
|
-
BLANK_NODE_LABEL: [],
|
240
|
-
IRIREF: [],
|
241
|
-
PNAME_LN: [],
|
242
|
-
PNAME_NS: [],
|
243
|
-
PREFIX: [],
|
244
|
-
"[" => [],
|
245
|
-
},
|
246
|
-
statement: {
|
247
|
-
"(" => [:_statement_1],
|
248
|
-
ANON: [:_statement_1],
|
249
|
-
BASE: [:directive],
|
250
|
-
BLANK_NODE_LABEL: [:_statement_1],
|
251
|
-
IRIREF: [:_statement_1],
|
252
|
-
PNAME_LN: [:_statement_1],
|
253
|
-
PNAME_NS: [:_statement_1],
|
254
|
-
PREFIX: [:directive],
|
255
|
-
"[" => [:_statement_1],
|
256
|
-
},
|
257
|
-
_statement_1: {
|
258
|
-
"(" => [:triples, "."],
|
259
|
-
ANON: [:triples, "."],
|
260
|
-
BLANK_NODE_LABEL: [:triples, "."],
|
261
|
-
IRIREF: [:triples, "."],
|
262
|
-
PNAME_LN: [:triples, "."],
|
263
|
-
PNAME_NS: [:triples, "."],
|
264
|
-
"[" => [:triples, "."],
|
265
|
-
},
|
266
|
-
subject: {
|
267
|
-
"(" => [:collection],
|
268
|
-
ANON: [:BlankNode],
|
269
|
-
BLANK_NODE_LABEL: [:BlankNode],
|
270
|
-
IRIREF: [:iri],
|
271
|
-
PNAME_LN: [:iri],
|
272
|
-
PNAME_NS: [:iri],
|
273
|
-
},
|
274
|
-
triples: {
|
275
|
-
"(" => [:_triples_1],
|
276
|
-
ANON: [:_triples_1],
|
277
|
-
BLANK_NODE_LABEL: [:_triples_1],
|
278
|
-
IRIREF: [:_triples_1],
|
279
|
-
PNAME_LN: [:_triples_1],
|
280
|
-
PNAME_NS: [:_triples_1],
|
281
|
-
"[" => [:_triples_2],
|
282
|
-
},
|
283
|
-
_triples_1: {
|
284
|
-
"(" => [:subject, :predicateObjectList],
|
285
|
-
ANON: [:subject, :predicateObjectList],
|
286
|
-
BLANK_NODE_LABEL: [:subject, :predicateObjectList],
|
287
|
-
IRIREF: [:subject, :predicateObjectList],
|
288
|
-
PNAME_LN: [:subject, :predicateObjectList],
|
289
|
-
PNAME_NS: [:subject, :predicateObjectList],
|
290
|
-
},
|
291
|
-
_triples_2: {
|
292
|
-
"[" => [:blankNodePropertyList, :_triples_3],
|
293
|
-
},
|
294
|
-
_triples_3: {
|
295
|
-
"." => [],
|
296
|
-
IRIREF: [:predicateObjectList],
|
297
|
-
PNAME_LN: [:predicateObjectList],
|
298
|
-
PNAME_NS: [:predicateObjectList],
|
299
|
-
"a" => [:predicateObjectList],
|
300
|
-
},
|
301
|
-
turtleDoc: {
|
302
|
-
"(" => [:_turtleDoc_1],
|
303
|
-
ANON: [:_turtleDoc_1],
|
304
|
-
BASE: [:_turtleDoc_1],
|
305
|
-
BLANK_NODE_LABEL: [:_turtleDoc_1],
|
306
|
-
IRIREF: [:_turtleDoc_1],
|
307
|
-
PNAME_LN: [:_turtleDoc_1],
|
308
|
-
PNAME_NS: [:_turtleDoc_1],
|
309
|
-
PREFIX: [:_turtleDoc_1],
|
310
|
-
"[" => [:_turtleDoc_1],
|
311
|
-
},
|
312
|
-
_turtleDoc_1: {
|
313
|
-
"(" => [:statement, :turtleDoc],
|
314
|
-
ANON: [:statement, :turtleDoc],
|
315
|
-
BASE: [:statement, :turtleDoc],
|
316
|
-
BLANK_NODE_LABEL: [:statement, :turtleDoc],
|
317
|
-
IRIREF: [:statement, :turtleDoc],
|
318
|
-
PNAME_LN: [:statement, :turtleDoc],
|
319
|
-
PNAME_NS: [:statement, :turtleDoc],
|
320
|
-
PREFIX: [:statement, :turtleDoc],
|
321
|
-
"[" => [:statement, :turtleDoc],
|
322
|
-
},
|
323
|
-
verb: {
|
324
|
-
IRIREF: [:predicate],
|
325
|
-
PNAME_LN: [:predicate],
|
326
|
-
PNAME_NS: [:predicate],
|
327
|
-
"a" => ["a"],
|
328
|
-
},
|
329
|
-
}.freeze
|
330
|
-
TERMINALS = [
|
331
|
-
"(",
|
332
|
-
")",
|
333
|
-
",",
|
334
|
-
".",
|
335
|
-
";",
|
336
|
-
:ANON,
|
337
|
-
:BASE,
|
338
|
-
:BLANK_NODE_LABEL,
|
339
|
-
:DECIMAL,
|
340
|
-
:DOUBLE,
|
341
|
-
:INTEGER,
|
342
|
-
:IRIREF,
|
343
|
-
:LANGTAG,
|
344
|
-
:PNAME_LN,
|
345
|
-
:PNAME_NS,
|
346
|
-
:PREFIX,
|
347
|
-
:STRING_LITERAL_LONG_QUOTE,
|
348
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
349
|
-
:STRING_LITERAL_QUOTE,
|
350
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
351
|
-
"[",
|
352
|
-
"]",
|
353
|
-
"^^",
|
354
|
-
"a",
|
355
|
-
"false",
|
356
|
-
"true"
|
357
|
-
].freeze
|
358
|
-
FIRST = {
|
359
|
-
BlankNode: [
|
360
|
-
:BLANK_NODE_LABEL,
|
361
|
-
:ANON],
|
362
|
-
BooleanLiteral: [
|
363
|
-
"true",
|
364
|
-
"false"],
|
365
|
-
NumericLiteral: [
|
366
|
-
:INTEGER,
|
367
|
-
:DECIMAL,
|
368
|
-
:DOUBLE],
|
369
|
-
PrefixedName: [
|
370
|
-
:PNAME_LN,
|
371
|
-
:PNAME_NS],
|
372
|
-
RDFLiteral: [
|
373
|
-
:STRING_LITERAL_QUOTE,
|
374
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
375
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
376
|
-
:STRING_LITERAL_LONG_QUOTE],
|
377
|
-
_RDFLiteral_1: [
|
378
|
-
:_eps,
|
379
|
-
:LANGTAG,
|
380
|
-
"^^"],
|
381
|
-
_RDFLiteral_2: [
|
382
|
-
:LANGTAG,
|
383
|
-
"^^"],
|
384
|
-
_RDFLiteral_3: [
|
385
|
-
"^^"],
|
386
|
-
_RDFLiteral_4: [
|
387
|
-
:LANGTAG,
|
388
|
-
:_eps,
|
389
|
-
"^^"],
|
390
|
-
String: [
|
391
|
-
:STRING_LITERAL_QUOTE,
|
392
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
393
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
394
|
-
:STRING_LITERAL_LONG_QUOTE],
|
395
|
-
base: [
|
396
|
-
:BASE],
|
397
|
-
_base_1: [
|
398
|
-
".",
|
399
|
-
:_eps],
|
400
|
-
_base_2: [
|
401
|
-
:IRIREF],
|
402
|
-
_base_3: [
|
403
|
-
".",
|
404
|
-
:_eps],
|
405
|
-
blankNodePropertyList: [
|
406
|
-
"["],
|
407
|
-
_blankNodePropertyList_1: [
|
408
|
-
"a",
|
409
|
-
:IRIREF,
|
410
|
-
:PNAME_LN,
|
411
|
-
:PNAME_NS],
|
412
|
-
_blankNodePropertyList_2: [
|
413
|
-
"]"],
|
414
|
-
collection: [
|
415
|
-
"("],
|
416
|
-
_collection_1: [
|
417
|
-
:_eps,
|
418
|
-
:IRIREF,
|
419
|
-
:BLANK_NODE_LABEL,
|
420
|
-
:ANON,
|
421
|
-
"(",
|
422
|
-
"[",
|
423
|
-
:PNAME_LN,
|
424
|
-
:PNAME_NS,
|
425
|
-
:INTEGER,
|
426
|
-
:DECIMAL,
|
427
|
-
:DOUBLE,
|
428
|
-
"true",
|
429
|
-
"false",
|
430
|
-
:STRING_LITERAL_QUOTE,
|
431
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
432
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
433
|
-
:STRING_LITERAL_LONG_QUOTE],
|
434
|
-
_collection_2: [
|
435
|
-
:IRIREF,
|
436
|
-
:BLANK_NODE_LABEL,
|
437
|
-
:ANON,
|
438
|
-
"(",
|
439
|
-
"[",
|
440
|
-
:PNAME_LN,
|
441
|
-
:PNAME_NS,
|
442
|
-
:INTEGER,
|
443
|
-
:DECIMAL,
|
444
|
-
:DOUBLE,
|
445
|
-
"true",
|
446
|
-
"false",
|
447
|
-
:STRING_LITERAL_QUOTE,
|
448
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
449
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
450
|
-
:STRING_LITERAL_LONG_QUOTE],
|
451
|
-
_collection_3: [
|
452
|
-
")",
|
453
|
-
:IRIREF,
|
454
|
-
:BLANK_NODE_LABEL,
|
455
|
-
:ANON,
|
456
|
-
"(",
|
457
|
-
"[",
|
458
|
-
:PNAME_LN,
|
459
|
-
:PNAME_NS,
|
460
|
-
:INTEGER,
|
461
|
-
:DECIMAL,
|
462
|
-
:DOUBLE,
|
463
|
-
"true",
|
464
|
-
"false",
|
465
|
-
:STRING_LITERAL_QUOTE,
|
466
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
467
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
468
|
-
:STRING_LITERAL_LONG_QUOTE],
|
469
|
-
_collection_4: [
|
470
|
-
:_eps,
|
471
|
-
:IRIREF,
|
472
|
-
:BLANK_NODE_LABEL,
|
473
|
-
:ANON,
|
474
|
-
"(",
|
475
|
-
"[",
|
476
|
-
:PNAME_LN,
|
477
|
-
:PNAME_NS,
|
478
|
-
:INTEGER,
|
479
|
-
:DECIMAL,
|
480
|
-
:DOUBLE,
|
481
|
-
"true",
|
482
|
-
"false",
|
483
|
-
:STRING_LITERAL_QUOTE,
|
484
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
485
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
486
|
-
:STRING_LITERAL_LONG_QUOTE],
|
487
|
-
_collection_5: [
|
488
|
-
")"],
|
489
|
-
directive: [
|
490
|
-
:PREFIX,
|
491
|
-
:BASE],
|
492
|
-
_empty: [
|
493
|
-
:_eps],
|
494
|
-
iri: [
|
495
|
-
:IRIREF,
|
496
|
-
:PNAME_LN,
|
497
|
-
:PNAME_NS],
|
498
|
-
literal: [
|
499
|
-
:INTEGER,
|
500
|
-
:DECIMAL,
|
501
|
-
:DOUBLE,
|
502
|
-
"true",
|
503
|
-
"false",
|
504
|
-
:STRING_LITERAL_QUOTE,
|
505
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
506
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
507
|
-
:STRING_LITERAL_LONG_QUOTE],
|
508
|
-
object: [
|
509
|
-
:IRIREF,
|
510
|
-
:BLANK_NODE_LABEL,
|
511
|
-
:ANON,
|
512
|
-
"(",
|
513
|
-
"[",
|
514
|
-
:PNAME_LN,
|
515
|
-
:PNAME_NS,
|
516
|
-
:INTEGER,
|
517
|
-
:DECIMAL,
|
518
|
-
:DOUBLE,
|
519
|
-
"true",
|
520
|
-
"false",
|
521
|
-
:STRING_LITERAL_QUOTE,
|
522
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
523
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
524
|
-
:STRING_LITERAL_LONG_QUOTE],
|
525
|
-
objectList: [
|
526
|
-
:IRIREF,
|
527
|
-
:BLANK_NODE_LABEL,
|
528
|
-
:ANON,
|
529
|
-
"(",
|
530
|
-
"[",
|
531
|
-
:PNAME_LN,
|
532
|
-
:PNAME_NS,
|
533
|
-
:INTEGER,
|
534
|
-
:DECIMAL,
|
535
|
-
:DOUBLE,
|
536
|
-
"true",
|
537
|
-
"false",
|
538
|
-
:STRING_LITERAL_QUOTE,
|
539
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
540
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
541
|
-
:STRING_LITERAL_LONG_QUOTE],
|
542
|
-
_objectList_1: [
|
543
|
-
:_eps,
|
544
|
-
","],
|
545
|
-
_objectList_2: [
|
546
|
-
","],
|
547
|
-
_objectList_3: [
|
548
|
-
","],
|
549
|
-
_objectList_4: [
|
550
|
-
:_eps,
|
551
|
-
","],
|
552
|
-
_objectList_5: [
|
553
|
-
:_eps,
|
554
|
-
","],
|
555
|
-
_objectList_6: [
|
556
|
-
:IRIREF,
|
557
|
-
:BLANK_NODE_LABEL,
|
558
|
-
:ANON,
|
559
|
-
"(",
|
560
|
-
"[",
|
561
|
-
:PNAME_LN,
|
562
|
-
:PNAME_NS,
|
563
|
-
:INTEGER,
|
564
|
-
:DECIMAL,
|
565
|
-
:DOUBLE,
|
566
|
-
"true",
|
567
|
-
"false",
|
568
|
-
:STRING_LITERAL_QUOTE,
|
569
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
570
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
571
|
-
:STRING_LITERAL_LONG_QUOTE],
|
572
|
-
predicate: [
|
573
|
-
:IRIREF,
|
574
|
-
:PNAME_LN,
|
575
|
-
:PNAME_NS],
|
576
|
-
predicateObjectList: [
|
577
|
-
"a",
|
578
|
-
:IRIREF,
|
579
|
-
:PNAME_LN,
|
580
|
-
:PNAME_NS],
|
581
|
-
_predicateObjectList_1: [
|
582
|
-
:_eps,
|
583
|
-
";"],
|
584
|
-
_predicateObjectList_2: [
|
585
|
-
";"],
|
586
|
-
_predicateObjectList_3: [
|
587
|
-
";"],
|
588
|
-
_predicateObjectList_4: [
|
589
|
-
:_eps,
|
590
|
-
"a",
|
591
|
-
:IRIREF,
|
592
|
-
:PNAME_LN,
|
593
|
-
:PNAME_NS],
|
594
|
-
_predicateObjectList_5: [
|
595
|
-
"a",
|
596
|
-
:IRIREF,
|
597
|
-
:PNAME_LN,
|
598
|
-
:PNAME_NS],
|
599
|
-
_predicateObjectList_6: [
|
600
|
-
:IRIREF,
|
601
|
-
:BLANK_NODE_LABEL,
|
602
|
-
:ANON,
|
603
|
-
"(",
|
604
|
-
"[",
|
605
|
-
:PNAME_LN,
|
606
|
-
:PNAME_NS,
|
607
|
-
:INTEGER,
|
608
|
-
:DECIMAL,
|
609
|
-
:DOUBLE,
|
610
|
-
"true",
|
611
|
-
"false",
|
612
|
-
:STRING_LITERAL_QUOTE,
|
613
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
614
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
615
|
-
:STRING_LITERAL_LONG_QUOTE],
|
616
|
-
_predicateObjectList_7: [
|
617
|
-
:_eps,
|
618
|
-
";"],
|
619
|
-
_predicateObjectList_8: [
|
620
|
-
:_eps,
|
621
|
-
"a",
|
622
|
-
:IRIREF,
|
623
|
-
:PNAME_LN,
|
624
|
-
:PNAME_NS],
|
625
|
-
_predicateObjectList_9: [
|
626
|
-
:IRIREF,
|
627
|
-
:BLANK_NODE_LABEL,
|
628
|
-
:ANON,
|
629
|
-
"(",
|
630
|
-
"[",
|
631
|
-
:PNAME_LN,
|
632
|
-
:PNAME_NS,
|
633
|
-
:INTEGER,
|
634
|
-
:DECIMAL,
|
635
|
-
:DOUBLE,
|
636
|
-
"true",
|
637
|
-
"false",
|
638
|
-
:STRING_LITERAL_QUOTE,
|
639
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
640
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
641
|
-
:STRING_LITERAL_LONG_QUOTE],
|
642
|
-
prefixID: [
|
643
|
-
:PREFIX],
|
644
|
-
_prefixID_1: [
|
645
|
-
".",
|
646
|
-
:_eps],
|
647
|
-
_prefixID_2: [
|
648
|
-
:PNAME_NS],
|
649
|
-
_prefixID_3: [
|
650
|
-
:IRIREF],
|
651
|
-
_prefixID_4: [
|
652
|
-
".",
|
653
|
-
:_eps],
|
654
|
-
statement: [
|
655
|
-
:PREFIX,
|
656
|
-
:BASE,
|
657
|
-
"[",
|
658
|
-
:IRIREF,
|
659
|
-
:BLANK_NODE_LABEL,
|
660
|
-
:ANON,
|
661
|
-
"(",
|
662
|
-
:PNAME_LN,
|
663
|
-
:PNAME_NS],
|
664
|
-
_statement_1: [
|
665
|
-
"[",
|
666
|
-
:IRIREF,
|
667
|
-
:BLANK_NODE_LABEL,
|
668
|
-
:ANON,
|
669
|
-
"(",
|
670
|
-
:PNAME_LN,
|
671
|
-
:PNAME_NS],
|
672
|
-
_statement_2: [
|
673
|
-
"."],
|
674
|
-
subject: [
|
675
|
-
:IRIREF,
|
676
|
-
:BLANK_NODE_LABEL,
|
677
|
-
:ANON,
|
678
|
-
"(",
|
679
|
-
:PNAME_LN,
|
680
|
-
:PNAME_NS],
|
681
|
-
triples: [
|
682
|
-
"[",
|
683
|
-
:IRIREF,
|
684
|
-
:BLANK_NODE_LABEL,
|
685
|
-
:ANON,
|
686
|
-
"(",
|
687
|
-
:PNAME_LN,
|
688
|
-
:PNAME_NS],
|
689
|
-
_triples_1: [
|
690
|
-
:IRIREF,
|
691
|
-
:BLANK_NODE_LABEL,
|
692
|
-
:ANON,
|
693
|
-
"(",
|
694
|
-
:PNAME_LN,
|
695
|
-
:PNAME_NS],
|
696
|
-
_triples_2: [
|
697
|
-
"["],
|
698
|
-
_triples_3: [
|
699
|
-
:_eps,
|
700
|
-
"a",
|
701
|
-
:IRIREF,
|
702
|
-
:PNAME_LN,
|
703
|
-
:PNAME_NS],
|
704
|
-
_triples_4: [
|
705
|
-
"a",
|
706
|
-
:IRIREF,
|
707
|
-
:PNAME_LN,
|
708
|
-
:PNAME_NS],
|
709
|
-
_triples_5: [
|
710
|
-
:_eps,
|
711
|
-
"a",
|
712
|
-
:IRIREF,
|
713
|
-
:PNAME_LN,
|
714
|
-
:PNAME_NS],
|
715
|
-
turtleDoc: [
|
716
|
-
:_eps,
|
717
|
-
:PREFIX,
|
718
|
-
:BASE,
|
719
|
-
"[",
|
720
|
-
:IRIREF,
|
721
|
-
:BLANK_NODE_LABEL,
|
722
|
-
:ANON,
|
723
|
-
"(",
|
724
|
-
:PNAME_LN,
|
725
|
-
:PNAME_NS],
|
726
|
-
_turtleDoc_1: [
|
727
|
-
:PREFIX,
|
728
|
-
:BASE,
|
729
|
-
"[",
|
730
|
-
:IRIREF,
|
731
|
-
:BLANK_NODE_LABEL,
|
732
|
-
:ANON,
|
733
|
-
"(",
|
734
|
-
:PNAME_LN,
|
735
|
-
:PNAME_NS],
|
736
|
-
_turtleDoc_2: [
|
737
|
-
:_eps,
|
738
|
-
:PREFIX,
|
739
|
-
:BASE,
|
740
|
-
"[",
|
741
|
-
:IRIREF,
|
742
|
-
:BLANK_NODE_LABEL,
|
743
|
-
:ANON,
|
744
|
-
"(",
|
745
|
-
:PNAME_LN,
|
746
|
-
:PNAME_NS],
|
747
|
-
verb: [
|
748
|
-
"a",
|
749
|
-
:IRIREF,
|
750
|
-
:PNAME_LN,
|
751
|
-
:PNAME_NS],
|
752
|
-
}.freeze
|
753
|
-
FOLLOW = {
|
754
|
-
BlankNode: [
|
755
|
-
"a",
|
756
|
-
")",
|
757
|
-
",",
|
758
|
-
".",
|
759
|
-
"]",
|
760
|
-
:IRIREF,
|
761
|
-
:BLANK_NODE_LABEL,
|
762
|
-
:ANON,
|
763
|
-
"(",
|
764
|
-
"[",
|
765
|
-
";",
|
766
|
-
:PNAME_LN,
|
767
|
-
:PNAME_NS,
|
768
|
-
:INTEGER,
|
769
|
-
:DECIMAL,
|
770
|
-
:DOUBLE,
|
771
|
-
"true",
|
772
|
-
"false",
|
773
|
-
:STRING_LITERAL_QUOTE,
|
774
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
775
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
776
|
-
:STRING_LITERAL_LONG_QUOTE],
|
777
|
-
BooleanLiteral: [
|
778
|
-
")",
|
779
|
-
",",
|
780
|
-
".",
|
781
|
-
"]",
|
782
|
-
:IRIREF,
|
783
|
-
:BLANK_NODE_LABEL,
|
784
|
-
:ANON,
|
785
|
-
"(",
|
786
|
-
"[",
|
787
|
-
";",
|
788
|
-
:PNAME_LN,
|
789
|
-
:PNAME_NS,
|
790
|
-
:INTEGER,
|
791
|
-
:DECIMAL,
|
792
|
-
:DOUBLE,
|
793
|
-
"true",
|
794
|
-
"false",
|
795
|
-
:STRING_LITERAL_QUOTE,
|
796
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
797
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
798
|
-
:STRING_LITERAL_LONG_QUOTE],
|
799
|
-
NumericLiteral: [
|
800
|
-
")",
|
801
|
-
",",
|
802
|
-
".",
|
803
|
-
"]",
|
804
|
-
:IRIREF,
|
805
|
-
:BLANK_NODE_LABEL,
|
806
|
-
:ANON,
|
807
|
-
"(",
|
808
|
-
"[",
|
809
|
-
";",
|
810
|
-
:PNAME_LN,
|
811
|
-
:PNAME_NS,
|
812
|
-
:INTEGER,
|
813
|
-
:DECIMAL,
|
814
|
-
:DOUBLE,
|
815
|
-
"true",
|
816
|
-
"false",
|
817
|
-
:STRING_LITERAL_QUOTE,
|
818
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
819
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
820
|
-
:STRING_LITERAL_LONG_QUOTE],
|
821
|
-
PrefixedName: [
|
822
|
-
"a",
|
823
|
-
:IRIREF,
|
824
|
-
:BLANK_NODE_LABEL,
|
825
|
-
:ANON,
|
826
|
-
"(",
|
827
|
-
"[",
|
828
|
-
")",
|
829
|
-
",",
|
830
|
-
".",
|
831
|
-
"]",
|
832
|
-
:PNAME_LN,
|
833
|
-
:PNAME_NS,
|
834
|
-
:INTEGER,
|
835
|
-
:DECIMAL,
|
836
|
-
:DOUBLE,
|
837
|
-
"true",
|
838
|
-
"false",
|
839
|
-
";",
|
840
|
-
:STRING_LITERAL_QUOTE,
|
841
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
842
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
843
|
-
:STRING_LITERAL_LONG_QUOTE],
|
844
|
-
RDFLiteral: [
|
845
|
-
")",
|
846
|
-
",",
|
847
|
-
".",
|
848
|
-
"]",
|
849
|
-
:IRIREF,
|
850
|
-
:BLANK_NODE_LABEL,
|
851
|
-
:ANON,
|
852
|
-
"(",
|
853
|
-
"[",
|
854
|
-
";",
|
855
|
-
:PNAME_LN,
|
856
|
-
:PNAME_NS,
|
857
|
-
:INTEGER,
|
858
|
-
:DECIMAL,
|
859
|
-
:DOUBLE,
|
860
|
-
"true",
|
861
|
-
"false",
|
862
|
-
:STRING_LITERAL_QUOTE,
|
863
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
864
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
865
|
-
:STRING_LITERAL_LONG_QUOTE],
|
866
|
-
_RDFLiteral_1: [
|
867
|
-
")",
|
868
|
-
",",
|
869
|
-
".",
|
870
|
-
"]",
|
871
|
-
:IRIREF,
|
872
|
-
:BLANK_NODE_LABEL,
|
873
|
-
:ANON,
|
874
|
-
"(",
|
875
|
-
"[",
|
876
|
-
";",
|
877
|
-
:PNAME_LN,
|
878
|
-
:PNAME_NS,
|
879
|
-
:INTEGER,
|
880
|
-
:DECIMAL,
|
881
|
-
:DOUBLE,
|
882
|
-
"true",
|
883
|
-
"false",
|
884
|
-
:STRING_LITERAL_QUOTE,
|
885
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
886
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
887
|
-
:STRING_LITERAL_LONG_QUOTE],
|
888
|
-
_RDFLiteral_2: [
|
889
|
-
")",
|
890
|
-
",",
|
891
|
-
".",
|
892
|
-
"]",
|
893
|
-
:IRIREF,
|
894
|
-
:BLANK_NODE_LABEL,
|
895
|
-
:ANON,
|
896
|
-
"(",
|
897
|
-
"[",
|
898
|
-
";",
|
899
|
-
:PNAME_LN,
|
900
|
-
:PNAME_NS,
|
901
|
-
:INTEGER,
|
902
|
-
:DECIMAL,
|
903
|
-
:DOUBLE,
|
904
|
-
"true",
|
905
|
-
"false",
|
906
|
-
:STRING_LITERAL_QUOTE,
|
907
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
908
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
909
|
-
:STRING_LITERAL_LONG_QUOTE],
|
910
|
-
_RDFLiteral_3: [
|
911
|
-
")",
|
912
|
-
",",
|
913
|
-
".",
|
914
|
-
"]",
|
915
|
-
:IRIREF,
|
916
|
-
:BLANK_NODE_LABEL,
|
917
|
-
:ANON,
|
918
|
-
"(",
|
919
|
-
"[",
|
920
|
-
";",
|
921
|
-
:PNAME_LN,
|
922
|
-
:PNAME_NS,
|
923
|
-
:INTEGER,
|
924
|
-
:DECIMAL,
|
925
|
-
:DOUBLE,
|
926
|
-
"true",
|
927
|
-
"false",
|
928
|
-
:STRING_LITERAL_QUOTE,
|
929
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
930
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
931
|
-
:STRING_LITERAL_LONG_QUOTE],
|
932
|
-
_RDFLiteral_4: [
|
933
|
-
")",
|
934
|
-
",",
|
935
|
-
".",
|
936
|
-
"]",
|
937
|
-
:IRIREF,
|
938
|
-
:BLANK_NODE_LABEL,
|
939
|
-
:ANON,
|
940
|
-
"(",
|
941
|
-
"[",
|
942
|
-
";",
|
943
|
-
:PNAME_LN,
|
944
|
-
:PNAME_NS,
|
945
|
-
:INTEGER,
|
946
|
-
:DECIMAL,
|
947
|
-
:DOUBLE,
|
948
|
-
"true",
|
949
|
-
"false",
|
950
|
-
:STRING_LITERAL_QUOTE,
|
951
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
952
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
953
|
-
:STRING_LITERAL_LONG_QUOTE],
|
954
|
-
String: [
|
955
|
-
:LANGTAG,
|
956
|
-
"^^",
|
957
|
-
")",
|
958
|
-
",",
|
959
|
-
".",
|
960
|
-
"]",
|
961
|
-
:IRIREF,
|
962
|
-
:BLANK_NODE_LABEL,
|
963
|
-
:ANON,
|
964
|
-
"(",
|
965
|
-
"[",
|
966
|
-
";",
|
967
|
-
:PNAME_LN,
|
968
|
-
:PNAME_NS,
|
969
|
-
:INTEGER,
|
970
|
-
:DECIMAL,
|
971
|
-
:DOUBLE,
|
972
|
-
"true",
|
973
|
-
"false",
|
974
|
-
:STRING_LITERAL_QUOTE,
|
975
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
976
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
977
|
-
:STRING_LITERAL_LONG_QUOTE],
|
978
|
-
base: [
|
979
|
-
:_eof,
|
980
|
-
:PREFIX,
|
981
|
-
:BASE,
|
982
|
-
"[",
|
983
|
-
:IRIREF,
|
984
|
-
:BLANK_NODE_LABEL,
|
985
|
-
:ANON,
|
986
|
-
"(",
|
987
|
-
:PNAME_LN,
|
988
|
-
:PNAME_NS],
|
989
|
-
_base_1: [
|
990
|
-
:_eof,
|
991
|
-
:PREFIX,
|
992
|
-
:BASE,
|
993
|
-
"[",
|
994
|
-
:IRIREF,
|
995
|
-
:BLANK_NODE_LABEL,
|
996
|
-
:ANON,
|
997
|
-
"(",
|
998
|
-
:PNAME_LN,
|
999
|
-
:PNAME_NS],
|
1000
|
-
_base_2: [
|
1001
|
-
:_eof,
|
1002
|
-
:PREFIX,
|
1003
|
-
:BASE,
|
1004
|
-
"[",
|
1005
|
-
:IRIREF,
|
1006
|
-
:BLANK_NODE_LABEL,
|
1007
|
-
:ANON,
|
1008
|
-
"(",
|
1009
|
-
:PNAME_LN,
|
1010
|
-
:PNAME_NS],
|
1011
|
-
_base_3: [
|
1012
|
-
:_eof,
|
1013
|
-
:PREFIX,
|
1014
|
-
:BASE,
|
1015
|
-
"[",
|
1016
|
-
:IRIREF,
|
1017
|
-
:BLANK_NODE_LABEL,
|
1018
|
-
:ANON,
|
1019
|
-
"(",
|
1020
|
-
:PNAME_LN,
|
1021
|
-
:PNAME_NS],
|
1022
|
-
blankNodePropertyList: [
|
1023
|
-
".",
|
1024
|
-
"a",
|
1025
|
-
")",
|
1026
|
-
",",
|
1027
|
-
"]",
|
1028
|
-
:IRIREF,
|
1029
|
-
:BLANK_NODE_LABEL,
|
1030
|
-
:ANON,
|
1031
|
-
"(",
|
1032
|
-
"[",
|
1033
|
-
";",
|
1034
|
-
:PNAME_LN,
|
1035
|
-
:PNAME_NS,
|
1036
|
-
:INTEGER,
|
1037
|
-
:DECIMAL,
|
1038
|
-
:DOUBLE,
|
1039
|
-
"true",
|
1040
|
-
"false",
|
1041
|
-
:STRING_LITERAL_QUOTE,
|
1042
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
1043
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
1044
|
-
:STRING_LITERAL_LONG_QUOTE],
|
1045
|
-
_blankNodePropertyList_1: [
|
1046
|
-
".",
|
1047
|
-
"a",
|
1048
|
-
")",
|
1049
|
-
",",
|
1050
|
-
"]",
|
1051
|
-
:IRIREF,
|
1052
|
-
:BLANK_NODE_LABEL,
|
1053
|
-
:ANON,
|
1054
|
-
"(",
|
1055
|
-
"[",
|
1056
|
-
";",
|
1057
|
-
:PNAME_LN,
|
1058
|
-
:PNAME_NS,
|
1059
|
-
:INTEGER,
|
1060
|
-
:DECIMAL,
|
1061
|
-
:DOUBLE,
|
1062
|
-
"true",
|
1063
|
-
"false",
|
1064
|
-
:STRING_LITERAL_QUOTE,
|
1065
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
1066
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
1067
|
-
:STRING_LITERAL_LONG_QUOTE],
|
1068
|
-
_blankNodePropertyList_2: [
|
1069
|
-
".",
|
1070
|
-
"a",
|
1071
|
-
")",
|
1072
|
-
",",
|
1073
|
-
"]",
|
1074
|
-
:IRIREF,
|
1075
|
-
:BLANK_NODE_LABEL,
|
1076
|
-
:ANON,
|
1077
|
-
"(",
|
1078
|
-
"[",
|
1079
|
-
";",
|
1080
|
-
:PNAME_LN,
|
1081
|
-
:PNAME_NS,
|
1082
|
-
:INTEGER,
|
1083
|
-
:DECIMAL,
|
1084
|
-
:DOUBLE,
|
1085
|
-
"true",
|
1086
|
-
"false",
|
1087
|
-
:STRING_LITERAL_QUOTE,
|
1088
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
1089
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
1090
|
-
:STRING_LITERAL_LONG_QUOTE],
|
1091
|
-
collection: [
|
1092
|
-
"a",
|
1093
|
-
")",
|
1094
|
-
",",
|
1095
|
-
".",
|
1096
|
-
"]",
|
1097
|
-
:IRIREF,
|
1098
|
-
:BLANK_NODE_LABEL,
|
1099
|
-
:ANON,
|
1100
|
-
"(",
|
1101
|
-
"[",
|
1102
|
-
";",
|
1103
|
-
:PNAME_LN,
|
1104
|
-
:PNAME_NS,
|
1105
|
-
:INTEGER,
|
1106
|
-
:DECIMAL,
|
1107
|
-
:DOUBLE,
|
1108
|
-
"true",
|
1109
|
-
"false",
|
1110
|
-
:STRING_LITERAL_QUOTE,
|
1111
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
1112
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
1113
|
-
:STRING_LITERAL_LONG_QUOTE],
|
1114
|
-
_collection_1: [
|
1115
|
-
")"],
|
1116
|
-
_collection_2: [
|
1117
|
-
")"],
|
1118
|
-
_collection_3: [
|
1119
|
-
"a",
|
1120
|
-
")",
|
1121
|
-
",",
|
1122
|
-
".",
|
1123
|
-
"]",
|
1124
|
-
:IRIREF,
|
1125
|
-
:BLANK_NODE_LABEL,
|
1126
|
-
:ANON,
|
1127
|
-
"(",
|
1128
|
-
"[",
|
1129
|
-
";",
|
1130
|
-
:PNAME_LN,
|
1131
|
-
:PNAME_NS,
|
1132
|
-
:INTEGER,
|
1133
|
-
:DECIMAL,
|
1134
|
-
:DOUBLE,
|
1135
|
-
"true",
|
1136
|
-
"false",
|
1137
|
-
:STRING_LITERAL_QUOTE,
|
1138
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
1139
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
1140
|
-
:STRING_LITERAL_LONG_QUOTE],
|
1141
|
-
_collection_4: [
|
1142
|
-
")"],
|
1143
|
-
_collection_5: [
|
1144
|
-
"a",
|
1145
|
-
")",
|
1146
|
-
",",
|
1147
|
-
".",
|
1148
|
-
"]",
|
1149
|
-
:IRIREF,
|
1150
|
-
:BLANK_NODE_LABEL,
|
1151
|
-
:ANON,
|
1152
|
-
"(",
|
1153
|
-
"[",
|
1154
|
-
";",
|
1155
|
-
:PNAME_LN,
|
1156
|
-
:PNAME_NS,
|
1157
|
-
:INTEGER,
|
1158
|
-
:DECIMAL,
|
1159
|
-
:DOUBLE,
|
1160
|
-
"true",
|
1161
|
-
"false",
|
1162
|
-
:STRING_LITERAL_QUOTE,
|
1163
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
1164
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
1165
|
-
:STRING_LITERAL_LONG_QUOTE],
|
1166
|
-
directive: [
|
1167
|
-
:_eof,
|
1168
|
-
:PREFIX,
|
1169
|
-
:BASE,
|
1170
|
-
"[",
|
1171
|
-
:IRIREF,
|
1172
|
-
:BLANK_NODE_LABEL,
|
1173
|
-
:ANON,
|
1174
|
-
"(",
|
1175
|
-
:PNAME_LN,
|
1176
|
-
:PNAME_NS],
|
1177
|
-
iri: [
|
1178
|
-
"a",
|
1179
|
-
:IRIREF,
|
1180
|
-
:BLANK_NODE_LABEL,
|
1181
|
-
:ANON,
|
1182
|
-
"(",
|
1183
|
-
"[",
|
1184
|
-
")",
|
1185
|
-
",",
|
1186
|
-
".",
|
1187
|
-
"]",
|
1188
|
-
:PNAME_LN,
|
1189
|
-
:PNAME_NS,
|
1190
|
-
:INTEGER,
|
1191
|
-
:DECIMAL,
|
1192
|
-
:DOUBLE,
|
1193
|
-
"true",
|
1194
|
-
"false",
|
1195
|
-
";",
|
1196
|
-
:STRING_LITERAL_QUOTE,
|
1197
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
1198
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
1199
|
-
:STRING_LITERAL_LONG_QUOTE],
|
1200
|
-
literal: [
|
1201
|
-
")",
|
1202
|
-
",",
|
1203
|
-
".",
|
1204
|
-
"]",
|
1205
|
-
:IRIREF,
|
1206
|
-
:BLANK_NODE_LABEL,
|
1207
|
-
:ANON,
|
1208
|
-
"(",
|
1209
|
-
"[",
|
1210
|
-
";",
|
1211
|
-
:PNAME_LN,
|
1212
|
-
:PNAME_NS,
|
1213
|
-
:INTEGER,
|
1214
|
-
:DECIMAL,
|
1215
|
-
:DOUBLE,
|
1216
|
-
"true",
|
1217
|
-
"false",
|
1218
|
-
:STRING_LITERAL_QUOTE,
|
1219
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
1220
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
1221
|
-
:STRING_LITERAL_LONG_QUOTE],
|
1222
|
-
object: [
|
1223
|
-
")",
|
1224
|
-
",",
|
1225
|
-
".",
|
1226
|
-
"]",
|
1227
|
-
:IRIREF,
|
1228
|
-
:BLANK_NODE_LABEL,
|
1229
|
-
:ANON,
|
1230
|
-
"(",
|
1231
|
-
"[",
|
1232
|
-
";",
|
1233
|
-
:PNAME_LN,
|
1234
|
-
:PNAME_NS,
|
1235
|
-
:INTEGER,
|
1236
|
-
:DECIMAL,
|
1237
|
-
:DOUBLE,
|
1238
|
-
"true",
|
1239
|
-
"false",
|
1240
|
-
:STRING_LITERAL_QUOTE,
|
1241
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
1242
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
1243
|
-
:STRING_LITERAL_LONG_QUOTE],
|
1244
|
-
objectList: [
|
1245
|
-
".",
|
1246
|
-
"]",
|
1247
|
-
";"],
|
1248
|
-
_objectList_1: [
|
1249
|
-
".",
|
1250
|
-
"]",
|
1251
|
-
";"],
|
1252
|
-
_objectList_2: [
|
1253
|
-
",",
|
1254
|
-
".",
|
1255
|
-
"]",
|
1256
|
-
";"],
|
1257
|
-
_objectList_3: [
|
1258
|
-
".",
|
1259
|
-
"]",
|
1260
|
-
";"],
|
1261
|
-
_objectList_4: [
|
1262
|
-
".",
|
1263
|
-
"]",
|
1264
|
-
";"],
|
1265
|
-
_objectList_5: [
|
1266
|
-
".",
|
1267
|
-
"]",
|
1268
|
-
";"],
|
1269
|
-
_objectList_6: [
|
1270
|
-
",",
|
1271
|
-
".",
|
1272
|
-
"]",
|
1273
|
-
";"],
|
1274
|
-
predicate: [
|
1275
|
-
:IRIREF,
|
1276
|
-
:BLANK_NODE_LABEL,
|
1277
|
-
:ANON,
|
1278
|
-
"(",
|
1279
|
-
"[",
|
1280
|
-
:PNAME_LN,
|
1281
|
-
:PNAME_NS,
|
1282
|
-
:INTEGER,
|
1283
|
-
:DECIMAL,
|
1284
|
-
:DOUBLE,
|
1285
|
-
"true",
|
1286
|
-
"false",
|
1287
|
-
")",
|
1288
|
-
",",
|
1289
|
-
".",
|
1290
|
-
"]",
|
1291
|
-
:STRING_LITERAL_QUOTE,
|
1292
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
1293
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
1294
|
-
:STRING_LITERAL_LONG_QUOTE,
|
1295
|
-
";"],
|
1296
|
-
predicateObjectList: [
|
1297
|
-
".",
|
1298
|
-
"]"],
|
1299
|
-
_predicateObjectList_1: [
|
1300
|
-
".",
|
1301
|
-
"]"],
|
1302
|
-
_predicateObjectList_2: [
|
1303
|
-
";",
|
1304
|
-
".",
|
1305
|
-
"]"],
|
1306
|
-
_predicateObjectList_3: [
|
1307
|
-
".",
|
1308
|
-
"]"],
|
1309
|
-
_predicateObjectList_4: [
|
1310
|
-
";",
|
1311
|
-
".",
|
1312
|
-
"]"],
|
1313
|
-
_predicateObjectList_5: [
|
1314
|
-
";",
|
1315
|
-
".",
|
1316
|
-
"]"],
|
1317
|
-
_predicateObjectList_6: [
|
1318
|
-
".",
|
1319
|
-
"]"],
|
1320
|
-
_predicateObjectList_7: [
|
1321
|
-
".",
|
1322
|
-
"]"],
|
1323
|
-
_predicateObjectList_8: [
|
1324
|
-
";",
|
1325
|
-
".",
|
1326
|
-
"]"],
|
1327
|
-
_predicateObjectList_9: [
|
1328
|
-
";",
|
1329
|
-
".",
|
1330
|
-
"]"],
|
1331
|
-
prefixID: [
|
1332
|
-
:_eof,
|
1333
|
-
:PREFIX,
|
1334
|
-
:BASE,
|
1335
|
-
"[",
|
1336
|
-
:IRIREF,
|
1337
|
-
:BLANK_NODE_LABEL,
|
1338
|
-
:ANON,
|
1339
|
-
"(",
|
1340
|
-
:PNAME_LN,
|
1341
|
-
:PNAME_NS],
|
1342
|
-
_prefixID_1: [
|
1343
|
-
:_eof,
|
1344
|
-
:PREFIX,
|
1345
|
-
:BASE,
|
1346
|
-
"[",
|
1347
|
-
:IRIREF,
|
1348
|
-
:BLANK_NODE_LABEL,
|
1349
|
-
:ANON,
|
1350
|
-
"(",
|
1351
|
-
:PNAME_LN,
|
1352
|
-
:PNAME_NS],
|
1353
|
-
_prefixID_2: [
|
1354
|
-
:_eof,
|
1355
|
-
:PREFIX,
|
1356
|
-
:BASE,
|
1357
|
-
"[",
|
1358
|
-
:IRIREF,
|
1359
|
-
:BLANK_NODE_LABEL,
|
1360
|
-
:ANON,
|
1361
|
-
"(",
|
1362
|
-
:PNAME_LN,
|
1363
|
-
:PNAME_NS],
|
1364
|
-
_prefixID_3: [
|
1365
|
-
:_eof,
|
1366
|
-
:PREFIX,
|
1367
|
-
:BASE,
|
1368
|
-
"[",
|
1369
|
-
:IRIREF,
|
1370
|
-
:BLANK_NODE_LABEL,
|
1371
|
-
:ANON,
|
1372
|
-
"(",
|
1373
|
-
:PNAME_LN,
|
1374
|
-
:PNAME_NS],
|
1375
|
-
_prefixID_4: [
|
1376
|
-
:_eof,
|
1377
|
-
:PREFIX,
|
1378
|
-
:BASE,
|
1379
|
-
"[",
|
1380
|
-
:IRIREF,
|
1381
|
-
:BLANK_NODE_LABEL,
|
1382
|
-
:ANON,
|
1383
|
-
"(",
|
1384
|
-
:PNAME_LN,
|
1385
|
-
:PNAME_NS],
|
1386
|
-
statement: [
|
1387
|
-
:_eof,
|
1388
|
-
:PREFIX,
|
1389
|
-
:BASE,
|
1390
|
-
"[",
|
1391
|
-
:IRIREF,
|
1392
|
-
:BLANK_NODE_LABEL,
|
1393
|
-
:ANON,
|
1394
|
-
"(",
|
1395
|
-
:PNAME_LN,
|
1396
|
-
:PNAME_NS],
|
1397
|
-
_statement_1: [
|
1398
|
-
:_eof,
|
1399
|
-
:PREFIX,
|
1400
|
-
:BASE,
|
1401
|
-
"[",
|
1402
|
-
:IRIREF,
|
1403
|
-
:BLANK_NODE_LABEL,
|
1404
|
-
:ANON,
|
1405
|
-
"(",
|
1406
|
-
:PNAME_LN,
|
1407
|
-
:PNAME_NS],
|
1408
|
-
_statement_2: [
|
1409
|
-
:_eof,
|
1410
|
-
:PREFIX,
|
1411
|
-
:BASE,
|
1412
|
-
"[",
|
1413
|
-
:IRIREF,
|
1414
|
-
:BLANK_NODE_LABEL,
|
1415
|
-
:ANON,
|
1416
|
-
"(",
|
1417
|
-
:PNAME_LN,
|
1418
|
-
:PNAME_NS],
|
1419
|
-
subject: [
|
1420
|
-
"a",
|
1421
|
-
:IRIREF,
|
1422
|
-
:PNAME_LN,
|
1423
|
-
:PNAME_NS],
|
1424
|
-
triples: [
|
1425
|
-
"."],
|
1426
|
-
_triples_1: [
|
1427
|
-
"."],
|
1428
|
-
_triples_2: [
|
1429
|
-
"."],
|
1430
|
-
_triples_3: [
|
1431
|
-
"."],
|
1432
|
-
_triples_4: [
|
1433
|
-
"."],
|
1434
|
-
_triples_5: [
|
1435
|
-
"."],
|
1436
|
-
turtleDoc: [
|
1437
|
-
:_eof],
|
1438
|
-
_turtleDoc_1: [
|
1439
|
-
:_eof],
|
1440
|
-
_turtleDoc_2: [
|
1441
|
-
:_eof],
|
1442
|
-
verb: [
|
1443
|
-
:IRIREF,
|
1444
|
-
:BLANK_NODE_LABEL,
|
1445
|
-
:ANON,
|
1446
|
-
"(",
|
1447
|
-
"[",
|
1448
|
-
:PNAME_LN,
|
1449
|
-
:PNAME_NS,
|
1450
|
-
:INTEGER,
|
1451
|
-
:DECIMAL,
|
1452
|
-
:DOUBLE,
|
1453
|
-
"true",
|
1454
|
-
"false",
|
1455
|
-
:STRING_LITERAL_QUOTE,
|
1456
|
-
:STRING_LITERAL_SINGLE_QUOTE,
|
1457
|
-
:STRING_LITERAL_LONG_SINGLE_QUOTE,
|
1458
|
-
:STRING_LITERAL_LONG_QUOTE],
|
1459
|
-
}.freeze
|
1460
|
-
end
|
1461
|
-
|