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

GitHub | KonradHoeffner | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Oxford error "Give me all houses with 2 rooms." Variable used when already in-scope

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

    Root Cause Analysis

    1. 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()
    2. Apache Jena - ARQ (SPARQL 1.1 Query Engine)
      QueryExecutionFactory.create
      1. com.hp.hpl.jena.sparql.lang.SyntaxVarScope.checkAssignment(SyntaxVarScope.java:189)
      2. com.hp.hpl.jena.sparql.lang.SyntaxVarScope.checkExprListAssignment(SyntaxVarScope.java:141)
      3. com.hp.hpl.jena.sparql.lang.SyntaxVarScope.checkQueryScope(SyntaxVarScope.java:92)
      4. com.hp.hpl.jena.sparql.lang.SyntaxVarScope.check(SyntaxVarScope.java:66)
      5. com.hp.hpl.jena.sparql.lang.SPARQLParser.validateParsedQuery(SPARQLParser.java:56)
      6. com.hp.hpl.jena.sparql.lang.ParserSPARQL11.parse$(ParserSPARQL11.java:54)
      7. com.hp.hpl.jena.sparql.lang.SPARQLParser.parse(SPARQLParser.java:37)
      8. com.hp.hpl.jena.query.QueryFactory.parse(QueryFactory.java:139)
      9. com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:79)
      10. com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:52)
      11. com.hp.hpl.jena.query.QueryFactory.create(QueryFactory.java:40)
      12. com.hp.hpl.jena.query.QueryExecutionFactory.makeQuery(QueryExecutionFactory.java:565)
      13. com.hp.hpl.jena.query.QueryExecutionFactory.create(QueryExecutionFactory.java:192)
      13 frames
    3. org.aksw.autosparql
      MainView$11.run
      1. org.aksw.autosparql.tbsl.gui.vaadin.TBSLManager.executeSelect(TBSLManager.java:959)
      2. org.aksw.autosparql.tbsl.gui.vaadin.TBSLManager.fetchResult(TBSLManager.java:415)
      3. org.aksw.autosparql.tbsl.gui.vaadin.TBSLManager.createAnswer(TBSLManager.java:384)
      4. org.aksw.autosparql.tbsl.gui.vaadin.TBSLManager.answerQuestion(TBSLManager.java:345)
      5. org.aksw.autosparql.tbsl.gui.vaadin.view.MainView$11.run(MainView.java:504)
      5 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)
      1 frame