while (r != null) {
if (graph.isInstanceOf(r, sim.Model))
return r;
+ if (graph.isInstanceOf(r, l0.SharedOntology))
+ return r;
r = graph.getPossibleObject(r, l0.PartOf);
}
return r;
public static Resource getConfiguration(ReadGraph graph, Resource model) throws DatabaseException {
SimulationResource sim = SimulationResource.getInstance(graph);
- return graph.getSingleObject(model, sim.HasConfiguration);
+ return graph.getPossibleObject(model, sim.HasConfiguration);
}
}