when updating a node, you have to save the node twice to see the update in the endpoint. that's because we're passing a nid to rdfx_get_rdf_model(), instead of the node itself in hook_node_update().
Steps to reproduce:
- install SPARQL Endpoint and all its dependencies
- create a node of type article
- check the sparql endpoint and note the value of the title of that note
- edit the node, modify its title, and save the node
- check the sparql endpoint again and note that the title is still the same
- re-edit and save the same node (no change) and see how the title finally changed in the SPARQL endpoint
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | error-sparql-ep.png | 30.56 KB | clayball |
| #1 | 1237090_1_sparql_ep_node_update.patch | 1013 bytes | scor |
Comments
Comment #1
scor commentedthis patch also align the hook_node_insert() implementation with #1237078: Align rdfx_get_rdf_model() prototype with entity API naming convention.
Comment #2
Anonymous (not verified) commentedI can't reproduce the bug, actually. Using the current dev of sparql_endpoint, my endpoint gets updated with every node save.
Comment #3
clayball commentedThe patch produced the attached error on one of my servers.. and the error mentions rdfx.module
??? very strange
Comment #4
clayball commentedFYI: the error above still allows the creation of new content and the updating of existing content.
So the error is displyed.. then I got to the home page and can see the new content/the update.
Comment #5
Anonymous (not verified) commentedBased on your report, I think that the patch might need work.
Comment #6
scor commentedsorry, forgot to make it clear that this patch requires #1237078: Align rdfx_get_rdf_model() prototype with entity API naming convention.
Comment #7
scor commentedupdated the issue summary with steps to reproduce. I'm still seeing the same problem. patch #1 fixes the issue.#1237078: Align rdfx_get_rdf_model() prototype with entity API naming convention is fixed some this patch has no dependency.
Comment #8
scor commentedthis keep bitting me. will commit this patch in a week unless someone argues otherwise.
Comment #9
scor commentedFixed with http://drupalcode.org/project/sparql.git/commit/3276310
Comment #10.0
(not verified) commentedUpdated issue summary.