gjhiggins/rdflib — Issue #11: N3 literal parsing failes on \t
Author: gjhiggins
Created: 2011-10-19 00:53:28+00:00
State: open
Labels: Type-Defect

Originally filed by hannes.g...@gmail.com on 2008-01-23T10:32:30

When I try to parse an N3, I get an error when a literal contains a \t. But
\t is defined to be in N3 strings.

I suspect the failure is in n3proc's unquote:

>>> from rdflib.syntax.parsers.n3p.n3proc import unquote
>>> unquote("\t")
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.linux-i686/egg/rdflib/syntax/parsers/n3p/n3proc.py",
line 85, in unquote
rdflib.syntax.parsers.n3p.n3proc.ParseError: Illegal literal character: '\t'