Skip to content

Commit

Permalink
Merge pull request #378 from euroargodev/377-content-response-from-ne…
Browse files Browse the repository at this point in the history
…rc-vocabulary-server-seems-change-that-makes-argonvsreferencetables-fail

Update ArgoNVSReferenceTables to handle new NVS server output format
  • Loading branch information
gmaze authored Aug 19, 2024
2 parents 8102bfe + 39daa57 commit 289a4aa
Show file tree
Hide file tree
Showing 39 changed files with 52,220 additions and 31,407 deletions.
14 changes: 7 additions & 7 deletions argopy/related/reference_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ def _jsConcept2df(self, data):
}
for k in data["@graph"]:
if k["@type"] == "skos:Collection":
Collection_name = k["alternative"]
Collection_name = k["dc:alternative"]
elif k["@type"] == "skos:Concept":
content["altLabel"].append(k["altLabel"])
content["prefLabel"].append(k["prefLabel"]["@value"])
content["definition"].append(k["definition"]["@value"])
content["deprecated"].append(k["deprecated"])
content["altLabel"].append(k["skos:altLabel"])
content["prefLabel"].append(k["skos:prefLabel"]["@value"])
content["definition"].append(k["skos:definition"]["@value"])
content["deprecated"].append(k["owl:deprecated"])
content["id"].append(k["@id"])
df = pd.DataFrame.from_dict(content)
df.name = Collection_name
Expand All @@ -114,8 +114,8 @@ def _jsCollection(self, data):
"""Return last skos:Collection information as data"""
for k in data["@graph"]:
if k["@type"] == "skos:Collection":
name = k["alternative"]
desc = k["description"]
name = k["dc:alternative"]
desc = k["dc:description"]
rtid = k["@id"]
return (name, desc, rtid)

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 289a4aa

Please sign in to comment.