From 355576828176bc8864b60eeb5c409c4d7973daf6 Mon Sep 17 00:00:00 2001 From: Jessy Barrette <30420025+JessyBarrette@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:07:47 -0400 Subject: [PATCH] fix L06 Vocabulary harvester --- harvester/cde_harvester/platform_ioos_to_l06.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/harvester/cde_harvester/platform_ioos_to_l06.py b/harvester/cde_harvester/platform_ioos_to_l06.py index 9e730f6a..3a88df2c 100644 --- a/harvester/cde_harvester/platform_ioos_to_l06.py +++ b/harvester/cde_harvester/platform_ioos_to_l06.py @@ -26,14 +26,15 @@ def get_l06_codes_and_labels(): for platform in platforms: # first entry describes the vocabulary, skip it - if not "identifier" in platform: + if not "dce:identifier" in platform: continue - label = platform["prefLabel"]["@value"] - broader = platform.get("broader", []) + label = platform["skos:prefLabel"]["@value"] + broader = platform.get("skos:broader", []) id = platform["@id"] found_parent_platform = False for url in broader: + url = url["@id"] if "L06" in url: platforms_parsed[id] = {"broader_L06_url": url, "l06_label": label} found_parent_platform = True