Open
Description
Is your feature request related to a problem? Please describe.
- We should integrate all the top-level
Entry
s toDataStore
. 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 inDataStore
.
- 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 appendentry.tid
to the member list stored inDataStore
.
- When we call
- Design a schema for it in
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