-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in longturtle
serialization
#2767
Comments
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 |
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.The text was updated successfully, but these errors were encountered: