Hello there,

In the context of the DITA RDF project
<http://purl.org/dita/ditardf-project>, I'm writing a script using
Apache Ant to drive a transformation process from DITA XML to RDF/XML. I
have to use Ant because it's the language used by the DITA Open Toolkit
<http://dita-ot.github.io/>.

Luckily, I found an HTTP Ant task to issue HTTP requests and store the
processing result in a repository.

Unfortunately, both Marmotta documentation and practice seem to tell me
that the methods to replace a graph in the repo are limited, at least
from command line.

Ideally, I would expect to be able to issue such command to replace a
graph in the repo:

curl -X PUT -H "Content-Type: application/rdf+xml; charset=utf-8" -d @file.rdf 
http://host/marmotta/import/upload

I guess the target URL would be different but you get the idea: instead of 
using POST and updating the target graph, I use PUT to drop the target graph 
and create it again with new data.

Unfortunately, this request returns a 405 error (Method Not Allowed):
HTTP/1.1 405 Method Not Allowed
Server: Apache Marmotta/3.2.1 (build 0)
Allow: POST, OPTIONS
Content-Length: 0
Date: Sun, 21 Sep 2014 12:20:58 GMT

Since PUT (and DELETE) are not supported, is there a way to use POST to delete 
a graph? In any case, I hope the support of PUT and DELETE are on the roadmap :)

I use v3.2.1 on Windows 8.1 64.

Thanks for your answers,
Colin

   

<<attachment: colin.vcf>>

Reply via email to