diff --git a/pylode/utils.py b/pylode/utils.py index 05949eb..dfdc087 100644 --- a/pylode/utils.py +++ b/pylode/utils.py @@ -448,8 +448,10 @@ def _get_ont_type(ont___, back_onts___, iri___): anchor = a(f"{v}", href=frag_iri if frag_iri is not None else iri__) else: try: - qname = ont__.compute_qname(iri__, True) - except ValueError: + qname = ont__.compute_qname(iri__, False) + if "ASGS" in qname[2]: + print(qname) + except Exception: qname = iri__ prefix = "" if qname[0] == "" else f"{qname[0]}:"