Skip to content

Commit

Permalink
check if type int
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd-mueller committed Sep 26, 2024
1 parent 9dcc9d9 commit 83ecd52
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/profile_generation_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,13 +597,14 @@ def generate_types_cardianlity(g, prop):

for g in range(data_length):
# for g in data["@graph"]:
if g["@type"] == "rdfs:Class":
print(
Fore.BLUE
+ Style.BRIGHT
+ f'Profile : {g["@id"]}'
+ Style.RESET_ALL
)
if int(g) != g:
if g["@type"] == "rdfs:Class":
print(
Fore.BLUE
+ Style.BRIGHT
+ f'Profile : {g["@id"]}'
+ Style.RESET_ALL
)
# Dictionary of all external definitions
dict_definitions = dict()

Expand Down
2 changes: 1 addition & 1 deletion MolecularEntity/jsonld/MolecularEntity_v0.5-RELEASE.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"@context": {
"schema": "http://schema.org/",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
Expand Down

0 comments on commit 83ecd52

Please sign in to comment.