com.hp.hpl.jena.query.QueryParseException: Variable used when already in-scope: ?v1 in ((AGG ?.0 count(?y0)) AS ?v1)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by KonradHoeffner
, 1 year ago
Variable used when already in-scope: ?v1 in ((AGG ?.0 count(?y0)) AS ?v1)
com.hp.hpl.jena.query.QueryParseException: Variable used when already in-scope: ?v1 in ((AGG ?.0 count(?y0)) AS ?v1)
at com.hp.hpl.jena.sparql.lang.SyntaxVarScope.checkAssignment(SyntaxVarScope.java:189)
at com.hp.hpl.jena.sparql.lang.SyntaxVarScope.checkExprListAssignment(SyntaxVarScope.java:141)
at com.hp.hpl.jena.sparql.lang.SyntaxVarScope.checkQueryScope(SyntaxVarScope.java:92)
at com.hp.hpl.jena.sparql.lang.SyntaxVarScope.check(SyntaxVarScope.java:66)
at com.hp.hpl.jena.sparql.lang.SPARQLParser.validateParsedQuery(SPARQLParser.java:56)
at com.hp.hpl.jena.sparql.lang.ParserSPARQL11.parse$(ParserSPARQL11.java:54)
at com.hp.hpl.jena.sparql.lang.SPARQLParser.parse(SPARQLParser.java:37)
at com.hp.hpl.jena.query.QueryFactory.parse(QueryFactory.java:139)
at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:79)
at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:52)
at com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:40)
at com.hp.hpl.jena.query.QueryExecutionFactory.makeQuery(QueryExecutionFactory.java:565)
at com.hp.hpl.jena.query.QueryExecutionFactory.create(QueryExecutionFactory.java:192)
at org.aksw.autosparql.tbsl.gui.vaadin.TBSLManager.executeSelect(TBSLManager.java:959)
at org.aksw.autosparql.tbsl.gui.vaadin.TBSLManager.fetchResult(TBSLManager.java:415)
at org.aksw.autosparql.tbsl.gui.vaadin.TBSLManager.createAnswer(TBSLManager.java:384)
at org.aksw.autosparql.tbsl.gui.vaadin.TBSLManager.answerQuestion(TBSLManager.java:345)
at org.aksw.autosparql.tbsl.gui.vaadin.view.MainView$11.run(MainView.java:504)
at java.lang.Thread.run(Thread.java:744)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.