public IActionResult dataValidate(IFormFile rdfFile, Guid repositoryIdentifier) { try { string rdfFileContent = SparqlUtility.GetTextFromFile(rdfFile); return(Ok(SparqlUtility.ValidateRDF(rdfFileContent, _shapeConfigService.GetShapesConfigs().FindAll(x => x.RepositoryID == repositoryIdentifier)))); } catch (Exception ex) { return(Problem(ex.ToString())); } }
public IActionResult dataValidate(IFormFile rdfFile, IFormFile validationFile) { try { string rdfFileContent = SparqlUtility.GetTextFromFile(rdfFile); string validation = SparqlUtility.GetTextFromFile(validationFile); return(Ok(SparqlUtility.ValidateRDF(rdfFileContent, validation, validationFile.FileName))); } catch (Exception ex) { return(Problem(ex.ToString())); } }