You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Sushanth Vaddaram <su...@gmail.com> on 2020/12/05 03:35:45 UTC

Backup Jena Without Inferred Data

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

Re: Backup Jena Without Inferred Data

Posted by Dave Reynolds <da...@gmail.com>.
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 !!!!
>