Skip to content

Commit

Permalink
fixed turtle file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd-mueller committed Nov 27, 2024
1 parent 663e034 commit 3530d7b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/process_profile_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit 3530d7b

Please sign in to comment.