John; The unbound quad warning is just that. It indicates that some triples in 
the INSERT (or CONSTRUCT) statement were not created because a variable is 
unbound.  It's only a problem if you expect the variable to be bound. If not, 
CONSTRUCT/INSERT does the right thing - create the triple if the variables are 
bound and don't if any are not bound.

-- Scott


On Mar 9, 2013, at 5:38 PM, John Perdoni <[email protected]> wrote:

> Hi again,
> 
> I have a sparqlmotion script called via a web service that takes in four 
> variables all passed in as Strings
> 
> currentBook
> rdfPropertyToBeUpdated
> rdfPropertyOldValue
> rdfPropertyNewValue.
> 
> the script then performs an update query on a graph.
> 
> The script works fine if the "rdfPropertyToBeUpdated" has already been 
> assigned a value, but if it hasnt then I get an UnboundQuad warning.
> 
> Unbound quad: <http://example.com/library/publishedBook> ?currentBookUri 
> ?propertyToUpdateUri ?rdfPropertyOldValueUri
> 
> My question is this, how do I adjust the following UpdateQuery to remove this 
> warning , ie allow the query to ignore the delete clause if 
> ?rdfPropertyOldValue has no existing value, whilst still updating the graph 
> with the new value.
> 
> I have tried smf:if and passing in a dummy uri from the ui (ie 
> http://example.com/library/coreModel#undefined) but as of yet to no avail. 
> Apologies once again if I a missing something obvious, and I still rate my 
> sparql knowledge as poor
> 
> Regards
> 
> John 
> 
> DELETE {
>     GRAPH <http://example.com/library/publishedBook> {
>         ?currentBookUri ?propertyToUpdateUri ?rdfPropertyOldValueUri .
>     } .
> }
> INSERT {
>     GRAPH <http://example.com/library/publishedBook> {
>         ?currentBookUri ?rdfPropertyToUpdateUri ?rdfPropertyNewValueUri .
>     } .
> }
> WHERE {
>     GRAPH <http://example.com/library/publishedBook> {
>         BIND (spif:buildURI("<{?currentBook}>") AS ?currentBookUri) .
>         BIND (spif:buildURI("<{?rdfPropertyToUpdate}>") AS 
> ?rdfPropertyToUpdateUri) .
>         BIND (spif:buildURI("<{?rdfPropertyOldValue}>") AS 
> ?rdfPropertyOldValueUri) .
>         BIND (spif:buildURI("<{?rdfPropertyNewValue}>") AS 
> ?rdfPropertyNewValueUri) .
>     } .
> }
> -- 
> -- 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