rvesse commented on issue #3267: URL: https://github.com/apache/jena/issues/3267#issuecomment-2990913891
I assume this is a simplified example but I think the reason it doesn't work is because ARQ is implementing the SPARQL Update spec strictly, more specifically [Section 3.1.1 INSERT DATA](https://www.w3.org/TR/sparql11-update/#insertData) which says: > Blank nodes in QuadDatas are assumed to be disjoint from the blank nodes in the Graph Store, i.e., will be inserted with "fresh" blank nodes. In the substitution case your update ends up being the following: ```sparql PREFIX : <http://example.org/> INSERT { _:someBlankNode :p :o } WHERE { } ``` So `_:someBlankNode` is used to generate a fresh blank node for each solution from the `WHERE` clause. Assuming this is some kind of Jena backed storage you may be able to use ARQs blank node URI form i.e. `NodeFactory.createURI("_:" + blankNode.getBlankNodeLabel())` and pass that in the binding. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
