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(QueryIteratorBase.java:124) at com.hp.hpl.jena.query.engine.QueryIteratorBase.next(QueryIteratorBase.java:107) at com.hp.hpl.jena.query.engine.ResultSetStream.nextBinding(ResultSetStream.java:76) at com.hp.hpl.jena.query.engine.ResultSetStream.nextSolution(ResultSetStream.java:93) at nlpreduce.lexicon.Lexicon.loadOntology(Lexicon.java:181) at nlpreduce.NlpReduceGUI.main(NlpReduceGUI.java:65)

What's the mistake?

asked 21 Feb '13, 07:38

byteofprash's gravatar image

byteofprash
955
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, 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, 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 ♦
13.6k37
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×276

question asked: 21 Feb '13, 07:38

question was seen: 1,022 times

last updated: 24 Mar, 02:40