Skip to content

Commit 21ee107

Browse files
Fix #91
Avoid entries to be automatically modified in vocab.
1 parent 9c98493 commit 21ee107

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

openMINDS_pipeline/vocab.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,10 @@ def _extract_property(self, type: str, property: str, definition: dict):
341341

342342
# Automatically calculated values
343343
unqualified_property = os.path.basename(property)
344-
prop["label"] = _camel_case_to_human_readable(unqualified_property)
345-
prop["name"] = unqualified_property
344+
if "label" not in prop:
345+
prop["label"] = _camel_case_to_human_readable(unqualified_property)
346+
if "name" not in prop:
347+
prop["name"] = unqualified_property
346348

347349
if "usedIn" not in prop:
348350
prop["usedIn"] = {}

0 commit comments

Comments
 (0)