Stardog-rb reasoning issue

0 views
Skip to first unread message

Anton Anikin

unread,
Jul 14, 2014, 1:39:42 PM7/14/14
to sta...@clarkparsia.com
Hello.

When I use requests that depends on SL-reasoning with CLI stardog client - it works fine:

stardog query "onto1;reasoning=SL" "SELECT ?r where { PC:PersonalCollection_2 PC:hasResourceByLanguage ?r } LIMIT 10" -u anton -p XXX
+------------------------+
| r |
+------------------------+
| repository:CO_3 |
| repository:Reference_1 |
| repository:CO_4 |
...


When I try to use Ruby gem stardog-rb - the reasoning not works and I get empty results set:

require 'stardog'
include Stardog
sd = stardog("http://XXX:5820/", :user => "onto1", :password => "XXX", :reasoning => "SL")
res= sd.query 'onto1', 'SELECT ?r where { PC:PersonalCollection_2 PC:hasResourceByLanguage ?r } LIMIT 10'
data = res.body["results"]["bindings"]
p data

I can't find is it stardog-rb issue or stardog issue itself, I think it is second one, something bad with SL-reasoning with HTTP-requests... 


Any suggestions? )
Thanks in advance.

Best Regards,
Anton Anikin

Anton Anikin

unread,
Jul 14, 2014, 3:03:21 PM7/14/14
to sta...@clarkparsia.com
Same problem when I try it with HTTP request:

curl -u anton:****** -X GET -H  "SD-Connection-String: reasoning=SL" "http://onto.vstu.org:5820/onto1/query?query=SELECT%20%3Fr%20where%20%7B%20PC%3APersonalCollection_2%20PC%3AhasResourceByLanguage%20%3Fr%20%7D%20LIMIT%2010"

<?xml version='1.0' encoding='UTF-8'?>
<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
    <head>
        <variable name='r'/>
    </head>
    <results>
    </results>
</sparql>

- empty result with SL reasoning enabled in headers!

How can I fix this?

Thanks

Kendall Clark

unread,
Jul 14, 2014, 3:08:04 PM7/14/14
to stardog

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

Reply all
Reply to author
Forward
0 new messages