[ https://issues.apache.org/jira/browse/JENA-1092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15057718#comment-15057718 ]
ASF subversion and git services commented on JENA-1092: ------------------------------------------------------- Commit f33f205843c5d53950c234064bb6eca08aeecae5 in jena's branch refs/heads/master from [~andy.seaborne] [ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=f33f205 ] JENA-1092: Rewrite constants quads for insert/delete + WITH > WITH statement doesn't work > --------------------------- > > Key: JENA-1092 > URL: https://issues.apache.org/jira/browse/JENA-1092 > Project: Apache Jena > Issue Type: Bug > Affects Versions: Jena 3.0.1 > Environment: Ubuntu 12.04 > java version "1.8.0_66" > Reporter: Osma Suominen > Assignee: Andy Seaborne > > I found a possible problem with WITH statements in SPARQL Update queries. > They do not seem to affect the INSERT clause in the expected way. The > behaviour appears to have changed since Jena 3.0.0. > To reproduce: > 1. Start Fuseki 1.3.1: > ./fuseki-server --update --mem /ds > 2. Create a triple in the <http://example.com/> graph: > {noformat} > PREFIX ex: <http://example.com/> > INSERT DATA { GRAPH ex: { ex:s ex:p ex:o }} > {noformat} > 3. Run an update query using WITH: > {noformat} > PREFIX ex: <http://example.com/> > WITH ex: > INSERT { ex:s2 ex:p2 ex:o2 } > WHERE { ?s ?p ?o } > {noformat} > 4. Check what you end up in the <http://example.com/> graph: > {noformat} > PREFIX ex: <http://example.com/> > SELECT * WHERE { GRAPH ex: { ?s ?p ?o }} > {noformat} > Result: > {noformat} > ---------------------- > | s | p | o | > ====================== > | ex:s | ex:p | ex:o | > ---------------------- > {noformat} > I would expect there to be the other triple {{ex:s2 ex:p2 ex:o2}} too, but > apparently that ends up in the default graph instead. > When using Fuseki 1.3.0 I get both triples in the <http://example.com/> > graph, which I think is the correct behaviour. -- This message was sent by Atlassian JIRA (v6.3.4#6332)