Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nomer append globalnames] fails to produce results #196

Open
jhpoelen opened this issue Feb 10, 2025 · 1 comment
Open

[nomer append globalnames] fails to produce results #196

jhpoelen opened this issue Feb 10, 2025 · 1 comment

Comments

@jhpoelen
Copy link
Member

when running

echo -e '\tHomo sapiens'\
 | nomer append globalnames

an empty result is returned.

Root cause @dimus 's API query / response syntax changed, and the old syntax is no longer supported.

Suggest to re-implement globalnames support to adapt to the current Globalnames Web API version.

@jhpoelen
Copy link
Member Author

example of fuzzy response to

curl "https://resolver.globalnames.org/?capitalize=off&ds=3&format=json&names=Homo+saliens"\
 | jq .
[
  {
    "id": "8d58cc2c-20e0-5f8e-991c-32e22e10ebb1",
    "name": "Homo saliens",
    "cardinality": 2,
    "matchType": "Fuzzy",
    "bestResult": {
      "dataSourceId": 3,
      "dataSourceTitleShort": "ITIS",
      "curation": "Curated",
      "recordId": "180092",
      "outlink": "https://www.itis.gov/servlet/SingleRpt/SingleRpt?search_topic=TSN&search_value=180092#null",
      "entryDate": "2025-02-04",
      "sortScore": 9.388235333070135,
      "matchedNameID": "7db4f8a2-aafe-56b6-8838-89522c67d9f0",
      "matchedName": "Homo sapiens Linnaeus, 1758",
      "matchedCardinality": 2,
      "matchedCanonicalSimple": "Homo sapiens",
      "matchedCanonicalFull": "Homo sapiens",
      "currentRecordId": "180092",
      "currentNameId": "7db4f8a2-aafe-56b6-8838-89522c67d9f0",
      "currentName": "Homo sapiens Linnaeus, 1758",
      "currentCardinality": 2,
      "currentCanonicalSimple": "Homo sapiens",
      "currentCanonicalFull": "Homo sapiens",
      "taxonomicStatus": "Accepted",
      "isSynonym": false,
      "classificationPath": "Bilateria|Deuterostomia|Chordata|Vertebrata|Gnathostomata|Tetrapoda|Mammalia|Theria|Eutheria|Primates|Haplorrhini|Simiiformes|Hominoidea|Hominidae|Homininae|Homo|Homo sapiens",
      "classificationRanks": "subkingdom|infrakingdom|phylum|subphylum|infraphylum|superclass|class|subclass|infraclass|order|suborder|infraorder|superfamily|family|subfamily|genus|species",
      "classificationIds": "914154|914156|158852|331030|914179|914181|179913|179916|179925|180089|943773|943778|943782|180090|943805|180091|180092",
      "editDistance": 1,
      "stemEditDistance": 1,
      "matchType": "Fuzzy",
      "scoreDetails": {
        "cardinalityScore": 1,
        "infraSpecificRankScore": 0,
        "fuzzyLessScore": 0.6666667,
        "curatedDataScore": 0.6666667,
        "authorMatchScore": 0.14285715,
        "acceptedNameScore": 1,
        "parsingQualityScore": 1
      }
    },
    "dataSourcesNum": 1,
    "dataSourcesIds": [
      3
    ],
    "curation": "Curated"
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant