c++ - Entering command as a parameter to another application -


i using virtuoso engine. entering query virtuoso engine, following needs done:

the virtuoso engine starts , gives command prompt:

[mymachine]$ ./isql 1111  connected openlink virtuoso driver: 07.20.3213 openlink virtuoso odbc driver openlink interactive sql (virtuoso), version 0.9849b. type help; , exit; exit. sql>  

the query "sparql select ?a?b?c where{graph ?g{?a ?b ?c} };" entered user following:

[mymachine]$ ./isql 1111  connected openlink virtuoso driver: 07.20.3213 openlink virtuoso odbc driver openlink interactive sql (virtuoso), version 0.9849b. type help; , exit; exit. sql> sparql select ?a?b?c where{graph ?g{?a ?b ?c} }; 

now in order automate process of inserting queries virtuoso wrote user entered value:"sparql select ?a?b?c where{graph ?g{?a ?b ?c} };" text file (mytext.txt) , used following command:

[mymachine]$ ./isql 1111 < mytext.txt 

however still virtuoso prompt appears following -- asking me enter query string:

[mymachine]$ ./isql 1111 < mytext.txt connected openlink virtuoso driver: 07.20.3213 openlink virtuoso odbc driver openlink interactive sql (virtuoso), version 0.9849b. type help; , exit; exit. sql>  

is there way in linux or c++: using shell script (for linux) or system calls c++ can enter query string virtuoso. need run 10,000 queries therefore manually entering 10,000 queries in virtuoso pain.

(question asked on virtuoso support forum.)

there multiple ways might script interactions virtuoso (produced employer, openlink software), both involving isql , not.

depending on specific queries you're running, , plan results, approaches might better others -- such using curl sparql query request uris include data serialization instructions (e.g., csv, turtle, trig) resulting output file. there's not enough information here know direction pursue.

stackoverflow not best place product-specific, non-programming questions. virtuoso-specific questions best raised virtuoso users mailing list, public openlink software support forums, or a confidential support case.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -