Gentoo Archives: gentoo-dev

From: Maciej Mrozowski <reavertm@××××××.fm>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Category tags on packages (was: new categories:)
Date: Mon, 09 Feb 2009 22:43:10
Message-Id: 200902092343.02344.reavertm@poczta.fm
In Reply to: Re: [gentoo-dev] Category tags on packages (was: new categories:) by "Tiziano Müller"
1 On Sunday 08 of February 2009 19:51:29 Tiziano Müller wrote:
2
3 > It's metadata-stuff, why not put it there?
4 >
5 > You have two possibilities:
6 >
7 > a) Introduce new elements:
8 > <tags>
9 > <tag>foo</tag>
10 > <tag>bar</tag>
11 > </tags>
12 >
13 > b) Think of herds as tags, then you have many packages already tagged.
14 > To be able to add new herds/tags without messing up with the
15 > maintainer-info, I'd then introduce new attributes for <maintainer> and
16 > instead of writing <herd>foo</herd> meaning that a package is maintainer
17 > by team "foo" just write <maintainer type="team">foo</maintainer>
18 > instead.
19 > Then you can use the "herd" element in metadata.xml freely as a tag.
20
21 That's basically exactly what I've proposed, I'd just add (possibly optional)
22 weight or relevance of tag as well, for example:
23
24 <tags>
25 <tag>foo</tag>
26 <!-- some less relevant tag -->
27 <tag weight="0.5">bar</tag>
28 </tags>
29
30 as one cannot forget that tag search is *vector*, not binary search - so there
31 are more possibilities to explore.
32
33 Btw, too bad, metadat XML schema is written in DTD and not in some easier to
34 read more expressive way - like RelaxNG.
35
36 --
37 regards
38 MM

Attachments

File name MIME type
signature.asc application/pgp-signature