[Activerdf] YARS connection error
Ingo Paulsen
paulseni at uni-duesseldorf.de
Wed Jul 19 13:34:49 IST 2006
Hi,
I've installed the yars.war file in my tomcat webapps directory.
When I'm trying to connect from irb to the yars data-store I got this
error message for the first time:
irb(main):001:0> require 'active_rdf'
=> true
irb(main):002:0> NodeFactory.connection( :adapter => :yars, :context =>
'yars', :host => 'localhost' )
NoMethodError: undefined method `size' for false:FalseClass
from
/usr/local/lib/ruby/1.8/active_rdf/src/node_factory.rb:406:in
`construct_class_model'
from
/usr/local/lib/ruby/1.8/active_rdf/src/node_factory.rb:155:in `init_adapter'
from
/usr/local/lib/ruby/1.8/active_rdf/src/node_factory.rb:109:in `connection'
from (irb):2
irb(main):003:0> NodeFactory.connection( :adapter => :yars, :context =>
'yars', :host => 'localhost' )
=> #<YarsAdapter:0x5d4364 @port=8080, @host="localhost",
@adapter_type=:yars, @yars=#<Net::HTTP localhost:8080 open=false>,
@context="yars", @query_language="n3">
Versions:
Ruby: ruby 1.8.4 (2005-12-24) [powerpc-darwin8.7.0]
Irb: irb 0.9.5(05/04/13)
The second time it works. What's the reason for this behaviour?
Am I missing some basic adjustment to have a connection to YARS?
Regards
Ingo
More information about the Activerdf
mailing list