You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Michal Pietrusinski (Jira)" <ji...@apache.org> on 2022/02/10 14:41:00 UTC

[jira] [Created] (JENA-2280) Invalid results of SPARQL query with a federated subquery

Michal Pietrusinski created JENA-2280:
-----------------------------------------

             Summary: Invalid results of SPARQL query with a federated subquery
                 Key: JENA-2280
                 URL: https://issues.apache.org/jira/browse/JENA-2280
             Project: Apache Jena
          Issue Type: Bug
          Components: Fuseki
    Affects Versions: Jena 4.4.0, Jena 4.3.2, Jena 4.3.1
            Reporter: Michal Pietrusinski


In Fuseki I created on dataset named "test".

The following query gives 1 result with an empty string, whereas the expected value is "test"
{code:java}
SELECT ?temp
WHERE {
  {
    SELECT (?value as ?temp) {
      { SERVICE <http://localhost:3030/test/query> {          
          VALUES ?value \{ "test" }  
        }
      }
    }    
  }  
}
{code}
However the following query returns the correct result "test".
{code:java}
SELECT *
WHERE {
  {
    SELECT (?value as ?temp) {
      { SERVICE <http://localhost:3030/test/query> {          
          VALUES ?value \{ "test" }  
        }
      }
    }    
  }  
}
{code}
Both of these queries work fine on an older Fuseki release 4.1.0



--
This message was sent by Atlassian Jira
(v8.20.1#820001)