You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Mahmood Ahmad <ma...@telematicus.com> on 2016/11/04 15:46:17 UTC

Saving Large ResultSets for SPARQL Queries

Hi All,

Could someone please advise on saving large ResultSets that are generated using SPARQL CONSTRUCT queries in Apache Fuseki 2.4.0 on Windows 10? The web interface facilitates the viewing of the results in Turtle format but copying and pasting from large ResultSet can be problematic due to memory restrictions on clipboard.

Is there a Fuseki Service that can be used to save ResultSets?

I can save the whole graph through the GET service but not the query results.

Regards
Mahmood

=========================
Dr Mahmood Ahmad
KTP Associate

School of Computer Science
University of Manchester
and
Telematicus
Newport Street
Macclesfield
SK11 6QJ
United Kingdom

E: Mahmood.Ahmad@telematicus.com<ma...@telematicus.com>
E: Mahmood.ahmad@manchester.ac.uk<ma...@manchester.ac.uk>



RE: Saving Large ResultSets for SPARQL Queries

Posted by Mahmood Ahmad <ma...@telematicus.com>.
[Apologies for a late reply as I was on a training last week, so did not access the list emails.]

Dear Andy,

Many thanks and I'll try these tools.

Regards
Mahmood

-----Original Message-----
From: Andy Seaborne [mailto:andy@apache.org] 
Sent: 05 November 2016 22:30
To: users@jena.apache.org
Subject: Re: Saving Large ResultSets for SPARQL Queries

Mahmood,

You can access the Fuseki server programmatically using the SPARQK protocol over HTTP.  Then save the results to a file. There is a set of tools in the bin/ directory of the binary distribution (they are ruby scripts).

Or you can use tools such as "wget" or "curl" (both available for
windows) and send the request using HTTP directly.

     Andy

On 04/11/16 15:46, Mahmood Ahmad wrote:
> Hi All,
>
> Could someone please advise on saving large ResultSets that are generated using SPARQL CONSTRUCT queries in Apache Fuseki 2.4.0 on Windows 10? The web interface facilitates the viewing of the results in Turtle format but copying and pasting from large ResultSet can be problematic due to memory restrictions on clipboard.
>
> Is there a Fuseki Service that can be used to save ResultSets?
>
> I can save the whole graph through the GET service but not the query results.

The endpoint is usually  /YourDataset/sparql

A query is sent with ?query=<encoded string>

Or you can POST a query with content type application/sparql-query.

(these work on the dataset URI as well).

     Andy

>
> Regards
> Mahmood
>
> =========================
> Dr Mahmood Ahmad
> KTP Associate
>
> School of Computer Science
> University of Manchester
> and
> Telematicus
> Newport Street
> Macclesfield
> SK11 6QJ
> United Kingdom
>
> E: Mahmood.Ahmad@telematicus.com<ma...@telematicus.com>
> E: 
> Mahmood.ahmad@manchester.ac.uk<ma...@manchester.ac.uk>
>
>
>

Re: Saving Large ResultSets for SPARQL Queries

Posted by Andy Seaborne <an...@apache.org>.
Mahmood,

You can access the Fuseki server programmatically using the SPARQK 
protocol over HTTP.  Then save the results to a file. There is a set of 
tools in the bin/ directory of the binary distribution (they are ruby 
scripts).

Or you can use tools such as "wget" or "curl" (both available for 
windows) and send the request using HTTP directly.

     Andy

On 04/11/16 15:46, Mahmood Ahmad wrote:
> Hi All,
>
> Could someone please advise on saving large ResultSets that are generated using SPARQL CONSTRUCT queries in Apache Fuseki 2.4.0 on Windows 10? The web interface facilitates the viewing of the results in Turtle format but copying and pasting from large ResultSet can be problematic due to memory restrictions on clipboard.
>
> Is there a Fuseki Service that can be used to save ResultSets?
>
> I can save the whole graph through the GET service but not the query results.

The endpoint is usually  /YourDataset/sparql

A query is sent with ?query=<encoded string>

Or you can POST a query with content type application/sparql-query.

(these work on the dataset URI as well).

     Andy

>
> Regards
> Mahmood
>
> =========================
> Dr Mahmood Ahmad
> KTP Associate
>
> School of Computer Science
> University of Manchester
> and
> Telematicus
> Newport Street
> Macclesfield
> SK11 6QJ
> United Kingdom
>
> E: Mahmood.Ahmad@telematicus.com<ma...@telematicus.com>
> E: Mahmood.ahmad@manchester.ac.uk<ma...@manchester.ac.uk>
>
>
>