Skip to content
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

Turtle serializer : no whitespace between colon and dot when a prefixed symbol has no local name #542

Closed
pduchesne opened this issue Jan 13, 2022 · 0 comments · Fixed by #543
Assignees
Labels

Comments

@pduchesne
Copy link
Contributor

If a prefixed symbol is a statement's object and has no local name, it results in a colon immediately followed by a dot, e.g. example:subject example:pred example:.
In particular, the automatic prefix production of the turtle serializer produces such outputs if a symbol has a trailing slash.

While this is syntactically valid as per the turtle grammar, some other tools do not handle this well (e.g. RDFLib/rdflib , cf RDFLib/rdflib#1664) and require a whitespace between the colon and the dot.
In the sake of cross-ecosystems interoperability, fixing this would be an easy win.

@bourgeoa bourgeoa added this to rdflib Jan 13, 2022
@bourgeoa bourgeoa moved this to In Review in rdflib Jan 13, 2022
pduchesne added a commit to pduchesne/rdflib.js that referenced this issue Jan 14, 2022
pduchesne added a commit to pduchesne/rdflib.js that referenced this issue Jan 18, 2022
Repository owner moved this from In Review to Done in rdflib Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants