alignment.align();
AlignmentManager.Instance().addAlignmentToMap(alignmentId, alignment);
}
steinerNodes = alignment.computeSteinerNodes();
ModelLearner modelLearner = null;
if (ModelingConfiguration.isLearnAlignmentEnabled())
modelLearner = new ModelLearner(alignment.getGraphBuilder(), steinerNodes);
else
modelLearner = new ModelLearner(ontologyManager, alignment.getLinksByStatus(LinkStatus.ForcedByUser), steinerNodes);
// logger.info(GraphUtil.defaultGraphToString(ModelLearningGraph.getInstance(ontologyManager, ModelLearningGraphType.Compact).getGraphBuilder().getGraph()));
SemanticModel model = modelLearner.getModel();
if (model == null) {
logger.error("could not learn any model for this source!");
return new UpdateContainer(new ErrorUpdate(
"Error occured while generating a semantic model for the source."));
}