I need to get a SPARQL query that matches double quotes in Virtuoso graph. I use such query:
SELECT distinct ?o
FROM <http://graph>
WHERE
{
?s ?p ?o.
}
It returns me a column with such values:
http://some.prefix/Symbol
"abcd"
I need to match only second value ("abcd"
). I tried to add such filter to WHERE
clause:
FILTER regex(str(?o), "\"")
But it returns no results. I also tried '"'
as a second parameter to regex, and some other things. Is it possible at all?
"abcd"
is a literal of four characters. It does not include the""
; these are the string delimiters and do not form part of the string.should work.