Corrected n3 method of path objects (fixes #2503) by lukasmu · Pull Request #2504 · RDFLib/rdflib (original) (raw)

Summary of changes

This is an attempt to fix #2503. Previously, the n3 method of path objects returned unexpected/invalid strings when the path objects were non-trivial (i.e. nested, consisting of property path groups). Examples can be found in the related issue and the tests.

This change fixes a bug. It might impact on users that previously relied on the invalid implementation of the n3 method. Not sure if/where this should be added to the documentation.

Checklist