Skip to content

Commit be140bf

Browse files
don't copy turtle file because some metadata are added on the fly
1 parent 698e77b commit be140bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.acimov/publish.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,9 @@ def process_turtle_file(input_file_path:str, dest_path:str):
145145
with open(dest_path+ ".html", "w") as output:
146146
output.write(soup.prettify())
147147

148-
# print ttl
149-
shutil.copy(input_file_path, dest_path+ ".ttl")
150-
151148
# print other RDF variants
149+
with open(dest_path+ ".ttl", "wb") as output:
150+
output.write(g.serialize(format='ttl', encoding='utf-8'))
152151
with open(dest_path+ ".rdf", "wb") as output:
153152
output.write(g.serialize(format='pretty-xml', encoding='utf-8'))
154153
with open(dest_path+ ".n3", "wb") as output:

0 commit comments

Comments
 (0)