Skip to content

Commit

Permalink
changed order of script execution
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd-mueller committed Sep 27, 2024
1 parent 7e9cd6e commit 0961844
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/generate_profile_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ jobs:
git checkout -b `date +%Y_%m_%d-%H_%M`
cd ..
- name: Exectute Enrichment by Profile Ontology script
run: |
python ./.github/workflows/process_profile_script.py ${{steps.changed-files.outputs.all_changed_files}}
- name: Execute the config files update Python Script
run: |
Expand All @@ -85,7 +82,11 @@ jobs:
- name: Execute the profile rendering Python Script
run: |
python ./.github/workflows/profile_generation_script.py ${{steps.changed-files.outputs.all_changed_files}} bioschemas.github.io
- name: Exectute Enrichment by Profile Ontology script
run: |
python ./.github/workflows/process_profile_script.py ${{steps.changed-files.outputs.all_changed_files}}
- name: Setup the Github TOKEN
uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/profile_generation_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,14 +589,14 @@ def generate_types_cardianlity(g, prop):

external_properties = []
data_length = len(data)
for g in range(data_length):
# for g in data["@graph"]:
# for g in range(data_length):
for g in data["@graph"]:
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"]:
# for g in range(data_length):
for g in data["@graph"]:
if not isinstance(g, int):
if g["@type"] == "rdfs:Class":
print(
Expand Down

0 comments on commit 0961844

Please sign in to comment.