We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 698e77b commit be140bfCopy full SHA for be140bf
.acimov/publish.py
@@ -145,10 +145,9 @@ def process_turtle_file(input_file_path:str, dest_path:str):
145
with open(dest_path+ ".html", "w") as output:
146
output.write(soup.prettify())
147
148
- # print ttl
149
- shutil.copy(input_file_path, dest_path+ ".ttl")
150
-
151
# print other RDF variants
+ with open(dest_path+ ".ttl", "wb") as output:
+ output.write(g.serialize(format='ttl', encoding='utf-8'))
152
with open(dest_path+ ".rdf", "wb") as output:
153
output.write(g.serialize(format='pretty-xml', encoding='utf-8'))
154
with open(dest_path+ ".n3", "wb") as output:
0 commit comments