Making a query from a external application to Tapir client

Hello, I'm developing a program to make searches to the Tapir client. To do that, I have to include the parameteres of the query in the URL using the GET method. I have studied the source code and I think I should include the parameter "request" with the encoded query but it doesn't work for me. How the URL can be formed? What parameters do I have to include? Thanks in advance! Best, Daniel

Hi Daniel, an example search asking for the first 2 records with no filter can be done like this: http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=s&m=http://rs.tdwg.org/... Filtering by scientific name for dwc services goes like this: http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=s&m=http://rs.tdwg.org/... To find supported output models and concepts the capabilities response of TAPIR is useful: http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=c Shared output models and concept aliases can be found at TDWG: http://rs.tdwg.org/tapir/cs/ And in general the TAPIR specs document that all pretty well, albeit a bit technical: http://www.tdwg.org/activities/tapir/specification hope that helps, Markus On 24.05.2012, at 11:17, Daniel Fuentes wrote:
Hello,
I'm developing a program to make searches to the Tapir client. To do that, I have to include the parameteres of the query in the URL using the GET method. I have studied the source code and I think I should include the parameter "request" with the encoded query but it doesn't work for me.
How the URL can be formed? What parameters do I have to include?
Thanks in advance! Best, Daniel _______________________________________________ tdwg-tag mailing list tdwg-tag@lists.tdwg.org http://lists.tdwg.org/mailman/listinfo/tdwg-tag

Thanks Markus, I've noticed in your examples that you are using tapir.php, so what tool do I have to use to make queries? I was using tapirDotNet. 2012/5/24 "Markus Döring (GBIF)" <mdoering@gbif.org>
Hi Daniel,
an example search asking for the first 2 records with no filter can be done like this:
http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=s&m=http://rs.tdwg.org/...
Filtering by scientific name for dwc services goes like this:
http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=s&m=http://rs.tdwg.org/...
To find supported output models and concepts the capabilities response of TAPIR is useful: http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=c
Shared output models and concept aliases can be found at TDWG: http://rs.tdwg.org/tapir/cs/
And in general the TAPIR specs document that all pretty well, albeit a bit technical: http://www.tdwg.org/activities/tapir/specification
hope that helps, Markus
On 24.05.2012, at 11:17, Daniel Fuentes wrote:
Hello,
I'm developing a program to make searches to the Tapir client. To do that, I have to include the parameteres of the query in the URL using the GET method. I have studied the source code and I think I should include the parameter "request" with the encoded query but it doesn't work for me.
How the URL can be formed? What parameters do I have to include?
Thanks in advance! Best, Daniel _______________________________________________ tdwg-tag mailing list tdwg-tag@lists.tdwg.org http://lists.tdwg.org/mailman/listinfo/tdwg-tag
-- Un saludo. Daniel Fuentes

Daniel, just exchange the tapir service url with your url, whatever implementation you use. There might be slight differences, but I havent tried the dot net version myself so I cant say much about that. The capabilities should tell you what features the implementation supports, but the basics should work fine. Do you have a public example url? Markus On 28.05.2012, at 10:14, Daniel Fuentes wrote:
Thanks Markus,
I've noticed in your examples that you are using tapir.php, so what tool do I have to use to make queries? I was using tapirDotNet.
2012/5/24 "Markus Döring (GBIF)" <mdoering@gbif.org> Hi Daniel,
an example search asking for the first 2 records with no filter can be done like this: http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=s&m=http://rs.tdwg.org/...
Filtering by scientific name for dwc services goes like this: http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=s&m=http://rs.tdwg.org/...
To find supported output models and concepts the capabilities response of TAPIR is useful: http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=c
Shared output models and concept aliases can be found at TDWG: http://rs.tdwg.org/tapir/cs/
And in general the TAPIR specs document that all pretty well, albeit a bit technical: http://www.tdwg.org/activities/tapir/specification
hope that helps, Markus
On 24.05.2012, at 11:17, Daniel Fuentes wrote:
Hello,
I'm developing a program to make searches to the Tapir client. To do that, I have to include the parameteres of the query in the URL using the GET method. I have studied the source code and I think I should include the parameter "request" with the encoded query but it doesn't work for me.
How the URL can be formed? What parameters do I have to include?
Thanks in advance! Best, Daniel _______________________________________________ tdwg-tag mailing list tdwg-tag@lists.tdwg.org http://lists.tdwg.org/mailman/listinfo/tdwg-tag
-- Un saludo.
Daniel Fuentes

Daniel I developed the .NET implementation of tapir and it is basically the same as the php one, so yes, just replace the *.php with the *.aspx equivalent. Let me know if you have any issues and I can help you out. I have updated the code in recent years, so I might upload the latest version to sourceforge. Kevin -----Original Message----- From: tdwg-tag-bounces@lists.tdwg.org [mailto:tdwg-tag-bounces@lists.tdwg.org] On Behalf Of "Markus Döring (GBIF)" Sent: Monday, 28 May 2012 11:33 p.m. To: Daniel Fuentes Cc: tdwg-tag@lists.tdwg.org Subject: Re: [tdwg-tag] Making a query from a external application to Tapir client Daniel, just exchange the tapir service url with your url, whatever implementation you use. There might be slight differences, but I havent tried the dot net version myself so I cant say much about that. The capabilities should tell you what features the implementation supports, but the basics should work fine. Do you have a public example url? Markus On 28.05.2012, at 10:14, Daniel Fuentes wrote:
Thanks Markus,
I've noticed in your examples that you are using tapir.php, so what tool do I have to use to make queries? I was using tapirDotNet.
2012/5/24 "Markus Döring (GBIF)" <mdoering@gbif.org> Hi Daniel,
an example search asking for the first 2 records with no filter can be done like this: http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=s&m=http://rs.tdw g.org/tapir/cs/dwc/1.4/model/dw_core_geo_cur.xml&limit=2
Filtering by scientific name for dwc services goes like this: http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=s&m=http://rs.tdw g.org/tapir/cs/dwc/1.4/model/dw_core_geo_cur.xml&limit=2&f=http://rs.t dwg.org/dwc/dwcore/ScientificName%20like%20%22Sciurus*%22
To find supported output models and concepts the capabilities response of TAPIR is useful: http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=c
Shared output models and concept aliases can be found at TDWG: http://rs.tdwg.org/tapir/cs/
And in general the TAPIR specs document that all pretty well, albeit a bit technical: http://www.tdwg.org/activities/tapir/specification
hope that helps, Markus
On 24.05.2012, at 11:17, Daniel Fuentes wrote:
Hello,
I'm developing a program to make searches to the Tapir client. To do that, I have to include the parameteres of the query in the URL using the GET method. I have studied the source code and I think I should include the parameter "request" with the encoded query but it doesn't work for me.
How the URL can be formed? What parameters do I have to include?
Thanks in advance! Best, Daniel _______________________________________________ tdwg-tag mailing list tdwg-tag@lists.tdwg.org http://lists.tdwg.org/mailman/listinfo/tdwg-tag
-- Un saludo.
Daniel Fuentes
_______________________________________________ tdwg-tag mailing list tdwg-tag@lists.tdwg.org http://lists.tdwg.org/mailman/listinfo/tdwg-tag Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz

Thanks for all your responses. I finally do the query using the Tapirlink. I have noticed that this tool also implements ABCD. One last question..Im using this URL: http://localhost/tapirlink/tapir.php/Test?op=search&m=http://rs.tdwg.org/tap... and the response includes many elements of each DwC record. What can I do to obtain in the response just (for example) the ScientificName? Thanks! 2012/5/28 Kevin Richards <RichardsK@landcareresearch.co.nz>
Daniel
I developed the .NET implementation of tapir and it is basically the same as the php one, so yes, just replace the *.php with the *.aspx equivalent.
Let me know if you have any issues and I can help you out. I have updated the code in recent years, so I might upload the latest version to sourceforge.
Kevin
-----Original Message----- From: tdwg-tag-bounces@lists.tdwg.org [mailto: tdwg-tag-bounces@lists.tdwg.org] On Behalf Of "Markus Döring (GBIF)" Sent: Monday, 28 May 2012 11:33 p.m. To: Daniel Fuentes Cc: tdwg-tag@lists.tdwg.org Subject: Re: [tdwg-tag] Making a query from a external application to Tapir client
Daniel, just exchange the tapir service url with your url, whatever implementation you use. There might be slight differences, but I havent tried the dot net version myself so I cant say much about that. The capabilities should tell you what features the implementation supports, but the basics should work fine. Do you have a public example url?
Markus
On 28.05.2012, at 10:14, Daniel Fuentes wrote:
Thanks Markus,
I've noticed in your examples that you are using tapir.php, so what tool do I have to use to make queries? I was using tapirDotNet.
2012/5/24 "Markus Döring (GBIF)" <mdoering@gbif.org> Hi Daniel,
an example search asking for the first 2 records with no filter can be done like this: http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=s&m=http://rs.tdw g.org/tapir/cs/dwc/1.4/model/dw_core_geo_cur.xml&limit=2
Filtering by scientific name for dwc services goes like this: http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=s&m=http://rs.tdw g.org/tapir/cs/dwc/1.4/model/dw_core_geo_cur.xml&limit=2&f=http://rs.t dwg.org/dwc/dwcore/ScientificName%20like%20%22Sciurus*%22
To find supported output models and concepts the capabilities response of TAPIR is useful: http://tapir.bebif.be/tapir.php/UGENT_vertebrates?op=c
Shared output models and concept aliases can be found at TDWG: http://rs.tdwg.org/tapir/cs/
And in general the TAPIR specs document that all pretty well, albeit a bit technical: http://www.tdwg.org/activities/tapir/specification
hope that helps, Markus
On 24.05.2012, at 11:17, Daniel Fuentes wrote:
Hello,
I'm developing a program to make searches to the Tapir client. To do that, I have to include the parameteres of the query in the URL using the GET method. I have studied the source code and I think I should include the parameter "request" with the encoded query but it doesn't work for me.
How the URL can be formed? What parameters do I have to include?
Thanks in advance! Best, Daniel _______________________________________________ tdwg-tag mailing list tdwg-tag@lists.tdwg.org http://lists.tdwg.org/mailman/listinfo/tdwg-tag
-- Un saludo.
Daniel Fuentes
_______________________________________________ tdwg-tag mailing list tdwg-tag@lists.tdwg.org http://lists.tdwg.org/mailman/listinfo/tdwg-tag
Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
-- Un saludo. Daniel Fuentes
participants (3)
-
"Markus Döring (GBIF)"
-
Daniel Fuentes
-
Kevin Richards