On 07/02/2021 14:35, Sushanth Vaddaram wrote:
HI ,

I am loading a model with around 20 million records using JAVA code, I get the 
following exception


Code:
                RDFConnectionRemoteBuilder builder = 
getRDFConnectionFusekiBuilderForLoadingInfModel();
                try (RDFConnectionFuseki conn = 
(RDFConnectionFuseki)builder.build();
                                InputStream in = new 
FileInputStream(file.getPath());) {
                        // add data from given file

No need to load locally - you can pass the filename to the RDFConnection.

RDFConnection.load(filename)

It is a bit more efficient that way because it sends the file, not parse-serialize-send the RDF.

    Andy

                        Model model = ModelFactory.createOntologyModel();
                        RDFDataMgr.read(model, in, Lang.TRIG);
                        conn.load(model);                       
                        logger.info("loaded bufoon");
                } catch (HttpException e) {
                        handleJenaHttpException(e);
                } catch (IOException e1) {
                        logger.info("Unable to backup due to: " + e1);
                }               


Can someone please help me fix this issue?

Thanks,
Sushanth




Reply via email to