sparql-client 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/CREDITS CHANGED
@@ -1,3 +1,5 @@
1
+ * Christoph Badura <bad@bsd.de>
2
+ * James Hetherington <jamespjh@googlemail.com>
1
3
  * Gabriel Horner <gabriel.horner@gmail.com>
2
4
  * Nicholas Humfrey <njh@aelius.com>
3
5
  * Fumihiro Kato <fumi@fumi.me>
data/README CHANGED
@@ -69,8 +69,8 @@ Dependencies
69
69
  ------------
70
70
 
71
71
  * [Ruby](http://ruby-lang.org/) (>= 1.8.7) or (>= 1.8.1 with [Backports][])
72
- * [RDF.rb](http://rubygems.org/gems/rdf) (>= 0.2.0)
73
- * [JSON](http://rubygems.org/gems/json_pure) (>= 1.4.0)
72
+ * [RDF.rb](http://rubygems.org/gems/rdf) (>= 0.3.0)
73
+ * [JSON](http://rubygems.org/gems/json_pure) (>= 1.4.2)
74
74
 
75
75
  Installation
76
76
  ------------
@@ -87,20 +87,27 @@ To get a local working copy of the development repository, do:
87
87
 
88
88
  % git clone git://github.com/bendiken/sparql-client.git
89
89
 
90
- Alternatively, you can download the latest development version as a tarball
91
- as follows:
90
+ Alternatively, download the latest development version as a tarball as
91
+ follows:
92
92
 
93
93
  % wget http://github.com/bendiken/sparql-client/tarball/master
94
94
 
95
+ Mailing List
96
+ ------------
97
+
98
+ * <http://lists.w3.org/Archives/Public/public-rdf-ruby/>
99
+
95
100
  Authors
96
101
  -------
97
102
 
98
- * [Arto Bendiken](mailto:arto.bendiken@gmail.com) - <http://ar.to/>
99
- * [Ben Lavender](mailto:blavender@gmail.com) - <http://bhuga.net/>
103
+ * [Arto Bendiken](http://github.com/bendiken) - <http://ar.to/>
104
+ * [Ben Lavender](http://github.com/bhuga) - <http://bhuga.net/>
100
105
 
101
106
  Contributors
102
107
  ------------
103
108
 
109
+ * [Christoph Badura](http://github.com/b4d) - <http://github.com/b4d>
110
+ * [James Hetherington](http://github.com/jamespjh) - <http://twitter.com/jamespjh>
104
111
  * [Gabriel Horner](http://github.com/cldwalker) - <http://tagaholic.me/>
105
112
  * [Nicholas Humfrey](http://github.com/njh) - <http://www.aelius.com/njh/>
106
113
  * [Fumihiro Kato](http://github.com/fumi) - <http://fumi.me/>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
data/lib/sparql.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  module SPARQL
2
- # @see http://rubygems.org/gems/sparql-client
3
- autoload :Client, 'sparql/client'
2
+ # @see http://rubygems.org/gems/sparql-algebra
3
+ autoload :Algebra, 'sparql/algebra'
4
4
  # @see http://rubygems.org/gems/sparql-grammar
5
5
  autoload :Grammar, 'sparql/grammar'
6
+ # @see http://rubygems.org/gems/sparql-client
7
+ autoload :Client, 'sparql/client'
6
8
  end
data/lib/sparql/client.rb CHANGED
@@ -1,10 +1,13 @@
1
1
  require 'net/http'
2
- require 'rdf'
2
+ require 'rdf' # @see http://rubygems.org/gems/rdf
3
3
  require 'rdf/ntriples'
4
4
 
5
5
  module SPARQL
6
6
  ##
7
7
  # A SPARQL client for RDF.rb.
8
+ #
9
+ # @see http://www.w3.org/TR/rdf-sparql-protocol/
10
+ # @see http://www.w3.org/TR/rdf-sparql-json-res/
8
11
  class Client
9
12
  autoload :Query, 'sparql/client/query'
10
13
  autoload :Repository, 'sparql/client/repository'
@@ -28,7 +31,8 @@ module SPARQL
28
31
  # @param [Hash{Symbol => Object}] options
29
32
  def initialize(url, options = {}, &block)
30
33
  @url, @options = RDF::URI.new(url.to_s), options
31
- @headers = {'Accept' => "#{RESULT_JSON}, #{RESULT_XML}, text/plain"}
34
+ #@headers = {'Accept' => "#{RESULT_JSON}, #{RESULT_XML}, text/plain"}
35
+ @headers = {'Accept' => [RESULT_JSON, RESULT_XML, RDF::Format.content_types.collect { |k,v| k.to_s }].join(', ')}
32
36
 
33
37
  if block_given?
34
38
  case block.arity
@@ -283,5 +287,5 @@ module SPARQL
283
287
  end
284
288
  end
285
289
  end
286
- end
287
- end
290
+ end # Client
291
+ end # SPARQL
@@ -2,7 +2,7 @@ module SPARQL; class Client
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 7
5
+ TINY = 8
6
6
  EXTRA = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 7
9
- version: 0.0.7
8
+ - 8
9
+ version: 0.0.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Arto Bendiken
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-14 00:00:00 +02:00
18
+ date: 2011-01-15 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -23,13 +23,13 @@ dependencies:
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ~>
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
28
  segments:
29
29
  - 1
30
30
  - 4
31
- - 0
32
- version: 1.4.0
31
+ - 2
32
+ version: 1.4.2
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
@@ -41,9 +41,9 @@ dependencies:
41
41
  - !ruby/object:Gem::Version
42
42
  segments:
43
43
  - 0
44
- - 2
44
+ - 3
45
45
  - 0
46
- version: 0.2.0
46
+ version: 0.3.0
47
47
  type: :runtime
48
48
  version_requirements: *id002
49
49
  - !ruby/object:Gem::Dependency
@@ -68,10 +68,10 @@ dependencies:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  segments:
71
+ - 2
71
72
  - 1
72
- - 3
73
73
  - 0
74
- version: 1.3.0
74
+ version: 2.1.0
75
75
  type: :development
76
76
  version_requirements: *id004
77
77
  - !ruby/object:Gem::Dependency
@@ -83,9 +83,9 @@ dependencies:
83
83
  - !ruby/object:Gem::Version
84
84
  segments:
85
85
  - 0
86
- - 2
86
+ - 3
87
87
  - 0
88
- version: 0.2.0
88
+ version: 0.3.0
89
89
  type: :development
90
90
  version_requirements: *id005
91
91
  description: SPARQL client for RDF.rb.