OWL2SPARQL icon indicating copy to clipboard operation
OWL2SPARQL copied to clipboard

Variable name might be wrong for the convert method of the OWLClassExpressionToSPARQLConverter class.

Open yayamamo opened this issue 4 years ago • 0 comments

Even though the second argument of the convert method of the OWLClassExpressionToSPARQLConverter class is like "?s", the following exception occurs. It might be due to the variable name of the method is "String rootVariable" whereas the one in the createSelectClause method is "Stack<String> variables". If not, could you let me know why this exception occurs? I use 0.1-SNAPSHOT of owl2sparql-core.

Exception in thread "main" java.util.NoSuchElementException
	at java.util.Vector.firstElement(Vector.java:489)
	at org.aksw.owl2sparql.OWLClassExpressionToSPARQLConverter.createSelectClause(OWLClassExpressionToSPARQLConverter.java:343)
	at org.aksw.owl2sparql.OWLClassExpressionToSPARQLConverter.convert(OWLClassExpressionToSPARQLConverter.java:125)
...

yayamamo avatar Nov 24 '20 15:11 yayamamo