2007/2/20, Jos van den Oever <<a href="mailto:jvdoever@gmail.com">jvdoever@gmail.com</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2007/2/20, Joe Shaw <<a href="mailto:joeshaw@novell.com">joeshaw@novell.com</a>>:<br>> Hi,<br>><br>> On Tue, 2007-02-20 at 20:52 +0100, Jos van den Oever wrote:<br>> > But reading, writing and searching metadata fields is something that
<br>> > desktop applications will want to do more and more. Since there is, to<br>> > my knowledge, also no standard for reading and writing metadata in<br>> > fd.o, this is a good opportunity to come up with it.
<br>><br>> I agree. But it is something that should be kept conceptually separate<br>> from desktop search.<br>><br>> > Whereas we are talking about metadata that relates to files, they are<br>> > working on a wider definition.
<br>><br>> Do you mean files in their strictest sense, or also things like emails,<br>> addressbook contacts, etc?<br>Yes, those too. Mails are clear, addressbook contacts is a bit<br>slippery, but yes those too. So files and url-addressable parts of
<br>files.<br><br>><br>> > When you think of writing metadata, you can e.g. think of the<br>> > properties dialog in Konqueror where you can write title and artist<br>> > for mp3 files. For searching you want to name this field and for the
<br>> > read/write api you want to name it too, so you might as well use the<br>> > same language for that.<br>><br>> Indeed, and we should also use the same storage for it whenever<br>> possible. I envision a three-tiered system for actually setting
<br>> metadata on files:<br>><br>> 1. Store the metadata in the file itself whenever possible. Things like<br>> id3 tags in MP3s or XMP metadata in jpegs. This is ideal because it's<br>> in a standardized format that most tools can read, and the metadata
<br>> follows the file around no matter where it's sent.<br>><br>> 2. Store metadata in extended attributes on the file in the file system.<br>> This has the benefit in that the metadata follows the data around within
<br>> a single system, and our desktop applications can be standardized around<br>> a schema for xattrs. Obviously this won't work for non-file items or on<br>> file systems that don't support them.<br>>
<br>> 3. Lastly, store metadata in some sort of centralized store, like a<br>> sqlite database. Keeping metadata in sync with data is harder, but<br>> fortunately most of the data that would require this mechanism wouldn't
<br>> have mostly unique URIs. I'm sure Jamie will disagree with me on this,<br>> but I don't think this requires a constantly running daemon; a simply<br>> library interface would probably suffice.<br><br>
Hehe, now _you_ are taking this spec further then intended. ;-)<br>I'll not get into this. On the KDE side this is something for<br>Sebastian Trueg (Nepomuk) to consider.</blockquote><div><br>Is it just Sebastian? I'm generally not keen on one-man-speccing.
<br><br>I can't make up my mind. On one hand I think that the way metadata is stored is an implementation detail, on the other hand it might be good to standardize it. It could be a standard that is orthogonal to the other parts of the metadata specs though.
<br></div><br>Cheers,<br>Mikkel<br></div><br>