Bug 303383 - Port the QueryService to the Query::ResultIterator
Summary: Port the QueryService to the Query::ResultIterator
Status: RESOLVED FIXED
Alias: None
Product: nepomuk
Classification: Miscellaneous
Component: queryservice (show other bugs)
Version: git master
Platform: unspecified Linux
: NOR task
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2012-07-11 18:04 UTC by Vishesh Handa
Modified: 2012-08-09 08:30 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vishesh Handa 2012-07-11 18:04:18 UTC
The query service 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: nepomuk-core/services/query/searchrunnable.cpp
Relevant Functions: SearchRunnable::run() and SearchRunnable::extractResult()
Comment 1 Simeon Bird 2012-08-09 01:46:19 UTC
I did this, but I failed to add the right metadata to the commit, which was:
6d245db57a02d0a59a71224f0f404796d7fc82c2

Apologies. Can someone please close?