Skip to content

Commit

Permalink
fix: Use correct key for parsing qualified_relations had_role
Browse files Browse the repository at this point in the history
  • Loading branch information
bellisk committed Nov 2, 2023
1 parent f54a102 commit 156bf1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/dcatapchharvest/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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((
Expand Down

0 comments on commit 156bf1e

Please sign in to comment.