Thanks Andy. That helps. Have an other question, I was trring to insert some data into JENA using the following code
String sparulEndPoint = DipConfiguration.getInstance().getSPARUL_EndPoint(); try { UpdateProcessor upp = UpdateExecutionFactory.createRemote(UpdateFactory.create(query), sparulEndPoint, JenaAuthenticationManager.getJenaHttpClient()); upp.execute(); } catch (QueryExceptionHTTP e) { } This is throwing the following exception, [2021-02-08 20:26:03] Log4jLogger WARN ActionErrorException with cause org.apache.jena.fuseki.servlets.ActionErrorException: Can't become a write transaction at org.apache.jena.fuseki.servlets.ServletOps.errorOccurred(ServletOps.java:165) ~[jena-fuseki-core-3.15.0.jar:3.15.0] at org.apache.jena.fuseki.servlets.SPARQL_Update.execute(SPARQL_Update.java:239) ~[jena-fuseki-core-3.15.0.jar:3.15.0] at org.apache.jena.fuseki.servlets.SPARQL_Update.executeBody(SPARQL_Update.java:183) ~[jena-fuseki-core-3.15.0.jar:3.15.0] at org.apache.jena.fuseki.servlets.SPARQL_Update.execute(SPARQL_Update.java:98) ~[jena-fuseki-core-3.15.0.jar:3.15.0] at org.apache.jena.fuseki.servlets.ActionService.executeLifecycle(ActionService.java:58) ~[jena-fuseki-core-3.15.0.jar:3.15.0] at org.apache.jena.fuseki.servlets.SPARQL_Update.execPost(SPARQL_Update.java:83) ~[jena-fuseki-core-3.15.0.jar:3.15.0] at org.apache.jena.fuseki.servlets.ActionProcessor.process(ActionProcessor.java:34) ~[jena-fuseki-core-3.15.0.jar:3.15.0] at org.apache.jena.fuseki.servlets.ActionBase.process(ActionBase.java:55) ~[jena-fuseki-core-3.15.0.jar:3.15.0] at org.apache.jena.fuseki.servlets.ActionExecLib.execAction(ActionExecLib.java:106) [jena-fuseki-core-3.15.0.jar:3.15.0] at org.apache.jena.fuseki.server.Dispatcher.dispatchAction(Dispatcher.java:113) [jena-fuseki-core-3.15.0.jar:3.15.0] at org.apache.jena.fuseki.server.Dispatcher.process(Dispatcher.java:105) [jena-fuseki-core-3.15.0.jar:3.15.0] at org.apache.jena.fuseki.server.Dispatcher.dispatch(Dispatcher.java:99) [jena-fuseki-core-3.15.0.jar:3.15.0] at org.apache.jena.fuseki.servlets.FusekiFilter.doFilter(FusekiFilter.java:51) [jena-fuseki-core-3.15.0.jar:3.15.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:8.5.46] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.46] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61) [shiro-web-1.5.1.jar:1.5.1] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) [shiro-web-1.5.1.jar:1.5.1] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) [shiro-web-1.5.1.jar:1.5.1] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [shiro-web-1.5.1.jar:1.5.1] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) [shiro-web-1.5.1.jar:1.5.1] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) [shiro-web-1.5.1.jar:1.5.1] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) [shiro-web-1.5.1.jar:1.5.1] Any ideas how this can be resolved? Thanks, Sushanth INSERT DATA { <person0> <firstname> \"Jay\" . } On 2021/02/08 12:05:29, Andy Seaborne <a...@apache.org> wrote: > > 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 > > > > > > > > >