ruby-rdf / rdf-rdfxml

Ruby RDF/XML reader/writer for RDF.rb.
http://rubygems.org/gems/rdf-rdfxml
The Unlicense
17 stars 7 forks source link

Problem serialising multiple values (?) #1

Closed njh closed 14 years ago

njh commented 14 years ago

Not had time to investigate this properly, but I thought I would get it into the issue tracker, so that I remember.

When running this gist: http://gist.github.com/477594

I get this error: /Library/Ruby/Gems/1.8/gems/rdf-rdfxml-0.2.1/lib/rdf/rdfxml/writer.rb:440:in sort_properties': undefined methodlast' for nil:NilClass (NoMethodError) from /Library/Ruby/Gems/1.8/gems/rdf-rdfxml-0.2.1/lib/rdf/rdfxml/writer.rb:439:in sort' from /Library/Ruby/Gems/1.8/gems/rdf-rdfxml-0.2.1/lib/rdf/rdfxml/writer.rb:439:insort_properties' from /Library/Ruby/Gems/1.8/gems/rdf-rdfxml-0.2.1/lib/rdf/rdfxml/writer.rb:438:in each' from /Library/Ruby/Gems/1.8/gems/rdf-rdfxml-0.2.1/lib/rdf/rdfxml/writer.rb:438:insort_properties' from /Library/Ruby/Gems/1.8/gems/rdf-rdfxml-0.2.1/lib/rdf/rdfxml/writer.rb:160:in subject' from /Library/Ruby/Gems/1.8/gems/rdf-rdfxml-0.2.1/lib/rdf/rdfxml/writer.rb:147:inwrite_epilogue' from /Library/Ruby/Gems/1.8/gems/rdf-rdfxml-0.2.1/lib/rdf/rdfxml/writer.rb:145:in each' from /Library/Ruby/Gems/1.8/gems/rdf-rdfxml-0.2.1/lib/rdf/rdfxml/writer.rb:145:inwrite_epilogue' from /Library/Ruby/Gems/1.8/gems/rdf-0.2.1/lib/rdf/writer.rb:161:in initialize' from /Library/Ruby/Gems/1.8/gems/rdf-rdfxml-0.2.1/lib/rdf/rdfxml/writer.rb:67:ininitialize' from /Library/Ruby/Gems/1.8/gems/rdf-0.2.1/lib/rdf/writer.rb:131:in new' from /Library/Ruby/Gems/1.8/gems/rdf-0.2.1/lib/rdf/writer.rb:131:inbuffer' from /Library/Ruby/Gems/1.8/gems/rdf-0.2.1/lib/rdf/writer.rb:130:in open' from /Library/Ruby/Gems/1.8/gems/rdf-0.2.1/lib/rdf/writer.rb:130:inbuffer' from /Library/Ruby/Gems/1.8/gems/rdf-0.2.1/lib/rdf/writer.rb:115:in `dump' from rdfxml_test.rb:17

gkellogg commented 14 years ago

Fixed in http://github.com/gkellogg/rdf-rdfxml/commit/bd5d124fcfb8fe3548fac06674e99ed430a07d23. Just have a couple of other things to address before bumping to 0.2.2.

njh commented 14 years ago

Great! Thank you very much Gregg :)