On 7/3/2011 1:40 AM, Alexander Sidorov wrote:
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:


Unfortunately case actually means something in Wikipedia, unlike Windows, which plays both sides of the road. Last time I checked there were about 10,000 entries in Wikipedia that differed only by case.

In your case, you might (almost) get the results you want by searching on the rdfs:label field (which gives the title) but the real treasure trove of alternate names is under the dbpedia-owl:wikiPageRedirects field which doesn't (I think) get materialized as text. Note that these alternate names are often too embarrassing to display but OK to accept for searching.
------------------------------------------------------------------------------
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

Reply via email to