[PATCH 0/2] Allow for partial queries in tracker's query()



So far, the query in the tracker query() function must be a full SPARQL query.

Nevertheless, the user is providing also the list of interesting metadata keys, as well as the count and the skip. So the SPARQL query should take in account this information.

Following patches allows user to specify a partial SPARQL query (the part that goes in the WHERE clause), and the plugin will build a full SPARQL query using keys, count and skip.

As example, if I want to get all pop songs I can use:

   query("?urn a nmm:MusicPiece ; nfo:genre 'Pop'");

Of course, both partial and full modes are supported, and plugin will distinguish between them.


	J.A
 



Juan A. Suarez Romero (2):
  tracker: Rewrite SPARQL sentences
  tracker: Allow partial SPARQL queries in query()

 src/tracker/grl-tracker.c |   91 ++++++++++++++++++++++++++++++++------------
 1 files changed, 66 insertions(+), 25 deletions(-)

-- 
1.7.3.4



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]