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