Giter VIP home page Giter VIP logo

Comments (2)

fmichonneau avatar fmichonneau commented on July 30, 2024

Hi @LunaSare!

It looks like it's a bug that comes from OpenTree of life rather than from rotl. If I call the API directly with your example, I get the same results:

$ 	curl -X POST https://api.opentreeoflife.org/v3/tnrs/match_names \
-H "content-type:application/json" -d \
'{"names":["Amphibians","Canis"], "do_approximate_matching":true}'
Output
{                                                                         
 "context": "Mammals",                      
 "governing_code": "ICZN",                                                     
 "includes_approximate_matches": true,
 "includes_deprecated_taxa": false,                                       
 "includes_suppressed_names": false,   
 "matched_names": [                                                                                                                                                                                                                                                                                                            
  "Canis"                        
 ],                           
 "results": [
  {
   "matches": [],
   "name": "Amphibians"
  },
  {
   "matches": [
    {
     "is_approximate_match": false,
     "is_synonym": false,
     "matched_name": "Canis",
     "nomenclature_code": "ICZN",
     "score": 1.0,
     "search_string": "canis",
     "taxon": {
      "flags": [],
      "is_suppressed": false,
      "is_suppressed_from_synth": false,
      "name": "Canis",
      "ott_id": 372706,
      "rank": "genus",
      "source": "ott3.3draft1",
      "synonyms": [
       "Aenocyon",
       "Alopedon",
       "Alopsis",
       "Canix",
       "Chaon",
       "Dasycyon",
       "Dieba",
       "Dimenia",
       "Jacalius",
       "Lupulella",
       "Lupulus",
       "Lupus",
       "Lyciscus",
       "Mamcanisus",
       "Neocyon",
       "Oreocyon",
       "Oxygonus",
       "Oxygous",
       "Sacalius",
       "Schaeffia",
       "Simenia",
       "Thos",
       "Vulpicanis"
      ],
      "tax_sources": [
       "ncbi:9611",
       "gbif:5219142",
       "irmng:1282727"
      ],                                                                                                                                                                                                                                                                                                               
      "unique_name": "Canis"
     }
    },
    {
     "is_approximate_match": false,
     "is_synonym": true,
     "matched_name": "Canis",
     "nomenclature_code": "ICZN",
     "score": 1.0,
     "search_string": "canis",
     "taxon": {
      "flags": [],
      "is_suppressed": false,
      "is_suppressed_from_synth": false,
      "name": "Atelocynus",
      "ott_id": 621180,
      "rank": "genus",
      "source": "ott3.3draft1",
      "synonyms": [
       "Canis"
      ],
      "tax_sources": [
       "ncbi:68721",
       "gbif:2434453",
       "irmng:1025378"
      ],
      "unique_name": "Atelocynus"
     }
    }
   ],
   "name": "Canis"
  }
 ],
 "taxonomy": {
  "author": "open tree of life project",
  "name": "ott",
  "source": "ott3.3draft1",
  "version": "3.3",
  "weburl": "https://tree.opentreeoflife.org/about/taxonomy-version/ott3.3"
 },
 "unambiguous_names": [
  "Canis"
 ],
 "unmatched_names": [
  "Amphibians"
 ]
}

Maybe try to report the issue in their tracker: https://github.com/OpenTreeOfLife/feedback

Thanks!

from rotl.

LunaSare avatar LunaSare commented on July 30, 2024

Thanks so much for looking into this @fmichonneau!

I reported it to Open Tree here OpenTreeOfLife/feedback#528

from rotl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.