-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I've just been trying to make use of my own dataset through the API here, and have collected a few comments:
- improve default rule for generating
id
field. At the moment we use precisely the relative filepath that the structure came from. I wonder if a better default would be attemptingfilepath.split("/")[-1].split(".")[0]
(i.e., take just the filename). This is not guaranteed to be unique; rather than having some awkward config for specifying this, we could attempt to generate the unique set of IDs from first the filenames themselves, then the first folder up, then second folder up etc. and only fallback to the full file path when required. Theimmutable_id
field (which we dont use atm) can be set by the relative filepath still. I will try experimenting with this... - we should set
last_modified
to be the datetime of extraction - the database metadata should include the optimade-maker version used
Metadata
Metadata
Assignees
Labels
No labels