From 3530d7b124c7fe1ae14676cea7e1898d273b9ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20M=C3=BCller?= Date: Wed, 27 Nov 2024 10:25:24 +0100 Subject: [PATCH] fixed turtle file naming --- .github/workflows/process_profile_script.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/process_profile_script.py b/.github/workflows/process_profile_script.py index 0b627dd..6467848 100644 --- a/.github/workflows/process_profile_script.py +++ b/.github/workflows/process_profile_script.py @@ -134,13 +134,12 @@ def generate_rdf_for_profile(self, profile_name, label, comment, publisher, is_p print("Writing intermediate results to", outfile) g.serialize(destination=outfile, format="json-ld", auto_compact=True) print("Writing result to", outfile) - turtlefile = outfile[-5:] + ".ttl" # Writing graph serialization in turtle format as additional files with same # name but with different file ending for filetype ttl. - + turtlefile = outfile[:-5] + ".ttl" print("Writing turtle file to", turtlefile) - g.serialize(destination=outfile, format="turtle") + g.serialize(destination=turtlefile, format="turtle") g.close()