Skip to content

Commit

Permalink
added type check for rdfs:Class
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd-mueller committed Nov 6, 2024
1 parent 3ff34be commit 117e96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/profile_generation_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def generate_types_cardianlity(g, prop):

# for g in range(data_length):
for g in data["@graph"]:
if not isinstance(g, int):
if not isinstance(g, int) and not isinstance(g, str):
if g["@type"] == "rdfs:Class":
print(
Fore.BLUE
Expand Down

0 comments on commit 117e96d

Please sign in to comment.