The nepomuksearch kio slave explicitly uses the ResourceManager::mainModel() to run a sparql query and then extracts the results from the Soprano::QueryResultIterator into Nepomuk2::Query::Result. This entire process can be replaced by the Query::ResultIterator. Relevant Code: kde-runtime/nepomuk/kioslaves/search/searchfolder.cpp Relevant Functions: SearchFolder::list() and SearchFolder::extractResult(..)
Git commit dcc2a510d7678fc9f28912918609c844f6048368 by Vishesh Handa. Committed on 27/11/2012 at 13:40. Pushed by vhanda into branch 'master'. Nepomuk Search KIO Slave: Port to the Query::ResultIterator No point duplicating code. REVIEW: 107466 CCMAIL: poetabh@gmail.com Patch contributed by Gabriel Poesia <poetabh@gmail.com> M +3 -36 nepomuk/kioslaves/search/searchfolder.cpp M +0 -2 nepomuk/kioslaves/search/searchfolder.h http://commits.kde.org/kde-runtime/dcc2a510d7678fc9f28912918609c844f6048368