data-repository-service-schemas icon indicating copy to clipboard operation
data-repository-service-schemas copied to clipboard

Path information in the Drs Object

Open nmalfroy opened this issue 3 years ago • 2 comments

Hi all, Not sure if I'm missing something so feel free to correct me.

It seems that the spec allows for, essentially, a directory structure that lets you nest objects. My question is: given this, it seems that we should provide: a) a path and / or b) a parent id This means that given a drs id, you can't get a sense where in the dataset hierarchy a given object lives.

Is that something that's planned in the spec at some point or am I thinking about this wrong?

The usecase is that a user may get a DRS ID for a file that has a dependency on another file in the same "directory" and with the current spec, I don't really know how to model that without the starting file knowing what it's "directory" even is.

nmalfroy avatar Oct 06 '21 14:10 nmalfroy

In the mean time, we're using the aliases field to store this path information but that feels wrong. Is there an accepted pattern where we could a an extra namespaced field (e.g. x-object-path) to the DrsObject? Are we allowed to add fields to objects? I couldn't find anything in the spec saying one way or another

nmalfroy avatar Oct 25 '21 15:10 nmalfroy

@briandoconnor - Any take on this issue? I think this is a suggestion for this in DRS 1.3?

kv076 avatar Feb 27 '23 22:02 kv076