jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1460414 - /jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java
Date Sun, 24 Mar 2013 16:45:37 GMT
Author: andy
Date: Sun Mar 24 16:45:37 2013
New Revision: 1460414

URL: http://svn.apache.org/r1460414
Log:
JENA-421

Modified:
    jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java

Modified: jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java?rev=1460414&r1=1460413&r2=1460414&view=diff
==============================================================================
--- jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java
(original)
+++ jena/trunk/jena-fuseki/src/main/java/org/apache/jena/fuseki/servlets/SPARQL_Update.java
Sun Mar 24 16:45:37 2013
@@ -56,8 +56,9 @@ import com.hp.hpl.jena.update.UpdateRequ
 
 public class SPARQL_Update extends SPARQL_Protocol
 {
-    private static String updateParseBase = "http://example/base/" ;
-    private static IRIResolver resolver = IRIResolver.create(updateParseBase) ;
+    // Base URI used to isolate parsing from the current directory of the server. 
+    private static final String UpdateParseBase = "http://example/update-base/" ;
+    private static final IRIResolver resolver = IRIResolver.create(UpdateParseBase) ;
     
     private class HttpActionUpdate extends HttpActionProtocol {
         public HttpActionUpdate(long id, DatasetRef desc, HttpServletRequest request, HttpServletResponse
response, boolean verbose)
@@ -240,7 +241,7 @@ public class SPARQL_Update extends SPARQ
             try
             {
                 // TODO implement a spill-to-disk version of this
-                req = UpdateFactory.read(usingList, input, Syntax.syntaxARQ);
+                req = UpdateFactory.read(usingList, input, UpdateParseBase, Syntax.syntaxARQ);
             }
             catch (UpdateException ex) { errorBadRequest(ex.getMessage()) ; return ; }
             catch (QueryParseException ex)  { errorBadRequest(messageForQPE(ex)) ; return
; }
@@ -250,10 +251,9 @@ public class SPARQL_Update extends SPARQ
         try
         {
             if (action.isTransactional())
-                UpdateAction.parseExecute(usingList, action.getActiveDSG(), input, Syntax.syntaxARQ);
+                UpdateAction.parseExecute(usingList, action.getActiveDSG(), input, UpdateParseBase,
Syntax.syntaxARQ);
             else
                 UpdateAction.execute(req, action.getActiveDSG()) ;
-            
             action.commit() ;
         } 
         catch (UpdateException ex) { action.abort(); errorBadRequest(ex.getMessage()) ; }



Mime
View raw message