Closed mschiedon closed 1 month ago
I think this issue has been addressed by PR https://github.com/RDFLib/rdflib/pull/2700 but that fix is currently only in the HEAD of this repo, not an RDFlib release yet. It should appear in 7.0.1 or 7.1.0 in the next few weeks when we make that release which will fix a bunch of small things.
I think this issue has been addressed by PR #2700 but that fix is currently only in the HEAD of this repo, not an RDFlib release yet. It should appear in 7.0.1 or 7.1.0 in the next few weeks when we make that release which will fix a bunch of small things.
Excellent, thank you! I can confirm this addresses the issue. Looking forward to the next rdflib
release then 👍
The
longturtle
serializer fails to emit a whitespace separator between a predicate and a list of objects if one of these objects is a blank node (and the blank node cannot be 'inlined', i.e. is used more than once). The problem can be reproduced using this Python code:The resulting Turtle with the bug looks like below. Note the missing space between the predicate
ex:relatedTo
and blank node_:n40fef3a41a034be9a7116df126afd613b1
for theex:1
case. Theex:2
case does correctly use a space separator when serializing because it's a single object and not a list.I believe the issue might be solved by adding an additional indent in the
longturtle.py
source code on this line, as shown in the code below.