John, you can also click on the Query tab and execute the WHERE clause (be sure to copy the WHERE clause beforehand as the window is modal).  The explanation is usually that the script sees different data than what you saw in the SPARQL view.

Also, how are you verifying that the data is deleted or not?  It may be the case that if y
ou have the file open in Composer, you will see the cached version.  Be sure to close the file before executing the script and you should see the right data.  And to be extra sure, use Model > Refresh all Caches and Views, with the modified file closed.  This should flush the cache and you can see what is actually in the data store (is it a text serialization or a data back-end?).

-- Scott

On 3/11/2013 4:40 PM, John Perdoni wrote:
Hi yet again

I apologise if I am wasting your time if this turns out to be lack of knowledge ie a sparql problem.

If via the sparql view in TBC I use the following the Delete works fine

DELETE {
    GRAPH <http://example.com/library/publishedBook> {
        ?currentBookUri ?rdfPropertyToUpdateUri ?o .
    } .
}
WHERE {
    GRAPH <http://example.com/library/publishedBook> {
        BIND (spif:buildURI("<http:/example.com/library/publishedBook#IEE_Code_of_Practice_3rd_Edition>") AS ?currentBookUri) .
        BIND (spif:buildURI("<http://example.com/library/coreModel#lhRhPageLayoutMirrored>") AS ?rdfPropertyToUpdateUri) .
        ?currentBookUri ?rdfPropertyToUpdateUri ?o .
 } .
}

However if I use the following in a performUpdate module of a sm script it does not but no error  or warning is apparent

DELETE {
    GRAPH <http://example.com/library/publishedBook> {
        ?currentBookUri ?rdfPropertyToUpdateUri ?o .
    } .
}
WHERE {
    GRAPH <http://example.com/library/publishedBook> {
        BIND (spif:buildURI("<{?currentBook}>") AS ?currentBookUri) .
        BIND (spif:buildURI("<{?rdfPropertyToUpdate}>") AS ?rdfPropertyToUpdateUri) .
       ?currentBookUri ?rdfPropertyToUpdateUri ?o
    } .
}

I have tried debugging and here is the screenshot of the input var

--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live,
TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live,
TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to