jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rve...@apache.org
Subject svn commit: r1625523 - in /jena/trunk/jena-arq/src: main/java/com/hp/hpl/jena/query/Syntax.java test/java/com/hp/hpl/jena/sparql/modify/AbstractTestUpdateGraph.java
Date Wed, 17 Sep 2014 11:40:18 GMT
Author: rvesse
Date: Wed Sep 17 11:40:18 2014
New Revision: 1625523

URL: http://svn.apache.org/r1625523
Log:
Change default update syntax to SPARQL 1.1 rather than ARQ

Modified:
    jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/query/Syntax.java
    jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/modify/AbstractTestUpdateGraph.java

Modified: jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/query/Syntax.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/query/Syntax.java?rev=1625523&r1=1625522&r2=1625523&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/query/Syntax.java (original)
+++ jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/query/Syntax.java Wed Sep 17 11:40:18
2014
@@ -63,7 +63,7 @@ public class Syntax extends Symbol
      *  The default update language syntax must be capable of accepting
      *  any SPARQL query but may also accept extensions. 
      */
-    public static Syntax defaultUpdateSyntax = syntaxARQ ;
+    public static Syntax defaultUpdateSyntax = syntaxSPARQL_11 ;
     
     /** The query syntax currently that is standardized, published, SPARQL - the "default
SPARQL Query" */ 
     public static final Syntax syntaxSPARQL = syntaxSPARQL_11 ;

Modified: jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/modify/AbstractTestUpdateGraph.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/modify/AbstractTestUpdateGraph.java?rev=1625523&r1=1625522&r2=1625523&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/modify/AbstractTestUpdateGraph.java
(original)
+++ jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/modify/AbstractTestUpdateGraph.java
Wed Sep 17 11:40:18 2014
@@ -27,6 +27,7 @@ import com.hp.hpl.jena.graph.Graph ;
 import com.hp.hpl.jena.graph.Node ;
 import com.hp.hpl.jena.graph.Triple ;
 import com.hp.hpl.jena.query.ARQ ;
+import com.hp.hpl.jena.query.QueryException;
 import com.hp.hpl.jena.query.QueryFactory ;
 import com.hp.hpl.jena.query.QueryParseException ;
 import com.hp.hpl.jena.sparql.core.DatasetGraph ;
@@ -368,8 +369,7 @@ public abstract class AbstractTestUpdate
                                  new Triple(s,p,o2))) ;
     }
     
-    @Test(expected=QueryParseException.class) public void testUpdateBad1()      { testBad("bad-1.ru",
1) ; }
-    
+    @Test(expected = QueryException.class) public void testUpdateBad1()      { testBad("bad-1.ru",
1) ; }
     @Test public void testUpdateBad2()      { testBad("bad-2.ru", 1) ; }
     @Test public void testUpdateBad3()      { testBad("bad-3.ru", 0) ; }
 



Mime
View raw message