jena read rdf illegal type exception

107 views Asked by At

I am developing a jena based java program to read large rdf datasets (generated by Berlin Sparql Benchmark) The file is of type .nt and I read it into model with this code

Dataset dataset = TDBFactory.createDataset(tdbPath);
Model model = dataset.getDefaultModel();
InputStream str = FileManager.get().open(data);

Boolean zipped = false;
if (data.substring(data.lastIndexOf('.')).equals(".gz")) 
{
    str = new GZIPInputStream(str);
    zipped = true;
}

model.read(str, null, "N-TRIPLES");

However after a few seconds, I receive the following consolse error

org.apache.jena.riot.RiotException: [line: 10273787, col: 149] Illegal object: [DOUBLE:1862.25e0]   

Any help is highly appreciated

0

There are 0 answers