Closed cmungall closed 1 year ago
linkml-phenopackets has a command line tool that will detect bad CURIEs and fix them using bioregistry:
p3 normalize-curies examples/Phenopacket-pseudoexfoliation.yaml
p3 normalize-curies examples/Phenopacket-pseudoexfoliation.yaml -o /tmp/Phenopacket-pseudoexfoliation-fixed.yaml
## Num results: 3
## RESULT: ('SCTID:397312009', 'SNOMEDCT:397312009')
## RESULT: ('SCTID:397312009', 'SNOMEDCT:397312009')
## RESULT: ('SCTID:414775001', 'SNOMEDCT:414775001')
Hi @cmungall thanks a lot for pointing out this issue. I fixed the invalid prefixes and the validation now works OK.
It's best to use consistent prefixes. I recommend bioregistry to determine which is canonical:
https://bioregistry.io/registry/snomedct