rdflib.js icon indicating copy to clipboard operation
rdflib.js copied to clipboard

serializer for application/nquads should not use long literal

Open josephguillaume opened this issue 4 years ago • 0 comments

serialize currently outputs quads that use long literals, but the spec apparently does not permit this: Literals may not contain the characters ", LF, or CR. https://www.w3.org/TR/n-quads/#h3_sec-literals

This breaks compatibility with the nquads parser in jsonld.js: https://github.com/digitalbazaar/jsonld.js/issues/44

josephguillaume avatar Nov 01 '20 11:11 josephguillaume