Skip to content

Integrate DataStore with CV ontologies #840

Open
@mylibrar

Description

@mylibrar

Is your feature request related to a problem? Please describe.

  • We should integrate all the top-level Entrys to DataStore. Currently the following ontologies have not beed integrated yet:
    • ImageAnnotation
    • Region
    • Box
    • BoundingBox
  • We also need to formalize the steps to add a new top level entry. A more details guide should be created for developers to follow when they want to register a new entry in top.py.

Depends on

Describe the solution you'd like

  • To migrate a top-level Entry, we will need to
    • Design a schema for it in DataStore
      • The schema should only consists of primitive types or built-in list/dict. We want it to be serializable.
      • For example, a Group type should store its <member_type> and <[members_tid_list]> as the first two attributes in DataStore.
    • Update DataStore._add_entry_raw to include the new entry
    • Direct all the update operations to DataStore
      • When we call Group.add_member(entry), under the hood it should append entry.tid to the member list stored in DataStore.

Describe alternatives you've considered
It's better to include some dedicated test cases to validate any corner cases.

Additional context

  • This is part of the data efficiency project
  • This PR should be made to the master branch.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions