From 39a3919511f2d9b4d6af42d3b4c412c91d14d437 Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Tue, 11 Aug 2026 10:09:39 +0200 Subject: [PATCH] Fix issue when the domain is a logical construct --- tripper/datadoc/keywords.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tripper/datadoc/keywords.py b/tripper/datadoc/keywords.py index 7003f483..1d5fcb62 100644 --- a/tripper/datadoc/keywords.py +++ b/tripper/datadoc/keywords.py @@ -1103,6 +1103,10 @@ def get_input_value(entity, key): d.type = to_prefixed(value["@type"], p) d.domain = value.get("domain", RDFS.Resource) + if isinstance(d.domain, dict): + # Ignore the case where the domain is a logical construct + continue + for domain in asseq(d.domain): dlabel = prefix_iri(domain, p, strict=True) domainname = clslabels.get(dlabel, iriname(domain))