sparql-client 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/sparql/client.rb +5 -2
- metadata +52 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a6ad63410ae80d9c27f0be01b03b76e190ff9d3
|
4
|
+
data.tar.gz: 8eb1f2318206ca77f8d3de492edd5b39a21544e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06077bcbae3445a986788c5b0a6486892a13dbcf66c20d21a6fae3af20b119065dcaef2608f734d8f9b2c37574c99a08799293ec95cb93c93e8d872a0b90d895
|
7
|
+
data.tar.gz: 65a0b4b376331ec5997c34590035f00223391672a092c696129ca51de547082c58178677d49b74ac99e577f62a4b60552fa37d82e5d3c7d08c40a65b07e70ea3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.2
|
data/lib/sparql/client.rb
CHANGED
@@ -291,6 +291,7 @@ module SPARQL
|
|
291
291
|
# @see http://www.w3.org/TR/sparql11-protocol/#query-operation
|
292
292
|
def query(query, options = {})
|
293
293
|
@op = :query
|
294
|
+
@alt_endpoint = options[:endpoint]
|
294
295
|
case @url
|
295
296
|
when RDF::Queryable
|
296
297
|
require 'sparql' unless defined?(::SPARQL::Grammar)
|
@@ -317,13 +318,13 @@ module SPARQL
|
|
317
318
|
# @see http://www.w3.org/TR/sparql11-protocol/#update-operation
|
318
319
|
def update(query, options = {})
|
319
320
|
@op = :update
|
320
|
-
@alt_endpoint = options[:endpoint]
|
321
|
+
@alt_endpoint = options[:endpoint]
|
321
322
|
case @url
|
322
323
|
when RDF::Queryable
|
323
324
|
require 'sparql' unless defined?(::SPARQL::Grammar)
|
324
325
|
SPARQL.execute(query, @url, options.merge(update: true))
|
325
326
|
else
|
326
|
-
|
327
|
+
response(query, options)
|
327
328
|
end
|
328
329
|
self
|
329
330
|
end
|
@@ -360,6 +361,8 @@ module SPARQL
|
|
360
361
|
# @return [Object]
|
361
362
|
def parse_response(response, options = {})
|
362
363
|
case options[:content_type] || response.content_type
|
364
|
+
when NilClass
|
365
|
+
response.body
|
363
366
|
when RESULT_BOOL # Sesame-specific
|
364
367
|
response.body == 'true'
|
365
368
|
when RESULT_JSON
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sparql-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
@@ -10,118 +10,146 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-06
|
13
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rdf
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - ~>
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 2.0.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - ~>
|
26
|
+
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 2.0.2
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: net-http-persistent
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- - ~>
|
33
|
+
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: '2.9'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- - ~>
|
40
|
+
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '2.9'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: sparql
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - ~>
|
47
|
+
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '2.0'
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - ~>
|
54
|
+
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '2.0'
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: rdf-spec
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- - ~>
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '2.0'
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '2.0'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: rdf-turtle
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
62
76
|
- !ruby/object:Gem::Version
|
63
77
|
version: '2.0'
|
64
78
|
type: :development
|
65
79
|
prerelease: false
|
66
80
|
version_requirements: !ruby/object:Gem::Requirement
|
67
81
|
requirements:
|
68
|
-
- - ~>
|
82
|
+
- - "~>"
|
69
83
|
- !ruby/object:Gem::Version
|
70
84
|
version: '2.0'
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: rack
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '1.6'
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - "~>"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '1.6'
|
71
99
|
- !ruby/object:Gem::Dependency
|
72
100
|
name: rspec
|
73
101
|
requirement: !ruby/object:Gem::Requirement
|
74
102
|
requirements:
|
75
|
-
- - ~>
|
103
|
+
- - "~>"
|
76
104
|
- !ruby/object:Gem::Version
|
77
105
|
version: '3.4'
|
78
106
|
type: :development
|
79
107
|
prerelease: false
|
80
108
|
version_requirements: !ruby/object:Gem::Requirement
|
81
109
|
requirements:
|
82
|
-
- - ~>
|
110
|
+
- - "~>"
|
83
111
|
- !ruby/object:Gem::Version
|
84
112
|
version: '3.4'
|
85
113
|
- !ruby/object:Gem::Dependency
|
86
114
|
name: rspec-its
|
87
115
|
requirement: !ruby/object:Gem::Requirement
|
88
116
|
requirements:
|
89
|
-
- - ~>
|
117
|
+
- - "~>"
|
90
118
|
- !ruby/object:Gem::Version
|
91
119
|
version: '1.2'
|
92
120
|
type: :development
|
93
121
|
prerelease: false
|
94
122
|
version_requirements: !ruby/object:Gem::Requirement
|
95
123
|
requirements:
|
96
|
-
- - ~>
|
124
|
+
- - "~>"
|
97
125
|
- !ruby/object:Gem::Version
|
98
126
|
version: '1.2'
|
99
127
|
- !ruby/object:Gem::Dependency
|
100
128
|
name: webmock
|
101
129
|
requirement: !ruby/object:Gem::Requirement
|
102
130
|
requirements:
|
103
|
-
- - ~>
|
131
|
+
- - "~>"
|
104
132
|
- !ruby/object:Gem::Version
|
105
133
|
version: '1.15'
|
106
134
|
type: :development
|
107
135
|
prerelease: false
|
108
136
|
version_requirements: !ruby/object:Gem::Requirement
|
109
137
|
requirements:
|
110
|
-
- - ~>
|
138
|
+
- - "~>"
|
111
139
|
- !ruby/object:Gem::Version
|
112
140
|
version: '1.15'
|
113
141
|
- !ruby/object:Gem::Dependency
|
114
142
|
name: yard
|
115
143
|
requirement: !ruby/object:Gem::Requirement
|
116
144
|
requirements:
|
117
|
-
- - ~>
|
145
|
+
- - "~>"
|
118
146
|
- !ruby/object:Gem::Version
|
119
147
|
version: '0.8'
|
120
148
|
type: :development
|
121
149
|
prerelease: false
|
122
150
|
version_requirements: !ruby/object:Gem::Requirement
|
123
151
|
requirements:
|
124
|
-
- - ~>
|
152
|
+
- - "~>"
|
125
153
|
- !ruby/object:Gem::Version
|
126
154
|
version: '0.8'
|
127
155
|
description: |-
|
@@ -139,11 +167,11 @@ files:
|
|
139
167
|
- README.md
|
140
168
|
- UNLICENSE
|
141
169
|
- VERSION
|
170
|
+
- lib/sparql/client.rb
|
142
171
|
- lib/sparql/client/query.rb
|
143
172
|
- lib/sparql/client/repository.rb
|
144
173
|
- lib/sparql/client/update.rb
|
145
174
|
- lib/sparql/client/version.rb
|
146
|
-
- lib/sparql/client.rb
|
147
175
|
homepage: http://ruby-rdf.github.com/sparql-client/
|
148
176
|
licenses:
|
149
177
|
- Unlicense
|
@@ -154,17 +182,17 @@ require_paths:
|
|
154
182
|
- lib
|
155
183
|
required_ruby_version: !ruby/object:Gem::Requirement
|
156
184
|
requirements:
|
157
|
-
- -
|
185
|
+
- - ">="
|
158
186
|
- !ruby/object:Gem::Version
|
159
187
|
version: '2.0'
|
160
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
189
|
requirements:
|
162
|
-
- -
|
190
|
+
- - ">="
|
163
191
|
- !ruby/object:Gem::Version
|
164
192
|
version: '0'
|
165
193
|
requirements: []
|
166
194
|
rubyforge_project: sparql-client
|
167
|
-
rubygems_version: 2.
|
195
|
+
rubygems_version: 2.5.1
|
168
196
|
signing_key:
|
169
197
|
specification_version: 4
|
170
198
|
summary: SPARQL client for RDF.rb.
|