private (bool, string, string) ConvertFiles(string savedFileName, string datastoreName, string scenario) { bool success = false; string message = ""; string savedFilePath = dsManager.GetSavedExcelFilePath(savedFileName); ExcelParser eParser = new ExcelParser(); (List <Vertex> vertexes, List <Edge> edges) = eParser.ParserExcel(savedFilePath, scenario); string targetDir = null; if (vertexes != null && vertexes.Count > 0) { targetDir = GenerateKGNLUConfigFiles(vertexes, edges, datastoreName, scenario); success = true; } else { message = "无法从上传的 Excel 中解析出实体,请确认该 Excel 与模板格式一致。"; } return(success, message, targetDir); }