jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1497014 - in /jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/request: UpdateClear.java UpdateWriter.java
Date Wed, 26 Jun 2013 17:28:16 GMT
Author: andy
Date: Wed Jun 26 17:28:16 2013
New Revision: 1497014

URL: http://svn.apache.org/r1497014
Log:
JENA-479: Use the right kind of bnode mapping for updates.  ?? variables are bnodes.

Modified:
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/request/UpdateClear.java
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/request/UpdateWriter.java

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/request/UpdateClear.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/request/UpdateClear.java?rev=1497014&r1=1497013&r2=1497014&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/request/UpdateClear.java
(original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/request/UpdateClear.java
Wed Jun 26 17:28:16 2013
@@ -29,7 +29,6 @@ public class UpdateClear extends UpdateD
     public UpdateClear(String iri)                      { super(iri, false) ; }
     public UpdateClear(Target target)                   { super(target, false) ; }
     public UpdateClear(Node target)                     { super(target, false) ; }
-
     
     @Override
     public void visit(UpdateVisitor visitor)

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/request/UpdateWriter.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/request/UpdateWriter.java?rev=1497014&r1=1497013&r2=1497014&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/request/UpdateWriter.java
(original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/modify/request/UpdateWriter.java
Wed Jun 26 17:28:16 2013
@@ -51,6 +51,10 @@ public class UpdateWriter implements Clo
     private boolean firstOp = true;
     private boolean opened = false;
     
+    /** Create a UpdateWriter for output of a single UpdateRequest.
+     *  @param out
+     *  @param sCxt SerializationContext - pass null for one that wil produce legal output.
+     */
     public UpdateWriter(IndentedWriter out, SerializationContext sCxt)
     {
         if (out == null)
@@ -227,13 +231,11 @@ public class UpdateWriter implements Clo
         }
     }
     
-    
     // -- Convenience static methods -----------------------
     
     public static void output(UpdateRequest request, IndentedWriter out)
     {
-        SerializationContext sCxt = new SerializationContext(request.getPrefixMapping())
; 
-        output(request, out, sCxt);
+        output(request, out, null);
     }
     
     public static void output(UpdateRequest request, IndentedWriter out, SerializationContext
sCxt)



Mime
View raw message