In NLP Reduce we can load any ontology as an argument. I tried downloading DBpedia's Ontology from it's site and tried it with NLPReduce, but I get this error?

Exception in thread "main" java.util.NoSuchElementException: QueryIterDistinct at com.hp.hpl.jena.query.engine.QueryIteratorBase.nextBinding( at at com.hp.hpl.jena.query.engine.ResultSetStream.nextBinding( at com.hp.hpl.jena.query.engine.ResultSetStream.nextSolution( at nlpreduce.lexicon.Lexicon.loadOntology( at nlpreduce.NlpReduceGUI.main(

What's the mistake?

asked 21 Feb '13, 07:38

byteofprash's gravatar image

accept rate: 0%

edited 21 Feb '13, 07:44

i too got the same error, when i tried to do it with my own ontology. could you solve it ?

(24 Mar '14, 02:18) viji viji's gravatar image

@viji please don't post comments as answers. I've converted your answer to a comment for you this time around.

(24 Mar '14, 02:40) Jeen Broekstra ♦ Jeen%20Broekstra's gravatar image

Looks like nlpreduce.lexicon.Lexicon.loadOntology is calling .next() after an iterator./resultset has finished. That's a bug in NLP Reduce - it either should check with .hasNext or catch the exception. You need to contact the creators.

permanent link

answered 21 Feb '13, 14:43

AndyS's gravatar image

AndyS ♦
accept rate: 33%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 21 Feb '13, 07:38

question was seen: 1,441 times

last updated: 24 Mar '14, 02:40