[tdwg-tag] Making a query from a external application to Tapir client
THEETEN Franck
franck.theeten at africamuseum.be
Wed May 30 11:21:57 CEST 2012
Dear Daniel,
The following query may work (I couldn't test it tough):
<?xml version="1.0" encoding="UTF-8"?>
<inventoryTemplate xmlns="http://rs.tdwg.org/tapir/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rs.tdwg.org/tapir/1.0 http://rs.tdwg.org/tapir/1.0/schema/tapir.xsd">
<label></label>
<documentation></documentation>
<concepts>
<concept id="http://www.tdwg.org/schemas/abcd/2.06/DataSets/DataSet/Units/Unit/Identifications/Identification/Result/TaxonIdentified/ScientificName/FullScientificNameString"/>
</concepts>
</inventoryTemplate>
You can use this tool to generate automatically Tapir Queries on ABCD concepts:
http://tapir.tdwg.org/builder/
1) Go on "Inventory templates" (to build queries generating lists of unique values)
2) Load the CNS (list of recognized schemas: )
3) Select the schema in the list "Conceptual schema"
4) Then select the concept you want to query ("FullScientificSchema")
Best regards,
Franck
---------- Forwarded message ----------
From: Daniel Fuentes <danifbconil at gmail.com>
Date: Tue, May 29, 2012 at 2:06 PM
Subject: Re: [tdwg-tag] Making a query from a external application to Tapir client
To: Kevin Richards <RichardsK at landcareresearch.co.nz>
Cc: "tdwg-tag at lists.tdwg.org" <tdwg-tag at lists.tdwg.org>
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/tapir/cs/dwc/1.4/model/dw_core_geo_cur.xml
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 at 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 at lists.tdwg.org [mailto:tdwg-tag-bounces at 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 at 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 at 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 <http://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 at lists.tdwg.org
> > http://lists.tdwg.org/mailman/listinfo/tdwg-tag
>
>
>
>
> --
> Un saludo.
>
> Daniel Fuentes
_______________________________________________
tdwg-tag mailing list
tdwg-tag at 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
_______________________________________________
tdwg-tag mailing list
tdwg-tag at lists.tdwg.org
http://lists.tdwg.org/mailman/listinfo/tdwg-tag
________________________________________
30/5/2012 - Filtered through antispam by ICT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.tdwg.org/pipermail/tdwg-tag/attachments/20120530/7feb73d5/attachment-0001.html
More information about the tdwg-tag
mailing list