From: Richard C. <ri...@cy...> - 2005-12-08 22:41:59
|
Hi Damien, This is an interesting mapping case. We didn't run into this before, =20 and there's no straightforward way to do this in D2RQ. Here's something that *could* work, but I'm not sure. You could define one PropertyBridge for each of the cases =20 (:small, :medium). Then you could use a d2rq:condition specifying the =20= value range. Then you coud use a d2rq:pattern to specify the URI =20 (without putting any @@columns@@ into the pattern). The problem is =20 that a d2rq:pattern without any columns *might* not work, but it's =20 worth a try. Please let me know if it works. Richard On 7 Dec 2005, at 10:13, Coraboeuf Damien wrote: > Hi, > > I have some numeric values in a column, let's say a number of =20 > people. I want to use this column value to indicate classes =20 > according to its range (for example, 0-10 for :small, 11-100 =20 > for :medium and so on). > > For the moment, TranslationTable does not allow me to do this =20 > because I can have only a 1:1 translation from a column value to a =20 > translated value. > > Is there something planned to make this possible in D2RQ ? Or is =20 > there a way to bypass this ? > > Regards, > Damien. > Pensez =E0 visiter le site BRGM sur.... http://www.brgm.fr/ *** Le =20 > contenu de cet e-mail et de ses pi=E8ces jointes est destin=E9 =E0 =20 > l'usage exclusif du (des) destinataire(s) express=E9ment d=E9sign=E9(s) = =20 > comme tel(s). En cas de r=E9ception de cet e-mail par erreur, le =20 > signaler =E0 son exp=E9diteur et ne pas en divulguer le contenu. =20 > L'absence de virus a =E9t=E9 v=E9rifi=E9 =E0 l'=E9mission du message. = Il =20 > convient n=E9anmoins de v=E9rifier l'absence de corruption =E0 sa =20 > r=E9ception. The contents of this email and any attachments are =20 > confidential. They are intended for the named recipient(s) only. If =20= > you have received this email in error please notify the system =20 > manager or the sender immediately and do not disclose the contents =20 > to anyone or make copies. eSafe scanned this email for viruses, =20 > vandals and malicious content. *** |