You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is possible or how easy to implement, but it might be convenient if DirectoryStore followed symbolic links, allowing symlinks to be used to create cross-links within a hierarchy, or to link between different stores (e.g., to create different views of data within a store).
I think it's only relevant to DirectoryStore and NestedDirectoryStore as these expose the hierarchy as a directory structure, so symlinks to directories provides a means to do some useful things. Not sure symlinks would be useful or make any sense for other stores.
Guess I was imagining them being some text with a path. Though this really depends on whether links are first class objects (like how they are in HDF5).
This might also come up if a user converts between two different types of stores.
FWIW another use case for links (as well as object and region references) is NWB where they want to reference data in multiple places. They actually started implementing something on top of Zarr, but the lack of these features was a blocker for them.
Thanks for following this up.
FWIW to keep things organised I'd suggest raising a separate issue to cover
discussion of implementing links and region references a la HDF5, and
keeping this issue scoped to the lower-level issue of whether
DirectoryStore should follow symbolic file system links.
--
Alistair Miles
Head of Epidemiological Informatics
Centre for Genomics and Global Health
Big Data Institute
Li Ka Shing Centre for Health Information and Discovery
Old Road Campus
Headington
Oxford
OX3 7LF
United Kingdom
Phone: +44 (0)1865 743596 or +44 (0)7866 541624
Email: alimanfoo@googlemail.com
Web: http://a <http://purl.org/net/aliman>limanfoo.github.io/
Twitter: @alimanfoo <https://twitter.com/alimanfoo>
Please feel free to resend your email and/or contact me by other means if
you need an urgent reply.
today the file system store makes no promises about how symlinks are handled. if we did naively follow symlinks, we could create topological abominations, e.g. a group that contains its ancestors. handling this would add considerable complexity to the zarr data model, or the local file system store, all for something that has no analogue in cloud object storage. so I will close this as not planned.
that being said, there are problems with how we handle symlinks today in the file system store that we should resolve. I will open issues for these.
Activity
jakirkham commentedon Sep 4, 2018
How would we handle this in other stores?
alimanfoo commentedon Sep 4, 2018
I think it's only relevant to DirectoryStore and NestedDirectoryStore as these expose the hierarchy as a directory structure, so symlinks to directories provides a means to do some useful things. Not sure symlinks would be useful or make any sense for other stores.
jakirkham commentedon Sep 13, 2018
Guess I was imagining them being some text with a path. Though this really depends on whether links are first class objects (like how they are in HDF5).
This might also come up if a user converts between two different types of stores.
jakirkham commentedon Jan 4, 2019
FWIW another use case for links (as well as object and region references) is NWB where they want to reference data in multiple places. They actually started implementing something on top of Zarr, but the lack of these features was a blocker for them.
xref: NeurodataWithoutBorders/pynwb#230 (comment)
alimanfoo commentedon Jan 4, 2019
jakirkham commentedon Jan 12, 2019
Sure. Have raised issue ( #389 ).
d-v-b commentedon Jul 7, 2026
today the file system store makes no promises about how symlinks are handled. if we did naively follow symlinks, we could create topological abominations, e.g. a group that contains its ancestors. handling this would add considerable complexity to the zarr data model, or the local file system store, all for something that has no analogue in cloud object storage. so I will close this as not planned.
that being said, there are problems with how we handle symlinks today in the file system store that we should resolve. I will open issues for these.