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
Here is a test showing a statement with a IRI that does not match the IRIREF production, which is parsed without error and serialized without escaping.
constassert=require('assert');constcanonize=require('.');constNQuads=require('./lib/NQuads');functionassertIsCanonical(line){varstmt=NQuads.parse(line)[0]varout=NQuads.serializeQuad(stmt);assert.equal(line,out);}// this should fail, but it currently passes:assertIsCanonical('<urn:ex:s"{}\t|^`\\> <urn:ex:016> "asdf" .\n')
In
lib/NQuads.js
, string literals are escaped. But IRIs are not.RDF 1.1 N-Quads includes this production:
Here is a test showing a statement with a IRI that does not match the IRIREF production, which is parsed without error and serialized without escaping.
I also opened an issue about this on the test suite:
w3c-ccg/rdf-dataset-canonicalization#15
The text was updated successfully, but these errors were encountered: