Hi,
I'm just trying to get started with ActiveRDF. It looks great but I can't get it to work without it failing on startup.
I installed active rdf, version 1.6.11 and tried the example on the website but got the following error...
/Users/pml/.rvm/gems/ruby-1.9.2-p290/gems/activerdf-1.6.11/lib/active_rdf/objectmanager/namespace.rb:65: warning: else without rescue is useless
/Users/pml/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /Users/pml/.rvm/gems/ruby-1.9.2-p290/gems/activerdf-1.6.11/lib/active_rdf/objectmanager/namespace.rb:63: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError)
when RDFS::Resource: resource.uri
^
/Users/pml/.rvm/gems/ruby-1.9.2-p290/gems/activerdf-1.6.11/lib/active_rdf/objectmanager/namespace.rb:99: syntax error, unexpected keyword_end, expecting $end
from /Users/pml/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/pml/.rvm/gems/ruby-1.9.2-p290/gems/activerdf-1.6.11/lib/active_rdf/objectmanager/resource.rb:3:in `<top (required)>'
from /Users/pml/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/pml/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/pml/.rvm/gems/ruby-1.9.2-p290/gems/activerdf-1.6.11/lib/active_rdf.rb:30:in `<top (required)>'
from /Users/pml/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
from /Users/pml/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
from /Users/pml/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from rdf_load.rb:2:in `<main>'
This happens at the point where I require active_rdf.
This occurs even if I just have an otherwise empty script with just the require line.
I'm using Ruby 1.9.2.
Is there something else I need to do, or that ActiveRDF relies on?
Hi Paul,
I'm getting the same error... Did you find any solution?