Re: [Tracker] RDF Queries



I agree, it seems like tracker-query could use some love, or what I would suggest is that its functionality should be folded in with tracker-search-tool so the whole RDF thing can be left behind.

For the list of supported extractors, it would be useful not just to be able to list them, but to be able to change them too...without recompiling the thing. So, say I figure out that I *don't* have music meta extraction installed, and I want that. What then?

dpkg -l | grep -i tracker yields:
% dpkg -l  | grep -i tracker
ii libdeskbar-tracker 0.6.6-1ubuntu5.1 metadata database, indexer and search tool - ii libtracker-gtk0 0.6.6-1ubuntu5.1 GTK+ widgets for apps that use tracker ii libtrackerclient0 0.6.6-1ubuntu5.1 metadata database, indexer and search tool - ii tracker 0.6.6-1ubuntu5.1 metadata database, indexer and search tool ii tracker-search-tool 0.6.6-1ubuntu5.1 metadata database, indexer and search tool - ii tracker-utils 0.6.6-1ubuntu5.1 metadata database, indexer and search tool -

Mike



Martyn Russell wrote:
Michael Lissner wrote:
Cool. Some responses below, though I still haven't gotten the query to work... :)

:)

This is how I call it:

    tracker_search_query_async (priv->client,
                    time (NULL),
                    instance->service_type,
                    NULL, /* Fields */
                    NULL, /* Search text */
                    NULL, /* Keywords */
                    instance->rdf_query,
                    instance->current_pos,
                    ELEMENTS_PER_QUERY,
                    FALSE, /* Sort by service */
                    instance->sort_fields,
                    FALSE, /* Sort descending */
                    query_get_data_cb,
                    instance);

Are you calling this function, if so, how?

This is function call in libtracker.

I'm simply using the terminal to call: tracker-query queryFile.rdf. I don't know the function that you're mentioning above. I'm guessing it's from the source code?

Hmm, perhaps tracker-query needs some love then.

I also ran tracker-extract on the mp3 file that I was expecting to get a hit from, and it didn't return any meta data. I'm guessing that means that tracker isn't gathering meta data from music files? If that's true, is it possible to change the config so it will?

This depends on a few things:

1. What extractors are supported - configure should give you a summary of that.
Can you explain how to check that? I'm just running stock Ubuntu...

You would have to build the package yourself to know that. Perhaps we should have some sort of utility to list supported extractors.

2. The MP3 itself. What exactly does tracker-extract output for that file if you use:

 /usr/libexec/tracker-extract -v 3 -f /path/to/filename
Well, my version of tracker-extract throws an error when I give it those arguments. It doesn't seem to have a -v argument, nor a -f argument. When I run it without those, it extracts nothing at all...suspicious, eh? Assuming tracker isn't indexing this info, is there a way to make it?

Hmm, what version of Tracker are you using? (dpkg -l |grep -i tracker)




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