sparql 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/VERSION +1 -1
- data/lib/sparql/algebra/operator/in.rb +2 -2
- data/lib/sparql/algebra/operator/notin.rb +2 -2
- metadata +49 -118
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 83b4375ca13302d7cdc8a6c81d7b6543cea34481
|
4
|
+
data.tar.gz: 26e31f363b9b86f7786ab848ff9c655c7441260e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 47e5858870bc37a4a6be21ec9b117e1d53e75d1a384cdc1e89636b7a7ad9943382c972daea03fe6bc1ad5dc93e76678889a048ad351ad1ea56530edb6fabcb7b
|
7
|
+
data.tar.gz: aaa54ca0274fcecec14f8720c0ab1fa27449a825988c34badbde60908975c2aae3c6a78951d8fa31ceb7ef954d61edda246a524e32cc4db34dab724bf3f945a3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
@@ -41,9 +41,9 @@ module SPARQL; module Algebra
|
|
41
41
|
# @return [RDF::Literal::Boolean] `true` or `false`
|
42
42
|
# @raise [TypeError] if term is not found and any operand raises an error
|
43
43
|
def evaluate(bindings, options = {})
|
44
|
-
lhs = operands.
|
44
|
+
lhs = operands.first.evaluate(bindings, options)
|
45
45
|
error_found = false
|
46
|
-
found = operands.any? do |op|
|
46
|
+
found = operands[1..-1].any? do |op|
|
47
47
|
begin
|
48
48
|
lhs == op.evaluate(bindings, options.merge(:depth => options[:depth].to_i + 1))
|
49
49
|
rescue TypeError
|
@@ -43,9 +43,9 @@ module SPARQL; module Algebra
|
|
43
43
|
# @return [RDF::Literal::Boolean] `true` or `false`
|
44
44
|
# @raise [TypeError] if term is not found and any operand raises an error
|
45
45
|
def evaluate(bindings, options = {})
|
46
|
-
lhs = operands.
|
46
|
+
lhs = operands.first.evaluate(bindings, options.merge(:depth => options[:depth].to_i + 1))
|
47
47
|
error_found = false
|
48
|
-
found = operands.any? do |op|
|
48
|
+
found = operands[1..-1].any? do |op|
|
49
49
|
begin
|
50
50
|
lhs == op.evaluate(bindings, options.merge(:depth => options[:depth].to_i + 1))
|
51
51
|
rescue TypeError
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sparql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Gregg Kellogg
|
@@ -10,284 +9,221 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-10-30 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rdf
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - ~>
|
21
19
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.0.
|
20
|
+
version: 1.0.10
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
|
-
- -
|
25
|
+
- - ~>
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
version: 1.0.
|
27
|
+
version: 1.0.10
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: rdf-aggregate-repo
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
|
-
- -
|
32
|
+
- - '>='
|
37
33
|
- !ruby/object:Gem::Version
|
38
34
|
version: '0'
|
39
35
|
type: :runtime
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
|
-
- -
|
39
|
+
- - '>='
|
45
40
|
- !ruby/object:Gem::Version
|
46
41
|
version: '0'
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: ebnf
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
|
-
- -
|
46
|
+
- - '>='
|
53
47
|
- !ruby/object:Gem::Version
|
54
48
|
version: 0.3.0
|
55
49
|
type: :runtime
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
|
-
- -
|
53
|
+
- - '>='
|
61
54
|
- !ruby/object:Gem::Version
|
62
55
|
version: 0.3.0
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
57
|
name: builder
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
|
-
- -
|
60
|
+
- - '>='
|
69
61
|
- !ruby/object:Gem::Version
|
70
62
|
version: '3.0'
|
71
63
|
type: :runtime
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
|
-
- -
|
67
|
+
- - '>='
|
77
68
|
- !ruby/object:Gem::Version
|
78
69
|
version: '3.0'
|
79
70
|
- !ruby/object:Gem::Dependency
|
80
71
|
name: json
|
81
72
|
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
73
|
requirements:
|
84
|
-
- -
|
74
|
+
- - '>='
|
85
75
|
- !ruby/object:Gem::Version
|
86
76
|
version: '1.7'
|
87
77
|
type: :runtime
|
88
78
|
prerelease: false
|
89
79
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
80
|
requirements:
|
92
|
-
- -
|
81
|
+
- - '>='
|
93
82
|
- !ruby/object:Gem::Version
|
94
83
|
version: '1.7'
|
95
84
|
- !ruby/object:Gem::Dependency
|
96
85
|
name: sxp
|
97
86
|
requirement: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
87
|
requirements:
|
100
|
-
- -
|
88
|
+
- - '>='
|
101
89
|
- !ruby/object:Gem::Version
|
102
90
|
version: 0.1.3
|
103
91
|
type: :runtime
|
104
92
|
prerelease: false
|
105
93
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
94
|
requirements:
|
108
|
-
- -
|
95
|
+
- - '>='
|
109
96
|
- !ruby/object:Gem::Version
|
110
97
|
version: 0.1.3
|
111
98
|
- !ruby/object:Gem::Dependency
|
112
99
|
name: sparql-client
|
113
100
|
requirement: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
101
|
requirements:
|
116
|
-
- -
|
102
|
+
- - '>='
|
117
103
|
- !ruby/object:Gem::Version
|
118
104
|
version: 1.0.3
|
119
105
|
type: :runtime
|
120
106
|
prerelease: false
|
121
107
|
version_requirements: !ruby/object:Gem::Requirement
|
122
|
-
none: false
|
123
108
|
requirements:
|
124
|
-
- -
|
109
|
+
- - '>='
|
125
110
|
- !ruby/object:Gem::Version
|
126
111
|
version: 1.0.3
|
127
112
|
- !ruby/object:Gem::Dependency
|
128
113
|
name: rdf-xsd
|
129
114
|
requirement: !ruby/object:Gem::Requirement
|
130
|
-
none: false
|
131
115
|
requirements:
|
132
|
-
- -
|
116
|
+
- - ~>
|
133
117
|
- !ruby/object:Gem::Version
|
134
118
|
version: 1.0.2
|
135
119
|
type: :runtime
|
136
120
|
prerelease: false
|
137
121
|
version_requirements: !ruby/object:Gem::Requirement
|
138
|
-
none: false
|
139
122
|
requirements:
|
140
|
-
- -
|
123
|
+
- - ~>
|
141
124
|
- !ruby/object:Gem::Version
|
142
125
|
version: 1.0.2
|
143
126
|
- !ruby/object:Gem::Dependency
|
144
127
|
name: sinatra
|
145
128
|
requirement: !ruby/object:Gem::Requirement
|
146
|
-
none: false
|
147
129
|
requirements:
|
148
|
-
- -
|
130
|
+
- - '>='
|
149
131
|
- !ruby/object:Gem::Version
|
150
132
|
version: 1.3.3
|
151
133
|
type: :development
|
152
134
|
prerelease: false
|
153
135
|
version_requirements: !ruby/object:Gem::Requirement
|
154
|
-
none: false
|
155
136
|
requirements:
|
156
|
-
- -
|
137
|
+
- - '>='
|
157
138
|
- !ruby/object:Gem::Version
|
158
139
|
version: 1.3.3
|
159
140
|
- !ruby/object:Gem::Dependency
|
160
141
|
name: rack
|
161
142
|
requirement: !ruby/object:Gem::Requirement
|
162
|
-
none: false
|
163
143
|
requirements:
|
164
|
-
- -
|
144
|
+
- - '>='
|
165
145
|
- !ruby/object:Gem::Version
|
166
146
|
version: 1.4.4
|
167
147
|
type: :development
|
168
148
|
prerelease: false
|
169
149
|
version_requirements: !ruby/object:Gem::Requirement
|
170
|
-
none: false
|
171
150
|
requirements:
|
172
|
-
- -
|
151
|
+
- - '>='
|
173
152
|
- !ruby/object:Gem::Version
|
174
153
|
version: 1.4.4
|
175
154
|
- !ruby/object:Gem::Dependency
|
176
155
|
name: rack-test
|
177
156
|
requirement: !ruby/object:Gem::Requirement
|
178
|
-
none: false
|
179
157
|
requirements:
|
180
|
-
- -
|
158
|
+
- - '>='
|
181
159
|
- !ruby/object:Gem::Version
|
182
160
|
version: 0.6.2
|
183
161
|
type: :development
|
184
162
|
prerelease: false
|
185
163
|
version_requirements: !ruby/object:Gem::Requirement
|
186
|
-
none: false
|
187
164
|
requirements:
|
188
|
-
- -
|
165
|
+
- - '>='
|
189
166
|
- !ruby/object:Gem::Version
|
190
167
|
version: 0.6.2
|
191
|
-
- !ruby/object:Gem::Dependency
|
192
|
-
name: rdf-turtle
|
193
|
-
requirement: !ruby/object:Gem::Requirement
|
194
|
-
none: false
|
195
|
-
requirements:
|
196
|
-
- - ! '>='
|
197
|
-
- !ruby/object:Gem::Version
|
198
|
-
version: 1.0.7
|
199
|
-
type: :development
|
200
|
-
prerelease: false
|
201
|
-
version_requirements: !ruby/object:Gem::Requirement
|
202
|
-
none: false
|
203
|
-
requirements:
|
204
|
-
- - ! '>='
|
205
|
-
- !ruby/object:Gem::Version
|
206
|
-
version: 1.0.7
|
207
|
-
- !ruby/object:Gem::Dependency
|
208
|
-
name: rdf-trig
|
209
|
-
requirement: !ruby/object:Gem::Requirement
|
210
|
-
none: false
|
211
|
-
requirements:
|
212
|
-
- - ! '>='
|
213
|
-
- !ruby/object:Gem::Version
|
214
|
-
version: 1.0.1
|
215
|
-
type: :development
|
216
|
-
prerelease: false
|
217
|
-
version_requirements: !ruby/object:Gem::Requirement
|
218
|
-
none: false
|
219
|
-
requirements:
|
220
|
-
- - ! '>='
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: 1.0.1
|
223
168
|
- !ruby/object:Gem::Dependency
|
224
169
|
name: linkeddata
|
225
170
|
requirement: !ruby/object:Gem::Requirement
|
226
|
-
none: false
|
227
171
|
requirements:
|
228
|
-
- -
|
172
|
+
- - ~>
|
229
173
|
- !ruby/object:Gem::Version
|
230
|
-
version:
|
174
|
+
version: 1.0.9
|
231
175
|
type: :development
|
232
176
|
prerelease: false
|
233
177
|
version_requirements: !ruby/object:Gem::Requirement
|
234
|
-
none: false
|
235
178
|
requirements:
|
236
|
-
- -
|
179
|
+
- - ~>
|
237
180
|
- !ruby/object:Gem::Version
|
238
|
-
version:
|
181
|
+
version: 1.0.9
|
239
182
|
- !ruby/object:Gem::Dependency
|
240
183
|
name: rdf-spec
|
241
184
|
requirement: !ruby/object:Gem::Requirement
|
242
|
-
none: false
|
243
185
|
requirements:
|
244
|
-
- -
|
186
|
+
- - '>='
|
245
187
|
- !ruby/object:Gem::Version
|
246
|
-
version: 1.0.
|
188
|
+
version: 1.0.9
|
247
189
|
type: :development
|
248
190
|
prerelease: false
|
249
191
|
version_requirements: !ruby/object:Gem::Requirement
|
250
|
-
none: false
|
251
192
|
requirements:
|
252
|
-
- -
|
193
|
+
- - '>='
|
253
194
|
- !ruby/object:Gem::Version
|
254
|
-
version: 1.0.
|
195
|
+
version: 1.0.9
|
255
196
|
- !ruby/object:Gem::Dependency
|
256
197
|
name: open-uri-cached
|
257
198
|
requirement: !ruby/object:Gem::Requirement
|
258
|
-
none: false
|
259
199
|
requirements:
|
260
|
-
- -
|
200
|
+
- - '>='
|
261
201
|
- !ruby/object:Gem::Version
|
262
202
|
version: 0.0.5
|
263
203
|
type: :development
|
264
204
|
prerelease: false
|
265
205
|
version_requirements: !ruby/object:Gem::Requirement
|
266
|
-
none: false
|
267
206
|
requirements:
|
268
|
-
- -
|
207
|
+
- - '>='
|
269
208
|
- !ruby/object:Gem::Version
|
270
209
|
version: 0.0.5
|
271
210
|
- !ruby/object:Gem::Dependency
|
272
211
|
name: rspec
|
273
212
|
requirement: !ruby/object:Gem::Requirement
|
274
|
-
none: false
|
275
213
|
requirements:
|
276
|
-
- -
|
214
|
+
- - '>='
|
277
215
|
- !ruby/object:Gem::Version
|
278
216
|
version: 2.14.0
|
279
217
|
type: :development
|
280
218
|
prerelease: false
|
281
219
|
version_requirements: !ruby/object:Gem::Requirement
|
282
|
-
none: false
|
283
220
|
requirements:
|
284
|
-
- -
|
221
|
+
- - '>='
|
285
222
|
- !ruby/object:Gem::Version
|
286
223
|
version: 2.14.0
|
287
224
|
- !ruby/object:Gem::Dependency
|
288
225
|
name: spira
|
289
226
|
requirement: !ruby/object:Gem::Requirement
|
290
|
-
none: false
|
291
227
|
requirements:
|
292
228
|
- - '='
|
293
229
|
- !ruby/object:Gem::Version
|
@@ -295,7 +231,6 @@ dependencies:
|
|
295
231
|
type: :development
|
296
232
|
prerelease: false
|
297
233
|
version_requirements: !ruby/object:Gem::Requirement
|
298
|
-
none: false
|
299
234
|
requirements:
|
300
235
|
- - '='
|
301
236
|
- !ruby/object:Gem::Version
|
@@ -303,21 +238,21 @@ dependencies:
|
|
303
238
|
- !ruby/object:Gem::Dependency
|
304
239
|
name: yard
|
305
240
|
requirement: !ruby/object:Gem::Requirement
|
306
|
-
none: false
|
307
241
|
requirements:
|
308
|
-
- -
|
242
|
+
- - '>='
|
309
243
|
- !ruby/object:Gem::Version
|
310
244
|
version: 0.8.3
|
311
245
|
type: :development
|
312
246
|
prerelease: false
|
313
247
|
version_requirements: !ruby/object:Gem::Requirement
|
314
|
-
none: false
|
315
248
|
requirements:
|
316
|
-
- -
|
249
|
+
- - '>='
|
317
250
|
- !ruby/object:Gem::Version
|
318
251
|
version: 0.8.3
|
319
|
-
description:
|
320
|
-
|
252
|
+
description: |2-
|
253
|
+
|
254
|
+
Implements SPARQL grammar parsing to SPARQL Algebra, SPARQL Algebra processing
|
255
|
+
and includes SPARQL Client for accessing remote repositories.
|
321
256
|
email: public-rdf-ruby@w3.org
|
322
257
|
executables:
|
323
258
|
- sparql
|
@@ -455,30 +390,26 @@ files:
|
|
455
390
|
homepage: http://github.com/ruby-rdf/sparql
|
456
391
|
licenses:
|
457
392
|
- Public Domain
|
393
|
+
metadata: {}
|
458
394
|
post_install_message:
|
459
395
|
rdoc_options: []
|
460
396
|
require_paths:
|
461
397
|
- lib
|
462
398
|
required_ruby_version: !ruby/object:Gem::Requirement
|
463
|
-
none: false
|
464
399
|
requirements:
|
465
|
-
- -
|
400
|
+
- - '>='
|
466
401
|
- !ruby/object:Gem::Version
|
467
402
|
version: 1.9.2
|
468
403
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
469
|
-
none: false
|
470
404
|
requirements:
|
471
|
-
- -
|
405
|
+
- - '>='
|
472
406
|
- !ruby/object:Gem::Version
|
473
407
|
version: '0'
|
474
|
-
segments:
|
475
|
-
- 0
|
476
|
-
hash: 3980309521266405902
|
477
408
|
requirements: []
|
478
409
|
rubyforge_project: sparql
|
479
|
-
rubygems_version:
|
410
|
+
rubygems_version: 2.0.5
|
480
411
|
signing_key:
|
481
|
-
specification_version:
|
412
|
+
specification_version: 4
|
482
413
|
summary: SPARQL library for Ruby.
|
483
414
|
test_files: []
|
484
415
|
has_rdoc: false
|