public async Task <NeptuneLoaderResponse> ImportGraph(IFormFile turtleFile, Uri graphName, bool overwriteExisting = false) { Guard.IsValidUri(graphName); CheckFileTypeForTtl(turtleFile); var fileUploadInfo = await _awsS3Service.UploadFileAsync(_awsConfig.S3BucketForGraphs, turtleFile); var graphExists = _graphRepo.CheckIfNamedGraphExists(graphName); if (graphExists && !overwriteExisting) { throw new GraphAlreadyExistsException(graphName); } var loaderResponse = await _neptuneLoader.LoadGraph(fileUploadInfo.S3KeyName, graphName); return(loaderResponse); }