Пример #1
0
 private void setPrefixOfNamespace(String namespace, String value) {
   OWLModel owlModel = ontology.getOWLModel();
   try {
     owlModel.beginTransaction(
         "Change prefix of " + namespace + " to " + value, ontology.getName());
     owlModel.getNamespaceManager().setPrefix(namespace, value);
     owlModel.commitTransaction();
   } catch (Exception ex) {
     owlModel.rollbackTransaction();
     OWLUI.handleError(owlModel, ex);
   }
 }
Пример #2
0
 NamespaceManager getNamespaceManager() {
   return ontology.getOWLModel().getNamespaceManager();
 }
Пример #3
0
 private boolean isMetadataOntologyImportedDirectly(OWLOntology ont) {
   return ont.getImportResources().contains(getMetadataOnt());
 }