jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1469320 - /jena/trunk/jena-arq/src/main/java/arq/query.java
Date Thu, 18 Apr 2013 13:40:22 GMT
Author: andy
Date: Thu Apr 18 13:40:22 2013
New Revision: 1469320

URL: http://svn.apache.org/r1469320
Log:
Just print an error when a query timeout happens, not dump a full the stacktrace.

Modified:
    jena/trunk/jena-arq/src/main/java/arq/query.java

Modified: jena/trunk/jena-arq/src/main/java/arq/query.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/arq/query.java?rev=1469320&r1=1469319&r2=1469320&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/arq/query.java (original)
+++ jena/trunk/jena-arq/src/main/java/arq/query.java Thu Apr 18 13:40:22 2013
@@ -32,12 +32,7 @@ import arq.cmdline.ModQueryIn ;
 import arq.cmdline.ModResultsOut ;
 import arq.cmdline.ModTime ;
 
-import com.hp.hpl.jena.query.ARQ ;
-import com.hp.hpl.jena.query.Dataset ;
-import com.hp.hpl.jena.query.Query ;
-import com.hp.hpl.jena.query.QueryException ;
-import com.hp.hpl.jena.query.QueryExecution ;
-import com.hp.hpl.jena.query.QueryExecutionFactory ;
+import com.hp.hpl.jena.query.* ;
 import com.hp.hpl.jena.shared.JenaException ;
 import com.hp.hpl.jena.sparql.ARQInternalErrorException ;
 import com.hp.hpl.jena.sparql.mgt.Explain ;
@@ -189,7 +184,9 @@ public class query extends CmdARQ
                 System.err.println("Dataset not specified in query nor provided on command
line.");
                 throw new TerminationException(1) ;
             }
-            QueryExecUtils.executeQuery(query, qe,fmt) ;
+            try { QueryExecUtils.executeQuery(query, qe, fmt) ; } 
+            catch (QueryCancelledException ex) { System.err.println("Query timed out") ;
}
+            
             long time = modTime.endTimer() ;
             if ( timed )
             {



Mime
View raw message