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. After that I tried to use
Virtuoso-specific full-text search:
SELECT ?uri
WHERE
{
?uri foaf:page ?url .
?url bif:contains "http://en.wikipedia.org/wiki/Moon"
}
but as foaf:page values are stored as Uri it doesn't work. I am pretty sure
I am not the first who tries to solve this task. Are there any other ways?
Regards,
Alexander
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion