Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4a351f72 authored by Luz-Maria Priego's avatar Luz-Maria Priego
Browse files

bug fixed in recordOntology

parent 6dfef61a
No related branches found
No related tags found
No related merge requests found
...@@ -609,7 +609,7 @@ public class SQLCache extends VolatilCache implements Cache { ...@@ -609,7 +609,7 @@ public class SQLCache extends VolatilCache implements Cache {
} else { } else {
String sformname = ""; String sformname = "";
if ( res.getString("formname") != null ) sformname = res.getString("formname"); if ( res.getString("formname") != null ) sformname = res.getString("formname");
if ( onto != null && res.getString("formname").equals("") ) { // JE: checktest if ( onto != null && sformname.equals("") ) { // JE: checktest
logger.debug( "Updating ontology {} with formalism {}", suri, onto.getFormalism() ); logger.debug( "Updating ontology {} with formalism {}", suri, onto.getFormalism() );
if ( onto.getFormURI() != null ) sformuri = onto.getFormURI().toString(); if ( onto.getFormURI() != null ) sformuri = onto.getFormURI().toString();
query = "UPDATE ontology SET formname="+quote(onto.getFormalism())+", formuri="+quote(sformuri)+" WHERE uri="+quote(suri)+";"; query = "UPDATE ontology SET formname="+quote(onto.getFormalism())+", formuri="+quote(sformuri)+" WHERE uri="+quote(suri)+";";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment