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?
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.
answered 21 Feb, 14:43