sasquatch 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sasquatch/rss10.rb +1 -0
- data/lib/sasquatch/rss10/writer.rb +4 -0
- data/lib/sasquatch/store.rb +3 -3
- metadata +5 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/lib/sasquatch/rss10.rb
CHANGED
@@ -3,6 +3,7 @@ module RDF
|
|
3
3
|
module RSS10
|
4
4
|
require File.dirname(__FILE__) + '/rss10/format'
|
5
5
|
require File.dirname(__FILE__) + '/rss10/reader'
|
6
|
+
require File.dirname(__FILE__) + '/rss10/writer'
|
6
7
|
# require 'rdf/n3/vocab'
|
7
8
|
# require 'rdf/n3/patches/array_hacks'
|
8
9
|
# require 'rdf/n3/patches/graph_properties'
|
data/lib/sasquatch/store.rb
CHANGED
@@ -224,8 +224,8 @@ module Sasquatch
|
|
224
224
|
unless graph == :default
|
225
225
|
path << "/graphs/#{graph}"
|
226
226
|
end
|
227
|
-
options = {:
|
228
|
-
@last_response =
|
227
|
+
options = {:headers=>{"Accept"=> "text/plain"}, :body=>{:query=>query}, :digest_auth=>@auth}
|
228
|
+
@last_response = post(path, options)
|
229
229
|
graph = parse_ntriples(@last_response.body)
|
230
230
|
graph
|
231
231
|
end
|
@@ -237,7 +237,7 @@ module Sasquatch
|
|
237
237
|
unless graph == :default
|
238
238
|
path << "/graphs/#{graph}"
|
239
239
|
end
|
240
|
-
options = {:
|
240
|
+
options = {:headers=>{"Accept"=> "application/json"}, :body=>{:query=>query}, :digest_auth=>@auth}
|
241
241
|
@last_response = get(path, options)
|
242
242
|
SPARQL::Client.parse_json_bindings(@last_response.body) || false
|
243
243
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sasquatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ross Singer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-08-02 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: httparty
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- lib/sasquatch/rdf.rb
|
114
114
|
- lib/sasquatch/rss10/format.rb
|
115
115
|
- lib/sasquatch/rss10/reader.rb
|
116
|
+
- lib/sasquatch/rss10/writer.rb
|
116
117
|
- lib/sasquatch/rss10.rb
|
117
118
|
- lib/sasquatch/search_result.rb
|
118
119
|
- lib/sasquatch/sparql_builder.rb
|