Closed apeteri closed 4 years ago
Hi @apeteri, thanks for spotting this and bringing it up. Yes, great idea. The exception handling when loading RF2 files needs some improvement here because as you say the thread loading a reference set file can just stop when an exception is thrown. We should probably check if the description exists and just log a warning if it doesn't?
Do you have capacity to write a pull request for this change, assuming that it's impacting something you are looking at? If not no problem, I should get to it in a few days.
Kind regards, Kai
Not sure if this is a bug or an enhancement. I intended the toolkit to only work with versions of modules which are already validated as being dependent on each other and consistent, but on the other hand being lenient and reporting warnings is good 😄.
In https://github.com/IHTSDO/snomed-owl-toolkit/issues/30#issuecomment-559520810, @kaicode writes:
Could this be a "soft" error instead, that is reported with the UUID/effective time of the offending reference set member? It seems like in the current release, such exceptions result in dialect detection being broken for exported RDFS and SKOS labels (they still get tagged with the language code of the description, eg. "en", but not with eg. "en-us" if the US refset is the one having problems).
This can happen if users want to take a look at the OWL representation while doing an upgrade, where references to inactive components might not be fully cleaned up.