RDFLib/rdflib — Issue #60: RDFLib choking during graph parse on DBpedia infobox ontology data in NT format
Author: gjhiggins
Created: 2012-02-20 08:31:42+00:00
State: open

noandr...@gmail.com, 2009-05-20T16:31:49.000Z

What steps will reproduce the problem?
1. Download latest DBPedia Infobox ontology data in NT format
2. Attempt to parse it using
3.

What is the expected output? What do you see instead?

I expect the parse to succeed, or to make note of the problematic line and
continue loading rather than aborting and losing all previous results.

The error is:

rdflib.syntax.parsers.ntriples.ParseError: Invalid line:
' .'

Running this script:

import time
from rdflib.graph import Graph
g = Graph()
start = time.time()
g.parse("infobox-mappingbased-loose.nt", format="nt")
end = time.time()
elapsed = end - start

What version of the product are you using? On what operating system?

Latest source from svn.

Please provide any additional information below.

Python 2.6

Comment 1 by noandr...@gmail.com
I also tested with the C RDF library Raptor, which parsed all of the DBPedia NT
dataset OK.

Comment 2 by eik...@gmail.com