Skip to content

Instantly share code, notes, and snippets.

@bhuga
Created April 16, 2010 15:12
Show Gist options
  • Save bhuga/368536 to your computer and use it in GitHub Desktop.
Save bhuga/368536 to your computer and use it in GitHub Desktop.
ben:rdf ben$ irb
>> require 'rdf'
=> true
>> s = RDF::NTriples.unserialize '<http://openlibrary.org/b/OL3M> <http://RDVocab.info/Elements/titleProper> "Jhūlā." '
=> #<RDF::Statement:0x90bbb8(<http://openlibrary.org/b/OL3M> <http://RDVocab.info/Elements/titleProper> "Jhūlā." .)>
>> RDF::NTriples.serialize(s)
=> "<http://openlibrary.org/b/OL3M> <http://RDVocab.info/Elements/titleProper> "Jh\305\253l\304\201." .\n"
>> exit
ben:rdf ben$ irb1.9
irb(main):001:0> require 'rdf'
=> true
irb(main):002:0> s = RDF::NTriples.unserialize '<http://openlibrary.org/b/OL3M> <http://RDVocab.info/Elements/titleProper> "Jhūlā." '
=> #<RDF::Statement:0x93f260(<http://openlibrary.org/b/OL3M> <http://RDVocab.info/Elements/titleProper> "Jhūlā." .)>
irb(main):003:0> RDF::NTriples.serialize(s)
=> "<http://openlibrary.org/b/OL3M> <http://RDVocab.info/Elements/titleProper> \"Jhūlā.\" .\n"
@artob
Copy link

artob commented May 29, 2010

Now fixed for the upcoming RDF.rb 0.2.0 release, see http://github.com/bendiken/rdf/issues/issue/7 for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment