Hi Jerven, Remove the ";" after the call to log_enable when passing via Sesame/Java to the Virtuoso engine, it is only required with the "isql' tool typically to terminate statements ...
Best Regards Hugh Williams Professional Services OpenLink Software, Inc. // http://www.openlinksw.com/ Weblog -- http://www.openlinksw.com/blogs/ LinkedIn -- http://www.linkedin.com/company/openlink-software/ Twitter -- http://twitter.com/OpenLink Google+ -- http://plus.google.com/100570109519069333827/ Facebook -- http://www.facebook.com/OpenLinkSoftware Universal Data Access, Integration, and Management Technology Providers On 13 May 2013, at 16:04, Jerven Bolleman <[email protected]> wrote: > Hi All, > > I might be crazy but I would like to wire up bulk loading directly from > my source data to rdf java/sesame process. Without having intermediate > files. So I am trying to call a few inbuilt functions directly from > java. e..g log_enable and checkpoint > > > I tried the following > > Connection vrc = ((VirtuosoRepositoryConnection) > connection).getQuadStoreConnection();, > CallableStatement loggingOff = vrc.prepareCall("log_enable (2);"); > loggingOff.execute(); > > but this fails with the following exception > > virtuoso.jdbc3.VirtuosoException: SQ074: Line 1: syntax error > at virtuoso.jdbc3.VirtuosoResultSet.process_result(Unknown Source) > at virtuoso.jdbc3.VirtuosoResultSet.<init>(Unknown Source) > at virtuoso.jdbc3.VirtuosoPreparedStatement.<init>(Unknown Source) > at virtuoso.jdbc3.VirtuosoCallableStatement.<init>(Unknown Source) > at virtuoso.jdbc3.VirtuosoConnection.prepareCall(Unknown Source) > at virtuoso.jdbc3.VirtuosoConnection.prepareCall(Unknown Source) > > Now, I am wondering is this possible at all? > > Regards, > Jerven > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > Virtuoso-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/virtuoso-users
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________ Virtuoso-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/virtuoso-users
