geneontology / noctua-models

This is the data repository for the models created and edited with the Noctua tool stack for GO.
http://noctua.geneontology.org/
Creative Commons Attribution 4.0 International
10 stars 3 forks source link

Fix taxon IRIs. #278

Closed balhoff closed 1 month ago

balhoff commented 1 month ago

Fixes #277.

kltm commented 1 month ago

@balhoff Unfortunately, we can't practically use this as it must be coordinated with an outage. From experience, there will likely be conflicts due to the changes that occur between now and the next outage. We'll need to coordinate the fix to make the changes on the models once the outage begins. I don't suppose you have a sed command you used?

balhoff commented 1 month ago

@kltm I thought you might say that. Here is the command (on MacOS, sed may differ on Linux), run in models directory:

find . -type f -name "*.ttl" -exec sed -i '' -E 's/<taxon:([[:digit:]]+)>/<http:\/\/purl.obolibrary.org\/obo\/NCBITaxon_\1>/g' {} +
kltm commented 1 month ago

Cheers! We'll try that command next time around.