Thread: [Soaplab-users] Boolean parameters
Brought to you by:
marsenger
From: Sebastien M. <Seb...@un...> - 2008-03-27 09:41:20
|
Hi, I try to find the right way to create boolean parameters (I mean parameter name without parameter value) in ACD format. But they don't appear in the report file when I run the service. I have two different cases: -html parameter which can be present or not, depending on user choice. -def parameter which must be always present Here is my ACD code: boolean: html [ additional: "Y" default: "true" prompt: "Output format" information: "Output format, html or not " outputmodifier: "Y" ] boolean: def [ default: "true" comment: "display false" information: "The 'def' parameter" ] Do you have any ideas why these parameters are not added on command line when the application is running ? Thanks -- Sébastien Moretti SIB, Quartier Sorge - Genopode CH-1015 Lausanne, Switzerland Tel.: +41 (21) 692 4056/4221 |
From: Mahmut U. <ul...@eb...> - 2008-03-27 12:02:41
|
Hi Sebastien, > I try to find the right way to create boolean parameters (I mean > parameter name without parameter value) in ACD format. > But they don't appear in the report file when I run the service. > > > I have two different cases: > > -html parameter which can be present or not, depending on user choice. > -def parameter which must be always present > > > Here is my ACD code: > boolean: html [ > additional: "Y" > default: "true" > prompt: "Output format" > information: "Output format, html or not " > outputmodifier: "Y" > ] > > boolean: def [ > default: "true" > comment: "display false" > information: "The 'def' parameter" > ] > > Do you have any ideas why these parameters are not added on command line > when the application is running ? I think you need to use the comment-"method ...." and the comment-"defaults" options as in the following examples. boolean: html [ additional: "Y" default: "true" prompt: "Output format" information: "Output format, html or not " outputmodifier: "Y" comment: "method -html" ] boolean: def [ default: "true" comment: "defaults" comment: "display false" information: "The 'def' parameter" comment: "method -def" ] Regards, Mahmut |
From: Sebastien M. <Seb...@un...> - 2008-03-27 13:10:40
|
> Hi Sebastien, Hi Mahmut, >> I try to find the right way to create boolean parameters (I mean >> parameter name without parameter value) in ACD format. >> But they don't appear in the report file when I run the service. >> >> >> I have two different cases: >> >> -html parameter which can be present or not, depending on user choice. >> -def parameter which must be always present >> >> >> Here is my ACD code: >> boolean: html [ >> additional: "Y" >> default: "true" >> prompt: "Output format" >> information: "Output format, html or not " >> outputmodifier: "Y" >> ] >> >> boolean: def [ >> default: "true" >> comment: "display false" >> information: "The 'def' parameter" >> ] >> >> Do you have any ideas why these parameters are not added on command line >> when the application is running ? > > I think you need to use the comment-"method ...." and the > comment-"defaults" options as in the following examples. > > boolean: html [ > additional: "Y" > default: "true" > prompt: "Output format" > information: "Output format, html or not " > outputmodifier: "Y" > comment: "method -html" > ] > > boolean: def [ > default: "true" > comment: "defaults" > comment: "display false" > information: "The 'def' parameter" > comment: "method -def" > ] > > Regards, > Mahmut Thanks. Now I can get what I expected for. I thought that comment-"method ...." was reserved for application main section. But what is exactly the difference between comment-"method ...." and template: ""? Thanks again -- Sébastien Moretti SIB, Quartier Sorge - Genopode CH-1015 Lausanne, Switzerland Tel.: +41 (21) 692 4056/4221 |
From: Mahmut U. <ul...@eb...> - 2008-03-27 13:20:44
|
Hi Sebastien, > what is exactly the difference between comment-"method ...." and > template: ""? I just made a quick search on my EMBOSS and Soaplab2 directories and could not find any example where the "template:" option is used. It seems that it was supported by Soaplab-1 and but is not supported in Soaplab-2. Martin should know. Regards, Mahmut |
From: Sebastien M. <Seb...@un...> - 2008-03-27 13:31:07
|
> Hi Sebastien, > >> what is exactly the difference between comment-"method ...." and >> template: ""? > > I just made a quick search on my EMBOSS and Soaplab2 directories and > could not find any example where the "template:" option is used. It > seems that it was supported by Soaplab-1 and but is not supported in > Soaplab-2. Martin should know. > > Regards, > Mahmut You mean that template is deprecated ? I use it because comment: "tagsepar = =" seems to involve that '-' is removed at the beginning of <parameter-name> Thus, for me, template: "-&&=$$" keeps '-' at the beginning of <parameter-name> and add '=' (here) between <parameter-name> and <parameter-value> -- Sébastien Moretti SIB, Quartier Sorge - Genopode CH-1015 Lausanne, Switzerland Tel.: +41 (21) 692 4056/4221 |
From: Mahmut U. <ul...@eb...> - 2008-03-27 13:39:18
|
> You mean that template is deprecated ? I was wrong. I replied by just looking at the example ACD files but without reading the relevant documentation. http://soaplab.sourceforge.net/soaplab2/MetadataGuide.html Sorry, Mahmut |
From: Martin S. <mar...@gm...> - 2008-03-27 13:43:59
|
I think Mahmut already replied to your questions, but I will make a new look into Soaplab2 as soon as I boot my linux machine (which will be tomorrow my time - which is about 10 hours from now) and I will check again the answers. I may even put your questions into FAQ if you do not mind. Cheers, Martin -- Martin Senger email: mar...@gm...,m.s...@cg... skype: martinsenger |
From: Martin S. <mar...@gm...> - 2008-03-28 00:31:08
|
Hi, Sorry for my delayed answer (different time zone). I try to find the right way to create boolean parameters (I mean > parameter name without parameter value) in ACD format. > But they don't appear in the report file when I run the service. > I have put an answer into Soaplab2's FAQ page (but it will take sometimes before it appears there). But simply: the default values are not sent to the service unless you explicitly ask for it by "comment: defaults". Therefore, try to add such line in both of your examples. Martin -- Martin Senger email: mar...@gm...,m.s...@cg... skype: martinsenger |
From: Sebastien M. <Seb...@un...> - 2008-03-28 07:48:52
|
> Hi, Hi, > Sorry for my delayed answer (different time zone). > > > I try to find the right way to create boolean parameters (I mean > parameter name without parameter value) in ACD format. > But they don't appear in the report file when I run the service. > > > I have put an answer into Soaplab2's FAQ page (but it will take > sometimes before it appears there). But simply: the default values are > not sent to the service unless you explicitly ask for it by "comment: > defaults". Therefore, try to add such line in both of your examples. > > Martin Mahmut told me the same, right, thing. I think I mixed up my mind between acdtable output and soaplab specific ACD syntax. Thanks -- Sébastien Moretti SIB, Quartier Sorge - Genopode CH-1015 Lausanne, Switzerland Tel.: +41 (21) 692 4056/4221 |
From: Martin S. <mar...@gm...> - 2008-03-28 00:41:13
|
> You mean that template is deprecated ? > No, it is not, only sometimes ways are possible (this is from the historical reasons). As the parameter attribute, one can use either: template: "blah-blah-blah" or comment: "method blah-blah-blah" And as the application attribute,one can use only: comment: "method blah-blah-blah" [Here are the historical reasons: The EMBOSS developers were very kind and they included few new attribute names into EMBOSS parser of the ACD files. One of them was the 'template' attribute - but it was included only in the parameter attributes, not in the application attribute. That's why we still need to use the general 'comment' in the application part. Why is it important to have it recognized by the EMBOSS parser when Soaplab2 does not use this parser? Well, it is not important but it can be handy if you have EMBOSS installed and you wish to check the syntax of your ACD file using the EMBOSS programs.] Cheers, Martin -- Martin Senger email: mar...@gm...,m.s...@cg... skype: martinsenger |
From: Sebastien M. <Seb...@un...> - 2008-03-28 07:49:31
|
> You mean that template is deprecated ? > > > No, it is not, only sometimes ways are possible (this is from the > historical reasons). As the parameter attribute, one can use either: > > template: "blah-blah-blah" > > or > > comment: "method blah-blah-blah" > > And as the application attribute,one can use only: > > comment: "method blah-blah-blah" > > [Here are the historical reasons: The EMBOSS developers were very kind > and they included few new attribute names into EMBOSS parser of the ACD > files. One of them was the 'template' attribute - but it was included > only in the parameter attributes, not in the application attribute. > That's why we still need to use the general 'comment' in the application > part. Why is it important to have it recognized by the EMBOSS parser > when Soaplab2 does not use this parser? Well, it is not important but it > can be handy if you have EMBOSS installed and you wish to check the > syntax of your ACD file using the EMBOSS programs.] > > Cheers, > Martin Thanks again ! -- Sébastien Moretti SIB, Quartier Sorge - Genopode CH-1015 Lausanne, Switzerland Tel.: +41 (21) 692 4056/4221 |