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) {
|
||||
log.error("OntologyDaoJena.updateOntology() could not find ontology "+ontology.getURI()+" in Jena model");
|
||||
} else {
|
||||
if (ontology.getName() != null && ontology.getName().length()>0) {
|
||||
o.setLabel(ontology.getName(), PREFERRED_LANGUAGES[0]);
|
||||
}
|
||||
if (ontology.getPrefix() != null && ontology.getPrefix().length()>0) {
|
||||
updatePropertyStringValue(o,ONTOLOGY_PREFIX_ANNOT,ontology.getPrefix(),ontModel);
|
||||
}
|
||||
updateRDFSLabel(o, ontology.getName());
|
||||
updatePropertyStringValue(o, ONTOLOGY_PREFIX_ANNOT,
|
||||
ontology.getPrefix(), ontModel);
|
||||
}
|
||||
} finally {
|
||||
ontModel.leaveCriticalSection();
|
||||
|
|
Loading…
Add table
Reference in a new issue