From 6868e316ba3de982641b1f3bfaa24f266d910eba Mon Sep 17 00:00:00 2001
From: Philipp Schneider <schneider.philipp@uni-muenster.de>
Date: Tue, 19 Jul 2022 12:15:28 +0200
Subject: [PATCH] Remove trailing brackets from new class names

---
 src/rdf-mappings/map-tblBranch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rdf-mappings/map-tblBranch.py b/src/rdf-mappings/map-tblBranch.py
index dc62e41..3ef742e 100644
--- a/src/rdf-mappings/map-tblBranch.py
+++ b/src/rdf-mappings/map-tblBranch.py
@@ -37,7 +37,7 @@ def create_owl_class_from_string(new_class_name, sub_class_of=None, create_prope
     if mapping_config['create_research_dataset'] == True and '(' in new_class_name:
         new_class_name = new_class_name.split('(')[0]
 
-    if new_class_name != '' and new_class_name[-1] == '.':
+    if new_class_name != '' and ( new_class_name[-1] == '.' or new_class_name[-1] == ')' ):
         new_class_name = new_class_name[:-1]
 
     if create_property == True:
-- 
GitLab