NIHVIVO-3063 fixed inability to remove prefix from an ontology

This commit is contained in:
brianjlowe 2011-07-26 17:30:01 +00:00
parent 164dccdaac
commit b5f1fd70b5

View file

@ -158,12 +158,9 @@ public class OntologyDaoJena extends JenaBaseDao implements OntologyDao {
if (o == null) { if (o == null) {
log.error("OntologyDaoJena.updateOntology() could not find ontology "+ontology.getURI()+" in Jena model"); log.error("OntologyDaoJena.updateOntology() could not find ontology "+ontology.getURI()+" in Jena model");
} else { } else {
if (ontology.getName() != null && ontology.getName().length()>0) { updateRDFSLabel(o, ontology.getName());
o.setLabel(ontology.getName(), PREFERRED_LANGUAGES[0]); updatePropertyStringValue(o, ONTOLOGY_PREFIX_ANNOT,
} ontology.getPrefix(), ontModel);
if (ontology.getPrefix() != null && ontology.getPrefix().length()>0) {
updatePropertyStringValue(o,ONTOLOGY_PREFIX_ANNOT,ontology.getPrefix(),ontModel);
}
} }
} finally { } finally {
ontModel.leaveCriticalSection(); ontModel.leaveCriticalSection();