Hi All,

I am trying to parse the rdf file but I am getting error while executing following code in ubuntu

RDF::Reader.open("http://datagraph.org/jhacker/foaf.rdf") do |reader| reader.each_statement do |statement| puts statement.inspect end end

as LoadError: Could not open library 'libraptor': libraptor: cannot open shared object file: No such file or directory. Could not open library 'libraptor.so': libraptor.so: cannot open shared object file: No such file or directory

I installed all the required gems: rdf rdf-raptor ffi rdf-json rdf-trix

Please help me how to rectify this problem

thanks in advance


asked 06 Feb '11, 05:39

rnaveen31's gravatar image

accept rate: 0%

Did you install it through aptitude or downloaded the packages?

It looks like it's possible to install libraptor1 which may contain the missing libs

[email protected]:~$ aptitude search libraptor

v libraptor-dev -

p libraptor1 - Raptor RDF parser and serializer library

p libraptor1-dbg - Raptor RDF parser and serializer library -

p libraptor1-dev - Raptor RDF parser and serializer developme

p libraptor1-doc - Documentation for the Raptor RDF parser an

permanent link

answered 06 Feb '11, 13:04

Carl's gravatar image

accept rate: 25%

thanks.it worked prfectly without any error

(07 Feb '11, 05:32) rnaveen31 rnaveen31's gravatar image

Could you vote up my answer as you've accepted it :)

(07 Feb '11, 15:13) Carl Carl's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 06 Feb '11, 05:39

question was seen: 1,699 times

last updated: 06 Feb '11, 13:04