AtlasOfLivingAustralia / ala-namematching-service

Service for ALA name matching to aid pipelines integration
Other
1 stars 4 forks source link

Return name authority in search results #51

Open nickdos opened 2 years ago

nickdos commented 2 years ago

This is a feature request - to have a JSON attribute in the search results that shows the name authority or source for a given name.

E.g. "name source": "AFD" or it could be a URI to ensure uniqueness.

The rationale for this feature is ARGA would like to add a flag on records that are from official Australian sources, like AFD, APNI, APC and FungiMap.

I realise I can do this by inferring it from the matched "taxonConceptID": "https://id.biodiversity.org.au/node/apni/2890419", but having a dedicated field would be nicer.

nickdos commented 2 years ago

An example where the identifier has no hint about its source is AusFungi identifiers. E.g. 5ef5c670-bf54-4cfc-9e39-5a1c56e02617 -> https://bie.ala.org.au/species/5ef5c670-bf54-4cfc-9e39-5a1c56e02617.

When I see this identifier out of context from a species page, there is no way to determine where the source of this name is from -> see http://namematching-ws.ala.org.au/api/search?q=Clitocybe%20odora

{
  "success": true,
  "scientificName": "Clitocybe odora",
  "scientificNameAuthorship": "(Bull.) P.Kumm.",
  "taxonConceptID": "5ef5c670-bf54-4cfc-9e39-5a1c56e02617",
  "rank": "species",
  "rankID": 7000,
  "lft": 788535,
  "rgt": 788535,
  "matchType": "exactMatch",
  "nameType": "SCIENTIFIC",
  "kingdom": "Fungi",
  "kingdomID": "urn:lsid:indexfungorum.org:names:90156",
  "phylum": "Basidiomycota",
  "phylumID": "urn:lsid:indexfungorum.org:names:90050",
  "classs": "Agaricomycetes",
  "classID": "urn:lsid:indexfungorum.org:names:501297",
  "order": "Agaricales",
  "orderID": "urn:lsid:indexfungorum.org:names:90508",
  "family": "Tricholomataceae",
  "familyID": "urn:lsid:indexfungorum.org:names:81487",
  "genus": "Clitocybe",
  "genusID": "urn:lsid:indexfungorum.org:names:17328",
  "species": "Clitocybe odora",
  "speciesID": "5ef5c670-bf54-4cfc-9e39-5a1c56e02617",
  "speciesGroup": [
    "Fungi"
  ],
  "speciesSubgroup": [
    "Basidio's"
  ],
  "issues": [
    "noIssue"
  ]
}