Skip to content

Commit

Permalink
fix L06 Vocabulary harvester
Browse files Browse the repository at this point in the history
  • Loading branch information
JessyBarrette committed Aug 20, 2024
1 parent ba3c144 commit 3555768
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions harvester/cde_harvester/platform_ioos_to_l06.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3555768

Please sign in to comment.