refs #7626
Change-Id: I4c140ef09a13e2951b23557e086dc8baed7d7b34
Collection<Resource> ontologies = Simantics.applySCL("Simantics/SharedOntologies", "getSharedOntologies", graph, Tuple0.INSTANCE);
for (Resource ontology : ontologies) {
for(Resource module : ModelingUtils.searchByType(graph, ontology, L0.SCLModule))
- result.add(graph.getURI(module));
+ try {
+ result.add(graph.getURI(module));
+ } catch(DatabaseException e) {
+ LOGGER.error("Failed to find uri for " + module + ".");
+ }
}
return result;