Re: [Virtuoso-users] Dump arbitrary query result as N-Triples

2011-03-02 Thread Claus Stadler
Hi, Thanks for your reply. I was able to get it working. I am posting my script here for reference - variables could be renamed to something more human readable, but at least it is capable of dumping huge result sets (multiple GB). * Bascially you pass in a sparql select query that has 3 vari

Re: [Virtuoso-users] Dump arbitrary query result as N-Triples

2011-03-02 Thread Rumi Tsekova
line uses exec with SPARQL query. Hope this helps. Best Regards, Rumi - Original Message - From: CStadler To: virtuoso-users@lists.sourceforge.net Sent: Tuesday, March 01, 2011 8:40 PM Subject: [Virtuoso-users] Dump arbitrary query result as N-Triples Hi, So far I h

Re: [Virtuoso-users] Dump arbitrary query result as N-Triples

2011-03-02 Thread Ivan Mikhailov
Hello Claus, sparql define output:format "NT" construct { ?s a ?t } from virtrdf: where { ?s a ?t }; works, the doc is slightly out-of-date there. For iteration over result-set of an arbitrary query, use exec_next() http://docs.openlinksw.com/virtuoso/fn_exec_next.html in a loop that begins with

[Virtuoso-users] Dump arbitrary query result as N-Triples

2011-03-01 Thread CStadler
Hi, So far I have used the script at the end of this mail for dumping a graph as n-triples (basically its an adaption from http://docs.openlinksw.com/virtuoso/rdfperformancetuning.html). However now I want to adapt it so I can pass a string with graph-patterns in order to be able to specify