Re: Is it just me or does this seem incredibly slow?

On 02/13/06/02/06 14:07 -0500, Garrett Wollman wrote:
> [...]
>Then a simple query application, like
><http://gallery.bostonradio.org/cgi-bin/person.cgi>, boils down quite
>nicely to:
>
>  people = things_of_type(FOAF['Person']) do |person|
>    include?(person, FOAF['name'], cgi['q'])
>  end
>
>  items = []
>  find_photos_for(people) do |image|
>    thumb = image.thumbnail
>    items << {
>      :desc => Amrita.a({:href => image.description}) do
>        image.title
>      end,
>      :thumb => Amrita.a({:href => image.description}) do
>        Amrita.e(:img, :src => thumb.node.uri.to_s,
>                 :width => thumb.width,
>                 :height => thumb.height,
>                 :alt => "A photo depicting #{cgi['q']}")
>      end
>    }
>  end

Hi,

Seeing your RDF-Ruby programming, you might be interested in ActiveRDF, 
which provides an O/R mapping from RDF to Ruby (which is exactly what you 
have been doing here yourself, but nicer and much more generic).  Point it 
to an RDF store, and all resources can be accessed as Ruby objects.

Although we is still in alpha status, you can take a look at 
http://activerdf.m3pe.org.  We currently support Redland and YARS, and 
adding an adapter to another RDF store is around 30 lines of code.

ActiveRDF can also be used in Ruby-on-Rails (http://rubyonrails.org), and 
then makes for a nice Rapid Application Development Semantic Web framework.

 -eyal

Received on Monday, 13 February 2006 22:33:23 UTC