Beispiel #1
0
        private void ConvertFiles(string savedFileName, string scenario, string datastoreName)
        {
            (FileUploadConfig uploadConfig, string pythonArgs, string targetDir) = dsManager.GenerateConvertDirs(datastoreName, savedFileName, scenario);

            RunCommand(uploadConfig.PythonEnvPath, uploadConfig.ConvertScriptPath, pythonArgs);

            if (this.dsManager.GetPersistanceType() == PersistanceType.MongoDB)
            {
                SmartKG.DataUploader.Executor.DataUploader uploader = new SmartKG.DataUploader.Executor.DataUploader();
                uploader.UploadDataFile(targetDir, datastoreName);
            }

            return;
        }