afs opened a new issue, #1399:
URL: https://github.com/apache/jena/issues/1399

   ### Version
   
   4.6.0-SNAPSHOT
   
   ### What happened?
   
   Executing a query involving `SERVICE` with an empty context does not work 
because there is no default service execution.
   
   @Aklakan - for your improvements in this area, could you please ensure that 
it executes when the context does not have a setting for 
`ARQConstants.registryServiceExecutors`.
   
   
   ### Which environment is running?
   
   - [ ] macOS
   - [ ] Windows
   - [X] Linux
   - [ ] other
   
   ### Relevant output and stacktrace
   
   ```shell
   public static void main(String...args) {
           FusekiLogging.setLogging();
           FusekiServer server = FusekiServer.create()
                   .port(0)
                   .add("/ds",  DatasetGraphFactory.empty())
                   .start();
           String SERVICE = "http://localhost:"+server.getPort()+"/ds";
           Node expected = NodeFactory.createLiteral("28181", 
XSDDatatype.XSDinteger);
           String queryString = "SELECT * { SERVICE <"+SERVICE+"> { VALUES ?x { 
28181 } } }";
           // Empty context
           Context cxt = new Context();
           //Context cxt = ARQ.getContext().copy();
           RowSet rs = QueryExec.dataset(DatasetGraphFactory.empty())
                   .query(queryString)
                   .context(cxt)
                   .select()
                   .materialize();
           assertTrue(rs.hasNext());
           Node n = rs.next().get("x");
           assertEquals(expected, n);
       }
   ```
   
   
   ### Are you interested in making a pull request?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to