+ dependencies.add(thisOntology.second);
+
+ for (Bundle b : Activator.getContext().getBundles()) {
+ String id = b.getSymbolicName();
+ String name = (String) b.getHeaders().get("Bundle-Name");
+ if (name == null) name = id;
+ if (name.equals(thisOntology.first))
+ continue;
+ URL tg = b.getEntry("/graph.tg");
+ if (tg == null) continue;
+ File f = url2file(FileLocator.resolve(tg), b.getSymbolicName());
+ try {
+ dependencies.add(GraphCompiler.read(f));
+ } catch (Exception e) {
+ throw new IOException("Failed to read compiled transferable graph as dependency: " + f, e);
+ }
+ }
+