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 cf5ba8a commit d726c1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/vocab/owl_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ def _printdict(class_obj):
for obj in class_obj:
if obj.comment:
print(r'\appendixstyle{{{}}} {{$\sqsubseteq$ }} \textit{{{}}} {{--}} {{{}}}\\'.format(
obj.label, str(obj.superclass), str(obj.comment)))
obj.label.replace("_", "\\_"), str(obj.superclass).replace("_", "\\_"), str(obj.comment).replace("_", "\\_")))
else:
print(r'\appendixstyle{{{}}} {{$\sqsubseteq$ }} \textit{{{}}}.\\'.format(
obj.label, str(obj.superclass)))
obj.label.replace("_", "\\_"), str(obj.superclass).replace("_", "\\_")))


def _get_valid_string(temp_val):
Expand Down Expand Up @@ -108,7 +108,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].replace("_", "\\_")
class_name = str(class_name).split(".")[1]
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 d726c1c

Please sign in to comment.