Scott , thank for the prompt response,
With regard to running the script , after any change ,I save any changes
in the model( in fact all changes in Tbc) , refresh/display sparql motion
functions and restart the ui that calls the script. The thing that is
really bugging me is that I am using the same structure in 3 other scripts.
I narrowed down the query I gave you for diag, and granted the query in
the other 3 is slightly different with regard to the var names but the idea
is the same. I grant that you say the usually the problem is a difference
in the data being seen, but the data here is as far as the graph,
?currentBook and ?propertyToBeUpdated is exactly the same
DELETE {
GRAPH <http://quadBooks.com/library/publishedBook> {
?currentBookUri ?rdfPropertyToUpdateUri
?rdfBookPropertyStringOldValue .
} .
}
INSERT {
GRAPH <http://quadBooks.com/library/publishedBook> {
?currentBookUri ?rdfPropertyToUpdateUri
?rdfBookPropertyStringNewValue .
} .
}
WHERE {
GRAPH <http://quadBooks.com/library/publishedBook> {
BIND (spif:buildURI("<{?currentBook}>") AS ?currentBookUri) .
BIND (spif:buildURI("<{?rdfPropertyToUpdate}>") AS
?rdfPropertyToUpdateUri) .
} .
}
The only difference that I can see between is that the
?propertyToBeUpdated is set as boolean in tbc in the script that does not
work and string or int in the other 3
On Monday, 11 March 2013 21:40:25 UTC, 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
>
>
> <https://lh3.googleusercontent.com/-M-sgkX67WBU/UT5O8Hho3EI/AAAAAAAAACw/W4sy5dducX4/s1600/query.png>
>
--
-- 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.