Commit cbf12987 authored by Guillaume ALVISET's avatar Guillaume ALVISET
Browse files

Fixed issues with the partitioned convertion

parent ad8778bd
......@@ -124,11 +124,9 @@ if __name__ == "__main__":
floats_folders = ftp_access.nlst()
progress = tqdm(total=len(floats_folders), position=0, leave=True, file=sys.stdout)
part = 1
g = Graph()
bind_graph(prefixes)
dac_uri = ARGO[dac]
create_new_argo_graph(dac, prefixes)
g = create_new_argo_graph(dac, prefixes)
print("DAC: {}".format(dac))
a = 1
......@@ -289,11 +287,10 @@ if __name__ == "__main__":
if a == args.limit:
break
if a > 500:
part += 1
with open("{}argo_floats_generated_{}_{}.ttl".format(args.destination, dac, part), "w") as ttl:
ttl.write(g.serialize(format="turtle").decode("utf-8"))
g = Graph()
bind_graph(g)
g = create_new_argo_graph(dac, prefixes)
part += 1
a = 1
# break
with open("{}argo_floats_generated_{}_{}.ttl".format(args.destination, dac, part), "w") as ttl:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment