Re: [Tracker] Tags, metadata and date fields



On 05/04/10 01:23, Nikolaus Rath wrote:
On 04/03/2010 07:47 PM, Ivan Frade wrote:
  if i understand correctly, you just need to write a UI to ask tags
and metadata to the user and insert that data into tracker using
sparQL.

Can you give me some idea how to go about this? Is there a (preferably
Python) API that I can use? Or is there a tracker command line tool that
I have to call with the correct parameters?

There are both.

See tracker-tag (in src/tracker-utils/) to do tagging on the command line. We also have plenty of python scripts in the tests/functional-tests/ directory which you can use to help you get on. There is also an example RSS reader which uses Python in examples/.

We use D-Bus or libtracker-client (which wraps the D-Bus API). So in Python it is quite easy to just use the D-Bus. The above examples do just that.

--
Regards,
Martyn



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