Skip to content

Commit

Permalink
fix: Update the license_literal mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
kovalch committed Aug 5, 2024
1 parent dfdc75c commit 518266f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ckanext/dcatapchharvest/dcat_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,10 @@ def get_license_values():
try:
for license_pref_label in g.objects(subject=ogdch_license_ref,
predicate=SKOSXL.prefLabel):
for literal in g.objects(subject=license_pref_label,
predicate=SKOSXL.literalForm):
license_literal = literal
license_literal = next(g.objects(subject=license_pref_label,
predicate=SKOSXL.literalForm))
if license_literal is not None:
break # Assume one literal per concept

license_homepages_literal_mapping[license_homepage] = license_literal # noqa
license_ref_literal_mapping[ogdch_license_ref] = license_literal
license_homepage_ref_mapping[license_homepage] = ogdch_license_ref
Expand Down

0 comments on commit 518266f

Please sign in to comment.