[MOBY-l] Re: Where does articleName belong? How can I set it in aSimple, using jMoby?

David González Pisano dgpisano at cnb.uam.es
Mon Aug 22 10:13:15 UTC 2005


Mark Wilkinson escribió:

>On Fri, 2005-08-19 at 17:46 +0100, Martin Senger wrote:
>  
>
>>What was not yet confirmed is that
>>also Simples and Collections (the wrapper objects) must have article
>>name. Obviously not having article names mandatory is a pain in the neck -
>>I am struggling with it the whole last week...
>>    
>>
>It was confirmed a while ago - see below...
>
>  
>
>:
>: A few changes to announce for the 0.86 API (this is not yet running on the
>: production server):
>: 
>: 1)  *all* parameters going into a service must now be named currently using the
>: articleName attribute of the Simple/Collection/Parameter tag
>  
>
Umm, does this mean that also Simples into Collections *must* have an 
articlename too, even an arbitrary one? I was wondering if the lack of 
an articleName in the "Simple inside a Collection" example (see the API 
documentation, section INPUT) means that a Simple has to have 
articleName when is the only input 

<?xml version="1.0" encoding="UTF-8"?>
       <moby:MOBY xmlns:moby="http://www.biomoby.org/moby">
          <moby:mobyContent>
              <moby:mobyData queryID='a1'>
                   <Simple articleName='input1'>			<------- articleName here!
			 <Object namespace="NCBI_gi" id="163483"/>
                   </Simple>
              </moby:mobyData>
          </moby:mobyContent>
       </moby:MOBY>

but does not need it when is inside a Collection?

<?xml version="1.0" encoding="UTF-8"?>
       <moby:MOBY xmlns:moby="http://www.biomoby.org/moby">
         <moby:mobyContent>
          <moby:mobyData  queryID='b1'>
              <Collection articleName="mySequenceCollection">
                 <Simple>						<------- no articleName here?						
                  <Object namespace="NCBI_gi" id="163483"/>
                 </Simple>
                 <Simple>
                  <Object namespace="NCBI_gi" id="244355"/>
                 </Simple>
                 <Simple>
                  <Object namespace="NCBI_gi" id="533253"/>
                 </Simple>
                 <Simple>
                  <Object namespace="NCBI_gi" id="745290"/>
                 </Simple>
               </Collection>
          </moby:mobyData>
         </moby:mobyContent>
       </moby:MOBY>


Also, probably the twiki needs an update, because as today still says "The articleName attribute of the Simple and/or Collection elements is
optional (it may or may not be there, and if there, it may or may not have a non-null value)". Note that the last part of the phrase contradicts Paul's solution.

David (working on the Errors proposal, which heavily depends on the answer to this mail) ;-) 





More information about the moby-l mailing list