If you want to write out the base data in an inference model, without and inferences, then use InfModel.getBaseModel() and write that out.

Dave


On 05/12/2020 03:35, Sushanth Vaddaram wrote:
Hi All,

We were seeing performance issues after restoring data from the backup files , 
upon checking the backup file we found that the inferred data was also being 
added. Is there any way during backup  we remove the inferred data.
Backup sample:
===========
<http://dip.bis.utc.com/7#1-123431-20971632>
         a                     dip:DPLMSWorkpoint , dip:InformationObject , 
dip:SoftPoint , dip:ParameterPoint , rdfs:Resource , dip:TargetValueSetPoint , 
dip:SetPoint , owl:Thing , dip:DataPoint ;

I just want to get the following

<http://dip.bis.utc.com/7#1-123431-20971632>
   a                     dip:DPLMSWorkpoint

My doubt is if we load the inferred triples even that will be loaded in memory 
by reasoner and time will be wasted by the reasoner to analyze inferred data 
during query execution.
                         //fetching data from jena after creating a connection
                         Model model = conn.fetch();
                        // write model to the backup file
                        RDFDataMgr.write(out, model, Lang.TRIG);


Thanks !!!!

Reply via email to