From cd0e54b9a7f34ea1e29a139c1e0c165b311ac817 Mon Sep 17 00:00:00 2001 From: Lyuba Zehl Date: Mon, 27 Nov 2023 16:36:21 +0100 Subject: [PATCH] Update vocab.py --- openMINDS_pipeline/vocab.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openMINDS_pipeline/vocab.py b/openMINDS_pipeline/vocab.py index a5e5354..a9654dd 100644 --- a/openMINDS_pipeline/vocab.py +++ b/openMINDS_pipeline/vocab.py @@ -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"]