time-link / timelink-kleio

Provides translation of files in Kleio notation into XML and other formats. Part of Timelink.
1 stars 0 forks source link

Differentiate auto-generated ids #8

Closed joaquimrcarvalho closed 8 months ago

joaquimrcarvalho commented 1 year ago

It would be usefull to distinguish a posteriori if an id was autogenerated or user input

The translator could add a prefix like "id_".

Then auto id could be regenerated on translation if needed with a special flag or the kleio element (ignore-auto-ids). This would clean up auto ids when sources or acts change their ids that were used for auto id generation.

The problem would be if those autogenerated ids were already used in record linking. This could be handled with a id changes export file (icef) with two columns. The icef file name with be tagged so with the translations number of the kleio file: b1686_icef_45.csv. meaning id changes made in the 45 translation of b686.cli

joaquimrcarvalho commented 1 year ago

This is similar to Blank Nodes in RDF:

joaquimrcarvalho commented 8 months ago

Not sure about this, we already have the "prefix" element in kleio$ we can just do

kleio$prefix=id_