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