Strabon

changeset 275:40e87b44f8f7

merge
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Wed Jun 13 17:59:06 2012 +0300 (2012-06-13)
parents 215a496f0410 a2270d7ce584
children 5cc013380ec7
files
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Wed Jun 13 17:57:27 2012 +0300
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Wed Jun 13 17:59:06 2012 +0300
     1.3 @@ -171,6 +171,19 @@
     1.4  		return query(queryString, "", con);	
     1.5  	}
     1.6  
     1.7 +	public Object queryBindings(String queryString, SailRepositoryConnection con) throws QueryEvaluationException, MalformedQueryException
     1.8 +	{
     1.9 +		logger.info("[Strabon.query] Executing query: " + queryString);
    1.10 +		TupleQuery tupleQuery = null;
    1.11 +		try {
    1.12 +			tupleQuery = con.prepareTupleQuery(QueryLanguage.SPARQL, queryString);
    1.13 +		} catch (RepositoryException e) {
    1.14 +			logger.error("[Strabon.query] Error in preparing tuple query.", e);
    1.15 +		}
    1.16 +		TupleQueryResult result = tupleQuery.evaluate();
    1.17 +		return result;
    1.18 +	}
    1.19 +	
    1.20  	public Object query(String queryString, String resultsFormat, SailRepositoryConnection con)
    1.21  	throws  MalformedQueryException, QueryEvaluationException, IOException, TupleQueryResultHandlerException 
    1.22  	{