diff --git a/Makefile b/Makefile index 4f8b263..7cc167b 100644 --- a/Makefile +++ b/Makefile @@ -69,3 +69,7 @@ rnacentral.gpi: rnacentral.gpi.gz target/neo-rnac.obo: rnacentral.gpi.gz gzip -dc $< | ./rnacgpi2obo.pl > $@.tmp && mv $@.tmp $@ +target/xneo-%.owl: target/neo-%.obo + owltools $< -o $@.tmp && mv $@.tmp $@ +target/neo-%.owl: target/xneo-%.owl + ./bin/fix-obo-uris.pl $< > $@.tmp && mv $@.tmp $@ diff --git a/bin/fix-obo-uris.pl b/bin/fix-obo-uris.pl index a31c437..acee242 100755 --- a/bin/fix-obo-uris.pl +++ b/bin/fix-obo-uris.pl @@ -1,6 +1,12 @@ #!/usr/bin/perl -np + +# See https://github.com/identifiers-org/registry/issues/5 +s@http://purl.obolibrary.org/obo/TAIR_locus%3A@http://identifiers.org/tair.locus/@g; + +# gramene IDs are actually uniprot... s@http://purl.obolibrary.org/obo/GR_protein_@http://identifiers.org/uniprot/@g; -s@http://purl.obolibrary.org/obo/(dictyBase|ZFIN|FB|WB|SGD|PomBase|RGD|MGI|Xenbase|UniProtKB|TAIR:\s+)_@"http://identifiers.org/".fix($1)."/"@eg; +s@http://purl.obolibrary.org/obo/dictyBase#_@http://identifiers.org/dictybase.gene/@g; +s@http://purl.obolibrary.org/obo/(ZFIN|FB|WB|SGD|PomBase|RGD|MGI|Xenbase|UniProtKB|TAIR:\s+)_@"http://identifiers.org/".fix($1)."/"@eg; sub fix { $s = lc($_[0]);