[tdwg-tapir] Problem with Tapir and Outputmodel.

Ramón Pérez rpperez at inf.uc3m.es
Fri Nov 17 18:26:21 CET 2006


Hi Markus and Renato,

Thanks very much for yours response. I have tried your suggestions but i 
don't resolve the problem.

I have simplified the outputmodel and I have changed all attribute to 
optional.

With the outputmodelpcore2.xml the response is:

<RecordInformation>
<GlobalUniqueIdentifier>GUIDS-1</GlobalUniqueIdentifier>
<SpeciesRecordID>1--1.1</SpeciesRecordID>
<Language>latin1</Language>
<SpeciesRecordAuthors>
<SpeciesRecordAutor>
<Text>Alexander Rojas A.</Text>
</SpeciesRecordAutor>
<SpeciesRecordAutor>
<Text>Jose Gonzalez</Text>
</SpeciesRecordAutor>
</SpeciesRecordAuthors>
<SpeciesRecordCollaborators>
<SpeciesRecordCollaborator>
<FirstName>Francisco</FirstName>
<LastName>Morales</LastName>
</SpeciesRecordCollaborator>
</SpeciesRecordCollaborators>
<PublicationDate>2006-10-09</PublicationDate>
<DateLastModified>2006-10-09</DateLastModified>
<TargetAudience>
<Text>1</Text>
</TargetAudience>
<Version>2.1</Version>
</RecordInformation>

With the outputmodelpcore3.xml, the response is:


<RecordInformation>
<GlobalUniqueIdentifier>GUIDS-1</GlobalUniqueIdentifier>
<SpeciesRecordID>1--1.1</SpeciesRecordID>
<Language>latin1</Language>
<PublicationDate>2006-10-09</PublicationDate>
<DateLastModified>2006-10-09</DateLastModified>
<TargetAudience>
<Text>1</Text>
</TargetAudience>
<Version>2.1</Version>
</RecordInformation>

The pywrapper deletes the SpeciesRecordAuthors and 
SpeciesRecordCollaborators nodes. This is the important information in 
the diagnostic:

<diagnostic time="2006-11-17T18:24:45.32" level="warn">
The element 
/Species/Record/RecordInformation/SpeciesRecordCollaborators/SpeciesRecordCollaborator/Record 
was limited 3 times. Some node instances have been lost.
</diagnostic>
−
<diagnostic time="2006-11-17T18:24:45.32" level="warn">
The element 
/Species/Record/RecordInformation/SpeciesRecordAuthors/SpeciesRecordAutor/Text 
was limited 5 times. Some node instances have been lost.
</diagnostic>

I attach a picture with the query result in the database. It doesn't 
exist null values.

Thanks for all,

Ramón.

Döring, Markus escribió:
> Ramon,
> It looks the way renato said. The wrapper complaints about missing subelements in:
>
> /Species/Record/RecordInformation
> /Species/Record
> /Species
>
> So its something within RecordInformation that causes the trouble. So this could be:
>
> SpeciesRecordID
> Language
> SpeciesRecordAuthors/Text
> DateLastModified
> TargetAudience/Text
>
>
> It doesn't only matter if the elements are mapped.
> If the query returns a NULL for one of the concepts, the element is removed. If that element was mandatory, its parent element is removed and so on.
>
> Is that the problem you are facing?
> Markus
>
>
>
>   
>> -----Original Message-----
>> From: tdwg-tapir-bounces at lists.tdwg.org 
>> [mailto:tdwg-tapir-bounces at lists.tdwg.org] On Behalf Of 
>> Renato De Giovanni
>> Sent: Donnerstag, 16. November 2006 19:17
>> To: tdwg-tapir at lists.tdwg.org
>> Subject: Re: [tdwg-tapir] Problem with Tapir and Outputmodel.
>>
>>
>> Ramón,
>>
>> This seems to be something specific to PyWrapper, not the protocol. 
>> Looking at the pywrapperPCORE3.xml respose I can see that the query 
>> was probably asking for three specific records by id. But you can 
>> also find a diagnostic element saying "The element  
>> /Species/Record..Sequence:99865776 was dropped 3 times because of 
>> missing required subelements or attributes".
>>
>> As far as I know PyWrapper is clever enough not to include in the 
>> response records that do not have all necessary data. So my guess is 
>> that all three records don't have data for one or more mandatory 
>> subelements/attributes defined in the output model.
>>
>> Hope this helps,
>> --
>> Renato
>>
>> On 14 Nov 2006 at 9:18, Ramón Pérez Pérez wrote:
>>
>>     
>>> Hi all,
>>>
>>> This is Ramón Pérez of GBIF Spain. We are using tapir provider in a
>>> project with Inbio (Costa Rica). We want to integrate 
>>>       
>> information about 
>>     
>>> species and specimens.
>>>
>>> I have configured a tapir provider but it doesn't do what I 
>>>       
>> expect it 
>>     
>>> to do.
>>>
>>> I attach a compress file with the config file, two outputModel 
>>> (pcore2.xml and pcore3.xml) and the pywrapper results 
>>> (pywrapperpcore2.xml and pywrapperpcore3.xml). 1. 
>>> Outputmodelpcore2.xml: the pywrapper does the query and returns the 
>>> results. 2. Outputmodelpcore3.xml: the pywrapper does the query and 
>>> informs me that it has 3 results. But it can't return me the schema 
>>> defined by the outputmodel.
>>>
>>> I have revised the output model but I can't see the error. I think 
>>> that it is an error of the pywrapper :-(
>>>
>>> I would be very grateful if you may help me. It is very 
>>>       
>> important for 
>>     
>>> me.
>>>
>>> Best regards,
>>>
>>> Ramón.
>>>       
>> _______________________________________________
>> tdwg-tapir mailing list
>> tdwg-tapir at lists.tdwg.org 
>> http://lists.tdwg.org/mailman/listinfo/tdwg-> tapir
>>
>>     
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mysql.JPG
Type: image/jpeg
Size: 109266 bytes
Desc: not available
Url : http://lists.tdwg.org/pipermail/tdwg-tag/attachments/20061117/ebb38fa9/attachment.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: outputmodelpcore2.xml
Type: text/xml
Size: 8941 bytes
Desc: not available
Url : http://lists.tdwg.org/pipermail/tdwg-tag/attachments/20061117/ebb38fa9/attachment.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: outputmodelpcore3.xml
Type: text/xml
Size: 9973 bytes
Desc: not available
Url : http://lists.tdwg.org/pipermail/tdwg-tag/attachments/20061117/ebb38fa9/attachment-0001.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpperez.vcf
Type: text/x-vcard
Size: 383 bytes
Desc: not available
Url : http://lists.tdwg.org/pipermail/tdwg-tag/attachments/20061117/ebb38fa9/attachment.vcf 


More information about the tdwg-tag mailing list