Re: [Tracker] RDF Queries



Michael Lissner wrote:
Huh. I played with this a bit more today, and it was giving me errors:

executing rdf query <rdfq:Condition>
   <rdfq:equals>
       <rdfq:Property name='Audio:Album' />
       <rdf:String>Plans</rdf:String>
   </rdfq:equals>
</rdfq:Condition>

This works for me, perhaps you are calling the API with something that causes errors.

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?

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.

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

--
Regards,
Martyn



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