You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "maltzinger (via GitHub)" <gi...@apache.org> on 2026/04/27 11:20:42 UTC

[I] Deleting RDF-star statements is not Working [jena]

maltzinger opened a new issue, #3883:
URL: https://github.com/apache/jena/issues/3883

   ### Version
   
   6.0.0
   
   ### What happened?
   
   Minimal (not) working example:
   Entering [exemplary DELETE DATA statement](https://w3c.github.io/rdf-star/cg-spec/editors_draft.html#example-30):
   
   ```
   PREFIX : <http://www.example.org/>
   
   DELETE DATA {
     :alice :claims << :bob :age 23 >> .
   }
   ```
   
   via the Web-UI and the `/update` SPARQL-Endpoint.
   
   Expected Behaviour:
   Return a successful update message (even if the statement was not in the graph, as per the community spec)
   
   Actual Behaviour:
   Get the error message `Line 4, column 18: Blank nodes not allowed in DELETE templates`.
   
   ### Relevant output and stacktrace
   
   ```shell
   
   ```
   
   ### Are you interested in making a pull request?
   
   None


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] Deleting RDF-star statements is not Working [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #3883:
URL: https://github.com/apache/jena/issues/3883#issuecomment-4326786553

   Jena support RDF 1.2
   
   In RDF-star, `<<>>` was a kind of RDF term but was often used as an occurrence, not as a triple term.
   
   In RDF 1.2 `<< :s :p :o >>` is a Turtle syntax form equivalent form (c.f. lists) for an occurrence and the triple term is `<<( ... )>>`
   
   ```turtle
     :alice :claims << :bob :age 23 >> .
   ```
   becomes the triples
   ```turtle
     :alice :claims _:b .
     _:b rdf:reifies <<( :bob :age 23 )>> .
   ```
   That is where the blank node is coming from.
   
   You use use a variable to find the blank node
   
   ```sparql
   DELETE WHERE { :alice :claims << :bob :age 23 ~ ?R >> }
   ```
   
   or give URIs to reifications in the data.
   
   ```turtle
   :alice :claims << :bob :age 23 ~ :r >> .
   :alice :claims :r .
   :r rdf:reifies <<( :bob :age 23 )>> .
   ```
   ```sparql
   DELETE DATA {  :alice :claims << :bob :age 23 ~:r >> . }
   ```
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] Deleting RDF-star statements is not Working [jena]

Posted by "maltzinger (via GitHub)" <gi...@apache.org>.
maltzinger commented on issue #3883:
URL: https://github.com/apache/jena/issues/3883#issuecomment-4333793073

   Thank you for your quick response! With the snippets you supplied, it worked like a charm.
   
   That Jena supports RDF 1.2 instead of RDF-star was not clear to me, as it is stated in an unclear manner on different [pages](https://jena.apache.org/documentation/fuseki2/rdf-sparql-standards.html) of their [website](https://jena.apache.org/documentation/rdf-star/).
   
   I apologise for my lack of research and thank you for your knowledge! 
   I will close this issue, then.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] Deleting RDF-star statements is not Working [jena]

Posted by "maltzinger (via GitHub)" <gi...@apache.org>.
maltzinger closed issue #3883: Deleting RDF-star statements is not Working
URL: https://github.com/apache/jena/issues/3883


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org