Re: [PyWrapper-devel] MOBY info
Status: Alpha
Brought to you by:
jatorre
From: Javier de la T. <ja...@gm...> - 2006-11-15 23:39:59
|
Hi Milko, As you correctly said the moby2TapirFilterXslt just transform a =20 biomoby message into a tapir filter, just the filter! not a full =20 TAPIR request. Take a look at the XSLT, is pretty simple. As it is implemented right now the only operations that can be done =20 is a search... I implemented it like because with search is the only operation that =20 you can do dynamic outputmodels and the only thing that it is needed =20 to trasnform is the filter. The count operation is not available for use with biomoby. There is =20 no way in TAPIR, apart of using XSLT on top of it, to modify the =20 response dynamically of a search result that has the count set to true. So, again, it is not possible to create biomoby services in pywrapper =20= that uses a COUNT. What kind of services do you envision to do this? =20 If you really need it then we can think about other possibilities but =20= I dont know if this is necessary... Cheers. On 15/11/2006, at 19:50, Skofic A. Milko (IPGRI) wrote: > Javier, podr=EDas decirme cuando me podr=EDas dedicar un poco de = tiempo =20 > para comprender unas cosas de como implementas el MOBY? > > Te indico las cosas que no me son claras: > > El <moby2TapirFilterXslt> que hace exactamente, transforma el =20 > input Moby mensaje en el filtro te b=FAsqueda TAPIR? Si eso es la =20 > verdad, solamente se necessita crear la parte <filter> de la =20 > b=FAsqueda, lo otro es automatico? > > Si yo quer=EDa hacer un MOBY service que me da el COUNT de cuantos =20 > registros ha encontrado como puedo hacer? El problema es que esta =20 > informaci=F3n me la devuelve el protocolo TAPIR, no el esquema que se =20= > utiliza. > > Yo har=EDa esta query; > > <?xml version=3D'1.0' encoding=3D'UTF-8'?> > <request> > <header> > <source = accesspoint=3D"http://tapir.grinfo.net:8080/pywrapper/=20 > pywrapper?dsa=3DEURISCO" sendtime=3D"2006-11-13T12:54:29.43"/> > </header> > <search count=3D'true' start=3D'0' limit=3D'0'> > <externalOutputModel = location=3D"http://eurisco.ecpgr.org/models/=20 > output/MCPD_EURISCO_1.00.xml"/> > <filter> > <like> > <concept id=3D'GENUS@mcpd_eurisco_100' = /> > <literal value=3D'B*' /> > </like> > </filter> > <orderBy> > <concept id=3D'ACCENUMB@mcpd_eurisco_100' /> > </orderBy> > </search> > </request> > > Y TAPIR me devolver=EDa: > > <?xml version=3D"1.0" encoding=3D"utf-8"?> > <response xmlns=3D"http://rs.tdwg.org/tapir/1.0"> > <header> > <source sendtime=3D"2006-11-15T19:26:50.57" accesspoint=3D"http://=20= > tapir.grinfo.net:8080/pywrapper/pywrapper?dsa=3DEURISCO_TEST"> > <software version=3D"2.1" name=3D"PyWrapper" /> > </source> > </header> > <!-- CONTENT START --> > <search> > <summary start=3D"0" totalReturned=3D"0" totalMatched=3D"25008" /> > </search> > <!-- CONTENT END --> > <diagnostics></diagnostics> > </response> > > Ent=F3nces tendr=EDa que hacer un output model con la estructura del =20= > <response> mapeado a el MOBY type? > > Ciao! > > Milko |