Skip to content

Commit

Permalink
Merge pull request #13 from openMetadataInitiative/lzehl_fixingVocabO…
Browse files Browse the repository at this point in the history
…verwrite

Update vocab.py to fix vocab overwrite for plurals
  • Loading branch information
apdavison authored Nov 27, 2023
2 parents a010a1b + cd0e54b commit 0f7d57e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions openMINDS_pipeline/vocab.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ def _enrich_with_property_information(version: str, p, properties, schema):
prop = properties[p]
if "description" in prop and prop["description"]:
schema["properties"][p]["description"] = prop["description"]
if "name" in prop and prop["name"]:
schema["properties"][p]["name"] = prop["name"]
if "label" in prop and prop["label"]:
schema["properties"][p]["label"] = prop["label"]
if "labelPlural" in prop and prop["labelPlural"]:
schema["properties"][p]["labelPlural"] = prop["labelPlural"]
if "name" in prop and prop["name"]:
schema["properties"][p]["name"] = prop["name"]
if "namePlural" in prop and prop["namePlural"]:
schema["properties"][p]["namePlural"] = prop["namePlural"]
if "semanticEquivalent" in prop and prop["semanticEquivalent"]:
schema["properties"][p]["semanticEquivalent"] = prop["semanticEquivalent"]

Expand Down

0 comments on commit 0f7d57e

Please sign in to comment.