Skip to content

Commit

Permalink
we need to quote the query
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Apr 2, 2024
1 parent 0e89ab1 commit 071eb50
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions notebooks/usage_guide.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2598,7 +2598,7 @@
"| --------------- | --------- | ------------------------ |\n",
"| scientificname | String, Array| One or more scientific names from the OBIS backbone. All included and synonym taxa are included in the search. Leave empty to include all taxa. |\n",
"|taxonid| Fixnum| A obis occurrence identifier|\n",
"| geometry| String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1))|\n",
"| geometry| String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON(%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29)|\n",
"| nodeid| Fixnum| Node UUID.|\n",
"| startdate| String| Start date YYYY-MM-DD|\n",
"| enddate| String | End date YYYY-MM-DD|\n",
Expand Down Expand Up @@ -2850,7 +2850,7 @@
"| scientificname | String, Array| One or more scientific names from the OBIS backbone. All included and synonym taxa are included in the search. Leave empty to include all taxa. |\n",
"|taxonid| Fixnum| A obis occurrence identifier|\n",
"| nodeid| Fixnum| Node UUID.|\n",
"| geometry| String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1))|\n",
"| geometry| String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON(%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29)|\n",
"| startdate| String| Start date YYYY-MM-DD|\n",
"| enddate| String | End date YYYY-MM-DD|\n",
"| startdepth| Fixnum| Start depth, in meters. Depth below sea level are treated as positive numbers.|\n",
Expand Down Expand Up @@ -3090,7 +3090,7 @@
"| scientificname | String, Array| One or more scientific names from the OBIS backbone. All included and synonym taxa are included in the search. Leave empty to include all taxa. |\n",
"|taxonid| Fixnum| A obis occurrence identifier|\n",
"| nodeid| Fixnum| Node UUID.|\n",
"| geometry| String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1))|\n",
"| geometry| String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON(%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29)|\n",
"| startdate| String| Start date YYYY-MM-DD|\n",
"| enddate| String | End date YYYY-MM-DD|\n",
"| startdepth| Fixnum| Start depth, in meters. Depth below sea level are treated as positive numbers.|\n",
Expand Down Expand Up @@ -3344,7 +3344,7 @@
"|taxonid|Fixnum| A obis Taxon AphiaID.|\n",
"| scientificname|String, Array| One or more scientific names from the OBIS backbone. All included and synonym taxa are included in the search.|\n",
"| year|Fixnum| The 4 digit year. A year of 98 will be interpreted as AD 98. Supports range queries, smaller,larger (e.g., '1990,1991', whereas '1991,1990' wouldn't work)|\n",
"| geometry|String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1)). Geometry, formatted as WKT or GeoHash.|\n",
"| geometry|String| Well Known Text (WKT). A WKT shape written as either POINT, LINESTRING, LINEARRING or POLYGON. Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON(%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29). Geometry, formatted as WKT or GeoHash.|\n",
"| nodeid|Fixnum| Node UUID.|\n",
"| startdate|Fixnum| Start date|\n",
"| enddate|Boolean| End date|\n",
Expand Down Expand Up @@ -4817,7 +4817,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.8"
"version": "3.12.2"
},
"vscode": {
"interpreter": {
Expand Down
2 changes: 1 addition & 1 deletion pyobis/checklist/checklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def list(
either POINT, LINESTRING, LINEARRING
or POLYGON.
Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would
be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1))
be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON(%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29)
:param nodeid: [Fixnum] Node UUID.
:param startdate: [String] Start date YYYY-MM-DD
:param enddate: [String] End date YYYY-MM-DD
Expand Down
2 changes: 1 addition & 1 deletion pyobis/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def search(
either POINT, LINESTRING, LINEARRING
or POLYGON.
Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would
be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1)). Geometry, formatted as WKT or
be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON(%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29). Geometry, formatted as WKT or
GeoHash.
:param nodeid: [Fixnum] Node UUID.
:param startdate: [Fixnum] Start date
Expand Down
2 changes: 1 addition & 1 deletion pyobis/occurrences/occurrences.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def search(
as either POINT, LINESTRING, LINEARRING
or POLYGON.
Example of a polygon: ((30.1 10.1, 20, 20 40, 40 40, 30.1 10.1)) would
be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1))
be queried as https://api.gbif.org/v1/occurrence/search?geometry=POLYGON(%2830.1+10.1%2C+10+20%2C+20+40%2C+40+40%2C+30.1+10.1%29)
:param nodeid: [String] Node UUID
:param taxonid: Prev. aphiaid [Fixnum] An Aphia id. This is listed as
the `worms_id` in `taxa`/`taxon` results
Expand Down

0 comments on commit 071eb50

Please sign in to comment.