Re: [PyWrapper-users] Question regarding results
Status: Alpha
Brought to you by:
jatorre
From: <jc...@in...> - 2006-06-09 15:36:49
|
Hi Renato, Thanks for the reply. I solved the problem. The problem was indeed in = the definition of my view file. I just defined on more level under the root element. My view was like this: /ViewSpecies/ViewName /ViewSpecies/ViewKingdom /ViewSpecies/ViewHabitat I added one more level /Dataset/ and everything worked fine. /Dataset/ViewSpecies/ViewName /Dataset/ViewSpecies/ViewKingdom /Dataset/ViewSpecies/ViewHabitat Thanks for the information, Jose Cuadra -----Original Message----- From: Renato De Giovanni [mailto:re...@cr...]=20 Sent: Friday, June 09, 2006 5:24 AM To: pyw...@li... Cc: Jose Cuadra Subject: Re: [PyWrapper-users] Question regarding results Hi Jose, It's difficult to tell what's going on without looking at the view=20 definition and also without knowing about the underlying database=20 mapping. But I would guess that your definition of element=20 <ViewSpecies> probably lacks an attribute: maxOccurs=3D"unbounded". Hope this helps, -- Renato On 7 Jun 2006 at 19:41, Jose Cuadra wrote: >=20 > Hello, >=20 > Currently I installed and ran some queries on the pywrapper. > I managed to install the pywrapper and did all the configuring to map=20 > it to a little test-database I created. >=20 > My question, for the moment is that when the pywrapper returns me the=20 > results, they come in this format: >=20 > <search> > <ViewSpecies> > <ViewName>Aspasia principissa</ViewName>=20 > <ViewName>Balantiopteryx plicata</ViewName>=20 > <ViewName>Caluromys derbianus</ViewName>=20 > <ViewKingdom>Plantae</ViewKingdom> > <ViewKingdom>Animalia</ViewKingdom> > <ViewKingdom>Animalia</ViewKingdom> > <ViewHabitat>Bosques muy humedos.</ViewHabitat>=20 > <ViewHabitat>Bosques secos, bosques de=20 > galeria.</ViewHabitat>=20 > <ViewHabitat>Bosques humedos, secos</ViewHabitat>=20 > </ViewSpecies> > <summary start=3D"0" totalMatched=3D"7"next=3D"5" />=20 > </search> >=20 >=20 > I was reading the Tapir Wiki (the examples) and I saw that the data=20 > should not be returned that way, instead it should be returned=20 > following the clear separation between related elements, something=20 > like this maybe: >=20 > <search> > <ViewSpecies> > <ViewName>Aspasia principissa</ViewName>=20 > <ViewKingdom>Plantae</ViewKingdom> > <ViewHabitat>Bosques muy humedos.</ViewHabitat> > </ViewSpecies> > <ViewSpecies> > <ViewName>Balantiopteryx plicata</ViewName>=20 > <ViewKingdom>Animalia</ViewKingdom> > <ViewHabitat>Bosques secos, bosques de galeria.</ViewHabitat> > </ViewSpecies> > <ViewSpecies> > <ViewName>Caluromys derbianus</ViewName> =20 > <ViewKingdom>Animalia</ViewKingdom>=20 > <ViewHabitat>Bosques humedos, secos</ViewHabitat>=20 > </ViewSpecies> > <summary start=3D"0" totalMatched=3D"7"next=3D"5" />=20 > </search> >=20 > I=B4ve had more experience with the DiGIR requests/responses syntax,=20 > and this is why I am asking this question. > I would really appreciate if you could clarify to me if this is a=20 > pywrapper issue, a protocol issue, or an issue with any configuration=20 > I did badly on my side, like for example a bad-defined view. >=20 > Thanks for the help, > Jose Cuadra |