Any progress on this feature (enum)? I'd like to use it, esp. for sorting. If not, can anyone please give pointers (or example code) how to implement as custom type (php)?
* S Page <[EMAIL PROTECTED]> [2006-10-13 11:30]: > Markus Kr?tzsch wrote: > > I still have to be convinced that we need a Boolean type. > > > The reason is that instead of a Boolean type, you could simply use a > > Category. > > I.e. instead of [[HotOrNot:=true]] you would write [[Category:Hot]]. So why > > does one need Booleans? > > > b) You really want to represent a boolean property. Category:Hot and > Category:NotHot don't imply a boolean value and its "opposite"; I think > the closest you can get is to state an owl:disjointWith relation between > them. > c) It seems hard to do an inline query that displays one column for the > category and its opposite. > > On the other hand, a more general "enum" datatype could be useful. E.g. you > > could have an attribute "status" with possible values only > > being "alpha", "beta", and "stable". > That's technically cool and I think fairly easy to implement! If anyone > wants enum, file an enhancement request! I can see just a few benefits > over a plain string datatype: > a) input validation -- you'd see > Status [Oops! "pre-release" is not an allowed value for Status, > it can only be one of "alpha", "beta", "stable"]. > in the fact box. > b) the enum values would have a sort order and support greater than/less > than comparisons (by putting a sequence number in smw_attributes.value_num). -- =================================== Ittay Dror, Chief architect, R&D, Qlusters Inc. [EMAIL PROTECTED] +972-3-6081994 Fax: +972-3-6081841 www.openqrm.org - Data Center Provisioning ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Semediawiki-user mailing list Semediawiki-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-user