Hello!

I need to search DbPedia uri by wikipedia link (entered by user). For
example:

SELECT ?uri WHERE
{
   ?uri foaf:page <http://en.wikipedia.org/wiki/Moon>
}

But I need to make this query case-insensitive (for the case when, for
example, user enters ".../moon" instead of ".../Moon"). Here is what I
tried:

SELECT ?uri
WHERE
{
   ?uri foaf:page ?url
   FILTER regex(str(?url), "^http://en.wikipedia.org/wiki/Moon$";, "i")
}

But it is obviously very and very slow. Is there any way to solve this task
more efficient?

Regards,
Alexander

Reply via email to