I ran with 3.7.0 (and 3.6.0 and 3.5.0)

     public static void main(String... args) {
         JenaSystem.DEBUG_INIT = true;
         String update = "INSERT DATA {}";
         UpdateFactory.create(update);
         System.out.println("DONE");
     }

and

   public static void main(String... args) {
        JenaSystem.DEBUG_INIT = true;
        JenaSystem.init();
        ARQ.getContext().isTrue(ARQ.constantBNodeLabels) ;
        String update = "INSERT DATA {}";
        UpdateFactory.create(update);
        System.out.println("DONE");
     }

and get

JenaSystem.init - start
Found:
  InitTDB              [40]
  InitRIOT             [20]
  InitARQ              [30]
  InitJenaCore         [10]
  InitTDB2             [42]
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Initialization sequence:
  JenaInitLevel0       [0]
  InitJenaCore         [10]
  InitRIOT             [20]
  InitARQ              [30]
  InitTDB              [40]
  InitTDB2             [42]
Init: JenaInitLevel0
Init: InitJenaCore
JenaCore.init - start
JenaCore.init - finish
Init: InitRIOT
RIOT.init - start
RIOT.init - finish
Init: InitARQ
ARQ.init - start
ARQ.init - finish
Init: InitTDB
TDB.init - start
TDB.init - finish
Init: InitTDB2
TDB2.init - start
TDB.init - finish
JenaSystem.init - finish
DONE

the POM has:

    <dependency>
      <groupId>org.apache.jena</groupId>
      <artifactId>apache-jena-libs</artifactId>
      <version>${ver.jena}</version>
      <type>pom</type>
    </dependency>

    Andy

On 23/05/18 16:00, Bart van Leeuwen wrote:
and with 3.7 ?

Met Vriendelijke Groet / With Kind Regards
Bart van Leeuwen


twitter: @semanticfire
tel. +31(0)6-53182997
Netage B.V.
http://netage.nl <http://netage.nl/>
Esdoornstraat 3
3461ER Linschoten
The Netherlands




From: ajs6f <[email protected]>
To: [email protected]
Date: 23-05-2018 16:24
Subject: Re: Update Query Parsing error
------------------------------------------------------------------------



Runs fine for me against current master.

ajs6f

> On May 23, 2018, at 7:40 AM, Bart van Leeuwen <[email protected]> wrote:
 >
 > I mean this:
 >
 > #####
 >
 > public static void main(String[] args) throws Exception {
 >                 JenaSystem.DEBUG_INIT = true;
 >         JenaSystem.init();
 >         ARQ.getContext().isTrue(ARQ.constantBNodeLabels) ;
 >
 > ####
 >
 > which crashes at the ARQ line.
 >
 >
 > Met Vriendelijke Groet / With Kind Regards
 > Bart van Leeuwen
 >
 >
 > twitter: @semanticfire
 > tel. +31(0)6-53182997
 > Netage B.V.
 > http://netage.nl <http://netage.nl/>
 > Esdoornstraat 3
 > 3461ER Linschoten
 > The Netherlands
 >
 >
 >
 >
 > From:        Andy Seaborne <[email protected]>
 > To:        [email protected]
 > Date:        23-05-2018 13:39
 > Subject:        Re: Update Query Parsing error
 >
 >
 >
 >
 >
 > On 23/05/18 12:15, Bart van Leeuwen wrote:
> > I just tried your little addition and indeed it crashes before the update.
 > > So what's next ?
 >
 > To be clear here - you mean this:
 >
 >  public static void main(String[] args) throws Exception {
 >         JenaSystem.DEBUG_INIT = true;
 >         JenaSystem.init();
 >         ARQ.getContext().isTrue(ARQ.constantBNodeLabels) ;
 >
 > not the complete "main" below.
 >
 > What got printed by DEBUG_INIT?
 >
 >     Andy
 >
 > >
 > > Met Vriendelijke Groet / With Kind Regards
 > > Bart van Leeuwen
 > >
 > >
 > > twitter: @semanticfire
 > > tel. +31(0)6-53182997
 > > Netage B.V.
 > > http://netage.nl <http://netage.nl/><http://netage.nl/>
 > > Esdoornstraat 3
 > > 3461ER Linschoten
 > > The Netherlands
 > >
 > >
 > >
 > >
 > > From: Andy Seaborne <[email protected]>
 > > To: [email protected]
 > > Date: 23-05-2018 13:11
 > > Subject: Re: Update Query Parsing error
> > ------------------------------------------------------------------------
 > >
 > >
 > >
 > > This code has the same Jena sequence without the StarDog code:
 > >
 > > The stacktrace indicates an exception before parsing even starts so the
 > > update itself is not a factro.
 > >
 > >      public static void main(String... args) {
 > >          JenaSystem.DEBUG_INIT = true;
 > >          String update = "INSERT DATA {}";
 > >          UpdateFactory.create(update);
 > >          System.out.println("DONE");
 > >      }
 > >
 > > This works for me with a maven dependency on
 > > org.apache.jena:apache-jena-libs:pom:3.7.0
 > >
 > >      Andy
 > >
 > >
 >
 >



Reply via email to