Skip to content

Commit

Permalink
changed type check
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd-mueller committed Sep 27, 2024
1 parent 49c67ee commit adf0e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/profile_generation_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,13 +591,13 @@ def generate_types_cardianlity(g, prop):
data_length = len(data)
# for g in range(data_length):
for g in data["@graph"]:
if int(g) != g:
if not isinstance(g, int):
if g["@type"] == "rdf:Property":
external_properties.append(g["@id"])

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

0 comments on commit adf0e99

Please sign in to comment.