<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Scott,<div>the download filter basics are explained here:</div><div><a href="http://www.gbif.org/developer/occurrence#predicates">http://www.gbif.org/developer/occurrence#predicates</a></div><div><br></div><div>We seem to miss a link to the full Java docs for the Predicates which can be found here:</div><div><a href="http://gbif.github.io/gbif-api/apidocs/org/gbif/api/model/occurrence/predicate/package-summary.html">http://gbif.github.io/gbif-api/apidocs/org/gbif/api/model/occurrence/predicate/package-summary.html</a></div><div><br></div><div>As you can see there expressions make use of the OccurrenceSearchParameter:</div><div><a href="http://gbif.github.io/gbif-api/apidocs/org/gbif/api/model/occurrence/search/OccurrenceSearchParameter.html">http://gbif.github.io/gbif-api/apidocs/org/gbif/api/model/occurrence/search/OccurrenceSearchParameter.html</a></div><div><br></div><div>This is exactly the same enumeration as is used for the search API. The only difference is that the search API is case insensitive and allows for camelCase while the predicates must use the exact upper case spelling of the enumeration values.</div><div>Hope this helps a little.</div><div><br></div><div>Markus</div><div><br></div><div><br></div><div><br><div><div>On 29 Sep 2014, at 18:44, Scott Chamberlain &lt;<a href="mailto:myrmecocystus@gmail.com">myrmecocystus@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Markus,&nbsp;<div><br></div><div>Thanks for the explanation!&nbsp; I asked Tim on twitter, but in case he misses the tweet: Is there a page that lists variable names to use for the occurrence/download/ endpoint? They seem to differ from occurrence/search endpoint. e.g. basisOfRecord in&nbsp;occurrence/search&nbsp;is BASIS_OF_RECORD in occurrence/download. I found this page&nbsp;<a href="https://github.com/gbif/occurrence/blob/master/occurrence-ws/src/test/java/org/gbif/occurrence/download/service/HiveQueryVisitorTest.java">https://github.com/gbif/occurrence/blob/master/occurrence-ws/src/test/java/org/gbif/occurrence/download/service/HiveQueryVisitorTest.java</a> with tests that lists some variable names.&nbsp;</div><div><br></div><div>Cheers, Scott</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 29, 2014 at 9:34 AM, Markus Döring <span dir="ltr">&lt;<a href="mailto:mdoering@gbif.org" target="_blank">mdoering@gbif.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Scott,<div><br></div><div>the download interface enables more complex queries with any kind of logical nesting similar to SQL clauses. Currently we do not actually make use of the possible complexity of download filters, but the initial design considered it.</div><div>Personally I agree it would be nicer if the searhc and download interface would use the same filter definitions. We actually recognized this over a year ago but never had resources to address the discrepancy. Feel free to add comments:</div><div><a href="http://dev.gbif.org/issues/browse/POR-173" target="_blank">http://dev.gbif.org/issues/browse/POR-173</a></div><div><br></div><div><br></div><div>Markus</div><div><br></div><div><br></div><div><br></div><div><br><div><div><div class="h5"><div>On 29 Sep 2014, at 18:11, Scott Chamberlain &lt;<a href="mailto:myrmecocystus@gmail.com" target="_blank">myrmecocystus@gmail.com</a>&gt; wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr">Hi!<div><br></div><div>I'm curious why the occurrence/download/ endpoint has a different interface than the other occurrence endpoints (occurrence/search).&nbsp; I ask because I work on the R client rgbif, and it would be nice to provide the same exact interface to users whether they are getting JSON data or spinning up a download.&nbsp; However, the query interfaces are quite different.&nbsp; This isn't a big deal, as I can make both occurrence/download and occurrence/search endpoints &nbsp;as similar as possible for users despite them being different internally.&nbsp;</div><div><br></div><div>Thanks!&nbsp;</div><div>Scott Chamberlain<br></div></div></div></div>
_______________________________________________<br>API-users mailing list<br><a href="mailto:API-users@lists.gbif.org" target="_blank">API-users@lists.gbif.org</a><br><a href="http://lists.gbif.org/mailman/listinfo/api-users" target="_blank">http://lists.gbif.org/mailman/listinfo/api-users</a><br></blockquote></div><br></div></div></blockquote></div><br></div>
</blockquote></div><br></div></body></html>