[
https://issues.apache.org/jira/browse/JENA-1242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15558339#comment-15558339
]
Andy Seaborne commented on JENA-1242:
-------------------------------------
It is {{file:///}} after resolving.
{{file:}} URLs are not very well defined as to how to resolve them but they do,
in theory, have a host component which is always empty. Jena uses {{file:///}}
as the canonical form. Jena should at least be systematic in its treatment of
"file:".
("absolute URI" is a bit confusing as well - it just means "has a scheme name"
so when I said "relative URI" I was meaning "for the file: scheme". Yes - it
can be a absolute URI with scheme-specific relative path!)
Maybe {{tdbloader}} needs to output warnings although my experience is that
there are many public datasets with imperfect URIs.
> 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)