{"id":26662821,"url":"https://github.com/speciesfilegroup/bananomia","last_synced_at":"2026-02-11T15:01:48.827Z","repository":{"id":146793915,"uuid":"611471607","full_name":"SpeciesFileGroup/bananomia","owner":"SpeciesFileGroup","description":"Ruby wrapper on the Bionomia API","archived":false,"fork":false,"pushed_at":"2024-11-05T22:51:10.000Z","size":49,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-10-07T12:44:30.810Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpeciesFileGroup.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-08T22:28:04.000Z","updated_at":"2024-11-05T22:51:14.000Z","dependencies_parsed_at":"2023-08-30T18:32:32.652Z","dependency_job_id":"76a85c40-6f1d-4426-96dd-63b032e2b8e2","html_url":"https://github.com/SpeciesFileGroup/bananomia","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"29a840c65e657d5f29a3a282f3cdcb9a4de0613f"},"previous_names":["speciesfilegroup/bananomia","speciesfilegroup/bonamia"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SpeciesFileGroup/bananomia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpeciesFileGroup%2Fbananomia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpeciesFileGroup%2Fbananomia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpeciesFileGroup%2Fbananomia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpeciesFileGroup%2Fbananomia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpeciesFileGroup","download_url":"https://codeload.github.com/SpeciesFileGroup/bananomia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpeciesFileGroup%2Fbananomia/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29336013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T14:34:07.188Z","status":"ssl_error","status_checked_at":"2026-02-11T14:34:06.809Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-25T14:18:38.037Z","updated_at":"2026-02-11T15:01:48.809Z","avatar_url":"https://github.com/SpeciesFileGroup.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bananomia\n\n![Bananomia logo](https://github.com/SpeciesFileGroup/bananomia/assets/8573609/cb3f07e6-081f-4187-a11f-3aa1f8b24106)\n\nBananomia is a Ruby wrapper on the [Bionomia](https://bionomia.net) API. Code follow the spirit/approach of the Gem [serrano](https://github.com/sckott/serrano), and indeed much of the wrapping utility is copied 1:1 from that repo, thanks [@sckott](https://github.com/sckott).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'bananomia'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install bananomia\n\n## Usage\n\n\n---\n### Suggest Collector Names\nGet collector name suggestions with a limit of 5:\n```ruby\nBananomia.suggest('Smith, Ja', limit: 5) #  =\u003e MultiJson object\n```\nFilter suggestions to only public profiles\n```ruby\nBananomia.suggest('Smith, Ja', is_public: true) #  =\u003e MultiJson object\n```\nFilter suggestions to only people that have occurrences associated with them:\n```ruby\nBananomia.suggest('Smith, Ja', has_occurrences: true) #  =\u003e MultiJson object\n```\n\n---\n### Search Collectors\nSearch for a collector by name:\n```ruby\nBananomia.search_people('Thomas McElrath') #  =\u003e MultiJson object\n```\n\nFilter the people search by taxonomic families_collected or taxonomic families_identified. If strict is set to true, then matches must include the taxonomic families.\n```ruby\nBananomia.search_people('Thomas McElrath', families_collected: 'Monotomidae', strict: true) #  =\u003e MultiJson object\n```\n```ruby\nBananomia.search_people('Thomas McElrath', families_identified: 'Monotomidae', strict: true) #  =\u003e MultiJson object\n```\n\nFilter the search by whether the person was living on the specimen collection/identification date. If strict is set to true, it requires that they were alive on the date.\n```ruby\nBananomia.search_people('Smith', date: '1580-01-02', strict: true) #  =\u003e MultiJson object\n```\n\nSetting the callback parameter returns [JSON-P](https://en.wikipedia.org/wiki/JSONP) wrapped in the provided callback string.\n```ruby\nBananomia.search_people('Smith', callback: 'myFunction') #  =\u003e JSON-P object\n```\n\nUse the page parameter for pagination of the search results:\n```ruby\nBananomia.search_people('Smith', page: 2) #  =\u003e MultiJson object\n```\n\n---\n### Search Occurrences\nSearch for occurrences by [GBIF](https://gbif.org) [datasetID](https://www.gbif.org/dataset/f86a681d-7db8-483b-819a-248def18b70a) and [occurrenceID](https://www.gbif.org/occurrence/1804069383):\n```ruby\nBananomia.search_occurrences('f86a681d-7db8-483b-819a-248def18b70a', '7a1daa39-8d7c-d7c4-968f-799d58b3c7b0') #  =\u003e MultiJson object\n```\nSetting the callback parameter returns [JSON-P](https://en.wikipedia.org/wiki/JSONP) wrapped in the provided callback string.\n```ruby\nBananomia.search_occurrences('f86a681d-7db8-483b-819a-248def18b70a', '7a1daa39-8d7c-d7c4-968f-799d58b3c7b0', callback: 'myFunction') #  =\u003e JSON-P object\n```\n\n---\n### Collectors\nGet a person's profile by their [ORCID](https://orcid.org/) or [WikiData](https://wikidata.org) identifiers:\n```ruby\nBananomia.person('0000-0001-7618-5230') #  =\u003e JSON-LD object\n```\n---\n### Specimens\nGet a person's specimens by their [ORCID](https://orcid.org/) or [WikiData](https://wikidata.org) identifiers. Use the page parameter for pagination.\n```ruby\nBananomia.person('0000-0001-7618-5230', specimens: true) #  =\u003e JSON-LD object\n```\n\n```ruby\nBananomia.person('0000-0001-7618-5230', specimens: true, csv: true) #  =\u003e comma-separated values\n```\n---\n### Occurrences\nGet an occurrence with a [GBIF](https://www.gbif.org/occurrence/search) occurrenceID:\n```ruby\nBananomia.occurrence('477976412') #  =\u003e JSON-LD object\n```\n---\n### Parsing human names\n**Note:** [Bionomia](https://bionomia.net) provides a RESTful API for the human name parsing [dwc_agent](https://rubygems.org/gems/dwc_agent) gem which uses the [namae](https://rubygems.org/gems/namae) gem, and you likely will get better performance using those gems directly if parsing a large number of human names.\n\nParse authorships with names separated by `;` and each authorship set separated by `\\r\\n`:\n```ruby\nBananomia.parse('Henry Robert Nicollon des Abbayes; Groom Q\\r\\nMrs. John Errol Chandos Aberdeen') #  =\u003e MultiJson object\n```\n\n---\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, update the `CHANGELOG.md`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/SpeciesFileGroup/bananomia. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/SpeciesFileGroup/bananomia/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT license](https://github.com/SpeciesFileGroup/bananomia/blob/main/LICENSE.txt). You can learn more about the MIT license on [Wikipedia](https://en.wikipedia.org/wiki/MIT_License) and compare it with other open source licenses at the [Open Source Initiative](https://opensource.org/license/mit/).\n\n## Code of Conduct\n\nEveryone interacting in the Bananomia project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/SpeciesFileGroup/bananomia/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeciesfilegroup%2Fbananomia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspeciesfilegroup%2Fbananomia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeciesfilegroup%2Fbananomia/lists"}