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.
- checksums.yaml +4 -4
- data/lib/rdf/smart.rb +6 -0
- data/rdf-smart.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ad155c233e8d8e8c5c606c0e81dc81cfde00960
|
4
|
+
data.tar.gz: 03904cef82a33c39c4220d63a9aaa22c41f76def
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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."
|