Re: [Tracker] Sparql search application



On Fri, 2010-07-30 at 11:28 +0800, åäçé wrote:
Hi everyone:

Hi,

     Excuse me! i want to ask a question, if i want to search the
application which name is KCalc by tracker,  how did i search it by
sparql? 

This is a query we use in tracker-search-bar to find applications, hope
it helps:

    SELECT
          ?urn ?title ?tooltip ?link fts:rank(?urn)
        nfo:softwareIcon(?urn)
        WHERE {
          ?urn a nfo:Software ;
          nie:title ?title ;
          nie:comment ?tooltip ;
          nfo:softwareCmdLine ?link .
          ?urn fts:match "KCalc" 
        }
        ORDER BY DESC(fts:rank(?urn)) 
        OFFSET 0 LIMIT %d

and if there is a file  which name is KCalc in  /home/user/, how do i
distinguish file and application?

Not sure I follow what you mean here?
        
-- 
Regards,
Martyn




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