diff --git a/src/fr/inrialpes/exmo/align/service/QueryMediator.java b/src/fr/inrialpes/exmo/align/service/QueryMediator.java index 9036ed0461dca156de0575f575a1d32edf634437..41f4de1482e200a61d61c0775dfc42d8a13e96ad 100644 --- a/src/fr/inrialpes/exmo/align/service/QueryMediator.java +++ b/src/fr/inrialpes/exmo/align/service/QueryMediator.java @@ -142,8 +142,8 @@ public class QueryMediator implements QueryProcessor { } /** - * @aQuery query to be re-written - * @ a the alignment used for rewriting the query Alignment + * @param aQuery query to be re-written + * @param a the alignment used for rewriting the query Alignment * @ return -- rewritten query: * - replaces all the prefix namespaces, if present, in the query by actual IRIs * - replaces all entity IRI by their counterpart in the ontology @@ -156,7 +156,7 @@ public class QueryMediator implements QueryProcessor { */ public String rewriteQuery( String aQuery ) throws AlignmentException { // The first part expands the prefixes of the query - aQuery = aQuery.toLowerCase(); + aQuery = aQuery.replaceAll("PREFIX", "prefix"); String mainQuery = ""; if( aQuery.indexOf("prefix") != -1 ) { String[] pref = aQuery.split("prefix");