From 75001c35a36e685f12a4cc62d43b94509bd7d717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20M=C3=BCller?= Date: Thu, 26 Sep 2024 11:09:14 +0200 Subject: [PATCH] trying to directly writing into json-ld --- .github/workflows/process_profile_script.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/process_profile_script.py b/.github/workflows/process_profile_script.py index 9625d12..445603a 100644 --- a/.github/workflows/process_profile_script.py +++ b/.github/workflows/process_profile_script.py @@ -52,8 +52,9 @@ def generate_rdf_for_profile(self, profile_name, label, comment, publisher, is_p g.add((json_ld_descriptor, prof.hasArtifact, URIRef("https://raw.githubusercontent.com/BioSchemas/bioschemas-dde/main/bioschemas.json"))) # save the graph with additional profile triples - outfile = outputfilename+"."+filetype - g.serialize(destination=outfile, format=filetype) + # outfile = outputfilename+"."+filetype + outfile = outputfilename + g.serialize(destination=outfile, format="json-ld") print("Writing result to", outfile) # Process profile information from the GitHub repository of BioSchemas. All profiles in JSON-LD format @@ -75,8 +76,8 @@ def processProfiles (self, filename, profilename): is_profile_of=profilename.capitalize(), webpage_url=webpage_url, f=filename, - outputfilename=profilename, - filetype="ttl") + outputfilename=filename, + filetype="") # ## Main Script