Hi.
I've been playing with the sponger and find Virtuoso's SQL/Basic (sorry
dunno how you call it) a little bit annoying to learn for people already
able to program in more generic languages like Python (name other P*
languages ;).
I tried and do some CSV parsing and succesfully copied the Yahoo stock
quotes code. But the CSV parsing or similar processing doesn't look
particularly elegant to me. I'd prefer using some Python (C) library to
do that, which would result in much more elegant/high level code. Same
problem probably for any other language.
All I could find and which seems to work is to invoque a python script
with something like :
results := __hosting_http_handler ('py', 'python/sponger.py', input, vector
(), NULL);
where _input_ will hold some (eventually pre-processed) input like the
URL of the document to be mapped to RDF.
Is there another way to invoque scripts in other languages in Virtuoso
Sponger cartridges ? I fear this is a little bit inefficient, and hacky.
__hosting_http_handler() is supposed to deal with HTTP, not with
procedure call, arguments passing and such.
Thanks in advance.
Best regards,
--
Olivier BERGER <[email protected]>
http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 1024D/6B829EEC
Ingénieur Recherche - Dept INF
Institut TELECOM, SudParis (http://www.it-sudparis.eu/), Evry (France)