From 150d27278a2f4f441a7d650254e18d025109d205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20M=C3=BCller?= Date: Tue, 5 Nov 2024 11:47:27 +0100 Subject: [PATCH] triggering commit with default processing for printing graph data --- .github/workflows/generate_profile_workflow.yml | 7 ++++--- .github/workflows/profile_generation_script.py | 1 + .../jsonld/ChemicalSubstance_v0.4-RELEASE.json | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generate_profile_workflow.yml b/.github/workflows/generate_profile_workflow.yml index 2c7aaa94..c92ecb93 100644 --- a/.github/workflows/generate_profile_workflow.yml +++ b/.github/workflows/generate_profile_workflow.yml @@ -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: | @@ -85,6 +82,10 @@ 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 diff --git a/.github/workflows/profile_generation_script.py b/.github/workflows/profile_generation_script.py index d10104f2..9cd3dd6a 100644 --- a/.github/workflows/profile_generation_script.py +++ b/.github/workflows/profile_generation_script.py @@ -590,6 +590,7 @@ def generate_types_cardianlity(g, prop): external_properties = [] data_length = len(data) # for g in range(data_length): + print(data, len(data)) for g in data["@graph"]: if not isinstance(g, int): if g["@type"] == "rdf:Property": diff --git a/ChemicalSubstance/jsonld/ChemicalSubstance_v0.4-RELEASE.json b/ChemicalSubstance/jsonld/ChemicalSubstance_v0.4-RELEASE.json index 40812598..d2ab3e7f 100644 --- a/ChemicalSubstance/jsonld/ChemicalSubstance_v0.4-RELEASE.json +++ b/ChemicalSubstance/jsonld/ChemicalSubstance_v0.4-RELEASE.json @@ -1,4 +1,4 @@ -{ +{ "@context": { "schema": "http://schema.org/", "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",