Skip to content

Commit

Permalink
Pass base uri to serializer when writing to file.
Browse files Browse the repository at this point in the history
  • Loading branch information
sandervd committed Nov 7, 2024
1 parent 14bb8ec commit fe6e6fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdflib/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ def serialize(
else:
os_path = location
with open(os_path, "wb") as stream:
serializer.serialize(stream, encoding=encoding, **args)
serializer.serialize(stream, base=base, encoding=encoding, **args)
return self

def print(
Expand Down

0 comments on commit fe6e6fd

Please sign in to comment.