diff --git a/src/omero_rdf/__init__.py b/src/omero_rdf/__init__.py index b6aeb0a..be658d2 100644 --- a/src/omero_rdf/__init__.py +++ b/src/omero_rdf/__init__.py @@ -137,7 +137,7 @@ def __init__(self): def serialize_triple(self, triple): s, p, o = triple escaped = o.n3().encode("unicode_escape").decode("utf-8") - print(f"""{s.n3()}\t{p.n3()}\t{escaped} .""") + return f"""{s.n3()}\t{p.n3()}\t{escaped} .""" class NonStreamingFormat(Format):