[Activerdf] query results metadata
Eyal Oren
eyal.oren at deri.org
Fri Oct 6 11:56:21 IST 2006
On 10/05/06/10/06 13:31 -0700, Eric Hanson wrote:
>> (using new activerdf ConnectionPool.add_data_source :type => :redland
>> etc.)
>
>Found a bugish-type-thing where you have to explicitly require
>"activerdf/adapter/redland" to get it to work. Submitted a bug report.
that's not a bug but a feature. We do not load any adapter automatically,
since adapters might depend on other stuff which is not necessarily
installed for all ActiveRDF users. In the redland case, the redland adapter
depends on the redland-ruby bindings, but these would not be installed if
you don't have redland. So if ActiveRDF would automatically load that
adapter you would get errors. We could catch those errors and dismiss them,
but we can also just have the user load the adapter he wants to use.
I'll leave it like it is for now, if anybody wants the automagic approach
(try to load all possible adapters, and discard any errors during loading)
then shout please, and I'll consider it.
>>>> you can just patch activerdf to use sparql+json on redland, just look
>>>> at sparql.rb and compare it to redland.rb. it should be
>>>> straightforward to port json-results into the redland adapter.
>I'm in over my head on this one. Maybe I'll just wait for you to do it?
Please file a bug so that we can keep track, I'll implement when I have a
Redland version that supports it.
-eyal
More information about the Activerdf
mailing list