From 6e9521495dd7aa07beef652a1490fef319d85cb8 Mon Sep 17 00:00:00 2001
From: Arun Sharma <sharma.arun@gmail.com>
Date: Tue, 23 May 2006 13:34:26 +0000
Subject: [PATCH]

---
 src/fr/inrialpes/exmo/align/service/QueryMediator.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/fr/inrialpes/exmo/align/service/QueryMediator.java b/src/fr/inrialpes/exmo/align/service/QueryMediator.java
index 9036ed04..41f4de14 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");               
-- 
GitLab