Hi Tim,
you were almost there. The missing info is that ui:update will only write to the context graph when done, not any graph mentioned in the INSERT. So change it to
<ui:setContext ui:queryGraph="<http://example.com/swp_write_to_graph_output>">
<ui:update ui:updateQuery="{!
INSERT {
?s ?p ?o .
}
WHERE {
GRAPH ui:tempGraphFinalOutput {
?s ?p ?o .
} .
} }"/>
</ui:setContext>
which makes the target graph the active context graph while the source graph is moved into the WHERE clause.
You may also want to wrap the ui:update with a ui:transaction if you want to bundle multiple updates into a single save step. It will otherwise auto-create a transaction for each nested ui:update.
HTH and thanks for taking the time to prepare the bundled example.
Holger
--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CAF0Wbn%2BG7FQ8vk8nsLP8FPt%3DoLy86mOs9PuBudBcQP4FTTyO3g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/f1680b28-4484-6d60-6f7d-8f2ec33bb586%40topquadrant.com.
Hi Holger,
I was thinking it worked like SPARQL syntax.
It does work like SPARQL, but the ui:update/ui:transaction elements need to decide when to physically write the triples to the file, and that is easier to do if only the context graph is modified. I am sure this could be improved but that's how it works at the moment.
Holger
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CAF0WbnLhFF%3Dr9ezd6n%2BMnJyA4oP7a-eOR5N5CEroLzGCVup7nA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/eaec939c-d941-9cf3-b27f-1ae976c5ffe5%40topquadrant.com.