<div dir="ltr"><div>Thanks Matt.</div><div>Yes, that will work for us.</div><div>Will use the dataset API to get publishingOrgKey.<br></div><div>We've actually already cached the ~20K dataset calls, so we are good.</div><div>Thanks much.<br></div><div>Eli</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 16, 2018 at 9:22 AM, Matthew Blissett <span dir="ltr"><<a href="mailto:mblissett@gbif.org" target="_blank">mblissett@gbif.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Dear Eli,</p>
<p>I don't know why it is this way, according to our API the term
publishingOrgKey is "not exposed in user downloads":
<a class="m_-2435289489535599553moz-txt-link-freetext" href="http://gbif.github.io/dwc-api/apidocs/org/gbif/dwc/terms/GbifInternalTerm.html" target="_blank">http://gbif.github.io/dwc-api/<wbr>apidocs/org/gbif/dwc/terms/<wbr>GbifInternalTerm.html</a></p>
<p>Given a datasetKey (which is in the DwCA format), you can query
for the publishingOrganizationKey with a query like
<a class="m_-2435289489535599553moz-txt-link-freetext" href="http://api.gbif.org/v1/dataset/2814930a-3b93-48d6-b887-00979481ac9e" target="_blank">http://api.gbif.org/v1/<wbr>dataset/2814930a-3b93-48d6-<wbr>b887-00979481ac9e</a>,
for example using "curl" and "jq":</p>
<p>curl -Ss
<a class="m_-2435289489535599553moz-txt-link-freetext" href="http://api.gbif.org/v1/dataset/2814930a-3b93-48d6-b887-00979481ac9e" target="_blank">http://api.gbif.org/v1/<wbr>dataset/2814930a-3b93-48d6-<wbr>b887-00979481ac9e</a>
| jq .publishingOrganizationKey</p>
<p>There are 20,000 datasets in a complete download, so making these
queries and caching the result will probably be faster than using
both download formats.</p>
<p>Best regards,</p>
<p>Matt Blissett<br>
</p><div><div class="h5">
<br>
<div class="m_-2435289489535599553moz-cite-prefix">On 12/08/18 20:40, Eli Agbayani wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>Dear GBIF,<br>
</div>
<div>Is there a reason why the Asynchronous download DwCA format
doesn't have publishingOrgKey while the CSV format has it.</div>
<div><br>
</div>
<div>We want to use the DwCA format because of the multimedia
addition but realized the publishingOrgKey was missing.</div>
<div><br>
</div>
<div>Hopefully publishingOrgKey will be included in the DwCA
format so we don't need to download both formats.<br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Eli</div>
<div><br>
</div>
<div>
<div><br>
</div>
</div>
</div>
<br>
<fieldset class="m_-2435289489535599553mimeAttachmentHeader"></fieldset>
<br>
</div></div><span class=""><pre>______________________________<wbr>_________________
API-users mailing list
<a class="m_-2435289489535599553moz-txt-link-abbreviated" href="mailto:API-users@lists.gbif.org" target="_blank">API-users@lists.gbif.org</a>
<a class="m_-2435289489535599553moz-txt-link-freetext" href="https://lists.gbif.org/mailman/listinfo/api-users" target="_blank">https://lists.gbif.org/<wbr>mailman/listinfo/api-users</a>
</pre>
</span></blockquote>
<br>
</div>
<br>______________________________<wbr>_________________<br>
API-users mailing list<br>
<a href="mailto:API-users@lists.gbif.org">API-users@lists.gbif.org</a><br>
<a href="https://lists.gbif.org/mailman/listinfo/api-users" rel="noreferrer" target="_blank">https://lists.gbif.org/<wbr>mailman/listinfo/api-users</a><br>
<br></blockquote></div><br></div>