Hi,

Although you are correct this should be ?g in both cases, it does not fix 
the issue.

Met Vriendelijke Groet / With Kind Regards
Bart van Leeuwen


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




From:   Paul Hermans <[email protected]>
To:     "[email protected]" <[email protected]>
Date:   22-05-2018 15:38
Subject:        Re: Update Query Parsing error



Bart,

Graph ?x <-> graph ?g ?


Paul


On 22 May 2018 at 15:24:33, Bart van Leeuwen ([email protected]<
mailto:[email protected]>) wrote:

Hi,

On Jena 3.7.0

The following the query ( which is accepted by Stardog on the console )

DELETE { Graph ?g { ?resultset <
http://vocab.resc.info/insight#organization>  <
http://data.resc.info/data/stations/BrandweerAmsterdamAmstelland>}}
WHERE { Graph ?x {
        ?resultset a <http://data.resc.info/insight#Resultset> .
        ?resultset  <http://purl.org/dc/terms/identifier> 
"00b36dabd8f846f6b53375abf5fe8ad9"
}}

causes the following error:

Exception in thread "main" org.apache.jena.query.QueryException
        at 
org.apache.jena.sparql.lang.ParserSPARQL11Update._parse(ParserSPARQL11Update.java:84)
        at 
org.apache.jena.sparql.lang.ParserSPARQL11Update.parse$(ParserSPARQL11Update.java:40)
        at 
org.apache.jena.sparql.lang.UpdateParser.parse(UpdateParser.java:39)
        at 
org.apache.jena.update.UpdateFactory.make(UpdateFactory.java:87)
        at 
org.apache.jena.update.UpdateFactory.create(UpdateFactory.java:78)
        at 
org.apache.jena.update.UpdateFactory.create(UpdateFactory.java:56)
        at 
org.apache.jena.update.UpdateFactory.create(UpdateFactory.java:46)
        at com.complexible.stardog.examples.jena.App.main(App.java:90)
Caused by: java.lang.NullPointerException
        at org.apache.jena.query.ARQ.isTrue(ARQ.java:650)
        at 
org.apache.jena.sparql.lang.ParserBase.<init>(ParserBase.java:292)
        at 
org.apache.jena.sparql.lang.SPARQLParserBase.<init>(SPARQLParserBase.java:43)
        at 
org.apache.jena.sparql.lang.sparql_11.SPARQLParser11Base.<init>(SPARQLParser11Base.java:22)
        at 
org.apache.jena.sparql.lang.sparql_11.SPARQLParser11.<init>(SPARQLParser11.java:4974)
        at 
org.apache.jena.sparql.lang.ParserSPARQL11Update._parse(ParserSPARQL11Update.java:57)
        ... 7 more

Met Vriendelijke Groet / With Kind Regards
Bart van Leeuwen

[cid:_2_0CAA71FC0CAA6FA40049A159C1258295]
twitter: @semanticfire
tel. +31(0)6-53182997
Netage B.V.
http://netage.nl<http://netage.nl/>
Esdoornstraat 3
3461ER Linschoten
The Netherlands
[cid:_2_0CAA86AC0CAA84240049A159C1258295]
Kind Regards,
Paul Hermans
-------------------------
ProXML bvba
Linked Data services
KBO: http://data.kbodata.be/organisation/0476_068_080#id
(w) www.proxml.be<http://www.proxml.be/>
(e) [email protected]<mailto:[email protected]>
(tw) @PaulZH
(t) +32 15 23 00 76<tel://+32%2015%2023%2000%2076>
(m) +32 473 66 03 20<tel://+32%20473%2066%2003%2020>
Narcisweg 17
3140 Keerbergen
Belgium

ODEdu – Innovative Open Data Education and Training based on PBL and 
Learning Analytics - http://odedu-project.eu/
OpenGovIntelligence – Public Administration Modernization by exploiting 
Linked Open Statistical Data - http://www.opengovintelligence.eu<
http://www.opengovintelligence.eu/>
OpenCube – Linked Open Statistical Data - http://opencube-project.eu/



Reply via email to