On 18/12/2020 10:13, Sushanth Vaddaram wrote:
Hi Andy,

Am using TDB2, can we allow two different services to access the same database. 
I thought that can be done in TBD1 and not TDB2 because of locking mechanism.

No problem (TDB1 or TDB2).

There is only ever one database object in the process keyed by location.

So every Fuseki service for the location is actually using the same database.

And declarations can be shared so

service1 -> inference setup -> :database
service2 -> :database

works.

    Andy

Thanks!!!

On 2020/12/18 09:52:26, Andy Seaborne <[email protected]> wrote:


On 17/12/2020 14:53, Sushanth Vaddaram wrote:
We are trying to backup base model from Jena without inferred data using the  
RDFConnectionFuseki connection. Is there any way that can be achieved?

Code:
====
        try (RDFConnectionFuseki conn = (RDFConnectionFuseki)builder.build();
                                OutputStream out = new 
FileOutputStream(file.getPath());) {
                        // fetch model from the Fuseki connection
                        Dataset model = conn.fetchDataset();
                        
                        // write model to the backup file
                        RDFDataMgr.write(out, model, Lang.TRIG);
                } catch (HttpException e) {
                        handleJenaHttpException(e);
                }
The model is writing base model along with inferred data. We want to restrict 
that to base model.

Thanks!!



If you add a fuseki:Service that exposes the base dataset, separately
from the inference fuseki:Service (difefrent fuseki:name), you can
backup without inferred data by access that.

      Andy

Reply via email to