Scott 

I am now getting the following error, I shall delete the script and start 
again, I agree with you that nothing is wrong on the surface, but any 
advice on how you set the value type of an sp:arg when passing in a string 
via http would be helpfull, I have a nagging feeling this is the root of 
the problem. 

java.lang.reflect.InvocationTargetException
    at 
org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction$1.run(AbstractExecuteSPARQLMotionAction.java:148)
    at org.topbraidcomposer.core.util.ThreadUtil$1$1.run(ThreadUtil.java:64)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException
    at java.net.URI.create(Unknown Source)
    at 
org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.merge(ExecutionEngineImpl.java:256)
    at 
org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.executeModule(ExecutionEngineImpl.java:149)
    at 
org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.execute(ExecutionEngineImpl.java:120)
    at 
org.topbraidcomposer.sparqlmotion.views.console.SPARQLMotionConsole.execute(SPARQLMotionConsole.java:79)
    at 
org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction$1.run(AbstractExecuteSPARQLMotionAction.java:137)
    ... 2 more
Caused by: java.net.URISyntaxException: Expected scheme-specific part at 
index 14: publishedBook:
    at java.net.URI$Parser.fail(Unknown Source)
    at java.net.URI$Parser.failExpecting(Unknown Source)
    at java.net.URI$Parser.parse(Unknown Source)
    at java.net.URI.<init>(Unknown Source)
    ... 8 more
Root exception:
java.lang.IllegalArgumentException
    at java.net.URI.create(Unknown Source)
    at 
org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.merge(ExecutionEngineImpl.java:256)
    at 
org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.executeModule(ExecutionEngineImpl.java:149)
    at 
org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.execute(ExecutionEngineImpl.java:120)
    at 
org.topbraidcomposer.sparqlmotion.views.console.SPARQLMotionConsole.execute(SPARQLMotionConsole.java:79)
    at 
org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction$1.run(AbstractExecuteSPARQLMotionAction.java:137)
    at org.topbraidcomposer.core.util.ThreadUtil$1$1.run(ThreadUtil.java:64)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.net.URISyntaxException: Expected scheme-specific part at 
index 14: publishedBook:
    at java.net.URI$Parser.fail(Unknown Source)
    at java.net.URI$Parser.failExpecting(Unknown Source)
    at java.net.URI$Parser.parse(Unknown Source)
    at java.net.URI.<init>(Unknown Source)
    ... 8 more


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.


Reply via email to