I want to add a widget to a web page that will allow user to enter search terms and search wikimedia for images that match the terms. I have implemented a similar widget for flickr, using their API, but am having trouble doing the same with wikimedia.
Basically, I would like to replicate the functionality of the commons.wikimedia.org search page. Ideally I would like to be able to get a Category listing (ex. http://commons.wikimedia.org/wiki/Chartres_Cathedral) or a true search results (ex. http://commons.wikimedia.org/w/index.php?title=Special%3ASearch&search=%22chartres+cathedral), but at this point I would be happy with either.
I've tried using the allimages list, but that is not adequate. Is there any other way to search images using the API?
I have also been looking at Freebase and DBPedia. These seem like they might do what I want, but RDF is completely new to me and I'm still trying to figure out the basics of it. If anyone can point me in the right direction for either of those resources, I would appreciate it.