Re: Retrieving SPARQL-results xml using curl

2018-06-28 Thread Brice Sommacal
Thank you Martynas for the direct link & Jean-Marc for the wget method. I was almost there ;-) I have been using GET earlier on the morning : curl -H "Accept: application/sparql-results+xml" -X GET http://[..] But at this time, due to the call from a .bat file (windows), it has not been

Re: Retrieving SPARQL-results xml using curl

2018-06-28 Thread Jean-Marc Vanel
Here is a SPARQL query using wget : wget --method=POST \ --body-data="query=SELECT * WHERE {?S ?P ?O} LIMIT 10" \ --header='Accept:application/sparql-results+xml' \ http://localhost:9000/sparql2 Other useful scripts in

Re: Retrieving SPARQL-results xml using curl

2018-06-28 Thread Martynas Jusevičius
You're doing a POST request but supplying a URL query as if it was GET? https://www.w3.org/TR/sparql11-protocol/#query-operation On Thu, Jun 28, 2018 at 12:24 PM, Brice Sommacal wrote: > Hello, > > I use the last distribution of Fuseki which is initialized with a TDB2 > dataset [1]. > Working

Retrieving SPARQL-results xml using curl

2018-06-28 Thread Brice Sommacal
Hello, I use the last distribution of Fuseki which is initialized with a TDB2 dataset [1]. Working with the user interface, everything os working well. I mean I am able to retrieve results from a select query and then download it. Going one step further, I would like to automate dataset update