Closed Simaris closed 7 years ago
It seems to be a parser bug. The generated SSE is the following:
(project
(?r ?f)
(path <http://www.ifi.uio.no/INF3580/simpson-collection#Collection>
(path* <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest>) ?r ))
The ?f
is missing here, so won't appear in a result set.
I've added some test cases for this and will look into it shortly.
@Simaris see if that does it using the GitHub repo and I'll push a gem update.
That solved my problem. Thanks a lot!
@gkellogg would it be possible for you to push a pre-release with this feature to rubygems? Maybe you also want to automate pre-release publication with travis: https://docs.travis-ci.com/user/deployment/rubygems/
Released now, sorry for the delay.
Hallo, after encountering a bug in my main project I decided to set up the following test code:
and the knowledge base:
The output I get from this is: [#<RDF::Query::Solution:0x1621e38({:r=>#<RDF::URI:0x169f220 URI:http://www.ifi.uio.no/INF3580/simpson-collection#Collection>})>,
<RDF::Query::Solution:0x161ea94({:r=>#<RDF::URI:0x10b1e94 URI:http://www.ifi.uio.no/INF3580/simpson-collection#c1>})>,
<RDF::Query::Solution:0x161c3fc({:r=>#<RDF::URI:0x108f830 URI:http://www.ifi.uio.no/INF3580/simpson-collection#c2>})>,
<RDF::Query::Solution:0x161abec({:r=>#<RDF::URI:0x1087874 URI:http://www.ifi.uio.no/INF3580/simpson-collection#c3>})>,
<RDF::Query::Solution:0x16193a0({:r=>#<RDF::URI:0x1077e88 URI:http://www.ifi.uio.no/INF3580/simpson-collection#c4>})>,
<RDF::Query::Solution:0x1617d5c({:r=>#<RDF::URI:0x105d128 URI:http://www.w3.org/1999/02/22-rdf-syntax-ns#nil>})>]
?f
is nowhere to be found and the last solution should not be in the answer set. I also tried the same query on a virtuoso server and got the desired results: rDid I missed something that would bind
?f
?.