[ 
https://issues.apache.org/jira/browse/JENA-1242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15558322#comment-15558322
 ] 

Jean-Marc Vanel commented on JENA-1242:
---------------------------------------

Sorry, I actually rewrote my test for the report,
and oversimplified the named graph,
which was actually an absolute URI, but beginning with file: :

{noformat}
graph=file:/home/jmv/bizz/edd-onisep/Lot_3-Conception_et_modelisation/IDEO2/content-types/merge_test.ttl
echo "<urn:s> <urn:p> \"o\" <$graph> ." > triple_to_remove.nq
rm -r TDB
echo "WITH <$graph> DELETE {<urn:s> <urn:p> ?O} WHERE  {<urn:s> <urn:p> ?O} " > 
update.rq
mvn exec:java -Dexec.mainClass="tdb.tdbloader" -Dexec.args="--verbose \
  --loc=TDB triple_to_remove.nq"
mvn exec:java -Dexec.mainClass="tdb.tdbupdate" -Dexec.args="--verbose --loc=TDB 
\
  --update=update.rq"
mvn exec:java -Dexec.mainClass="tdb.tdbdump" -Dexec.args="--verbose --loc=TDB"  
1> /tmp/dump.nq
{noformat}



> SPARQL update: delete a triple fails silently on named graph file:/XX
> ---------------------------------------------------------------------
>
>                 Key: JENA-1242
>                 URL: https://issues.apache.org/jira/browse/JENA-1242
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: $ uname -a 
> Linux jmv-SMBIOSation 4.2.0-42-generic #49-Ubuntu SMP Tue Jun 28 21:26:26 UTC 
> 2016 x86_64 x86_64 x86_64 GNU/Linux
> $ java -version
> openjdk version "1.8.0_91"
> OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)
> OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
> $ which java
> /usr/bin/java
>            Reporter: Jean-Marc Vanel
>
> Delete with SPARQL update a quad in named graph <file:/XX> does not delete 
> anything.
> HOW TO REPRODUCE
> Tested on latest source in github:
> {noformat}
> cd jena-cmds
> echo '<urn:s> <urn:p> "o" <file:XX> .' > triple_to_remove.nq
> echo 'WITH  <file:XX> DELETE {<urn:s> <urn:p> ?O} WHERE  {<urn:s> <urn:p> ?O} 
> ' \
>   > update.rq
> mvn exec:java -Dexec.mainClass="tdb.tdbloader" \
>   -Dexec.args="--verbose --loc=TDB triple_to_remove.nq"
>  mvn exec:java -Dexec.mainClass="tdb.tdbupdate" \
>   -Dexec.args="--verbose --loc=TDB --update=update.rq"
>  mvn exec:java -Dexec.mainClass="tdb.tdbdump" \
>   -Dexec.args="--verbose --loc=TDB"  1> /tmp/dump.nq
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to