public IActionResult dataPublish(IFormFile rdfFile) { try { XmlDocument rdf = SparqlUtility.GetRDFFromFile(rdfFile); List <string> triples = SparqlUtility.GetTriplesFromRDF(rdf); SparqlUtility.LoadTriples(triples, _configSparql.GetEndpoint(), _configSparql.GetQueryParam(), _configSparql.GetGraph(), _configSparql.GetGraphUnidata()); return(Ok()); } catch (Exception ex) { return(Problem(ex.ToString())); } }
public IActionResult LoadTriples(List <string> triples) { SparqlUtility.LoadTriples(triples); return(Ok()); }