VSEI recipe

Matters relating to SQL, RDF, XML, and Free Text data management

Re: VSEI recipe

Postby kpadalkar on Mon Jun 18, 2012 12:41 pm

Thanks Hugh,
Yes, I enabled python in configure script and able to execute following SQL
Code: Select all
select __hosting_http_handler ('py', 'print "hello world"; ', '', vector (), 'helloworld.py');


  1. Is there a way to execute python from SPARQL?
  2. How can we pass parameters to python from ___hosting_http_handler?

-kp
kpadalkar
 
Posts: 8
Joined: Thu Jun 07, 2012 7:15 pm

Re: VSEI recipe

Postby hwilliams on Wed Jun 27, 2012 3:24 am

Hi

If you wrap your Python functions/calls into a Virtuoso procedure using Virtuoso's Procedural Language (PL), then you can call these procedure in SPARQL and pass params, etc., as detailed in the documentation on Calling SQL from SPARQL.

Best Regards
Hugh Williams
OpenLink Software
hwilliams
 
Posts: 904
Joined: Thu Mar 06, 2008 4:30 am

Previous

Return to Virtuoso - Native Data Management

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron