rdf-smart 0.0.165 → 0.0.166

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rdf/smart.rb +6 -0
  3. data/rdf-smart.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35348b067444f702625a409c557b9c39b4252b92
4
- data.tar.gz: a4029976048792cfd7f5860cf58c6ec757c44807
3
+ metadata.gz: 3ad155c233e8d8e8c5c606c0e81dc81cfde00960
4
+ data.tar.gz: 03904cef82a33c39c4220d63a9aaa22c41f76def
5
5
  SHA512:
6
- metadata.gz: efa7e87d00dee4c3b0c729811a7dd0085594f9ec511f2c30fa81a347f3e28dbdded911c45db1f887903e25f1b332fd9d1a9de09ba885d97ac960567dd9fec713
7
- data.tar.gz: d21298229c9eb464e3d3b156faba42fd13fa807da995d54801f0a0acdcfea0286c359e669ede87f92fc9e7a375075667d658f6eb3eaa868f778ac8c902ea4c92
6
+ metadata.gz: 68eb7adf6d15897098fd209b568ef36feb0d5591db034b09928a37e2335f9de91db49dc2d2b7d54dad6f46dd87ce8dfe4e7effc6f4dc8ae64786dce23b6c7b6b
7
+ data.tar.gz: 368c6d9fd40389163fcb8798190fd779612cbd3789196a574168fdebf75062a2c2e4b9948bc99d134e62822f3f69cb0c805e5fa74ff126f7f4793149a4661618
data/lib/rdf/smart.rb CHANGED
@@ -21,6 +21,12 @@ module RDF
21
21
  end
22
22
  ##
23
23
  # +res+ is the returned value.
24
+ if query.lstrip.downcase['prefix'] == nil
25
+ namespaces.each do |k,v|
26
+ query = "prefix #{k}: <#{v}> " +query
27
+ end
28
+ end
29
+ pp query
24
30
  (res = JSON::parse(__execute(query)))['results']['bindings'].each do |solution|
25
31
  solution.each do |k,v|
26
32
  catch :done do
data/rdf-smart.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rdf-smart'
3
- s.version = '0.0.165'
3
+ s.version = '0.0.166'
4
4
  s.date = '2014-06-17'
5
5
  s.summary ="RDF.rb segfaults. A lot. We don't. RDF.rb has lots of features. We don't."
6
6
  s.description ="Minimal sparql support for ruby. Basically the roqet tool from http://librdf.org, with always guessing input type, and always json output."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-smart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.165
4
+ version: 0.0.166
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Stertz