From 156bf1e79f15e72df2e388cad327b535540949a4 Mon Sep 17 00:00:00 2001 From: Rae Knowler Date: Thu, 2 Nov 2023 13:50:06 +0100 Subject: [PATCH] fix: Use correct key for parsing qualified_relations had_role --- ckanext/dcatapchharvest/profiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/dcatapchharvest/profiles.py b/ckanext/dcatapchharvest/profiles.py index d93c1dd..bf930c5 100644 --- a/ckanext/dcatapchharvest/profiles.py +++ b/ckanext/dcatapchharvest/profiles.py @@ -751,11 +751,11 @@ def graph_from_dataset(self, dataset_dict, dataset_ref): # noqa URIRef(reference["relation"]) )) - if reference.get("role"): + if reference.get("had_role"): g.add(( qualified_relation, DCAT.hadRole, - URIRef(reference["role"]) + URIRef(reference["had_role"]) )) g.add((