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

   ### Version
   
   4.6.0-SNAPSHOT
   
   ### What happened?
   
   While creating an assembler config that creates two services with different 
configurations over the same spatial dataset we noticed that the spatial index 
was unexpectedly loaded twice. The assembler framework documentation suggests 
that - by default - the same Java object created from an RDF resource should be 
reused wherever that RDF resource is referenced in the assembler spec.
   However, in the code, the Mode flag is eventually ignored and always a fresh 
Java object is returned:
   
   ```java
   public abstract class DatasetAssembler {
       @Override
       public Dataset open(Assembler a, Resource root, Mode mode) {
           DatasetGraph dsg = createDataset(a, root) ;
           return DatasetFactory.wrap(dsg);
       }
   }
   ```
   I am not yet sure of the assembler life-cycle: Whether the cache of created 
objects would have to be an additional argument to the assembler, or whether it 
can be an attribute of the assembler.
   
   
   ### Relevant output and stacktrace
   
   _No response_
   
   ### Are you interested in making a pull request?
   
   Maybe


-- 
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