You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The nice thing with the with tempfile.NamedTemporaryFile(suffix=".owl") as handle: clause is that it deletes the temporary file when leaving it. Won't adding the argument mode="w" to tempfile.NamedTemporaryFile solve the issue?
the following code creates a problem on Windows:
´´´
with tempfile.NamedTemporaryFile(suffix=".owl") as handle:
super().save(file=handle.name, format="rdfxml", **kwargs)
graph = rdflib.Graph()
graph.parse(handle.name, format="xml")
graph.serialize(destination=filename, format=format)
´´´
It is related to an issue with tempfile library. See for example discussion: https://stackoverflow.com/questions/23212435/permission-denied-to-write-to-my-temporary-file
Similar issue might be present every time ontopy tries to work with tempfile.
The text was updated successfully, but these errors were encountered: