Representing facets in the vocabulary
Enrico Zini <[email protected]> Wed, 7 Jul 2004 22:35:15 +0100
| Newsgroups | gmane.linux.debian.usability |
|---|---|
| Message-ID | <20040707213515.GA6782@mitac> |
--SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Hello, I'm trying to extend libdetags to use a Tag class instead of a std::string to represent tags. I'm also introducing a Facet class to represent facets, and converting the vocabulary to be the central container for Tags and Facets. In this process, I'd like to be able to represent facets in the vocabulary, together with a description and possibly further data in the future. One way to do this would be to introduce a record identified by "Facet:" instead of "Tag:", which would hold the facet data. Then I would convert all the existing "Tag: <facet-name>" into "Facet: <facet-name>". This has the potential to break parsers that rely on finding a "Tag:" field in every record, and elimitates from the vocabulary the current tags with the facet name like "admin" and "uitoolkit". These latter tags are however regenerated from tag names when loading the archive with the library initialized with facet_only=false option. My middle-term plan would be to get rid of implications and of non-faceted tags in the vocabulary, having only "Facet: facet" facet descriptions and "Tag: facet::tag" tag description. Any comments? Ciao, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[email protected]> --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA7GyT9LSwzHl+v6sRAt2JAJ4z/XDJKQrYGvIbYEiUfpOHqdFWogCeOXch fS/ea9r5ISSitk8a6LFNcoY= =jHOw -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s--