chrismheiser / lipdnet

All things related to Lipd.net and the LiPD Playground
http://www.lipd.net
1 stars 1 forks source link

Feature: Upload Lipd file as a template #111

Open chrismheiser opened 2 years ago

chrismheiser commented 2 years ago
nickmckay commented 2 years ago

This sounds good. On second thought, I don't think we should delete the geo and pub data, that's easy for the user to do. But the rest of this sounds right.

chrismheiser commented 2 years ago

@nickmckay I have a working iteration of this feature. Just to be sure, it currently is replacing all current TSids with new TSids, and removing all numeric column data while leaving everything else unchanged. Is that right?

Also, I wanted to check if it's okay for me to make a change to the TSid format to align it more to the format of a UUID (Universally unique identifier - Ex: 8b1130d8-dbea-4a01-9ee6-4100b448ea71) to make sure long-term there are no duplicate IDs. I don't know how you're using TSids and if this would break anything, so please let me know.

Old: WEBOO73ID6Y

New: WEB-f2b5e-d79d-4b2b-aa91-d8c65

chrismheiser commented 2 years ago

I've deployed this to lipd.net for you to try out if you'd like.

nickmckay commented 2 years ago

Finally had a chance - seems to work well at first glance. I did notice that even though the original file used "metadata.jsonld", the edited template file put the dataset name as the jsonld name. They should all be metadata.jsonld now. And I don't think that should be problem with the TSiDs.