Skip to content

Commit

Permalink
Update vocab.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lzehl authored Nov 27, 2023
1 parent a010a1b commit cd0e54b
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 cd0e54b

Please sign in to comment.