Discussion:
Saving Large ResultSets for SPARQL Queries
Mahmood Ahmad
2016-11-04 15:46:17 UTC
Permalink
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: ***@telematicus.com<mailto:***@telematicus.com>
E: ***@manchester.ac.uk<mailto:***@manchester.ac.uk>
Andy Seaborne
2016-11-05 22:29:33 UTC
Permalink
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
Post by Mahmood Ahmad
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
Post by Mahmood Ahmad
Regards
Mahmood
=========================
Dr Mahmood Ahmad
KTP Associate
School of Computer Science
University of Manchester
and
Telematicus
Newport Street
Macclesfield
SK11 6QJ
United Kingdom
Mahmood Ahmad
2016-11-14 09:29:44 UTC
Permalink
[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:***@apache.org]
Sent: 05 November 2016 22:30
To: ***@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
Post by Mahmood Ahmad
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
Post by Mahmood Ahmad
Regards
Mahmood
=========================
Dr Mahmood Ahmad
KTP Associate
School of Computer Science
University of Manchester
and
Telematicus
Newport Street
Macclesfield
SK11 6QJ
United Kingdom
Loading...