From fe6e6fd7b828a99049b00916ba9ee02dd303aeec Mon Sep 17 00:00:00 2001 From: Sander Van Dooren Date: Thu, 7 Nov 2024 09:31:06 +0100 Subject: [PATCH] Pass base uri to serializer when writing to file. --- rdflib/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdflib/graph.py b/rdflib/graph.py index f250d9fa3..8592b10a7 100644 --- a/rdflib/graph.py +++ b/rdflib/graph.py @@ -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(