Re: [Tracker] RDF Queries



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)

--
Regards,
Martyn



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