sasquatch 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
@@ -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'
@@ -0,0 +1,4 @@
1
+ module RDF::RSS10
2
+ class Writer < RDF::Writer
3
+ end
4
+ end
@@ -224,8 +224,8 @@ module Sasquatch
224
224
  unless graph == :default
225
225
  path << "/graphs/#{graph}"
226
226
  end
227
- options = {:query=>{:query=>query, :output=>'ntriples'}, :digest_auth=>@auth}
228
- @last_response = get(path, options)
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 = {:query=>{:query=>query, :output=>'json'}, :digest_auth=>@auth}
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
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-07-26 00:00:00 Z
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