diff --git a/src/fr/inrialpes/exmo/align/service/DBService.java b/src/fr/inrialpes/exmo/align/service/DBService.java index 9dc35d94143899f004776a99406de0e23bd2fc04..f435d2af17023a4a891bdd5748e77ed9ea05d076 100644 --- a/src/fr/inrialpes/exmo/align/service/DBService.java +++ b/src/fr/inrialpes/exmo/align/service/DBService.java @@ -2,6 +2,7 @@ * $Id$ * * Copyright (C) Seungkeun Lee, 2006 + * Copyright (C) INRIA, 2014 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -20,7 +21,6 @@ package fr.inrialpes.exmo.align.service; -//import java.net.URI; import java.sql.Connection; import java.sql.SQLException; diff --git a/src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java b/src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java index e46170e9e95fe761358694991e3acf268e56b4e8..55879bd80d639a352a87a3dfe54624c7573b1d97 100644 --- a/src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java +++ b/src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java @@ -1,7 +1,7 @@ /* * $Id$ * - * Copyright (C) INRIA, 2006-2013 + * Copyright (C) INRIA, 2006-2014 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -784,7 +784,7 @@ public class HTMLAServProfile implements AlignmentServiceProfile { msg += "<option value=\""+id+"\">"+pid+"</option>"; } msg += "</select><br />"; - msg += "SPARQL query:<br /> <textarea name=\"query\" rows=\"20\" cols=\"80\">PREFIX foaf: <http://xmlns.com/foaf/0.1/>\nSELECT *\nFROM <>\nWHERE {\n\n}</textarea> (SPARQL)<br /><small>A SPARQL query (PREFIX prefix: <uri> SELECT variables FROM <url> WHERE { triples })</small><br /><input type=\"submit\" value=\"Translate\"/></form>"; + msg += "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .<br /><br />SPARQL query:<br /> <textarea name=\"query\" rows=\"20\" cols=\"80\">PREFIX foaf: <http://xmlns.com/foaf/0.1/>\nSELECT *\nFROM <>\nWHERE {\n\n}</textarea> (SPARQL)<br /><small>A SPARQL query (PREFIX prefix: <uri> SELECT variables FROM <url> WHERE { triples })</small><br /><input type=\"submit\" value=\"Translate\"/></form>"; } else if ( perf.equals("translate") ) { Message answer = manager.translate( new Message(newId(),(Message)null,myId,serverId,"", params) ); if ( answer instanceof ErrorMsg ) { @@ -877,6 +877,7 @@ public class HTMLAServProfile implements AlignmentServiceProfile { msg += "<form action=\"prminv\"><button title=\"Swap the two ontologies of an alignment\" type=\"submit\">Invert alignment</button></form>"; msg += "<form action=\"prmstore\"><button title=\"Persistently store an alignent in this server\" type=\"submit\" >Store alignment</button></form>"; msg += "<form action=\"prmretrieve\"><button title=\"Render an alignment in a particular format\" type=\"submit\">Render alignment</button></form>"; + msg += "<form action=\"prmtranslate\"><button title=\"Query translation through an alignment\" type=\"submit\">Translate query</button></form>"; msg += "<form action=\"prmeval\"><button title=\"Evaluation of an alignment\" type=\"submit\">Evaluate alignment</button></form>"; msg += "<form action=\"prmdiff\"><button title=\"Compare two alignments\" type=\"submit\">Compare alignment</button></form>"; msg += "<form action=\"../admin/\"><button style=\"background-color: lightpink;\" title=\"Server management functions\" type=\"submit\">Server management</button></form>";