[redland-dev] wrapper for ruby
dominic sisneros
dom at sisna.com
Sun May 2 18:31:34 BST 2004
On Apr 28, 2004, at 1:52 PM, Dave Beckett wrote:
> A bit later on and I've had a look at ruby-rdf. I installed rubygems
> 0.2.0 but things still aren't working. It needs 'stringio' so maybe
> the ruby I'm using here is too old (1.6.8). Can you tell me the
> minimum
> version of ruby supported by the base code (excluding Gem) so I can add
> it to the configure test?
For ruby-gems I guess you need > 1.8 or a downloaded copy of stringIO.
For the actual stuff I wrote, I thing 1.6 > would work. I guess I need
to write
an install script to be used without ruby-gems.
>
> $ ruby rdf-redland.gemspec
> /usr/lib/site_ruby/1.6/rubygems/builder.rb:8:in `require': No such file
> to load -- stringio (LoadError) from
> /usr/lib/site_ruby/1.6/rubygems/builder.rb:8 from
> /usr/lib/site_ruby/1.6/rubygems.rb:102:in `require' from
> /usr/lib/site_ruby/1.6/rubygems.rb:102 from
> rdf-redland.gemspec:1:in `require' from rdf-redland.gemspec:1
>
> You are also using some other ruby modules (gems?) in the test/ dir
> such
> as test/unit which I guess I need to grab.
This is a standard lib in Ruby 1.8 or greater. I actually suggest you
use
Ruby 1.8 at least. A lot of good libraries included
>
> I took a look at the Redland.i you had in the 0.5 tarball and saw you
> made some more changes - exporting a few other functions. I've added
> that to the main CVS, so they should cover what you have, plus some
> more
> since the last release. See
> http://cvs.ilrt.org/cvsweb/redland/librdf/Redland.i
> for the exact changes.
Thanks, I tried to use some of these but they were not working as I
expected
so I just used what I was using before. I will try again and probably
ask more
questions later.
>
> Browsing the class display in http://ruby-rdf.rubyforge.org/
> I wasn't sure if you had made the namespace change you suggested in a
> previous email. I'm also curious what the Redland::MergedModel does
> since it has a 'smush' method. I can guess though :)
Haven't changed Namespace yet. I was waiting for the change in the
Makefile that you
provide so that I could just have them compile your library --with-ruby
for now.
The MergedModel is just to help with smushing. It has a master model
or the one that isn't going to change and searches it with the list of
Inverse
Functional Properties and identifies which resouces in its internal
model need
to be changed. I might just change this to a mixin or move it to the
Model baseclass
as private methods since it is not really a separate model type. It is
used in
Redland::Model::parse_and_merge().
>
> As an aside, I've got some C code around that does smushing also known
> as owl InverseFunctionalProperty
That might be really useful. Does it work on a temp model or stream or
on the
whole model. Does it work during the parsing stage?
>
> Finally, you do know there is a ruby rdf email list? It's rather quiet
> but maybe we should send a note there:
> http://lists.w3.org/Archives/Public/public-rdf-ruby/
I will sign up for that and send a message.
>
> Dave
>
More information about the redland-dev
mailing list