Re: [Tracker] Sparql search application



Hi:
     tracker can't search any evolution mail on my platform by sparql, example for  , i type  " tracker-sparql -q "SELECT ?s
WHERE { ?o nmo:to ?s ; nmo:messageSubject "Linux" . }" ", it always return 0, but there is an email which subject contains "Linux "
in evolution.
Many Thanks!

在 2010年7月31日 下午5:51,Martyn Russell <martyn lanedo com>写道:
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




--
Best Regards,
tomsun


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