I m using SemWeb.Sparql.dll in C# to execute some queries in sparql via C# I need to compare a given string variable to string in my ontology (rdfs:label) but i need this compare case insensitive ,so I used the regex function. I used this query:
disease = " ^" + disease + " ";
string query = prefixes + @"
Select ?a ?name Where{
?a ?c owl:Class .
?a rdfs:label ?name.
FILTER (Regex(?name," + @disease + ", i ))}";
在某些情况中工作得当,而在另一些情况中工作得当。 任何人都可以帮助我。