NIHVIVO-3063 fixed inability to remove prefix from an ontology
This commit is contained in:
parent
164dccdaac
commit
b5f1fd70b5
1 changed files with 3 additions and 6 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue