Hi,
I've a triple like:
<#bar> rdfs:label "Bar"
Obviously this query will return results:
SELECT DISTINCT ?uri
WHERE {
?uri rdfs:label ?label .
FILTER REGEX(?label, "Bar")
}
But according the specification [1] I also expected to get result with
this one:
SELECT DISTINCT ?uri
WHERE {
?uri rdfs:label ?label .
FILTER REGEX(?label, "bar", "i")
}
But the latest query doesn't return any tuple. Is there any better way
to do this string comparisons? I remember that there also exists a
built-in function to compare strings in Virtuoso instead regex, but now
I don't remember its name/reference...
Cheers,
[1] http://www.w3.org/TR/rdf-sparql-query/#funcex-regex
--
Sergio Fernández - [email protected]
R&D Deparment
CTIC Foundation - www.fundacionctic.org
Phone: +34 984 29 12 12
Fax: +34 984 39 06 12
Edificio Centros Tecnológicos
Parque Científico Tecnológico
33203 Cabueñes - Gijón - Asturias - Spain