We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from rdflib import Graph g=Graph() g.parse(data='<a:> <b:> <c:> .', format='nt') # nquads also fails
Traceback (most recent call last): File "", line 1, in File "/Library/Python/2.7/site-packages/rdflib/graph.py", line 1039, in parse parser.parse(source, self, **args) File "/Library/Python/2.7/site-packages/rdflib/plugins/parsers/nt.py", line 26, in parse parser.parse(f) File "/Library/Python/2.7/site-packages/rdflib/plugins/parsers/ntriples.py", line 142, in parse raise ParseError("Invalid line: %r" % self.line) rdflib.plugins.parsers.ntriples.ParseError: Invalid line: u'<a:> <b:> <c:> .'
N3, by contrast, succeeds:
g.parse(data='<a:> <b:> <c:> .', format='n3')
Fix is to change: uriref = r'<([^:]+:[^\s"<>]+)>' to: uriref = r'<([^:]+:[^\s"<>]*)>' in ntriples.py.
The text was updated successfully, but these errors were encountered:
Fixed in PR #974
Sorry, something went wrong.
Fixed via 107ffb6. (#974)
nicholascar
No branches or pull requests
Traceback (most recent call last):
File "", line 1, in
File "/Library/Python/2.7/site-packages/rdflib/graph.py", line 1039, in parse
parser.parse(source, self, **args)
File "/Library/Python/2.7/site-packages/rdflib/plugins/parsers/nt.py", line 26, in parse
parser.parse(f)
File "/Library/Python/2.7/site-packages/rdflib/plugins/parsers/ntriples.py", line 142, in parse
raise ParseError("Invalid line: %r" % self.line)
rdflib.plugins.parsers.ntriples.ParseError: Invalid line: u'<a:> <b:> <c:> .'
N3, by contrast, succeeds:
Fix is to change:
uriref = r'<([^:]+:[^\s"<>]+)>'
to:
uriref = r'<([^:]+:[^\s"<>]*)>'
in ntriples.py.
The text was updated successfully, but these errors were encountered: