It seems to work for me (current version) (not checked with "-n")
Which version are you running?
1/ Try the dataset URL : "http://localhost/triplestore/crawl"
2/ Could you try running the server with "-v"? (Hard in Tomcat)
It details the HTTP interaction.
The UI used HTML form file upload, not HTTP POST, which might why it
works and POST does not.
Andy
On 26/06/2020 16:18, Andreas Harth wrote:
Hi,
after a lot of tweaking I am able to delete and create RDF datasets in
Fuseki from the command line with curl.
# delete old dataset
curl -n admin "http://localhost/triplestore/$/datasets/crawl" -v -X DELETE
# create new dataset
$ curl -n admin
"http://localhost/triplestore/$/datasets?dbType=tdb&dbName=crawl" -v -X
POST
However, I could not figure out how to upload a N-Quads file via curl
(works fine via the browser interface).
I can run the following without getting an error:
$ curl -n admin "http://localhost/triplestore/crawl/data" -X POST
--upload-file data.nq -v --header "Content-Type: application/n-quads"
...
{
"count" : 0 ,
"tripleCount" : 0 ,
"quadCount" : 0
}
...
$
But apparently no data is added to the dataset?
Cheers,
Andreas.