Strabon

changeset 1119:f9116bfd4dd2

caught MalformedQueryException in QueryOp so as not to print the exception
author Babis Nikolaou <charnik@di.uoa.gr>
date Sun Apr 28 21:11:33 2013 +0300 (2013-04-28)
parents 83f4554eb2aa
children 4beeabbf8843
files generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java runtime/src/main/java/eu/earthobservatory/runtime/monetdb/QueryOp.java runtime/src/main/java/eu/earthobservatory/runtime/postgis/QueryOp.java
line diff
     1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java	Sun Apr 28 12:04:09 2013 +0300
     1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java	Sun Apr 28 21:11:33 2013 +0300
     1.3 @@ -1,7 +1,11 @@
     1.4 -/*
     1.5 - * Copyright Aduna (http://www.aduna-software.com/) (c) 2008.
     1.6 - *
     1.7 - * Licensed under the Aduna BSD-style license.
     1.8 +/**
     1.9 + * This Source Code Form is subject to the terms of the Mozilla Public
    1.10 + * License, v. 2.0. If a copy of the MPL was not distributed with this
    1.11 + * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    1.12 + * 
    1.13 + * Copyright (C) 2010, 2011, 2012, 2013 Pyravlos Team
    1.14 + * 
    1.15 + * http://www.strabon.di.uoa.gr/
    1.16   */
    1.17  package org.openrdf.sail.generaldb.evaluation;
    1.18  
     2.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/monetdb/QueryOp.java	Sun Apr 28 12:04:09 2013 +0300
     2.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/monetdb/QueryOp.java	Sun Apr 28 21:11:33 2013 +0300
     2.3 @@ -11,6 +11,7 @@
     2.4  
     2.5  import eu.earthobservatory.utils.Format;
     2.6  
     2.7 +import org.openrdf.query.MalformedQueryException;
     2.8  import org.openrdf.sail.generaldb.exceptions.UnsupportedExtensionFunctionException;
     2.9  import org.slf4j.Logger;
    2.10  import org.slf4j.LoggerFactory;
    2.11 @@ -58,6 +59,9 @@
    2.12  		} catch (UnsupportedExtensionFunctionException e) {
    2.13  			logger.error("[Strabon.QueryOp] {}", e.getMessage());
    2.14  			
    2.15 +		} catch (MalformedQueryException e) {
    2.16 +			logger.error("[Strabon.QueryOp] {}", e.getMessage());
    2.17 +			
    2.18  		} catch (Exception e) {
    2.19  			logger.error("[Strabon.QueryOp] Error during execution of SPARQL query.", e);
    2.20  			
     3.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/postgis/QueryOp.java	Sun Apr 28 12:04:09 2013 +0300
     3.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/postgis/QueryOp.java	Sun Apr 28 21:11:33 2013 +0300
     3.3 @@ -9,12 +9,13 @@
     3.4   */
     3.5  package eu.earthobservatory.runtime.postgis;
     3.6  
     3.7 -import eu.earthobservatory.utils.Format;
     3.8 -
     3.9 +import org.openrdf.query.MalformedQueryException;
    3.10  import org.openrdf.sail.generaldb.exceptions.UnsupportedExtensionFunctionException;
    3.11  import org.slf4j.Logger;
    3.12  import org.slf4j.LoggerFactory;
    3.13  
    3.14 +import eu.earthobservatory.utils.Format;
    3.15 +
    3.16  public class QueryOp {
    3.17  
    3.18  	private static Logger logger = LoggerFactory.getLogger(eu.earthobservatory.runtime.postgis.QueryOp.class);
    3.19 @@ -58,6 +59,9 @@
    3.20  		} catch (UnsupportedExtensionFunctionException e) {
    3.21  			logger.error("[Strabon.QueryOp] {}", e.getMessage());
    3.22  			
    3.23 +		} catch (MalformedQueryException e) {
    3.24 +			logger.error("[Strabon.QueryOp] {}", e.getMessage());
    3.25 +			
    3.26  		} catch (Exception e) {
    3.27  			logger.error("[Strabon.QueryOp] Error during execution of SPARQL query.", e);
    3.28