<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1"><font face="Verdana">Hi all,<br>
<br>
Python-dwca-reader[1] may also help to extract data from the
download when populating the database<br>
<br>
[1] <a class="moz-txt-link-freetext" href="http://python-dwca-reader.readthedocs.io/en/latest/">http://python-dwca-reader.readthedocs.io/en/latest/</a><br>
<br>
Best,<br>
<br>
Nicolas<br>
</font></font><br>
<div class="moz-cite-prefix">Le 30/05/16 14:48, Jan Legind a écrit :<br>
</div>
<blockquote
cite="mid:HE1PR0901MB0923DCDEE9AECF379BA2D890C3450@HE1PR0901MB0923.eurprd09.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D">Dear
Juan,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D">Unfortunately
we have no tool for creating these kind of SQL like queries
to the portal. I am sure you are aware that the filters in
the occurrence search pages can be applied in combination in
numerous ways. The API can go even further in this
regard[1], but it not well suited for retrieving occurrence
records since there is a 200.000 records ceiling making it
unfit for species exceeding this number.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D">There
is going be updates to the pygbif package[2] in the near
future that will enable you to launch user downloads
programmatically where a whole list of different species can
be used as a query parameter as well as adding polygons.[3]<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D">In
the meantime, Mauro’s suggestion is excellent. If you can
narrow your search down until it returns a manageable
download (say less than 100 million records), importing this
into a database should be doable. From there, you can refine
using SQL queries.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D">Best,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D">Jan
K. Legind, GBIF Data manager <o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D">[1]
<a moz-do-not-send="true"
href="http://www.gbif.org/developer/occurrence#search">http://www.gbif.org/developer/occurrence#search</a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D">[2]
<a moz-do-not-send="true"
href="https://github.com/sckott/pygbif">https://github.com/sckott/pygbif</a>
<o:p>
</o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D">[3]
<a moz-do-not-send="true"
href="https://github.com/jlegind/GBIF-downloads">https://github.com/jlegind/GBIF-downloads</a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
API-users [<a class="moz-txt-link-freetext" href="mailto:api-users-bounces@lists.gbif.org">mailto:api-users-bounces@lists.gbif.org</a>]
<b>On Behalf Of </b>Mauro Cavalcanti<br>
<b>Sent:</b> 30. maj 2016 14:06<br>
<b>To:</b> Juan M. Escamilla Molgora<br>
<b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:api-users@lists.gbif.org">api-users@lists.gbif.org</a><br>
<b>Subject:</b> Re: [API-users] Is there any NEO4J or
graph-based driver for this API ?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">One
solution I have successfully adopted for this is to
download the records (either "manually" via browser or,
yet better, using a Python script using the fine pygbif
library), storing them into a MySQL or SQLite database and
then perform the relational queries. I can provide
examples if you are interested.<o:p></o:p></p>
</div>
<p class="MsoNormal">Best regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">2016-05-30 8:59 GMT-03:00 Juan M.
Escamilla Molgora <<a moz-do-not-send="true"
href="mailto:j.escamillamolgora@lancaster.ac.uk"
target="_blank">j.escamillamolgora@lancaster.ac.uk</a>>:<o:p></o:p></p>
<p class="MsoNormal">Hola,<br>
<br>
Is there any API for making relational queries like
taxonomy, location or timestamp?<br>
<br>
Thank you and best wishes<br>
<br>
Juan<br>
_______________________________________________<br>
API-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:API-users@lists.gbif.org" target="_blank">API-users@lists.gbif.org</a><br>
<a moz-do-not-send="true"
href="http://lists.gbif.org/mailman/listinfo/api-users"
target="_blank">http://lists.gbif.org/mailman/listinfo/api-users</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <o:p></o:p></p>
<div>
<p class="MsoNormal">Dr. Mauro J. Cavalcanti<br>
E-mail: <a moz-do-not-send="true"
href="mailto:maurobio@gmail.com" target="_blank">maurobio@gmail.com</a><br>
Web: <a moz-do-not-send="true"
href="http://sites.google.com/site/maurobio"
target="_blank">http://sites.google.com/site/maurobio</a><o:p></o:p></p>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
API-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:API-users@lists.gbif.org">API-users@lists.gbif.org</a>
<a class="moz-txt-link-freetext" href="http://lists.gbif.org/mailman/listinfo/api-users">http://lists.gbif.org/mailman/listinfo/api-users</a>
</pre>
</blockquote>
<br>
</body>
</html>