Coming soon!¶
- Linking digital objects to archival objects expected by October 2025.
Update digital object template with URIs¶
While there are numerous methods you could use to replace entity names with URIs in the digital-object-template.csv
, we have a script available that does this automatically using spreadsheets you already have. To do this method, see the steps below.
Run findAndReplaceStringsWithURIs.py
¶
Preparation¶
- Create a new folder somewhere on your computer. In this example, I created a folder called
entitiesURIs
on my Desktop. - Put all of your log CSV files for agents and subjects in the new folder. Do not include top containers.
- Find your
alreadyExistingEntities.csv
and also add it to the folder. - Put a copy of your digital-object-template in your
helping-scripts
folder.
Running the script¶
- In your terminal, navigate to your
helping-scripts
folder. - Run the following command in your terminal, adjusting the filename and directory path to match what you have.
python findAndReplaceStringsWithURIs.py -f digital-object-copy.csv -d /Users/michelle/Desktop/entitiesURIs
Reviewing your results¶
A new spreadsheet beginning with wReplacements_
should have been created in your helping-script
folder. This is a copy of your archival-object-template with all names replaced with their URIs. I'd recommend visually scanning the relevant columns (linked_agents
, subjects
) to make sure no strings remain. Once verified, this spreadsheet should be the one used in step 10.