Comment 2 for bug 914513

Revision history for this message
Paul Leader (sq2d3bi-paul) wrote : Re: [Bug 914513] Re: Cannot even require activerdf without an error

Hi there,

No, I'm afraid not. In the end I took an entirely different approach to what I was trying to do.

Paul

--
Paul Leader

On Tuesday, 24 April 2012 at 22:09, kimiahszd wrote:

> Hi Paul,
> I'm getting the same error... Did you find any solution?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/914513
>
> Title:
> Cannot even require activerdf without an error
>
> Status in ActiveRDF: object-oriented RDF in Ruby:
> New
>
> Bug description:
> 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?
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/activerdf/+bug/914513/+subscriptions
>
>