Hi Daniel,
A query resultset from isql can be output to a file as detailed at:
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtTipsAndTricksGuideISQLQueryResultOutput
Note you could also output results from a SPARQL query run against the /sparql
endpoint to a file, using a curl command like the following I would expect:
curl --request POST 'http://127.0.0.1:8890/sparql/?' --header
'Accept-Encoding: gzip' ' --data-urlencode 'query=define output:format "NT"
CONSTRUCT { ?s ?p ?o } FROM <http://id.nlm.nih.gov/mesh/test> WHERE { ?s ?p ?o
}' --output 'filename.gz'
Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc. // http://www.openlinksw.com/
Weblog -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter -- http://twitter.com/OpenLink
Google+ -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers
> On 9 Sep 2015, at 20:49, Davis, Daniel (NIH/NLM) [C] <[email protected]>
> wrote:
>
> When I run the statement below in an ISQL command prompt, I get as a result a
> BLOB of 225899 chars.
>
> SPARQL define output:format "NT" CONSTRUCT { ?s ?p ?o } FROM
> <http://id.nlm.nih.gov/mesh/test> WHERE { ?s ?p ?o };
>
> I’m not quite sure how to use string_to_file() with a query like this…
>
> Dan Davis, Systems/Applications Architect (Contractor),
> Office of Computer and Communications Systems,
> National Library of Medicine, NIH
>
> ------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140_______________________________________________
> Virtuoso-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users