+ public static void changeComponentType(WriteGraph graph, Resource instance, Resource newComponentType) throws DatabaseException {
+ ModelingResources MOD = ModelingResources.getInstance(graph);
+ Resource newSymbol = graph.getSingleObject(newComponentType, MOD.ComponentTypeToSymbol);
+ new MigrationOperation(new NamedResource("", instance), new NamedResource("", newComponentType), new NamedResource("", newSymbol))
+ .perform(graph);
+ }