N-triples parser not in line with N-triples specification #1557
Replies: 3 comments 1 reply
-
This is a duplicate of #1245 In 2004 the first example of an NTriples grammar was published in the RDF-testcases v1.0 2004 document here: https://www.w3.org/TR/2004/REC-rdf-testcases-20040210 A python reference implementation of that grammar was written by the W3C and became incorporated into RDFlib. That grammar became widespread and went on to become what we call NTriples 1.0. In 2014 the NTriples v1.1 format specification was published: (the one you linked to: https://www.w3.org/TR/n-triples/) |
Beta Was this translation helpful? Give feedback.
-
@gjhiggins should this not be a bug? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
while trying to parse an n-triples with rdflib version 4.2.2
an error is thrown:
The traceback suggests the object-URI has to match the
<([^:]+:[^\s"<>]+)>
regex which is not in line with the n-triples specification (8th statement of the https://www.w3.org/TR/n-triples/#n-triples-grammar) which doesn't require the IRIREF to contain a semicolon and allows it to contain unicode escape sequences.Beta Was this translation helpful? Give feedback.
All reactions