Skip to content

Commit

Permalink
trying to directly writing into json-ld
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd-mueller committed Sep 26, 2024
1 parent 7b80cf2 commit 75001c3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/process_profile_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 75001c3

Please sign in to comment.