Re: [Tracker] Result of GetMetadata DBUS Method



On 19/09/11 01:24, Nikolaus Rath wrote:
Adrien Bustany<abustany-rDKQcyrBJuzYtjvyW6yDsg public gmane org>  writes:
That would be my guess too. But I'm surprised to find a WHERE in the
GetMetadata output in the first place. What is it good for, and why
is it only included for some documents?

The where is here to reuse an existing tag.

INSERT { a tag with label "foo" }
INSERT { file has tag ?tag } WHERE { ?tag has label "foo" }

You can think of it as a sort of secondary key...
I guess it's only included for documents which have tags?

Can a document have tags if they have never been added with tracker-tag
(or some frontend)? The WHERE clause is included for freshly created
documents that have certainly not been tagged manually.

That depends on the document. PDFs certainly can for example, but that's the only "document" format we support with Tags right now.

--
Regards,
Martyn

Founder and CEO of Lanedo GmbH.



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