[Tracker] Re: Barracuda update



Make that a "Files.Keywords" in the rdf query...

2006/6/4, Mikkel Kamstrup Erlandsen <mikkel kamstrup gmail com>:
I pushed a few updates to the Barracuda repo that allows for other services than Files to be queried. Just select service from the dropdown next to the search entry.

As usual get it with

bzr get http://grillbar.org/barracuda

or just

bzr pull

if you already have a working tree. Keywords are not implemented yet, but are under way.

ATT: Jamie
How do I fetch all files matching a given keyword with the current api? I plan on doing via rdf like:

<rdfq:rdfquery>
  <rdfq:From eachResource="Files">
    <rdfq:Select>
      <rdfq:Condition>

          <rdfq:inSet>
            <rdf:String>QSTRING</rdf:String>
            <rdfq:Property name="File.Format" />
          </rdfq:inSet>

     </rdfq:Condition>
   </rdfq:Select>
  </rdfq:From>
</rdfq:rdfquery>

Is this the right way?


IMPORTANT:
You have to apply this patch to tracker to get it working (just comment out four lines in trackerd/tracker-dbus-methods):

--- src/trackerd/tracker-dbus-methods.c.orig
2006-05-02 22:37:43.000000000 +0200
+++ src/trackerd/tracker-dbus-methods.c 2006-05-25
20:41:01.000000000 +0200
@@ -439,10 +439,10 @@
               return;
       }

-       if (strcmp (service, "Files") != 0) {
-               tracker_set_error (rec, "Invalid
service %s or service has not been implemented yet",
service);
-               return;
-       }
+       //if (strcmp (service, "Files") != 0) {
+       //      tracker_set_error (rec, "Invalid
service %s or service has not been implemented yet",
service);
+       //      return;
+       //}

       if ( !str || strlen (str) == 0) {
               tracker_set_error (rec, "No search
term was specified");



Cheers,
Mikkel



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