Skip to content

Commit

Permalink
Update owl_reader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnolte committed May 14, 2024
1 parent 4dedcde commit 5117435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/vocab/owl_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, iri_list):
self.class_objects = []

def get_classes(self):
'''
'''
Gets the classes defined in the ontology their corresponding
superclass, label and comment
'''
Expand All @@ -45,7 +45,7 @@ def _create_class_objects(self):
objects = []
for class_name in list(self.ontology.classes()):
if str(class_name).startswith(self.prefix):
class_name = str(class_name).split(".")[1]
class_name = str(class_name).split(".")[1].replace("_", "\\_")
class_info = self.set_class_info(class_name)
objects.append(OWLClassInfo(name=class_name,
label=class_info[0][0] if class_info[0] else class_name,
Expand Down

0 comments on commit 5117435

Please sign in to comment.