Re: [Tracker] How to get newly added audio files?



On 30/03/11 10:02, simon hong wrote:
2011/3/28 Adrien Bustany<abustany gnome org>

Hi,

Now, I use "SELECT nie:url(?u) WHERE {?u a nfo:Audio}" to get audio files.
I don't know how to use above properties (tracker:modified or
tracker:added)  for fetching newly added files.
Can you give some advice how to make sparql query for my purpose?
Or any documentation or guide for sparql will be appreciate.

You can use:

tracker-sparql -q "SELECT nie:url(?u) tracker:modified(?u) tracker:added(?u) WHERE {?u a nfo:Audio}"

Note that instead of looping, you could also use the GraphUpdated signal to
get updates in real time.

GraphUpdated signal is what I wanted ^^;
It works well :)

See:

  https://live.gnome.org/Tracker/Documentation/SignalsOnChanges

Any problems, hound us on IRC or here to fix the docs.

--
Regards,
Martyn



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