From 117e96d222a41d4a0b6a1311e4a097cfb82ab7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20M=C3=BCller?= Date: Wed, 6 Nov 2024 15:37:26 +0100 Subject: [PATCH] added type check for rdfs:Class --- .github/workflows/profile_generation_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/profile_generation_script.py b/.github/workflows/profile_generation_script.py index 476288b..4f4e856 100644 --- a/.github/workflows/profile_generation_script.py +++ b/.github/workflows/profile_generation_script.py @@ -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