linkeddata / rdflib.js

Linked Data API for JavaScript
http://linkeddata.github.io/rdflib.js/doc/
Other
564 stars 143 forks source link

turtle serialization : add whitespace between colon and dot #543

Closed pduchesne closed 2 years ago

pduchesne commented 2 years ago

Fixes #542

bourgeoa commented 2 years ago

If the code is actually correct from spec perspective why not change the other libraries that refuse it ? Manually made turtle with dot without space will still be refused by other libraries.

TallTed commented 2 years ago

@bourgeoa -- Postel's Law dictates that this is the best choice -- i.e., be liberal in what you accept, and conservative in what you generate. At some point in the future, the tools that choke on prefix:. may be fixed, but until that point, it's trivial (as demonstrated by this PR) to make rdflib.js emit prefix: . (and still to accept prefix:.).