Strabon

changeset 435:734206cf5a29

Adding variable "query" according to http://www.w3.org/TR/rdf-sparql-protocol/#SparqlQuery
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Wed Jul 18 14:58:27 2012 +0300 (2012-07-18)
parents e4c4b31ef4b6
children 0e9150850e86 0570e23421ad
files endpoint/src/main/java/eu/earthobservatory/org/StrabonEndpoint/QueryBean.java
line diff
     1.1 --- a/endpoint/src/main/java/eu/earthobservatory/org/StrabonEndpoint/QueryBean.java	Wed Jul 18 13:09:39 2012 +0300
     1.2 +++ b/endpoint/src/main/java/eu/earthobservatory/org/StrabonEndpoint/QueryBean.java	Wed Jul 18 14:58:27 2012 +0300
     1.3 @@ -107,6 +107,11 @@
     1.4  
     1.5  		String query = request.getParameter("SPARQLQuery");
     1.6  		String q = (query == null) ? null : URLDecoder.decode(request.getParameter("SPARQLQuery"), "UTF-8");
     1.7 +
     1.8 +		if (query == null) {
     1.9 +	               query = request.getParameter("query");
    1.10 +	               q = (query == null) ? null : URLDecoder.decode(request.getParameter("query"), "UTF-8");
    1.11 +		}
    1.12  			
    1.13  		hive.setSPARQLQuery(q);
    1.14