Skip to content

Commit

Permalink
added type check
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd-mueller committed Nov 6, 2024
1 parent 5c7abdc commit 502f402
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/profile_generation_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,9 @@ def generate_types_cardianlity(g, prop):
external_properties = []
data_length = len(data)
# for g in range(data_length):
print(data, len(data))
# print(data, len(data))
for g in data["@graph"]:
if not isinstance(g, int):
if not isinstance(g, int) and isinstance(g, str):
if g["@type"] == "rdf:Property":
external_properties.append(g["@id"])

Expand All @@ -609,7 +609,7 @@ def generate_types_cardianlity(g, prop):
# Dictionary of all external definitions
dict_definitions = dict()

if "$validation" in g.keys():
if "$validation" in g.keys() or True:
if "definitions" in g["$validation"].keys():
for d in g["$validation"]["definitions"]:
dict_definitions[d] = g["$validation"]["definitions"][
Expand Down

0 comments on commit 502f402

Please sign in to comment.