From d0c9ae5afb7fb2bde8a57e1d92b83493991b6330 Mon Sep 17 00:00:00 2001 From: Nicholas Car Date: Mon, 2 Jan 2023 18:46:07 +1100 Subject: [PATCH] fixe Issue #182 --- pylode/utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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]}:"