You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The serializer to NQuads (and turtle and others) uses the stringToN3 function to convert the value of a string literal to a safe string in the output syntax.
However, the code uses the triple quote """ as delimiter for strings that contain a newline or a quote " character:
The serializer to NQuads (and turtle and others) uses the
stringToN3
function to convert the value of a string literal to a safe string in the output syntax.However, the code uses the triple quote
"""
as delimiter for strings that contain a newline or a quote"
character:rdflib.js/src/serializer.js
Lines 584 to 589 in cfc0f8c
This is not a valid serialization for NQuads, see the literal production grammar:
https://www.w3.org/TR/n-quads/#grammar-production-literal
The
stringToN3
function should use the normal escaping using a backslash, i.e.\n
and\"
.The text was updated successfully, but these errors were encountered: