+ /**
+ * Activate the imported resource, if there are no other active models and the resource is a Model.
+ */
+ private static void activateIfNoActiveModel(WriteGraph graph, Resource root, Resource parent) throws DatabaseException {
+ Layer0X L0X = Layer0X.getInstance(graph);
+ SimulationResource SIMU = SimulationResource.getInstance(graph);
+ if(!graph.hasStatement(parent, L0X.Activates) && graph.isInstanceOf(root, SIMU.Model))
+ graph.claim(parent, L0X.Activates, root);
+ }
+