Thanks, Holger.  I knew that last bit had to be something silly.  I'm on the 
right track now.

-Adam



From: <[email protected]> on behalf of Holger Knublauch 
<[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Wednesday, December 7, 2016 at 5:59 PM
To: "[email protected]" <[email protected]>
Subject: Re: [topbraid-users] Calling a Construct/Update Template from SWP 
using ui:call

Did you change the type of the template to spin:UpdateTemplate, too (not just 
the rdfs:subClassOf statement)?

Holger

On 8/12/2016 10:57, Adam Kimball wrote:
Holger,

Thanks for the prompt response!  When I try to replace CONSTRUCT with INSERT, I 
get an error in the editor

"Encountered "insert" "INSERT" at line 1.... was expecting ...

Screen shot included.

-Adam

From: <[email protected]><mailto:[email protected]> 
on behalf of Holger Knublauch 
<[email protected]><mailto:[email protected]>
Reply-To: 
"[email protected]"<mailto:[email protected]> 
<[email protected]><mailto:[email protected]>
Date: Wednesday, December 7, 2016 at 5:51 PM
To: "[email protected]"<mailto:[email protected]> 
<[email protected]><mailto:[email protected]>
Subject: Re: [topbraid-users] Calling a Construct/Update Template from SWP 
using ui:call

Hi Adam,

I think you need to use a UpdateTemplate and replace CONSTRUCT with INSERT. 
Make sure you specify the correct target graph if necessary, using INSERT { 
GRAPH ?... { ... } } or by setting the default query graph with ui:setContext 
ui:queryGraph="..."

HTH
Holger


On 8/12/2016 10:38, Adam Kimball wrote:
Hi there,

I'm working on an EditRule that should insert triples into the current graph 
when I see certain properties in the ui:addedGraph graph.  My plan was to pass 
in a couple of variables to a construct query and let it do the work.

EditRule
....
<ui:call arg:concept="{= ?concept }" arg:cui="{= ?cui }" 
ui:template="hw-int-spin:AttachCuiDataToConceptTemplate"/>
...

(I don't know if I need to declare these arguments since they are already in 
scope at the time of this tag)

AttachCuiDataToConceptTemplate is an UpdateTemplate (I've also tried 
ConstructTemplate).

CONSTRUCT {
 ...
} WHERE {
...
}


When this ui:call is executed I get an error:
Exception during evaluation of teamwork rules: 
java.lang.IllegalArgumentException: Unsupported query template type


I know this pattern must see a lot of use, and I see mentions of see in the 
definition of ui:call that it should handle an UPDATE command as it body.  But 
is an UPDATE body equivalent to a CONSTRUCT query?

Thanks for any help,
Adam
--
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include the TopBraid Suite family 
of products and its base technologies such as SPARQLMotion, SPARQL Web Pages 
and SPIN.
To post to this group, send email to 
[email protected]<mailto:[email protected]>
---
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]<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include the TopBraid Suite family 
of products and its base technologies such as SPARQLMotion, SPARQL Web Pages 
and SPIN.
To post to this group, send email to 
[email protected]<mailto:[email protected]>
---
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]<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include the TopBraid Suite family 
of products and its base technologies such as SPARQLMotion, SPARQL Web Pages 
and SPIN.
To post to this group, send email to 
[email protected]<mailto:[email protected]>
---
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]<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include the TopBraid Suite family 
of products and its base technologies such as SPARQLMotion, SPARQL Web Pages 
and SPIN.
To post to this group, send email to [email protected]
---
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]<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Group 
"TopBraid Suite Users", the topics of which include the TopBraid Suite family 
of products and its base technologies such as SPARQLMotion, SPARQL Web Pages 
and SPIN.
To post to this group, send email to [email protected]
--- 
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/d/optout.

Reply via email to