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.

Reply via email to