ruby-rdf / sparql

Ruby SPARQL library
http://rubygems.org/gems/sparql
The Unlicense
89 stars 14 forks source link

sparql construct blanknodes #14

Closed hilben closed 10 years ago

hilben commented 10 years ago

Hello,

When I try to run the following sparql construct:

  CONSTRUCT {
       :s :p1 _:b1 .                                                                                                                                                                                                                                                                                              
      _:b1 :p2 :o1 .
 }
 WHERE {
  }

I receive:

"<s> <p1> _:g2199868280 ."
"_:g2199867760 <p2> <o1> ."

There the blank nodes are not the same blank notes as one would expect. I think this is a bug. If I run the same query inside an sesame repository i receive:

:s  :p1 _:node1692
_:node1692  :p2 :o1
gkellogg commented 10 years ago

This was actually fixed in RDF.rb, which should be updated in a week or so. In the meantime, if you use the develop branch of RDF.rb in your Gemfile, it should solve your problem.

(edit - No, actually, it's not)

gkellogg commented 10 years ago

It's now fixed on the develop branch, and will be pushed out as a gem update soon. Thanks for the report!

gkellogg commented 10 years ago

Released in version 1.1.3.