public void AddUpdateString(SparqlParameterizedString parameterizedString) { var updateString = parameterizedString.ToString(); _sparqlParameterized.Append(updateString); // Regex to check if the last character is a semicolon if (!Regex.IsMatch(_sparqlParameterized.CommandText, @"(.*)[;]+(\s)*?$")) { _sparqlParameterized.Append(";" + Environment.NewLine); } }
public void AddUpdateString(SparqlParameterizedString parameterizedString) { if (parameterizedString == null) { _logger.LogInformation("parameterizedString ist null"); } if (_sparqlParameterized == null) { _logger.LogInformation("_sparqlParameterized ist null"); } var updateString = parameterizedString.ToString(); _sparqlParameterized.Append(updateString); // Regex to check if the last character is a semicolon if (!Regex.IsMatch(_sparqlParameterized.CommandText, @"(.*)[;]+(\s)*?$")) { _sparqlParameterized.Append(";" + Environment.NewLine); } }