Change handle application/sparql-update as well as application/sparql-query in a POST
--- a/src/main/scala/Post.scala Sun Jul 15 01:26:25 2012 +0200
+++ b/src/main/scala/Post.scala Fri Aug 16 14:52:48 2013 -0400
@@ -24,7 +24,8 @@
object Post {
val SPARQL = "application/sparql-query"
- val supportContentTypes = Lang.supportContentTypes ++ Image.supportedImages.map(_.contentType) + SPARQL
+ val SPARQLUPDATE = "application/sparql-update"
+ val supportContentTypes = Lang.supportContentTypes ++ Image.supportedImages.map(_.contentType) + SPARQL + SPARQLUPDATE
val supportedAsString = supportContentTypes mkString ", "
def supportsContentType(contentTypeHeader: String) = {
@@ -68,6 +69,7 @@
cleanHeader(contentType) match {
case SPARQL => postUpdate | (postQuery | PostUnknown)
+ case SPARQLUPDATE => postUpdate | (postQuery | PostUnknown)
case RequestLang(lang) => postRDF(lang) | PostUnknown
case GIF.contentType | JPEG.contentType | PNG.contentType => PostBinary(is)
}