mbari-org / vars-gridview

VARS GridView is a tool for reviewing and correcting VARS localizations in bulk.
MIT License
1 stars 0 forks source link

Knowledgebase in gridview is not mapping to primary name #31

Closed lonnylundsten closed 7 months ago

lonnylundsten commented 10 months ago

Gridview should be able to get the primary name for all concepts. In cases when a common name or secondary name is typed in, the primary name should be used for the class label.

hohonuuli commented 10 months ago

Example kb call to get alternate names: http://m3.shore.mbari.org/kb/v1/concept/crab

{
  "name": "Decapoda",
  "alternateNames": [
    "prawn",
    "crayfish",
    "lobster",
    "shrimp",
    "crab"
  ],
  "rank": "order",
  "media": [],
  "descriptors": [
    {
      "linkName": "is-bioluminescent",
      "toConcept": "self",
      "linkValue": "uncertain-unlikely"
    }
  ],
  "author": "unknown"
}
lonnylundsten commented 7 months ago

VL wants GridView to accept any alias name and automatically enter primary concept name and carry forward into VARS. Hoping to have completed by 11/30/2023.

kevinsbarnard commented 7 months ago

Can do -- I'll prioritize this task while the VL is testing the current S2 integration.

kevinsbarnard commented 7 months ago

Addressed in v0.3.17

kevinsbarnard commented 7 months ago

@lonnylundsten, this remapping is now performed automatically when renaming an observation. VARS Gridview will hit the endpoint that @hohonuuli provided above to get the name and apply that when updating the concept. So for example, typing "crab" in the concept dropdown and hitting the "label" button will result in the selected bounding boxes' observations to be renamed to "Decapoda".