exceptions not raising in finding ontologies (?)
Closed this issue · 5 comments
I didn't want the inability to find an ontology impede the import process. During development, there are a number of URLs that get thrown around that don't have a formal ontology definition either locally or on the web. One possible solution to this is to have a "strict" mode that throws exceptions when these cases are hit -- would that be helpful?
I didn't want the inability to find an ontology impede the import process. During development, there are a number of URLs that get thrown around that don't have a formal ontology definition either locally or on the web. One possible solution to this is to have a "strict" mode that throws exceptions when these cases are hit -- would that be helpful?
oh ok. that would actually help to check when you go 'production'.
There's a new strict flag -s
available in ontoenv==0.3.3
; let me know if it works as you expect!
works as expected. thanks.
logging.error(f"Could not load {uri} (no definition found)")
'strict' treatment is not applied here though.