[Feature]: Reusing Keys and Entities should be automatic #961
Labels
category: enhancement
improvements of code or code behavior
priority: low
alternative solution already working and/or relevant to only specific user(s)
What would you like to see added to HDMF?
When we first made HERD, it was not built for "bulk" adding. You could loop add_ref; however, when reusing keys and entities you need to change the parameters of add_ref. For keys, you would need to use
get_key
to use the key object in add_ref. For entity, you would need to remove the uri parameter.Say we wanted to use a DANDI set of nwbfiles and add references for subject and experimenter. It's not user friendly to have to have a try/except set up based on whether they key or entity exists.
As of now, our "bulk" method is to use the
TermSetWrapper
, but we haven't actually tested duplicate data that would need to use a key object. This will fail adding to HERD.We need to either
get_key
from the user.Without some form of 1 and 2, we don't support a seamless bulk adding of references.
Is your feature request related to a problem?
No response
What solution would you like?
Read Above.
Do you have any interest in helping implement the feature?
Yes.
Code of Conduct
The text was updated successfully, but these errors were encountered: